
function ChangeDownload(on, id){
	var obj=document.getElementById(id);
	//alert(obj.src);
	if(on==0) obj.src="themes/spin3/images/spin3_"+id+".gif"
	if(on==1) document.getElementById(id).src="themes/spin3/images/spin3_"+id+"_MO.gif"
	//alert("themes/mobile/images/spin3_request_"+id+".gif");
}

function MarqueuSpeed(on){
	if(!on)
		document.getElementById('marq').stop();
	else
		document.getElementById('marq').start();
}
function ChangeImage(on, id){
	var obj=document.getElementById(id);
	//alert(obj.src);
	if(on==0) obj.src="themes/spin3/images/"+id+"_main.gif"
	if(on==1) document.getElementById(id).src="themes/spin3/images/"+id+".gif"
	//alert("themes/mobile/images/spin3_request_"+id+".gif");
}
function ClearField(obj){
	document.getElementById(obj).value='';
	document.getElementById(obj).className="newsletter_field2";
}
//-----------------------------------------------------------
function changebackground(field){
	
	fieldId=document.getElementById(field);
	if(field=='home'){//alert('1');
		fieldId.style.background="url(themes/spin3/images/Home_Mouse_over.gif)";
		//document.getElementById("zz").src="themes/spin3/images/Home_Mouse_over.gif";
		//document.getElementById("zz").style.border = '1px black solid';
	}else{
		fieldId.style.background="url(themes/spin3/images/spin3_mouseover_orange.gif) repeat-x";}
}
//--------------------------------------------------------------
function changebackgroundout(field){
	
	fieldId=document.getElementById(field);
	if(field=='home'){
		fieldId.style.background="url(themes/spin3/images/Home_mouse_out.gif)";
		//document.getElementById("zz").src="themes/spin3/images/Home_mouse_out.gif";
	}else{
		fieldId.style.background="none";}
}
//--------------------------------------------------------------------------
function createdivs() {
	// Write out top menu system
	
	if (vpage=='home')
	{
		document.write('<td class="gray_nav_text_home" align="center"><a class="nav_link_main" href="index.php">Home</a></td><td class="superline"><div style="width:1px;"></div></td>');
	} else {
		//document.write('<td style="width: 49px; overflow: hidden; position: relative;" class="orange_nav_text_home" align="left" id="home" onmouseover="changebackground(\'home\');" onmouseout="changebackgroundout(\'home\');"><img id="zz" src="themes/spin3/images/Home_mouse_out.gif" /><div style="position: absolute; top: 9px; left: 5px;"><a class="nav_link_main_home" href="index.php">Home</a></div></td><td class="superline"><div style="width:1px;"></div></td>');
		document.write('<td class="orange_nav_text_home" align="center" id="home"><a class="nav_link_main_home" onmouseover="changebackground(\'home\');" onmouseout="changebackgroundout(\'home\');" href="index.php">Home</a></td><td class="superline"><div style="width:1px;"></div></td>');
	}
	
	if (vpage=='solutions')
	{
		document.write('<td class="gray_nav_text" align="center"><a class="nav_link_main" href="solutions.php" >Solutions</a></td><td class="superline"><div style="width:1px;"></div></td>');
	} else {
		document.write('<td class="orange_nav_text" align="center" id="solutions"><a class="nav_link_main" href="solutions.php" onmouseover="javascript:changebackground(\'solutions\');" onmouseout="javascript:changebackgroundout(\'solutions\');">Solutions</a></td><td class="superline"><div style="width:1px;"></div></td>');
	}
	if (vpage=='portfolio')
	{
		document.write('<td class="gray_nav_text" align="center"><a class="nav_link_main" href="products.php" >Portfolio</a></td><td class="superline"><div style="width:1px;"></div></td>');
	} else {
		document.write('<td class="orange_nav_text" align="center" id="portfolio" ><a class="nav_link_main" href="products.php" onmouseover="javascript:changebackground(\'portfolio\');" onmouseout="javascript:changebackgroundout(\'portfolio\');">Portfolio</a></td><td class="superline"><div style="width:1px;"></div></td>');
	}
	if (vpage=='games')
	{
		document.write('<td class="gray_nav_text" align="center"><a class="nav_link_main" href="games.php" >Games</a></td><td class="superline"><div style="width:1px;"></div></td>');
	} else {
		document.write('<td class="orange_nav_text" align="center" id="games"><a class="nav_link_main" href="games.php" onmouseover="javascript:changebackground(\'games\');" onmouseout="javascript:changebackgroundout(\'games\');">Games</a></td><td class="superline"><div style="width:1px;"></div></td>');
	}
	if (vpage=='customers')
	{
		document.write('<td class="gray_nav_text" align="center"><a class="nav_link_main" href="customers.php" >Customers</a></td><td class="superline"><div style="width:1px;"></div></td>');
	} else {
		document.write('<td class="orange_nav_text" align="center" id="customers"><a class="nav_link_main" href="customers.php" onmouseover="javascript:changebackground(\'customers\');" onmouseout="javascript:changebackgroundout(\'customers\');">Customers</a></td><td class="superline"><div style="width:1px;"></div></td>');
	}
  if (vpage=='partner')
	{
		document.write('<td class="gray_nav_text" align="center" ><a class="nav_link_main" href="partner.php" >Partner Program</a></td><td class="superline"><div style="width:1px;"></div></td>');
	} else {
		document.write('<td class="orange_nav_text" align="center" id="partner"><a class="nav_link_main" href="partner.php" onmouseover="javascript:changebackground(\'partner\');" onmouseout="javascript:changebackgroundout(\'partner\');">Partner Program</a></td><td class="superline"><div style="width:1px;"></div></td>');
	}	
	if (vpage=='news_events')
	{
		document.write('<td class="gray_nav_text" align="center"><a class="nav_link_main" href="news_events.php" >News & Events</a></td><td class="superline"><div style="width:1px;"></div></td>');
	} else {
		document.write('<td class="orange_nav_text" align="center" id="news"><a class="nav_link_main" href="news_events.php" onmouseover="javascript:changebackground(\'news\');" onmouseout="javascript:changebackgroundout(\'news\');">News & Events</a></td><td class="superline"><div style="width:1px;"></div></td>');
	}
	if (vpage=='about')
	{
		document.write('<td class="gray_nav_text" align="center" ><a class="nav_link_main" href="about.php" >About Us</a></td><td class="superline"><div style="width:1px;"></div></td>');
	} else {
		document.write('<td class="orange_nav_text" align="center" id="about"><a class="nav_link_main" href="about.php" onmouseover="javascript:changebackground(\'about\');" onmouseout="javascript:changebackgroundout(\'about\');">About Us</a></td><td class="superline"><div style="width:1px;"></div></td>');
	}	

}

function getinnermenu(vmenu)
{
	//alert(vmenu + "   " + vpage + "   " + vpagesub);
	vtemp = '';
	vtemp='<table border="0" cellspacing="10" cellpadding="0"><tr>';
	if (vmenu == 'home' )
	{
		vtemp=vtemp+'<td></td>';
	}
	if (vmenu == 'partner' )
	{
		vtemp=vtemp+'<td></td>';
	}
	
	if (vmenu == 'portfolio' )
	{
			switch(vpagesub){
				case 'gamewire': 
					vtemp=vtemp+'<td><a class="nav_link_selected" href="gamewire.php">&nbsp;GameWire </a></td><td class="superline_gray"></td><td><a class="nav_link" href="oncash.php">OnCash</a></td><td class="superline_gray"></td><td><a class="nav_link" href="spinfone.php"> SpinFone </a></td><td class="superline_gray"></td><td><a class="nav_link" href="spinlite.php">SpinLite</a></td><td class="superline_gray"></td><td><a class="nav_link" href="services.php">Services</a></td>';	
					break;
				case 'spinlite':
					vtemp=vtemp+'<td><a class="nav_link" href="gamewire.php">&nbsp;GameWire </a></td><td class="superline_gray"></td><td><a class="nav_link" href="oncash.php">OnCash</a></td><td class="superline_gray"></td><td><a class="nav_link" href="spinfone.php"> SpinFone </a></td><td class="superline_gray"></td><td><a class="nav_link_selected" href="spinlite.php">SpinLite</a></td><td class="superline_gray"></td><td><a class="nav_link" href="services.php">Services</a></td>';	
					break;
				case 'spinfone':
					vtemp=vtemp+'<td><a class="nav_link" href="gamewire.php">&nbsp;GameWire </a></td><td class="superline_gray"></td><td><a class="nav_link" href="oncash.php">OnCash</a></td><td class="superline_gray"></td><td><a class="nav_link_selected" href="spinfone.php"> SpinFone </a></td><td class="superline_gray"></td><td><a class="nav_link" href="spinlite.php">SpinLite</a></td><td class="superline_gray"></td><td><a class="nav_link" href="services.php">Services</a></td>';	
					break;
				
				case 'ki-bi':
					vtemp=vtemp+'<td><a class="nav_link" href="gamewire.php">&nbsp;GameWire </a></td><td class="superline_gray"></td><td><a class="nav_link" href="spinlite.php">SpinLite</a></td><td class="superline_gray"></td><td><a class="nav_link" href="spinfone.php"> SpinFone </a></td><td class="superline_gray"></td><td><a class="nav_link" href="oncash.php">OnCash</a></td><td class="superline_gray"></td><td><a class="nav_link" href="services.php">Services</a></td>';
					break;
				case 'flashcasino':
					vtemp=vtemp+'<td><a class="nav_link" href="gamewire.php">&nbsp;GameWire </a></td><td class="superline_gray"></td><td class="superline_gray"></td><td><a class="nav_link" href="spinlite.php">SpinLite</a></td><td class="superline_gray"></td><td><a class="nav_link" href="spinfone.php"> SpinFone </a></td><td><a class="nav_link_selected" href="flashcasino.php">Flash Casino</a></td><td class="superline_gray"></td><td><a class="nav_link" href="oncash.php">OnCash</a></td><td class="superline_gray"></td><td><a class="nav_link" href="services.php">Services</a></td>';	
					break;
				case 'oncash':
					vtemp=vtemp+'<td><a class="nav_link" href="gamewire.php">&nbsp;GameWire </a></td><td class="superline_gray"></td><td><a class="nav_link_selected" href="oncash.php">OnCash</a></td><td class="superline_gray"></td><td><a class="nav_link" href="spinfone.php"> SpinFone </a></td><td class="superline_gray"></td><td><a class="nav_link" href="spinlite.php">SpinLite</a></td><td class="superline_gray"></td><td><a class="nav_link" href="services.php">Services</a></td>';	
					break;
				case 'services':
					vtemp=vtemp+'<td><a class="nav_link" href="gamewire.php">&nbsp;GameWire </a></td><td class="superline_gray"></td><td><a class="nav_link" href="oncash.php">OnCash</a></td><td class="superline_gray"></td><td><a class="nav_link" href="spinfone.php"> SpinFone </a></td><td class="superline_gray"></td><td><a class="nav_link" href="spinlite.php">SpinLite</a></td><td class="superline_gray"></td><td><a class="nav_link_selected" href="services.php">Services</a></td>';
					break;
				default : 
					vtemp=vtemp+'<td><a class="nav_link" href="gamewire.php" >&nbsp;GameWire </a></td><td class="superline_gray"></td><td><a class="nav_link" href="oncash.php">OnCash</a></td><td class="superline_gray"></td><td><a class="nav_link" href="spinfone.php"> SpinFone </a></td><td class="superline_gray"></td><td><a class="nav_link" href="spinlite.php">SpinLite</a></td><td class="superline_gray"></td><td><a class="nav_link" href="services.php">Services</a></td>';	
					break;
			}
	}
	if (vmenu == 'solutions' )
	{	
		switch(vpagesub){
			case 'onlinesolutions':
				vtemp=vtemp+'<td><a class="nav_link_selected" href="onlinesolutions.php">Extending Online to Wireless</a></td><td class="superline_gray"></td><td><a class="nav_link" href="mobilesolutions.php">Bridging the Mobile Entertainment World</a></td><td class="superline_gray"></td><td><a class="nav_link" href="landbasedsolutions.php">Leveraging Land-based via Mobile</a></td>';
				break;
			case 'mobilesolutions':
				vtemp=vtemp+'<td><a class="nav_link" href="onlinesolutions.php">Extending Online to Wireless</a></td><td class="superline_gray"></td><td><a class="nav_link_selected" href="mobilesolutions.php">Bridging the Mobile Entertainment World</a></td><td class="superline_gray"></td><td><a class="nav_link" href="landbasedsolutions.php">Leveraging Land-based via Mobile</a></td>';
				break;
			case 'landbasedsolutions':
				vtemp=vtemp+'<td><a class="nav_link" href="onlinesolutions.php">Extending Online to Wireless</a></td><td class="superline_gray"></td><td><a class="nav_link" href="mobilesolutions.php">Bridging the Mobile Entertainment World</a></td><td class="superline_gray"></td><td><a class="nav_link_selected" href="landbasedsolutions.php">Leveraging Land-based via Mobile</a></td>';
				break;
			
			default:
				vtemp=vtemp+'<td><a class="nav_link" href="onlinesolutions.php">Extending Online to Wireless</a></td><td class="superline_gray"></td><td><a class="nav_link" href="mobilesolutions.php">Bridging the Mobile Entertainment World</a></td><td class="superline_gray"></td><td><a class="nav_link" href="landbasedsolutions.php">Leveraging Land-based via Mobile</a></td>';
				break;			
		}
	}

	if (vmenu == 'games')
	{
		switch(vpagesub){
		  case 'nativeapps':
				vtemp=vtemp+'<td><a class="nav_link_selected" href="nativeapps.php">Native Apps</a></td><td class="superline_gray"></td><td><a class="nav_link" href="webapps.php">Web Applications</a></td><td class="superline_gray"></td><td><a class="nav_link" href="tablegames.php">Table Games</a></td><td class="superline_gray"></td><td><a class="nav_link" href="slots.php">Slots & Progressives</a></td><td class="superline_gray"></td><td><a class="nav_link" href="videopoker.php">Video Poker & More</a></td>';
				break;
		  case 'webapps':
				vtemp=vtemp+'<td><a class="nav_link" href="nativeapps.php">Native Apps</a></td><td class="superline_gray"></td><td><a class="nav_link_selected" href="webapps.php">Web Applications</a></td><td class="superline_gray"></td><td><a class="nav_link" href="tablegames.php">Table Games</a></td><td class="superline_gray"></td><td><a class="nav_link" href="slots.php">Slots & Progressives</a></td><td class="superline_gray"></td><td><a class="nav_link" href="videopoker.php">Video Poker & More</a></td>';
				break;
			case 'tablegames':
				vtemp=vtemp+'<td><a class="nav_link" href="nativeapps.php">Native Apps</a></td><td class="superline_gray"></td><td><a class="nav_link" href="webapps.php">Web Applications</a></td><td class="superline_gray"></td><td><a class="nav_link_selected" href="tablegames.php">Table Games</a></td><td class="superline_gray"></td><td><a class="nav_link" href="slots.php">Slots & Progressives</a></td><td class="superline_gray"></td><td><a class="nav_link" href="videopoker.php">Video Poker & More</a></td>';
				break;
			case 'slots':
				vtemp=vtemp+'<td><a class="nav_link" href="nativeapps.php">Native Apps</a></td><td class="superline_gray"></td><td><a class="nav_link" href="webapps.php">Web Applications</a></td><td class="superline_gray"></td><td><a class="nav_link" href="tablegames.php">Table Games</a></td><td class="superline_gray"></td><td><a class="nav_link_selected" href="slots.php">Slots & Progressives</a></td><td class="superline_gray"></td><td><a class="nav_link" href="videopoker.php">Video Poker & More</a></td>';
				break;
			case 'videopoker':
				vtemp=vtemp+'<td><a class="nav_link" href="nativeapps.php">Native Apps</a></td><td class="superline_gray"></td><td><a class="nav_link" href="webapps.php">Web Applications</a></td><td class="superline_gray"></td><td><a class="nav_link" href="tablegames.php">Table Games</a></td><td class="superline_gray"></td><td><a class="nav_link" href="slots.php">Slots & Progressives</a></td><td class="superline_gray"></td><td><a class="nav_link_selected" href="videopoker.php">Video Poker & More</a></td>';
				break;
			default: 
				vtemp=vtemp+'<td><a class="nav_link" href="nativeapps.php">Native Apps</a></td><td class="superline_gray"></td><td><a class="nav_link" href="webapps.php">Web Applications</a></td><td class="superline_gray"></td><td><a class="nav_link" href="tablegames.php">Table Games</a></td><td class="superline_gray"></td><td><a class="nav_link" href="slots.php">Slots & Progressives</a></td><td class="superline_gray"></td><td><a class="nav_link" href="videopoker.php">Video Poker & More</a></td>';
				break;
		}
	}
	if (vmenu == 'news_events' )
	{
		switch(vpagesub){
			case 'press_releases':
				vtemp=vtemp+'<td><a class="nav_link_selected" href="press_releases.php">Press Releases</a></td><td class="superline_gray"></td><td><a class="nav_link" href="in_news.php">In the News</a></td><td class="superline_gray"></td><!--td><a class="nav_link" href="industry_news.php">Industry News</a></td><td class="superline_gray"></td--><td><a class="nav_link" href="events.php">Events</a></td>';
				break;
			case 'in_news':
				vtemp=vtemp+'<td><a class="nav_link" href="press_releases.php">Press Releases</a></td><td class="superline_gray"></td><td><a class="nav_link_selected" href="in_news.php">In the News</a></td><td class="superline_gray"></td><!--td><a class="nav_link" href="industry_news.php">Industry News</a></td><td class="superline_gray"></td--><td><a class="nav_link" href="events.php">Events</a></td>';
				break;
			case 'industry_news':
				vtemp=vtemp+'<td><a class="nav_link" href="press_releases.php">Press Releases</a></td><td class="superline_gray"></td><td><a class="nav_link" href="in_news.php">In the News</a></td><td class="superline_gray"></td><!--td><a class="nav_link_selected" href="industry_news.php">Industry News</a></td><td class="superline_gray"></td--><td><a class="nav_link" href="events.php">Events</a></td>';
				break;
			case 'events':
				vtemp=vtemp+'<td><a class="nav_link" href="press_releases.php">Press Releases</a></td><td class="superline_gray"></td><td><a class="nav_link" href="in_news.php">In the News</a></td><td class="superline_gray"></td><!--td><a class="nav_link" href="industry_news.php">Industry News</a></td><td class="superline_gray"></td--><td><a class="nav_link_selected" href="events.php">Events</a></td>';	
				break;
			default:
				vtemp=vtemp+'<td><a class="nav_link" href="press_releases.php">Press Releases</a></td><td class="superline_gray"></td><td><a class="nav_link" href="in_news.php">In the News</a></td><td class="superline_gray"></td><!--td><a class="nav_link" href="industry_news.php">Industry News</a></td><td class="superline_gray"></td--><td><a class="nav_link" href="events.php">Events</a></td>';
				break;
		}
	}
	
	if (vmenu == 'about' )
	{
		switch(vpagesub){
			case 'credibility':
				vtemp=vtemp+'<td><a class="nav_link_selected" href="credibility.php">Credibility</a></td><td class="superline_gray"></td><td><a class="nav_link" href="testimonials.php">Testimonials</a></td><td class="superline_gray"></td><td><a class="nav_link" href="wireless_market.php">The Wireless Market</a></td>';
				break;
			case 'testimonials':
				vtemp=vtemp+'<td><a class="nav_link" href="credibility.php">Credibility</a></td><td class="superline_gray"></td><td><a class="nav_link_selected" href="testimonials.php">Testimonials</a></td><td class="superline_gray"></td><td><a class="nav_link" href="wireless_market.php">The Wireless Market</a></td>';
				break;
			case 'wireless_market':
				vtemp=vtemp+'<td><a class="nav_link" href="credibility.php">Credibility</a></td><td class="superline_gray"></td><td><a class="nav_link" href="testimonials.php">Testimonials</a></td><td class="superline_gray"></td><td><a class="nav_link_selected" href="wireless_market.php">The Wireless Market</a></td>';
				break;
			
			default:
				vtemp=vtemp+'<td><a class="nav_link" href="credibility.php">Credibility</a></td><td class="superline_gray"></td><td><a class="nav_link" href="testimonials.php">Testimonials</a></td><td class="superline_gray"></td><td><a class="nav_link" href="wireless_market.php">The Wireless Market</a></td>';
				break;
		}
	}
	
	vtemp=vtemp+'</tr></table>';
	document.write(vtemp);
	//return vtemp;

}

