
<!--

  ns4 = (document.layers)? true:false
  ie4 = (document.all)? true:false
  is4 = (ns4 || ie4)
  isMac = (navigator.appVersion.indexOf("Mac") != -1) ? true : false;
  if(isMac && ie4)
  {
    // ie mac currently acts like a 3.0 browser so let's just force it to now to prevent errors
    ie4 = false
    is4 = false
  }



// stylechange below

function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}
bw=new checkBrowser()

//  background color change function

function changeBc(obj,color){

div=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?document.layers[obj]:0;	

if(bw.dom || bw.ie4) div.backgroundColor=color;

else if(bw.ns4) div.bgColor=color;
}


//  resize window fix below

function reloadPage(init) {  //reloads the window if Nav4 resized

 if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {

  document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}

  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();

}

reloadPage(true);



// -->
