<!--
// -----------------------
// 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 = "/common/styles/" + 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);
}
//Pop up window function for links outside of ING. Uses a handshake/warning page.
function interstitialPopUp() {
 window.open('/common/handshake.html','popup','top=200,left=200,width=520,height=370');
}
 var storage=new Object();
 storage.path=new String();
 
var url;
var page;
//Pop up window function for newsletter, find a pro, and email advice 
function loadPage(page){
    popUp.location.href = page;
    popUp.focus();     
}
function openTools(url) {
    popUp = window.open('/common/loading.html','tools','menubar=1,toolbar=1,location=0,status=1,scrollbars=1,resizable=1,height=480,width=700');
    page = url
    //delay a bit here because IE4 encounters errors
	//when trying to focus a recently opened window
    setTimeout('loadPage(page)',250);
 }
function pop(URL){
	newwindow=open(URL,"popup","scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=400,height=400");
}
//-->



