function pop(page, w, h, name) {
	specs = "toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=" + w + ",height=" + h + ",menubar=no";
	z = window.open(page, name, specs);
	z.focus();
}
function popscr(page, w, h, name) {
	specs = "toolbar=no,location=no,directories=no,status=yes,resizable=no,scrollbars=yes,width=" + w + ",height=" + h + ",menubar=no";
	z = window.open(page, name, specs);
	z.focus();
}
var ireallyhaveflash = false;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
	if (navigator.plugins['Shockwave Flash'].description.indexOf("8.") != -1) ireallyhaveflash = true;
	if (navigator.plugins['Shockwave Flash'].description.indexOf("9.") != -1) ireallyhaveflash = true;
	if (navigator.plugins['Shockwave Flash'].description.indexOf("10.") != -1) ireallyhaveflash = true;
}
else if ( (navigator.userAgent) && (navigator.userAgent.indexOf("MSIE") >= 0) && (navigator.appVersion.toLowerCase().indexOf("win") != -1) ) {
	document.write('<script language=VBScript>');
	document.write('on error resume next \n');
	document.write('ireallyhaveflash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8"))) \n');
	document.write('ireallyhaveflash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9"))) \n');
	document.write('ireallyhaveflash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.10"))) \n');
	document.write('<\/script>');
}
function fembed(movie, width, height, quality, bgcolor) {
	if (document.URL.indexOf("http://") > -1 && document.URL.indexOf("http://localhost") == -1) {
		var prefix_url = getURLWithWWW(document.URL);
		var base_url = getBaseDir(prefix_url);
		movie = base_url + movie;
	}
	document.write("<object classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 width=" + width + " height=" + height + "><param name=allowScriptAccess value=always><param name=movie value=" + movie + "><param name=quality value=" + quality + "><param name=bgcolor value=" + bgcolor + "><embed src=" + movie + " quality=" + quality + " bgcolor=" + bgcolor + " width=" + width + " height=" + height + " allowScriptAccess=always type=application/x-shockwave-flash></object><br>");
}
function getURLWithWWW(url_in) {
	var url_out = url_in;
	if (url_out.indexOf("http://www.") == -1 && !isIP(url_in)) url_out = "http://www." + url_out.substring(7, url_out.length);
	return url_out;
}
function isIP(url_in) {
	var url_part = url_in.substring(7, url_in.length)
	var dotArr = url_part.split(".");
	if (parseInt(dotArr[0]) > 0) return(true);
	else return(false);
}
function getBaseDir(url_in) {
	var len = url_in.length;
	var i = len - 1;
	for (i = len - 1; i >= 0; i--) {
		var comp = url_in.substr(i, 1);
		if (comp == "/") {
			i++;
			break;
		}
	}
	var out_str = url_in.substring(0, i);
	return out_str;
}
function femswap(movie, width, height, quality, bgcolor, div) {
	if (document.URL.indexOf("http://") > -1 && document.URL.indexOf("http://localhost") == -1) {
		var prefix_url = getURLWithWWW(document.URL);
		var base_url = getBaseDir(prefix_url);
		movie = base_url + movie;
	}
	document.getElementById(div).innerHTML = "<object classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 width=" + width + " height=" + height + "><param name=allowScriptAccess value=always><param name=movie value='" + movie + "'><param name=quality value=" + quality + "><param name=bgcolor value=" + bgcolor + "><embed src='" + movie + "' quality=" + quality + " bgcolor=" + bgcolor + " width=" + width + " height=" + height + " allowScriptAccess=always type=application/x-shockwave-flash></object><br>";
}
function img_act(v) {
	document[v].src = eval(v + "on.src");
}
function img_inact(v) {
	document[v].src = eval(v + "off.src");
}
function blockoff(v) {
	if (document.getElementById) document.getElementById(v).style.display = "none";
}
function blockon(v) {
	if (document.getElementById) document.getElementById(v).style.display = "block";
}

brnboff = new Image(95, 28);
brnboff.src = "button_registernow_blue_off.gif";
brnbon = new Image(95, 28);
brnbon.src = "button_registernow_blue_on.gif";

brngoff = new Image(95, 28);
brngoff.src = "button_registernow_green_off.gif";
brngon = new Image(95, 28);
brngon.src = "button_registernow_green_on.gif";

brnyoff = new Image(95, 28);
brnyoff.src = "button_registernow_yellow_off.gif";
brnyon = new Image(95, 28);
brnyon.src = "button_registernow_yellow_on.gif";

bligoff = new Image(58, 28);
bligoff.src = "button_login_green_off.gif";
bligon = new Image(58, 28);
bligon.src = "button_login_green_on.gif";

n1off = new Image(97,27);
n1off.src = "nav_promo_win_off.gif";
n2off = new Image(78, 27);
n2off.src = "nav_promo_arcade_off.gif";
n3off = new Image(111, 27);
n3off.src = "nav_promo_community_off.gif";
n4off = new Image(154, 27);
n4off.src = "nav_promo_account_off.gif";
n5off = new Image(356, 27);
n5off.src = "nav_orbitz_off.gif";

n1on = new Image(97,27);
n1on.src = "nav_promo_win_on.gif";
n2on = new Image(78, 27);
n2on.src = "nav_promo_arcade_on.gif";
n3on = new Image(111, 27);
n3on.src = "nav_promo_community_on.gif";
n4on = new Image(154, 27);
n4on.src = "nav_promo_account_on.gif";
n5on = new Image(356, 27);
n5on.src = "nav_orbitz_on.gif";

nn2off = new Image(118, 27);
nn2off.src = "nav_arcade_off.gif";
nn3off = new Image(158, 27);
nn3off.src = "nav_community_off.gif";
nn4off = new Image(164, 27);
nn4off.src = "nav_account_off.gif";

nn2on = new Image(118, 27);
nn2on.src = "nav_arcade_on.gif";
nn3on = new Image(158, 27);
nn3on.src = "nav_community_on.gif";
nn4on = new Image(164, 27);
nn4on.src = "nav_account_on.gif";

nnewoff = new Image(97, 27);
nnewoff.src = "nav_newgame_off.gif";
nnewon = new Image(97, 27);
nnewon.src = "nav_newgame_on.gif";

function colorswap02(item, color) {
	if (typeof(document.getElementsByTagName) != "undefined") cells = item.getElementsByTagName('td');
	else if (typeof(item.cells) != "undefined") cells = item.cells;
	cells[0].style.backgroundColor = color;
	cells[2].style.backgroundColor = color;
}

