// set up browser-dependent variablesif (document.all)    {nn=0;ie=1;dom=0;fShow="visible";fHide="hidden";}if (document.layers) {nn=1;ie=0;dom=0;fShow="show";fHide="hide";}if (document.getElementById) {	nn=0;	ie=0;	dom=1;	fShow="visible";	fHide="hidden";}current="";previous="";anch="";fader = new Array();function loLite() {	if (previous) {	out = eval(previous+"0");	document.getElementById(previous).src = out.src;	anch.className = "lo";	// use fadomatic to hide sublayer	fader[previous].hide();	} // if}function hiLite(item,obj) {	current = item;	anch = obj;	over = eval(current+"1");	document.getElementById(current).src = over.src;	anch.className = "hi";	sublayer = document.getElementById(current+"sub");	sublayer.style.visibility = "visible";		 // New fadomatic instance, with initial    // opacity set to transparent    if (!fader[current]) {		 fader[current] = new Fadomatic(sublayer, 10, 0);    }    fader[current].fadeIn();}function setPrevious(prev) {	previous = prev;}// this global variable keeps track of which nav item is currently moused overvar theMouseItem = "null";// hilite and lolite TD for nav itemsfunction hiLiteNavTD(cell) {      if (ie) {         thisObj = eval("document.all." + cell + ".style");      }      if (nn) {        thisObj = eval("document.layers." + cell + ".style");      }      if (dom) {         thisObj = eval("document.getElementById('" + cell + "').style");      }            thisObj.background="#333333";      }      function loLiteNavTD(cell) {      if (ie) {         thisObj = eval("document.all." + cell + ".style");      }      if (nn) {        thisObj = eval("document.layers." + cell + ".style");      }      if (dom) {         thisObj = eval("document.getElementById('" + cell + "').style");      }      thisObj.background="#7f7f7f";      }// script for spawning new windowfunction openWindow(page,windowName,width,height,tools) {	if (tools != 1) {			showTools = ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes";		} else {			showTools = ",resizable=yes,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes";		}         if(!width) {    	width = 640;    }        if(!height) {    	height = 480;    }    myWin = window.open(page,'windowName','width=' + width + ',height=' + height + showTools);    	// if window has already been opened and is behind main window,	// bring to front	if (!myWin.focus()) {		myWin.focus();	}	}///////////////////////// DHTML animation scripts here///////////////////////// variables determined in other js files:// for inside pages, shiftTop resets the top of the layer above the top of the page,// so it drops down.// for home page, shiftTop is used as the destination for layers// arg direction determines whether subnav is on home or insidefunction moveLayer(layerName,items) {	shiftTop = 0 - (12 + (items*15));	newTop = 23;		if (page == "home") {				shiftTop+=120;				newTop+=138;			}				if (ie) {						theLayer = document.all[layerName];			theLayer.style.pixelTop = 23 + shiftTop;			theLayer.style.visibility = fShow;			dec = 4; // decrement by			moveMe(theLayer,dec);	}		if (nn) {			theLayer = document.layers[layerName];			theLayer.left = theLayer.left - 6;			theLayer.top = 19 + shiftTop;			theLayer.visibility = fShow;			dec = 4; // decrement by			moveMe(theLayer,dec);	}		if (dom) {						theLayer = document.getElementById(layerName);			topper = 23 + shiftTop;			theLayer.style.top = topper + "px";			theLayer.style.visibility = fShow;			dec = 4; // decrement by			moveMe(theLayer,dec);	}}function moveMe(theLayer,dec) {	if (ie) {		if (newTop > theLayer.style.pixelTop + dec) {			theLayer.style.pixelTop += dec;			setTimeout("moveMe(theLayer,dec)", 2);		}	}			if (nn) {		if (newTop > theLayer.top + dec) {			theLayer.top += dec;			setTimeout("moveMe(theLayer,dec)", 2);		}	}		if (dom) {		if (newTop >= topper + dec) {			topper += dec;			theLayer.style.top = topper + "px";			setTimeout("moveMe(theLayer,dec)", 2);		} else {			theLayer.style.top = newTop + "px";		}	}	}