// ---- LOGIN ------------- //

	function verify(username,password,path_query_url){
		location.href = "/adm/verification.asp?username=" + username + "&password=" + password + "&path_query_url=" + path_query_url
	}
	function verify_portfolio(username,password,path_query_url,language_id){
		location.href = "/adm/verification_portfolio.asp?language_id="+language_id+"&username=" + username + "&password=" + password + "&path_query_url=" + path_query_url
	}

	
// ---- DISPLAY FLASH ----- //

	function displayFlashTitle(title,w,h,img) {
		if(siteversion != "html"){
			document.write('<object width="'+w+'" height="'+h+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="wmode" value="opaque" /><param name="movie" value="/4105/flash/title.swf?title=' + title.toUpperCase() + '" /><embed src="/4105/flash/title.swf?title=' + title.toUpperCase() + '" wmode="opaque" width="'+w+'" height="'+h+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
		}else{
			document.write('<img src="' + img + '" height="'+h+'" alt="' + title + '" title="' + title + '" />');
		}
	}
	
	
	function displayFlash(path,w,h,img) {
		if(siteversion != "html"){
			document.write('<object width='+w+' height='+h+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="wmode" value="opaque" /><param name="movie" value="'+path+'" /><embed src="'+path+'" width='+w+' height='+h+' wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
		}else{
			if(img != ""){
				document.write('<img src="' + img + '" width="'+w+'" height="'+h+'" />');
			}
		}
	}
	
	function displayNav(){
		if(siteversion != "html"){
			document.getElementById("menu_flash").style.display = "block";
		}else{
			document.getElementById("menu_flash").style.display = "none";
		}
	}
	function displayHTMLNav(main, subsection){
		if(siteversion == "html"){
		
			if(main == "1"){
				document.write('<dl class="html_menu home">');
				document.write('	<dt id="home_s" title="Home"><a href="home.asp" title="Home"><b>Home</b></a></dt>');
				document.write('</dl>');
			}else{
				document.write('<dl class="html_menu home">');
				document.write('	<dt id="home" title="Home"><a href="home.asp" title="Home"><b>Home</b></a></dt>');
				document.write('</dl>');
			}
	
		
			if(main == "2"){
				document.write('<dl class="html_menu who">');
				document.write('	<dt id="who" title="Who"><b>Who</b></dt>');
				if(subsection=="1"){
					document.write('	<dd id="who_01_s"><a href="company.asp" title="Company"><span>Company</span></a></dd>');
				}else{
					document.write('	<dd id="who_01"><a href="company.asp" title="Company"><span>Company</span></a></dd>');
				}
				if(subsection=="2"){
					document.write('	<dd id="who_02_s"><a href="team.asp" title="Team"><span>Team</span></a></dd>');
				}else{
					document.write('	<dd id="who_02"><a href="team.asp" title="Team"><span>Team</span></a></dd>');
				}
				if(subsection=="3"){
					document.write('	<dd id="who_03_s"><a href="community.asp" title="Community"><span>Community</span></a></dd>');
				}else{
					document.write('	<dd id="who_03"><a href="community.asp" title="Community"><span>Community</span></a></dd>');
				}
				document.write('</dl>');
			}else{
				document.write('<dl class="html_menu who mnormal">');
				document.write('	<dt id="who"><a href="company.asp" title="Who"><b>Who</b></a></dt>');
				document.write('	<dd id="who_01"><a href="company.asp" title="Company"><span>Company</span></a></dd>');
				document.write('	<dd id="who_02"><a href="team.asp" title="Team"><span>Team</span></a></dd>');
				document.write('	<dd id="who_03"><a href="community.asp" title="Community"><span>Community</span></a></dd>');
				document.write('</dl>');
			}
		
		
			if(main == "3"){
				document.write('<dl class="html_menu what">');
				document.write('	<dt id="what" title="What"><b>What</b></dt>');
				if(subsection=="1"){
					document.write('	<dd id="what_01_s"><a href="multimarketing.asp" title="Multimarketing"><span>Multimarketing</span></a></dd>');
				}else{
					document.write('	<dd id="what_01"><a href="multimarketing.asp" title="Multimarketing"><span>Multimarketing</span></a></dd>');
				}
				if(subsection=="5"){
					document.write('	<dd id="what_02_s"><a href="services_html.asp" title="Services"><span>Services</span></a></dd>');
				}else{
					document.write('	<dd id="what_02"><a href="services_html.asp" title="Services"><span>Services</span></a></dd>');
				}
				if(subsection=="3"){
					document.write('	<dd id="what_03_s"><a href="process.asp" title="Process"><span>Process</span></a></dd>');
				}else{
					document.write('	<dd id="what_03"><a href="process.asp" title="Process"><span>Process</span></a></dd>');
				}
				if(subsection=="4"){
					document.write('	<dd id="what_04_s"><a href="breeze.asp" title="Breeze"><span>Breeze</span></a></dd>');
				}else{
					document.write('	<dd id="what_04"><a href="breeze.asp" title="Breeze"><span>Breeze</span></a></dd>');
				}
				document.write('</dl>');
			}else{
				document.write('<dl class="html_menu what mnormal">');
				document.write('	<dt id="what"><a href="multimarketing.asp" title="What"><b>What</b></a></dt>');
				document.write('	<dd id="what_01"><a href="multimarketing.asp" title="Multimarketing"><span>Multimarketing</span></a></dd>');
				document.write('	<dd id="what_02"><a href="services_html.asp" title="Services"><span>Services</span></a></dd>');
				document.write('	<dd id="what_03"><a href="process.asp" title="Process"><span>Process</span></a></dd>');
				document.write('	<dd id="what_04"><a href="breeze.asp" title="Breeze"><span>Breeze</span></a></dd>');
				document.write('</dl>');					
			}	
		

			if(main == "4"){
				document.write('<dl class="html_menu when">');
				document.write('	<dt id="when" title="When"><b>When</b></dt>');
				if(subsection=="1"){
				    document.write('	<dd id="when_01_s"><a href="now.asp" title="Now"><span>Now</span></a></dd>');
				}else{
				    document.write('	<dd id="when_01"><a href="now.asp" title="Now"><span>Now</span></a></dd>');
				}
				document.write('</dl>');
			}else{
				document.write('<dl class="html_menu when mnormal">');
				document.write('	<dt id="when"><a href="now.asp" title="When"><b>When</b></a></dt>');
				document.write('	<dd id="when_01"><a href="now.asp" title="Now"><span>Now</span></a></dd>');
				document.write('</dl>');
			}


			if(main == "5"){
				document.write('<dl class="html_menu where">');
				document.write('	<dt id="where" title="Where"><b>Where</b></dt>');
				if(subsection=="1"){
				    document.write('	<dd id="where_01_s"><a href="here.asp" title="Here"><span>Here</span></a></dd>');
				}else{
				    document.write('	<dd id="where_01"><a href="here.asp" title="Here"><span>Here</span></a></dd>');
				}
				document.write('</dl>');
			}else{
				document.write('<dl class="html_menu where mnormal">');
				document.write('	<dt id="where"><a href="here.asp" title="Where"><b>Where</b></a></dt>');
				document.write('	<dd id="where_01"><a href="here.asp" title="Here"><span>Here</span></a></dd>');
				document.write('</dl>');
			}

		
			if(main == "6"){
				document.write('<dl class="html_menu why">');
				document.write('	<dt id="why"><b>Why</b></dt>');
				if(subsection=="1"){
				    document.write('	<dd id="why_01_s"><a href="because.asp" title="Because"><span>Because</span></a></dd>');
				}else{
				    document.write('	<dd id="why_01"><a href="because.asp" title="Because"><span>Because</span></a></dd>');
				}
				if(subsection=="2"){
				    document.write('	<dd id="why_02_s"><a href="portfolio.asp" title="Portfolio"><span>Portfolio</span></a></dd>');
				}else{
				    document.write('	<dd id="why_02"><a href="portfolio.asp" title="Portfolio"><span>Portfolio</span></a></dd>');
				}
				/*
				if(subsection=="3"){
				    document.write('	<dd id="why_03_s"><a href="testimonials.asp" title="Testimonials"><span>Testimonials</span></a></dd>');
				}else{
				    document.write('	<dd id="why_03"><a href="testimonials.asp" title="Testimonials"><span>Testimonials</span></a></dd>');
				}
				if(subsection=="4"){
				    document.write('	<dd id="why_04_s"><a href="awards.asp" title="Awards"><span>Awards</span></a></dd>');
			    }else{
			        document.write('	<dd id="why_04"><a href="awards.asp" title="Awards"><span>Awards</span></a></dd>');
			    }*/
				document.write('</dl>');
			}else{
				document.write('<dl class="html_menu why mnormal">');
				document.write('	<dt id="why"><a href="because.asp" title="Why"><b>Why</b></a></dt>');
				document.write('	<dd id="why_01"><a href="because.asp" title="Because"><span>Because</span></a></dd>');
				document.write('	<dd id="why_02"><a href="portfolio.asp" title="Portfolio"><span>Portfolio</span></a></dd>');
				/*document.write('	<dd id="why_03"><a href="testimonials.asp" title="Testimonials"><span>Testimonials</span></a></dd>');*/
				document.write('	<dd id="why_04"><a href="awards.asp" title="Awards"><span>Awards</span></a></dd>');
				document.write('</dl>');
			}	
		}
	}


	
	function displayFlashThumb(path,w,h,img,imgw,imgh,link) {
		if(siteversion != "html"){
			document.write('<object width='+w+' height='+h+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="wmode" value="opaque" /><param name="movie" value="'+path+'" /><embed src="'+path+'" width='+w+' height='+h+' wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
		}else{
			document.write('<a href="' +link+ '" class="noeffects"><img src="' + img + '" width="'+imgw+'" height="'+imgh+'" class="img_portfolio" /></a>');
		}
	}	
	
						
		function displayFlashSend(path,w,h,img,page) {
			if(siteversion != "html"){
				document.write('<object width='+w+' height='+h+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="wmode" value="opaque" /><param name="movie" value="'+path+'" /><embed src="'+path+'" width='+w+' height='+h+' wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
			}else{
				document.write('<a href="javascript:MM_openBrWindow(\'send_friend.asp?page=' + page + '\',\'Send\',\'width=538,height=445,left=0,top=0,scrollbars=yes\');" class="noeffects" onmouseout="rollOut();" onmouseover="rollOver(\'b_send\',\'\',\'images/htmlversion/b_send_o.gif\',1);"><img src="images/htmlversion/b_send.gif" id="b_send" alt="Send to a Friend" title="Send to a Friend" width="130" height="30" /></a>');
			}
		}
													
		function displayFlashPrint(path,w,h,img) {
			if(siteversion != "html"){
				document.write('<object width='+w+' height='+h+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="wmode" value="opaque" /><param name="movie" value="'+path+'" /><embed src="'+path+'" width='+w+' height='+h+' wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
			}else{
				document.write('<a href="javascript:window.print();" class="noeffects" onmouseout="rollOut();" onmouseover="rollOver(\'b_print\',\'\',\'images/htmlversion/b_print_o.gif\',1);"><img src="images/htmlversion/b_print.gif" id="b_print" alt="Print this Page" title="Print this Page" width="130" height="30" /></a>');
			}
		}


	function displayFlashCall(path,w,h,theid) {
		if(theid=="call_breeze"){
			if(siteversion != "html"){
				document.write('<object width='+w+' height='+h+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="wmode" value="opaque" /><param name="movie" value="'+path+'" /><embed src="'+path+'" width='+w+' height='+h+' wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
			}else{
				document.write('<a href="http://www.twistimage.com/4105/breeze.asp" onmouseout="rollOut();" onmouseover="rollOver(\'call_breeeze\',\'\',\'images/htmlversion/call_breeze_o.gif\',1);"><img src="images/htmlversion/call_breeze.gif" width="252" height="95" id="call_breeeze" alt="Manage Your Website Content" title="Manage Your Website Content" /></a>');
			}
		}else{
			if(siteversion != "html"){
				document.write('<object width='+w+' height='+h+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="wmode" value="opaque" /><param name="movie" value="'+path+'" /><embed src="'+path+'" width='+w+' height='+h+' wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
			}else{
				document.write('<a href="http://www.twistimage.com/blog" onclick="window.open(this.href,\'_blank\');return false;" onmouseout="rollOut();" onmouseover="rollOver(\'call_mitchs_blog\',\'\',\'images/htmlversion/call_mitchs_blog_o.gif\',1);"><img src="images/htmlversion/call_mitchs_blog.gif" width="252" height="95" id="call_mitchs_blog" alt="Mitch Joel Blog Marketing Insight" title="Check Out Mitch Blog" /></a>');
			}
		}
	}
	
	function displayFlashLogin(path,w,h,theid,path_query_url) {
		if(siteversion != "html"){
			document.write('<object width='+w+' height='+h+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="wmode" value="opaque" /><param name="movie" value="'+path+'?path_query_url='+path_query_url+'" /><embed src="'+path+'?path_query_url='+path_query_url+'" width='+w+' height='+h+' wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
		}else{
			document.write('<fieldset>');
			document.write('<input type="hidden" name="path_query_url" id="path_query_url" value="' + path_query_url + '" />');
			document.write('<table cellspacing="0" cellpadding="0">');
			document.write('	<tr>');
			document.write('		<td><img src="images/htmlversion/st_user.gif" alt="User" title="User" width="27" height="11" /></td>');
			document.write('		<td><input type="text" name="username" id="username" value="" class="box2" /></td>');
			document.write('		<td rowspan="2"><input type="image" id="b_login_go" src="images/htmlversion/b_login_go.gif" onmouseout="rollOut();" onmouseover="rollOver(\'b_login_go\',\'\',\'images/htmlversion/b_login_go_o.gif\',1);" alt="Go" title="Go" /></td>');
			document.write('	</tr>');
			document.write('	<tr>');
			document.write('		<td><img src="images/htmlversion/st_password.gif" alt="Password" title="Password" width="27" height="11" /></td>');
			document.write('		<td><input type="password" name="password" id="password" value="" class="box2" /></td>');
			document.write('	</tr>');
			document.write('</table>');
			document.write('</fieldset>');
		}
	}


	function displayFlashLoginPortfolio(path,w,h,theid,path_query_url,language_id) {
		if(siteversion != "html"){
			document.write('<object width='+w+' height='+h+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id=ShockwaveFlash1><param name="wmode" value="opaque" /><param name="movie" value="'+path+'?path_query_url='+path_query_url+'&language_id='+language_id+'" /><embed src="'+path+'?path_query_url='+path_query_url+'&language_id='+language_id+'" width='+w+' height='+h+' wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
		}else{
			document.write('<fieldset>');
			document.write('<input type="hidden" name="path_query_url" id="path_query_url" value="' + path_query_url + '" />');
			document.write('<table cellspacing="0" cellpadding="0">');
			document.write('	<tr>');
			document.write('		<td><img src="images/htmlversion/st_user.gif" alt="User" title="User" width="27" height="11" /></td>');
			document.write('		<td><input type="text" name="username" id="username" value="" class="box2" /></td>');
			document.write('		<td rowspan="2"><input type="image" id="b_login_go" src="images/htmlversion/b_login_go.gif" onmouseout="rollOut();" onmouseover="rollOver(\'b_login_go\',\'\',\'images/htmlversion/b_login_go_o.gif\',1);" alt="Go" title="Go" /></td>');
			document.write('	</tr>');
			document.write('	<tr>');
			document.write('		<td><img src="images/htmlversion/st_password.gif" alt="Password" title="Password" width="27" height="11" /></td>');
			document.write('		<td><input type="password" name="password" id="password" value="" class="box2" /><input type="hidden" name="language_id" id="language_id" value="'+language_id+'" /></td>');
			document.write('	</tr>');
			document.write('</table>');
			document.write('</fieldset>');
		}
	}
		
	
	function displayFlashTrans(path,w,h,img) {
		//if(siteversion != "html"){
			document.write('<object width='+w+' height='+h+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"><param NAME="movie" VALUE="'+path+'"><param NAME="menu" VALUE="false"><param NAME="wmode" VALUE="transparent"><param NAME="bgcolor" VALUE="#ffffff"><embed src="'+path+'" menu="false" quality="high" wmode="transparent" bgcolor="#ffffff" width='+w+' height='+h+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></object>');
		//}else{
		//	document.write('<img src="' + img + '" width="'+w+'" height="'+h+'" />');
		//}
	}

	
// ---- Validate Email ----- //


function checkEmail(to_check) 
	{
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,5})+$/.test(to_check)){
	return (true)}
	}
	function validate_form()
		{
		Goon = 0;
		var msg = "";
		if(document.getElementById("request_portfolio").FullName.value == "")
			{
			Goon = 1;
			msg = msg + "Name<br />";
			}
		if(!checkEmail(document.getElementById("request_portfolio").email.value))
			{
			Goon = 1;
			msg = msg + "Email<br />";
			}
		if(document.getElementById("request_portfolio").company.value == "")
			{
			Goon = 1;
			msg = msg + "Company<br />";
			}
		if(document.getElementById("request_portfolio").phone.value == "")
			{
			Goon = 1;
			msg = msg + "Phone Number<br />";
			}
		if(Goon == 0)
		{
			document.getElementById("request_portfolio").submit();	
		}
		else
		{
		window.document.getElementById("error").innerHTML = "<font color='#C40000'><br />Please fill or correct the following field(s):</font><br>" + msg;
		}
	}
	

	
// ---- Testimonials ----- //


		function submit_testimonials_desc(testimonial_id)
			{
			document.news.testimonial_id.value = testimonial_id;
			document.news.submit();
			}
		function change_page(intpage)
			{
			document.news.intpage.value = intpage;
			document.news.action = "06_03_testimonials.asp";//calls itself
			document.news.method = "post";
			document.news.submit();
			}
		function skip(type)
			{
			if(type == "first")
				document.news.intpage.value = 1;
			if(type == "last")
				document.news.intpage.value = 'end';
			if(type == "prev")
				document.news.intpage.value = parseInt(document.news.intpage.value) - 1;
			if(type == "next")
				{
				document.news.intpage.value = parseInt(document.news.intpage.value) + 1;
				}
			document.news.action = "06_03_testimonials.asp";//calls itself
			document.news.method = "post";
			document.news.submit();
			}
			
			
			
			
// ---- PORTFOLIO ----- //	
			
		
		function changePortfolioPic(pic_item) {
			document.getElementById("img_portfolio").src = "/filesUpload/catalog/big/" + pic_item + ".jpg";
		}