document.write('<div id="trade1" style="width:100%; display:inline;" align="center"><div style="float:left; height:102px; width:105px; padding:4px 0px 0 0;"><a href="http://www.consolegamesworld.com/" target="_blank"><img onclick="clickCTR(\'603\');" width="100" height="100" alt="Console Games World" src="http://www.thebestracinggames.com/images/thumbs/crank.jpg" style="border:2px solid #ff0000;" /></a></div><div style="float:left; height:102px; width:105px; padding:4px 0px 0 0;"><a href="http://www.fishfreegames.com/freegames/1414/Moon-Buggy.html" target="_blank"><img onclick="clickCTR(\'604\');" width="100" height="100" alt="Moon Buggy" src="http://www.thebestracinggames.com/images/thumbs/Moon-Buggy.jpg" style="border:2px solid #ff0000;" /></a></div><div style="float:left; height:102px; width:105px; padding:4px 0px 0 0;"><a href="http://www.thegreatestarcade.com/" target="_blank"><img onclick="clickCTR(\'617\');" width="100" height="100" alt="HotAdventureGames.com" src="http://www.thebestracinggames.com/images/thumbs/thegreatestarcade_100x100.jpg" style="border:2px solid #ff0000;" /></a></div><div style="float:left; height:102px; width:105px; padding:4px 0px 0 0;"><a href="http://www.play4all.net/games/987/burnin-rubber-2.html" target="_blank"><img onclick="clickCTR(\'599\');" width="100" height="100" alt="Burnin Rubber 2" src="http://www.thebestracinggames.com/images/thumbs/burninrubber2.jpg" style="border:2px solid #ff0000;" /></a></div><div style="float:left; height:102px; width:105px; padding:4px 0px 0 0;"><a href="http://www.hotskillgames.com/" target="_blank"><img onclick="clickCTR(\'616\');" width="100" height="100" alt="HotAdventureGames.com" src="http://www.thebestracinggames.com/images/thumbs/hotskillgames_100x100.jpg" style="border:2px solid #ff0000;" /></a></div><div style="float:left; height:102px; width:105px; padding:4px 0px 0 0;"><a href="http://www.gamesahara.com/hot-games/1237/drivers-ed.html" target="_blank"><img onclick="clickCTR(\'598\');" width="100" height="100" alt="Drivers Ed" src="http://www.thebestracinggames.com/images/thumbs/driversed.jpg" style="border:2px solid #ff0000;" /></a></div><br><div style="float:left; height:102px; width:105px; padding:4px 0px 0 0;"><a href="http://www.ballerarcade.com/games/1153/ricky-bobby-fast-track.html"  target="_blank"><img onclick="clickCTR(\'487\');" width="100" height="100" alt="Ricky Bobby Fast Track" src="http://www.thebestracinggames.com/images/thumbs/Ricky Bobby Fast Track Best Racing Games.jpg" style="border:2px solid #ff0000;" /></a></div><div style="float:left; height:102px; width:105px; padding:4px 0px 0 0;"><a href="http://www.drivearcade.com/games/1373/mafia-driver-3.html"  target="_blank"><img onclick="clickCTR(\'600\');" width="100" height="100" alt="Mafia Driver 3" src="http://www.thebestracinggames.com/images/thumbs/MafiaDriver3.jpg" style="border:2px solid #ff0000;" /></a></div><div style="float:left; height:102px; width:105px; padding:4px 0px 0 0;"><a href="http://www.ballerarcade.com/games/1125/colacao-bmx.html"  target="_blank"><img onclick="clickCTR(\'633\');" width="100" height="100" alt="Colacao BMX" src="http://www.thebestracinggames.com/images/thumbs/Colacao BMX Best Racing Games.jpg" style="border:2px solid #ff0000;" /></a></div><div style="float:left; height:102px; width:105px; padding:4px 0px 0 0;"><a href="http://www.meltgames.com/game/7/Micro-Racer-2.html"  target="_blank"><img onclick="clickCTR(\'595\');" width="100" height="100" alt="Micro Racer 2" src="http://www.thebestracinggames.com/images/thumbs/Micro_racer2.jpg" style="border:2px solid #ff0000;" /></a></div><div style="float:left; height:102px; width:105px; padding:4px 0px 0 0;"><a href="http://www.arcadelots.com/show/carbon-auto-theft"  target="_blank"><img onclick="clickCTR(\'379\');" width="100" height="100" alt="Carbon Auto Theft" src="http://www.thebestracinggames.com/images/thumbs/carbon-auto-theft.jpg" style="border:2px solid #ff0000;" /></a></div><div style="float:left; height:102px; width:105px; padding:4px 0px 0 0;"><a href="http://www.ballerarcade.com/playgames/1127/bmx-tricks.html"  target="_blank"><img onclick="clickCTR(\'629\');" width="100" height="100" alt="BMX Tricks" src="http://www.thebestracinggames.com/images/thumbs/BMX Tricks Best Raing Games.gif" style="border:2px solid #ff0000;" /></a></div></div>');
function clickCTR_processGenerateForm()
				{					
					if (req.readyState == 4) {
						if (req.status == 200)
						{
							var sStatus = req.responseText;
							if (sStatus != "") 
							{
								/*alert (sStatus);
								oLyrLinkResult.innerHTML = req.responseText;*/
							}
							else {
								/*alert(req.statusText);
								oLyrLinkResult.innerHTML = "Error on Generate Form: " + req.statusText;*/
							}
						}
					}					
				}
				function clickCTR_generateForm(url_xml,pmode,pGID)
				{	
					/*oLyrLinkResult = document.getElementById("view");*/
					
					req = new XMLHttpRequest();
					req.abort();
					req.onreadystatechange = clickCTR_processGenerateForm;
					req.open('POST', url_xml, true);
				    req.setRequestHeader('Content-Type','application/x-www-form-urlencoded');  
					req.send('n='+pGID); 
				}
				                                            
				function clickCTR(pGID)
				{
					var ajax_url = '/bannerCtr.php';				
					clickCTR_generateForm(ajax_url,1,pGID);
				}
				
				function rollup()
				{	
					var oTrade1 = document.getElementById('trade1');
					var oTrade2 = document.getElementById('trade2');
					var i;					
					var iRand = Math.floor(Math.random() * (5+5));
					if (iRand % 2 == 0)
					{						
						oTrade1.style.display = 'none';
						oTrade2.style.display = 'inline';
					}
					else
					{
						oTrade1.style.display = 'inline';
						oTrade2.style.display = 'none';
					}
				}
				//rollup();
