function preGameAddLinkHit(gameID, gameLinkID, linkID)
{
	var iframe = document.getElementById("hiddenPreGameIframe");
	iframe.src = "http://www.flashtrackz.com/addLinkHit.php?gameid=" + gameID + "&gamelinkid=" + gameLinkID + "&linkid=" + linkID;
}

function preGameLaunchGameDown(url, defaultWidth, defaultHeight, gameFile, gameLocation)
{
	switch(gameLocation.toString())
	{
		case "0": // hosted on my server
		case "3": //linked to another site but in an iframe of mine
			top.location.href = url;
		
			break;
		case "1": // linked to someone else's site			
			newWin = window.open(url);
			try{ window.setTimeout("newWin.focus();",100);}catch(e){}
			break;
	}		
		
}
