// JavaScript Document

// *************************************************** //
//                 TOP GAMES LIST
// *************************************************** //
function topGame1(){
	
	document.write( '<p><a href="toxinPuzzler_home.html" title="Toxin Puzzler - Official Website" target="_self">Toxin Puzzler</a></p>' );
		
}

function topGame2(){
	
	document.write( '<p><a href="http://server.toxingames.com/Downloads/Nvidia_2008/KevinS_UberDemo2008.zip" title="Download Kevin&rsquo;s Nvidia PhysX Demo" target="_self">Kevin&rsquo;s Nvidia PhysX Demo</a></p>' );

}

function topGame3(){
	
	document.write( '<p><a href="http://toxingames.com/Downloads/Games/Maze_O_Boxes.zip" title="Download Maze O Boxes Arena" target="_self">Maze O Boxes Arena</a></p>' );

}




// *************************************************** //
//                 FREE GAMES LIST
// *************************************************** //

function freeGame1(){
	document.write( '<a href="toxinPuzzler_home.html" title="Toxin Puzzler - Official Website" target="_self">Toxin Puzzler </a>' );
}

function freeGame2(){
	document.write( '<a href="http://server.toxingames.com/Downloads/Nvidia_2008/KevinS_UberDemo2008.zip" title="Download Kevin&rsquo;s Nvidia PhysX Demo" target="_self">PhysX Demo</a>' );
}




// *************************************************** //
//                 FEATURED GAMES LIST
// *************************************************** //
function featuredGameThumbs(){
	// Generate Random Number from 0 - 3
		var rand_no = Math.random();
		rand_no = Math.floor(rand_no * 4);
		
	
	if( rand_no == 0 ){
		document.getElementById("featureGame1").innerHTML='<a href="toxinPuzzler_home.html" title="Go to Toxin Puzzler&rsquo;s Webpage" target="_self"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" alt="toxin puzzler" width="120" height="120" /><br />Play Toxin Puzzler</a>';
		
		document.getElementById("featureGame2").innerHTML='<a href="games_fps.html" title="Go to the FPS Games Webpage" target="_self"><img src="images/game_logos/thumbnails/nvidiaDemo_thumbnail.jpg" alt="Kevins Nvidia PhysX Entry" width="120" height="120" /><br />Play Kevin&rsquo;s Nvidia PhysX Entry</a>';
		
		document.getElementById("featureGame3").innerHTML='<a href="games_online.html" title="Go to the Online Games Webpage" target="_self"><img src="images/game_logos/thumbnails/mazeOboxes_thumbnail.jpg" alt="toxin puzzler" width="120" height="120" /><br />Play Maze O&rsquo; Boxes Arena</a>';
		
	}
	
	
	
	
	if( rand_no == 1 ){
		document.getElementById("featureGame3").innerHTML='<a href="games_online.html" title="Go to the Online Games Webpage" target="_self"><img src="images/game_logos/thumbnails/mazeOboxes_thumbnail.jpg" alt="toxin puzzler" width="120" height="120" /><br />Play Maze O&rsquo; Boxes Arena</a>';
		
		document.getElementById("featureGame1").innerHTML='<a href="toxinPuzzler_home.html" title="Go to Toxin Puzzler&rsquo;s Webpage" target="_self"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" alt="toxin puzzler" width="120" height="120" /><br />Play Toxin Puzzler</a>';
		
		document.getElementById("featureGame2").innerHTML='<a href="games_fps.html" title="Go to the FPS Games Webpage" target="_self"><img src="images/game_logos/thumbnails/nvidiaDemo_thumbnail.jpg" alt="Kevins Nvidia PhysX Entry" width="120" height="120" /><br />Play Kevin&rsquo;s Nvidia PhysX Entry</a>';
		
	}
	
	
	
	
	if( rand_no == 2 ){
		document.getElementById("featureGame2").innerHTML='<a href="games_fps.html" title="Go to the FPS Games Webpage" target="_self"><img src="images/game_logos/thumbnails/nvidiaDemo_thumbnail.jpg" alt="Kevins Nvidia PhysX Entry" width="120" height="120" /><br />Play Kevin&rsquo;s Nvidia PhysX Entry</a>';
		
		document.getElementById("featureGame1").innerHTML='<a href="toxinPuzzler_home.html" title="Go to Toxin Puzzler&rsquo;s Webpage" target="_self"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" alt="toxin puzzler" width="120" height="120" /><br />Play Toxin Puzzler</a>';
		
		document.getElementById("featureGame3").innerHTML='<a href="games_online.html" title="Go to the Online Games Webpage" target="_self"><img src="images/game_logos/thumbnails/mazeOboxes_thumbnail.jpg" alt="toxin puzzler" width="120" height="120" /><br />Play Maze O&rsquo; Boxes Arena</a>';
		
	}
	
	if( rand_no == 3 ){
		document.getElementById("featureGame2").innerHTML='<a href="games_fps.html" title="Go to the FPS Games Webpage" target="_self"><img src="images/game_logos/thumbnails/nvidiaDemo_thumbnail.jpg" alt="Kevins Nvidia PhysX Entry" width="120" height="120" /><br />Play Kevin&rsquo;s Nvidia PhysX Entry</a>';
		
		document.getElementById("featureGame3").innerHTML='<a href="games_online.html" title="Go to the Online Games Webpage" target="_self"><img src="images/game_logos/thumbnails/mazeOboxes_thumbnail.jpg" alt="toxin puzzler" width="120" height="120" /><br />Play Maze O&rsquo; Boxes Arena</a>';
		
		document.getElementById("featureGame1").innerHTML='<a href="toxinPuzzler_home.html" title="Go to Toxin Puzzler&rsquo;s Webpage" target="_self"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" alt="toxin puzzler" width="120" height="120" /><br />Play Toxin Puzzler</a>';
		
	}
		
	
}


// *************************************************** //
//                 FEATURED DOWNLOAD LIST
// *************************************************** //
function featuredDownloadThumbs(){
	// Generate Random Number from 0 - 3
		var rand_no = Math.random();
		rand_no = Math.floor(rand_no * 4);
		
	if( rand_no == 0 ){
		document.getElementById("featureDownload1").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
		document.getElementById("featureDownload2").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
		document.getElementById("featureDownload3").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
	}
	
	if( rand_no == 1 ){
		document.getElementById("featureDownload1").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
		document.getElementById("featureDownload2").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
		document.getElementById("featureDownload3").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
	}
	
	if( rand_no == 2 ){
		document.getElementById("featureDownload1").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
		document.getElementById("featureDownload2").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
		document.getElementById("featureDownload3").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
	}
	
	if( rand_no == 3 ){
		document.getElementById("featureDownload1").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
		document.getElementById("featureDownload2").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
		document.getElementById("featureDownload3").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
	}
}


// *************************************************** //
//                 FEATURED SHIRTS LIST
// *************************************************** //
function featuredShirtThumbs(){
	// Generate Random Number from 0 - 3
		var rand_no = Math.random();
		rand_no = Math.floor(rand_no * 4);
		
	if( rand_no == 0 ){
		document.getElementById("featureShirt1").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
		document.getElementById("featureShirt2").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
		document.getElementById("featureShirt3").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
	}
	
	if( rand_no == 1 ){
		document.getElementById("featureShirt1").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
		document.getElementById("featureShirt2").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
		document.getElementById("featureShirt3").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
	}
	
	if( rand_no == 2 ){
		document.getElementById("featureShirt1").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
		document.getElementById("featureShirt2").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
		document.getElementById("featureShirt3").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
	}
	
	if( rand_no == 3 ){
		document.getElementById("featureShirt1").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
		document.getElementById("featureShirt2").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
		document.getElementById("featureShirt3").innerHTML='<div align="center"><img src="images/game_logos/thumbnails/toxinpuzzler_thumbnail.jpg" border="0" alt="toxin puzzler" width="120" height="120" /></div><div align="center">Play Toxin Puzzler<br /></div>';
	}
}