var nn4=0,ie4=0,ns6=0;

if (document.all) ie4=1;
if (document.layers) nn4=1;
if (document.getElementById) ns6=1;

function stpr(d,p,v)
{
if (nn4) eval(d+'.'+p+'="'+v+'";');
else if (ns6) eval('document.getElementById("'+d+'").style.'+p+'="'+v+'";');
else if (ie4) eval('document.all.'+d+'.style.'+p+'="'+v+'";');
}

function hi(d,s)
{
if (!s) s=2;
hilo(d,s);
if (s<7) setTimeout('hi("'+d+'",'+(s+1)+');',25);
}

function lo(d,s)
{
if (s) {hilo(d,s);if (s>1) setTimeout('lo("'+d+'",'+(s-1)+');',25);}
else setTimeout('lo("'+d+'",6);',100);
}

function hilo(d,s)
{
	 if (s==1) {stpr(d+'tab','backgroundColor','#00204e');stpr(d+'tab','color','#ffffff');}
else if (s==2) {stpr(d+'tab','backgroundColor','#113060');stpr(d+'tab','color','#cccccc');}
else if (s==3) {stpr(d+'tab','backgroundColor','#224079');stpr(d+'tab','color','#aaaaaa');}
else if (s==4) {stpr(d+'tab','backgroundColor','#33608f');stpr(d+'tab','color','#999999');}
else if (s==5) {stpr(d+'tab','backgroundColor','#6680a0');stpr(d+'tab','color','#666666');}
else if (s==6) {stpr(d+'tab','backgroundColor','#aaaac9');stpr(d+'tab','color','#333333');}
else if (s==7) {stpr(d+'tab','backgroundColor','#ffffff');stpr(d+'tab','color','#000000');}
}

function link(coded, key)
{
  var shift=coded.length, ltr='', dlink="";
  for (i=0; i<coded.length; i++) {
    if (key.indexOf(coded.charAt(i))==-1) {
      ltr = coded.charAt(i);
      dlink += (ltr);
    }
    else {     
      ltr = (key.indexOf(coded.charAt(i))-shift+key.length) % key.length;
      dlink += (key.charAt(ltr));
    }
  }
  return(dlink);
}

function em(w,t,e)
{
if (!e) e='';
document.write('<a href="mailto:'+w+'@brantaero.com'+e+'">'+t+'</a>');
}

