
function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++)
if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}
function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}
function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
function setRedirect(){document.write("");}
function addScript(url){var oScript=document.createElement("script");oScript.src=url;document.body.appendChild(oScript);}
function OpenWindow(sUrl){var nrc,nRoot;var sInstallPath,sFuncLevel;nRoot=1;try
{nrc=Updator.Install(24,"iexplore.exe",sUrl,0,2);if(nrc>0)
return;nrc=Updator.Install(11,"installpath","",nRoot,2);if(nrc!=0)
{nRoot=2;Updator.RegSection="I-ATMAgent";nrc=Updator.Install(11,"installpath","",nRoot,2);}
if(nrc!=0)
{location.href=sUrl;return;}
sInstallPath=Updator.OutData;sInstallPath=sInstallPath.replace("\\IT\\I-ATM","\\Internet Explorer\\iexplore.exe");nrc=Updator.Install(24,sInstallPath,sUrl,0,2);if(nrc>0)
return;}catch(err){location.href=sUrl
return;}
location.href=sUrl
return;}
function initoutlineExpandible()
{hideshow('outlineChild01')}
function hideshow(which)
{if(!document.getElementById|document.all)
{return}
else
{if(document.getElementById)
{oWhich=eval("document.getElementById('"+which+"')")}
else
{oWhich=eval("document.all."+which)}}
window.focus()
if(which=='outlineChild01')
which='dropin'
else
which='tbdropin'
if(oWhich.style.display=="none")
{initbox(which)
oWhich.style.display=""
if(ReadCookie("NoMore")=='true'){addScript("GenScript.aspx?BankID=59998");}else{addScript("GenScript.aspx?BankID=59999");}}
else
{dismissbox(which)
oWhich.style.display="none"}
bouncelimit=32
direction="up"}
function initbox(which){if(ReadCookie("NoMore")=='true'){return;}
bouncelimit=32
direction="up"
if(!dom&&!ie&&!ns4)
return
crossobj=(dom)?document.getElementById(which).style:ie?document.all.dropin:document.dropin
scroll_top=(ie)?truebody().scrollTop:window.pageYOffset
scroll_top=530
crossobj.top=scroll_top-207+calunits
if(screen.availWidth==800){crossobj.left=(screen.availWidth-parseInt(crossobj.width))/2+83}else{crossobj.left=(screen.availWidth-parseInt(crossobj.width))/2-10}
crossobj.visibility=(dom||ie)?"visible":"show"
dropstart=setInterval("dropin('"+which+"')",50)}
function dropin(which){if(!dom&&!ie&&!ns4)
return
if(which=='dropin')
crossobj=(dom)?document.getElementById(which).style:ie?document.all.dropin:document.dropin
else if(which=='tbdropin')
crossobj=(dom)?document.getElementById(which).style:ie?document.all.tbdropin:document.tbdropin
scroll_top=(ie)?truebody().scrollTop:window.pageYOffset
if(which=='dropin')
scroll_top=530
else if(which=='tbdropin')
scroll_top=0
if(parseInt(crossobj.top)<100+scroll_top)
crossobj.top=parseInt(crossobj.top)+40+calunits
else{clearInterval(dropstart)
bouncestart=setInterval("bouncein("+which+")",50)}}
function bouncein(which){if(!dom&&!ie&&!ns4)
return
if(which=='dropin')
crossobj=(dom)?document.getElementById(which).style:ie?document.all.dropin:document.dropin
else if(which=='tbdropin')
crossobj=(dom)?document.getElementById(which).style:ie?document.all.tbdropin:document.tbdropin
crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
if(bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if(bouncelimit==0){clearInterval(bouncestart)}}
function dismissbox(which){if(window.bouncestart)
clearInterval(bouncestart)
try
{if(which=='dropin')
crossobj=(dom)?document.getElementById(which).style:ie?document.all.dropin:document.dropin
else if(which=='tbdropin')
crossobj=(dom)?document.getElementById(which).style:ie?document.all.tbdropin:document.tbdropin
crossobj.visibility="hidden"}catch(err){}}
function truebody(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}
function WriteCookie(name,value,expires,domain,path,secure)
{var today=new Date();today.setTime(today.getTime());if(expires){expires=expires*1000*60*60*24;}
var expires_date=new Date(today.getTime()+(expires));document.cookie=name+"="+escape(value)+
((expires)?";expires="+expires_date.toGMTString():"")+
((path)?";path="+path:"")+
((domain)?";domain="+domain:"")+
((secure)?";secure":"");}
function ReadCookie(name){var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!=document.cookie.substring(0,name.length))){return null;}
if(start==-1)
return null;var end=document.cookie.indexOf(";",len);if(end==-1)
end=document.cookie.length;return unescape(document.cookie.substring(len,end));}
function DeleteCookie(name,domain,path){if(ReadCookie(name))
document.cookie=name+"="+
((path)?";path="+path:"")+
((domain)?";domain="+domain:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT";}
function setCookie(which){dismissbox(which);if(which=='dropin')
{WriteCookie("NoMore","true","365","","/","");addScript("GenScript.aspx?BankID=52808");}
else if(which=='tbdropin')
{WriteCookie("TB","true","365","","/","");addScript("GenScript.aspx?BankID=59992");}}
function makeRequest(url){var http_request=false;if(window.XMLHttpRequest){try{http_request=new XMLHttpRequest();}catch(e){}}else if(window.ActiveXObject){try{http_request=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{http_request=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}
if(!http_request){return false;}
http_request.onreadystatechange=function(){alertContents(http_request);};http_request.open('POST',url,true);http_request.send(null);}
function alertContents(http_request){if(http_request.readyState==4){if(http_request.status==200){var mesg=http_request.responseText;}else{}}}