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>');
}

//----------------------------
// Correctly handle PNG transparency in Win IE 5.5 or higher.
// http://homepage.ntlworld.com/bobosola. Updated 02-March-2004

function correctPNG() 
   {
   for(var i=0; i<document.images.length; i++)
      {
	  var img = document.images[i]
	  var imgName = img.src.toUpperCase()
	  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	     {
		 var imgID = (img.id) ? "id='" + img.id + "' " : ""
		 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
		 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
		 var imgStyle = "display:inline-block;" + img.style.cssText 
		 if (img.align == "left") imgStyle = "float:left;" + imgStyle
		 if (img.align == "right") imgStyle = "float:right;" + imgStyle
		 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle		
		 var strNewHTML = "<span " + imgID + imgClass + imgTitle
		 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
	     + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
		 img.outerHTML = strNewHTML
		 i = i-1
	     }
      }
   }
if (window.attachEvent) window.attachEvent("onload", correctPNG);