// Variables for StatCounter
var sc_project = 2567493; 
var sc_invisible = 0; 
var sc_partition = 25; 
var sc_security = "eee937dd"; 

window.onError = null;
function getGameWindow(wantR) {
	wW = 580;
	wH = 500;
	scrX = parseInt(screen.width/2-wW/2);
	scrY = parseInt(screen.height/2-wH/2);
	wFeatures = "";
	wFeatures += "left="+scrX.toString()+",";
	wFeatures += "top="+scrY.toString()+",";
	wFeatures += "width="+wW.toString()+",";
	wFeatures += "height="+wH.toString()+",";
	wFeatures += "location=0,";
	wFeatures += "menubar=0,";
	wFeatures += "personalbar=0,";
	wFeatures += "status=0,";
	wFeatures += "resizable=1,";
	wFeatures += "titlebar=1";
	FaroGameWindow = window.open("","FaroGameWindow",wFeatures);
	if (FaroGameWindow.focus){FaroGameWindow.focus();}
	if (wantR != "noreturn") {return true;}
}
function RolOvr(g) {
	gg = window.document.images;
	ggg = g.split("_")[0];
	gggg = gg[ggg].src;
	ggggg = gggg.slice(0, gggg.lastIndexOf("/"))+"/"+g.slice(g.indexOf("@")+1).split(".")[0];
	gg[ggg].src = ggggg+((g.indexOf(".") == -1) ? gggg.slice(gggg.lastIndexOf(".")) : g.slice(g.lastIndexOf(".")));
}
var ROimg = new Object();
var iCnt = 0;
function ROload(iLoc) {
	ROimg[iCnt] = new Image();
	ROimg[iCnt].src = iLoc+((iLoc.charAt(iLoc.length-4) != ".") ? ".gif" : "");
	iCnt++;
}
var dD = "http://i.gleeson.us/games/faro/";

function sFix() {
	sLink = window.document.links[window.document.links.length-1];
	sLink.href = "http://my.statcounter.com/project/standard/stats.php?project_id=2567493&guest=1";
	sLink.title = "Gleeson.us Stat Counter";
}