
var diviation=260;
		if(navigator.appName == "Microsoft Internet Explorer")
	  {
		 var raw1=125+diviation;
	   var raw2=270+diviation;
	   var raw3=415+diviation;
		 var raw4=560+diviation;
	   var raw5=705+diviation;
		 var raw6=850+diviation;	 
	  }else{
	   var raw1=125+diviation;
	   var raw2=270+diviation;
	   var raw3=415+diviation;
		 var raw4=560+diviation;
		 var raw5=705+diviation;
		 var raw6=850+diviation;	 
	  }

	function replaceMe(cordLeft,cordTop)
	{
	if(navigator.appName != "Microsoft Internet Explorer")
		{
			document.getElementById('msgImage').src="";
			document.getElementById('msgImage').src="http://www.freeridegames.com/admin/ad_supp_pack/promotion/landingPages/img_v18/bubbleup-ff.gif";
		}
		
	   document.getElementById('overMSG').style.left=cordLeft + "px";
	   document.getElementById('overMSG').style.top=cordTop + "px";
	   document.getElementById('overMSG').style.display="block";
	}
	function returnMe(imageName,imageId)
	{
		document.getElementById('overMSG').style.display="none";
	}
	function goToThankYouPage(n)
	{
		 switch(n)
		 {
		case 1:  
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/500150/Default/SDM/Amazonia.exe";
		  break;
		case 2:  
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/595450/Default/SDM/The-Secret-of-Margrave-Manor.exe"
		  break;
		case 3: 
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/466550/Default/SDM/The-Treasures-of-Montezuma.exe"
		  break;
		case 4:  
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/584850/Default/SDM/Virtual-Villagers-3.exe"
		  break;
		case 5:   
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/554750/Default/SDM/Cradle-of-Rome.exe"
		  break;
		case 6: 
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/472250/Default/SDM/10-Talismans.exe"
		  break;
		case 7:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/629350/Default/SDM/Virtual-Villagers-2-The-Lost-Children.exe"
		  break;
		case 8:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/642650/Default/SDM/Jewel-Quest-2.exe" 
		  break;
		case 9:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/586350/Default/SDM/7-Wonders-II.exe"  
		  break;
		case 10:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/642950/Default/SDM/Family-Feud-3.exe"
		  break;
		case 11: 
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/446250/Default/SDM/Gem Shop.exe"
		  break;
		case 12: 
			window.location.href = "http://www.freeridegames.com/do/installEXEtender/532150/Default/SDM/Heroes-of-Hellas.exe"
		  break;
		case 13:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/485050/Default/SDM/Flip-Words-2.exe"
		  break;
		case 14: 
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/529250/Default/SDM/Azteca.exe"
		  break;
		case 15: 
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/605350/Default/SDM/Magic-Encyclopedia.exe"
		  break;
		case 16:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/614150/Default/SDM/The-Lost-Cases-of-Sherlock-Holmes.exe"
		  break;
		case 17:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/578250/Default/SDM/Poker-Superstars-III.exe"
		  break;
		case 18:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/521450/Default/SDM/Chameleon.exe"
		  break;
		case 19:
			window.location.href = "http://www.freeridegames.com/do/installEXEtender/446350/Default/SDM/Ocean-Express.exe"
		  break;			
		case 20:
			window.location.href = "http://www.freeridegames.com/do/installEXEtender/445650/Default/SDM/Jig-Words.exe"
		  break;
		case 21:
			window.location.href = "http://www.freeridegames.com/do/installEXEtender/446150/Default/SDM/Flip-Words.exe"
		  break;			
		case 22:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/575350/Default/SDM/Build-a-lot 2.exe"  
		  break;
		case 23:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/629250/Default/SDM/Virtual-Villagers-A-New-Home.exe"
		  break;									
		case 24:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/617350/Default/SDM/Hospital-Hustle.exe"
		  break;
		case 25:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/546450/Default/SDM/Build-A-Lot.exe"
		  break;
		case 26:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/623250/Default/SDM/PJ-Pride-Pet-Detective.exe"
		  break;
		case 27:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/631650/Default/SDM/Fish-Tycoon.exe"
		  break;
		case 28:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/445950/Default/SDM/Puzzle-Express.exe"
		  break;
		case 29:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/616550/Default/SDM/Build-a-lot-3.exe"
		  break;
		case 30:
		  window.location.href = "http://www.freeridegames.com/do/installEXEtender/595050/Default/SDM/Discovery!-A-Seek-and-Find-Adventure.exe"
		  break;
		default:
			break;
		 }
	   setTimeout("window.location.href = 'http://www.freeridegames.com/admin/ad_supp_pack/promotion/landingPages/ty30.htm'", 10000);
	}

	function pageLoaded()
	{
	//-----Vista Only games changes-----//
	  if (navigator.userAgent.indexOf("Windows NT 6.0") != -1) 
		{
		 //vista users
		 document.getElementById( 'gameimage1' ).src='http://www.freeridegames.com/admin/ad_supp_pack/promotion/landingPages/img_v18/luxor3.gif';
			 document.getElementById( 'gameimage1' ).alt='Download Luxor 3';
			 document.getElementById( 'gamename1' ).innerHTML='Luxor 3';
	  }
		/*else
		{
			 //xp users
			 document.getElementById( 'gameimage1' ).src='http://www.freeridegames.com/admin/ad_supp_pack/promotion/landingPages/img_v18/HellsKitchen.gif';
			 document.getElementById( 'gameimage1' ).alt="Download Hell's Kitchen";
			 document.getElementById( 'gamename1' ).innerHTML="Hell's Kitchen";
		}*/
	}
	<!--
	var IE = document.all?true:false
	 
	if (!IE) document.captureEvents(Event.MOUSEMOVE)
	 
	document.onmousemove = getMouseXY;
	 
	function getMouseXY(e) {
	try
	{
		  if (IE) { // grab the x-y pos.s if browser is IE
			tempX = event.clientX -65 + document.body.scrollLeft;
		  } else {  // grab the x-y pos.s if browser is NS
			tempX = e.pageX-65;
		  }  
		  // catch possible negative values in NS4
		  if (tempX < 0){tempX = 0}
		  return true;
	}catch(e){
	}	
}

