// JavaScript Document
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//--------------------------------------//
//--------------------------------------//

function switchATM() {
	document.getElementById('atm').style.display = 'block';
	flashDIV = document.getElementById("flashcontent");
	flashDIV.style.display ='none';
}


function hidehide () {
	document.getElementById('atm').style.display = 'none';

	}


//--------------------------------------//
//--  ADDED BY XTRUDE  --//
function showHealthCheck()
{

	thisMovie("landingbanner").showHealthCheck();
	
}

function showRiskProfiler()
{

thisMovie("landingbanner").showRiskProfiler();
		
}

//--------------------------------------//
//--------------------------------------//

function popUpATM(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=760,height=410,left = 460,top = 320');");
}

function popUpAIPCalc(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=740,height=410,left = 460,top = 320');");
}


function popUpUTFundSel(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=800,height=600,left = 460,top = 320');");
}


function popUpiBankingDemo(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=1100,height=780,left = 10,top = 20');");
}



//--------------------------------------//
//--------------------------------------//
function callExternalInterface(whichNav) {
	thisMovie("landingbanner").littleFunction(whichNav);
}

function thisMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
    }
    else {
        return document[movieName]
    }
}

//--------------------------------------//
//--------------------------------------//
function expandDiv(whichDiv,whatHeight,whichToLoad) {
	//window.alert(whichDiv + " " + whatHeight);
	thisDiv = document.getElementById(whichDiv);
	newH = parseInt(whatHeight);
	thisDiv.style.height = newH+"px";
	
	if (thisDiv.style.height<newH) {
	thisDiv.style.overflow = 'visible';	}
	else
	{
		thisDiv.style.overflow='hidden';
		}
	if (whichToLoad=="risk" ) {
		setTimeout ( "showRiskProfiler()", 1000 );
			//thisMovie("landingbanner").showRiskProfiler();
		} else 	if (whichToLoad=="health" ) {
		setTimeout ( "showHealthCheck()", 1000 );
			//thisMovie("landingbanner").showRiskProfiler();
		} else if (whichToLoad==null) {
			null;
		}
	}

//--------------------------------------//
//--------------------------------------//
function showHideDiv(whichDiv,btn,defaultTxt) {
		var showThis = document.getElementById(whichDiv);
		var status = showThis.style.display;
		if (defaultTxt==undefined) {
			defaultTxt = "Read more";
			}
		if (status == "none" || status=="") {
			showThis.style.display = "block";
			document.getElementById(btn).innerHTML ="Close -";
			//window.alert(parseInt(showThis.clientHeight));
		}
		else {
			showThis.style.display = "none";
			document.getElementById(btn).innerHTML =defaultTxt+" +"
			//document.getElementById(btn).innerHTML =defaultTxt+" <img src=\"../images/bg_readmore1.gif\" width=\"11\" height=\"13\" align=\"absmiddle\" border=\"0\"/>";
		}

	}
	
	
	
//--------------------------------------//


           

