// -----------------------
// DESCRIPTION: browser sniff
// ARGUMENTS: --
// RETURN: br, platform
// -----------------------
function GetBr() {
	var agt = navigator.userAgent.toLowerCase();
	var browser = navigator.appName.toLowerCase();
	var isNav = (browser=="netscape");
	var isMac = (agt.indexOf("mac") != -1);
	if (isMac)	{
		platform='mac';
	} else {
		platform='pc';
	}
	if (agt.indexOf("msie") !=-1) {
		if( platform=='mac') {
			if (agt.split(";")[1].substr(6) < 5)
				br = 'ie4';
			else
				br = 'ie5';
		} else {
			br ='ie';
		}
	}
	if (isNav && agt.indexOf("netscape6") != -1) { 
		br='nn6';
	} else if (isNav) { 
		 br='nn4'
	};
	return br;
	return platform;
}
// -----------------------
// DESCRIPTION: dynamically creates the link to the stylesheet based on browser and platform
// ARGUMENTS: --
// RETURN: --
// -----------------------
function WriteValues() {
	GetBr();
	style ="us/splash/common/" + br + platform + "_style.css";
	document.write('<link rel="stylesheet" href="' + style + '" type="text/css" />');
}
WriteValues();
// -----------------------
// DESCRIPTION: popup window
// ARGUMENTS: --
// RETURN: open intersitial window, then close if continue
// -----------------------

function go(newURL) {
	alert(newURL);
    location.href='nextpage.html?' + escape(newURL);
}

function openTools(url) {
 if(document.layers || document.all) {

    var window_left = (screen.width-700)/2;
    var window_top = (screen.height-480)/2;
	
var popUp = window.open( url,'tools','menubar=1,toolbar=1,location=0,status=1,scrollbars=1,resizable=1,height=480,width=700,left=' + window_left + ',top=' + window_top + '').focus();
		}
}

function openLogin(url) 
{
 if(document.layers || document.all) {	
var popUp = window.open( url,'tools','menubar=0,toolbar=0,location=0,status=0,scrollbars=0,resizable=0,height=300,width=960,left=0,top=245').focus();
		}
}


function interstitialPopUp() {
 window.open('/common/handshake.html','popup','top=200,left=200,width=520,height=370');
}

 var storage=new Object();
 storage.path=new String();

