function getExp(nodays)
{
	var UTCstring;Today = new Date();
	diff=Date.parse(Today);
	Today.setTime(diff+nodays*24*60*60*1000);
	UTCstring = Today.toUTCString();return UTCstring;
}
function getCookie(cookiename)
{	
	var cookiestring=""+document.cookie;
	var index1=cookiestring.indexOf(cookiename);
	if (index1==-1 || cookiename=="") return ""; 
	var index2=cookiestring.indexOf(';',index1);
	if (index2==-1) index2=cookiestring.length;	
	return unescape(cookiestring.substring(index1+cookiename.length+1,index2));
}
function setGhomeCookie (locale, country, cust_type)
{
	var LOC,CONTENTS,cookiestring;CONTENTS=cust_type+":"+locale+":"+country;
	cookiestring="ghome="+CONTENTS+";DOMAIN=.etrade.com;PATH=/;EXPIRES="+getExp(12000);document.cookie=cookiestring;
	setCountryLocaleCookie(locale, country);
}
function setCountryLocaleCookie(locale, country)
{
	var cookiestring;cookiestring=country+"_locale="+locale+";DOMAIN=.;PATH=/;EXPIRES="+getExp(12000);
	document.cookie=cookiestring;
}  
function cookieThenRedirect(x)
{
	switch (x)
	{
	case "us_english":setGhomeCookie("en_US","US","visitor");this.location.href = "https://";break;
	case "us_german":setGhomeCookie("de_US","US","visitor");this.location.href = "http://";break;
	case "us_chinese":setGhomeCookie("zh_TW","US","visitor");this.location.href = "https://";break;
	case "au":this.location.href = "http://www./";break;
	case "ca_french":setGhomeCookie("fr_CA","CA","visitor");this.location.href = "http://";break;
	case "ca_english":setGhomeCookie("en_CA","CA","visitor");this.location.href = "http://";break;
	case "dk":this.location.href = "http://www./";break;
	case "de_german":setGhomeCookie("de_DE","DE");this.location.href = "https://";break;
	case "de_english":setGhomeCookie("en_DE","DE");this.location.href = "https://";break;
	case "hk_chinese":setGhomeCookie("zh_HK","HK","visitor");this.location.href = "https://";break;
	case "hk_english":setGhomeCookie("en_HK","HK","visitor");this.location.href = "https://";break;
	case "il":this.location.href = "http://www./";break;
	case "jp":this.location.href = "http://www./";break;
	case "ko_korean":this.location.href = "http://www.";break;
	case "ko_english":this.location.href = "http://www./";break;
	case "se":setGhomeCookie("sv_SE","SE","visitor");this.location.href = "https://";break;
	case "uk":setGhomeCookie("en_GB","GB","visitor");this.location.href = "https://";break;
	}
}
function checkValue(fname,fobj,fval)
{
	eval("document."+fname+"."+fobj+".value='"+fval+"'");
}
	
function setValue(fname,fobj,fval)
{
var val = eval("document."+fname+"."+fobj+".value");
	if(val=="")
	{
	eval("document."+fname+"."+fobj+".value='"+fval+"'");
	}
}


var secondlevel = new Array();
secondlevel[0] = new melem('"investor.asp",""','Investment Philosophy',2,0);
secondlevel[1] = new melem('"login.asp",""','Login',2,0);




var a1 = new Array();
a1[0] = new elem('"",""','..................................................................................................................................................................................................................................................');

var a2 = new Array();
a2[0] = new elem('"",""','..................................................................................................................................................................................................................................................');

