/* ------------------------------------------------------------------------------------------------ */
/* All intellectual property rights relating to this code are owned by EURO RSCG DSW Partners, LLC. */
/* ------------------------------------------------------------------------------------------------ */

document.js = true;
var NS4=(document.layers)?1:0; var IE=(document.all)?1:0;
var NS6=((document.getElementById)&&(navigator.appName=='Netscape'))?1:0;
var DHTML=(IE||NS4||NS6)?1:0;

//******* Rollover Functions ********//
var cacheArray=new Array(0);
function imageGroup() {  if (this.total==null) { this.add=imageGroup; this.addR=addRollovers; this.swapBttn=swapBttn; this.swap=swapImg; if (!document.images) return; this.total=this.cached=this.rollovers=0; this.names=new Array(0); this.urls=new Array(0); this.count=new Array(0); this.i=new Object(); this.index=cacheArray.length; cacheArray[this.index]=this; this.defURL=''; } var a,j,k,args=arguments; for (j=0; j<args.length; j++) { k=this.total; a=args[j].split('|'); this.names[k]=a[0]; this.urls[k]=this.defURL+a[1]; this.total++; } }
function loadImages() { if (document.images) { var j,c=cacheArray; for (j=0; j<c.length; j++) loadGroup(c[j]); } }
function loadGroup(obj,pre) { if (obj.loaded) return; obj.loaded=1; var k,img,stuff=''; for (k=0; k<obj.total; k++) { img=obj.i[obj.names[k]]=new Image(); if (!NS4) { img.group=obj.index; img.num=k; img.onload=countImg; } if (NS4) { stuff+='<IMG SRC="'+ obj.urls[k] +'" BORDER="0" ONLOAD="countImg('+obj.index+','+k+');"><BR>'; } img.src=obj.urls[k]; } if (NS4) { if (pre) { document.newLayer('cacher'+obj.index,stuff,0); } else { var cacher=new Layer(0),c=cacher.document; c.write(stuff); c.close(); } } }
function countImg(n,k) { if (!NS4) {n=this.group; k=this.num;} var obj=cacheArray[n]; if (obj.count[k]!=1) { obj.count[k]=1; obj.cached++; if (obj.cached==obj.total) {obj.rollovers=1; if (obj.onload) eval(obj.onload);} } }
function swapImg(who,ro) { var img=document.images[who]; if ((this.rollovers)&&(img)) img.src=this.i[ro].src; }
function swapBttn(who,n) { this.swap(who+'_bttn',who+((n)?'_on':'_off')); }
function addRollovers() { var j,a=arguments; for (var j=0; j<a.length; j++) { this.add(a[j]+'_on|'+a[j]+'_on.gif', a[j]+'_off|'+a[j]+'_off.gif'); } }
//***********************************//

function swapNav(id,n) { pics.swapBttn(id,n); }
function init() { loadImages(); }

var pics=new imageGroup(); pics.defURL='/i/nav/';
pics.addR('home', 'whoweare', 'howitworks', 'calculator', 'enroll');


function plainRoll(N,P){
  if(document.layers){
    document.images[N].src = '/i/nav/'+N+'_'+P+'.gif';
  }else{
    document.images[N].src = '/i/nav/'+N+'_'+P+'.gif';
  }
  //if(IE)window.focus(); // remove focus from image links
}

//******* Verisign Popup window Function *******//
function popUp(url){
   sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizeable=1,width=500,height=450'); self.name="mainWin";}
//**********************************************//   