<!-- // Real Arcade scripts
	var ezone_os;
	var ezone_status;
	var ezone_webgameurl;
	var show_buy_url = false;
	
	if (navigator.userAgent.toLowerCase().indexOf("win")!=-1) {
		ezone_os="PC";
	} else {
		//alert("On a MAC!");
		ezone_os="MAC";
		if (real_webgame==1) {
			//continue...
		} else {
			document.location='/partners/real/mac.htm';
		}
	}

	initGameScript('ezone2_', 'EN', 'US', '', 'fullclient', '');
	window.onload = window_onload;
	window.onunload = appCore_shutDown;
	
	function window_onload() {

		if (ezone_os=="MAC") {
			var str = "";
			str += "<br><a href='http://www.ezone.com/login2/launch.php?game=" + real_game_id + "'><img src='/images/playonlinenow.gif' width='156' height='39' border='0'></a>";
			str += "<br>Play the online demo<br>in your web browser.";
			document.getElementById("gameinfo").innerHTML = str;
		} else {
			try {
				//alert("found activeX!");
				appCore_startUp();
				myGamesList = myGamesListFactory.createMyGamesList(); 
				changeButtons( gameObjectFactory.createGameObject(real_game_id) );
				// hide the download link
				document.getElementById("downloadlink").innerHTML = "";
				ezone_status = "demo";
			}
			catch(e) {
				//alert("no real activeX detected!");
				ezone_status = "download";
				var str = "";
				str += "<br><b>Free Demo Download</b><BR>";
				str += "Full retail version with 60 minute timer.<br><br>";
				str += "<a href=\"javascript:realdl('" + real_game_id + "');\"><img src='/images/downloadnowfree.gif' width='156' height='39' border='0'></a>";
				// if online available...
				if (ezone_os=="PC" && real_webgame==1 && location.pathname.indexOf('gamecode')==-1) {
					str += "<br><a href='http://www.ezone.com/login2/launch.php?game=" + real_game_id + "'><img src='/images/playonlinenow.gif' width='156' height='39' border='0'></a>";
					//str += "Play an online demo<br>in your web browser.";
				}
				if (show_buy_url) {
					str += "<br><a href=\"javascript:realbuy('" + real_game_id + "');\"><img src='/images/buy.gif' width='156' height='39' border='0'></a><br>";
					str += "$19.99 Regular Price<br>";
					str += "<a href='javascript:realgptrial();'>Free with GamePass Credit</a>";
				}
				document.getElementById("gameinfo").innerHTML = str;
			}
		}
	}
	
	function realplay() {
		//currentGame = gameObjectFactory.createGameObject(real_game_id);
		gameObjectFactory.createGameObject(real_game_id).launch();
	}
		
	function changeButtons(game) {
		var str = "";
		if (game.unlimitedPlay || game.purchaseStatus==1) {
			str += "<p>";
			str += "<a href='javascript:realplay();'><img src='/images/play.gif' width='156' height='39' border='0'></a><br>Full Version - Unlimited Time!<br><br>";
		} else {
			str += "<p><strong>Demo Version</strong>:<br>";
			str += game.minutesRemaining + " minutes remaining<br><br>";
			if (game.minutesRemaining==0) {
				str += "<img src='/images/play_disabled.gif' width='156' height='39' border='0'><br>";
			} else {
				str += "<a href=\"javascript:realplay();\"><img src='/images/play.gif' width='156' height='39' border='0'></a><br>";
			}
			if (ezone_os=="PC" && real_webgame==1 && location.pathname.indexOf('gamecode')==-1) {
				str += "<a href='http://www.ezone.com/login2/launch.php?game=" + game.gameid + "'><img src='/images/playonlinenow.gif' width='156' height='39' border='0'></a><br>";
			} else {
				str += "<br>";
			}
			str += "<a href=\"javascript:realbuy('" + game.gameid + "');\"><img src='/images/buy.gif' width='156' height='39' border='0'></a><br>";
			str += "$19.99 Regular Price<br>";
			str += "<a href='javascript:realgptrial();'>Free with GamePass Credit</a><br>";
		}
		str += "</p>";
		document.getElementById("gameinfo").innerHTML = str;
		//currentGame = game;
	}

	
	function displayGameInfo(game) {
		var str = "";
		str += "gameName= " + game.gameName + "<br />";
		str += "gameid= " + game.gameid + "<br />";
		str += "shortDesc= " + game.shortDesc + "<br />";
		str += "lastPlayedDate= " + game.lastPlayedDate + "<br />";
		str += "demoMinutes= " + game.demoMinutes + "<br />";
		str += "minutesPlayed= " + game.minutesPlayed + "<br />";
		str += "minutesRemaining= " + game.minutesRemaining + "<br />";
		str += "unlimitedPlay= " + game.unlimitedPlay + "<br />";
		str += "playCount= " + game.playCount + "<br />";
		str += "purchaseStatus= " + game.purchaseStatus + "<br />";
	
		document.getElementById("gameinfo").innerHTML = str;
		//document.getElementById("playGameId").innerHTML = game.gameName;
	
		// the play-the-game link points to this game object
		// currentGame = game;
	}
	
	function realinfo(whichgame) {
		//var ezone_os;
		if (ezone_os=='PC') {	
			var gameurl=getGamePageUrl(whichgame);
			window.open(gameurl,'_blank','scrollbars=yes,left=0,top=0,width=625,height=560,noresize');
		} else {
			window.open('/partners/real/gamehouse.htm');
		}
	}
	function realdl_DUD(whichgame) {
		//realfreegames={standofood:'',sling:''};
		if (ezone_os=='PC') {	
			var gameurl=getDownloadUrl(whichgame);
			document.location=gameurl;
		} else {
			window.open('http://www.realarcade.com/partner/template/ezone2_/onlineMac','_blank');
		}
		window.open('http://www.ezone.com/login2/realpoints.php?game=' + whichgame + '&ezone_os=' + ezone_os,'_new','scrollbars=no,left=50,top=50,width=500,height=400,resizable=yes');
	}
	
	function realdl(whichgame) {
		//realfreegames={standofood:'',sling:''};
		if (ezone_os=='PC') {	
			// check if it is a free game:
			//if(whichgame in realfreegames) {
			//	var gameurl='http://www.realarcade.com/partner/promoFull?tps=ezone2_&src=ggpg&gameid=' + whichgame;
			//	window.open(gameurl,'_blank');
			//} else {
				// start the download regardless...
				var gameurl=getDownloadUrl(whichgame);
				//window.open(gameurl,'_blank');
				document.location=gameurl;
			//}
		} else {
			window.open('http://www.realarcade.com/partner/template/ezone2_/onlineMac','_blank');
		}
		window.open('http://www.ezone.com/login2/realpoints.php?game=' + whichgame + '&ezone_os=' + ezone_os,'_new','scrollbars=no,left=50,top=50,width=800,height=700,resizable=yes');
	}

	
	function realweb(whichgame, myWidth, myHeight) {
		//if (ezone_os=='PC') {	
			ezone_webgameurl=getLaunchWebGameUrl(whichgame,1);
			ezone_webgameurl += "&tps=ezone2_";
			//alert(ezone_webgameurl);
			document.write("<iframe id='game_frame' name='game_frame' src='http://www.ezone.com/banners/real_pregame.php?gameURL=" + escape(ezone_webgameurl) + "' scrolling='no' width='" + myWidth + "' height='" + myHeight + "' frameborder='0' marginheight='0' marginwidth='0'></iframe>\n");
		//} else {
		//	document.write("<iframe id='game_frame' name='game_frame' src='http://www.realarcade.com/partner/template/ezone2_/onlineMac' scrolling='yes' width='" + myWidth + "' height='" + myHeight + "' frameborder='0' marginheight='0' marginwidth='0'></iframe>\n");
		//}
	}
	function realscreens(whichgame) {
		var gameurl=getScreenShotsUrl(whichgame);
		window.open(gameurl,'_blank','scrollbars=no,left=0,top=0,width=625,height=560');
	}
	function realbuy(whichgame) {
		var gameurl=getBuyUrl(whichgame);
		window.open(gameurl,'_blank','scrollbars=yes,left=0,top=0,width=800,height=600');
	}
	function realgptrial() {
		//var gameurl=getBuyGpUrl('trial');
		var gameurl='http://www.realarcade.com/partner/template/gpPage?tps=ezone2_';
		window.open(gameurl,'_blank');
	}
//-->