            offMessage = '';
            // Hide timeout.
            var popTimer = 0;
            function popOver(which) { //,itemLength) {
                //alert(itemLength);
                clearTimeout(popTimer);
                //alert(menuItems[which] + "\n" + which);// + "\n" + menuItems);
                boxOn(which);        
            }
            function popSub(which) {
                clearTimeout(popTimer);
            }
        
            function popOut(menuNum) {
                popTimer = setTimeout('boxOff(0)', 500);
            }
            function boxOn(which){
               clearTimeout(popTimer);
               if (document.all||document.getElementById){
                  which.className='BorderOn'
                  if (document.getElementById) {
                      document.getElementById("secondChoice").innerHTML = menuItems[which];
                      if (menuItems[which] != '' ){
                          invi(0);
                          move(0);
                      }
                      else {
                          invi(1);
                      }
                      //document.getElementById("navDropDown").style.left = parseInt(document.getElementById("navDropDown").style.left);
                      //document.getElementById("navDropDown").style.top = parseInt(document.getElementById("navDropDown").style.top);
                      //document.getElementById("navDropDown").style.visibility = "show";
                      //alert(document.getElementById("secondChoice").style.left);
                  }
                  else {
                      secondChoice.innerHTML = menuItems[which];
                      //navDropDown.left = 68;
                      //navDropDown.top = 234;
                      //navDropDown.visibility = "show";
                  }
               }
            }
            
            function boxOff(which){
               if (document.all||document.getElementById){
                    which.className='BorderOff'
                    if (document.getElementById) {document.getElementById("secondChoice").innerHTML = offMessage}
                    else {secondChoice.innerHTML = offMessage}
                }
               invi(1);
               
            }
            var menu = new Array();
            
            function writeMenu(){
                /*var adjustIE = new getObj('mainNav');
                var isIE = navigator.appVersion.indexOf("MSIE")>0
                if (isIE == true) {
                    adjustIE.style.top = 5 +"px";
                }
                else {
                    adjustIE.style.top = 3 + "px";
                }*/
                if (document.all||document.getElementById){
                  if (document.getElementById) {
                      document.getElementById("mainNav").innerHTML = navMenu;
                    }
                  else {
                      mainNav.innerHTML = navMenu;
                  }
                }
                footy();
            }
            function footy(){
                //= "version 4.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
                
                if (document.all||document.getElementById){
                      if (document.getElementById) {document.getElementById("footer").innerHTML = footText}
                         else {footer.innerHTML = footText}
                }
            }
            var theForm = document.tempForm;
            var IE = document.all?true:false;
            if (!IE) document.captureEvents(Event.MOUSEMOVE)
            document.onmousemove = getMouseXY;
            var tempX = 0;
            var tempY = 0;
            var winWidth = 0;
            function getMouseXY(e) {

            var windowProps = document.documentElement;
            winWidth = windowProps.clientWidth;

            if (IE) { // grab the x-y pos.s if browser is IE
            tempX = event.clientX + document.body.scrollLeft;
            tempY = event.clientY + document.body.scrollTop;
            }
            else {  // grab the x-y pos.s if browser is NS
            tempX = e.pageX;
            tempY = e.pageY;
            }  
            if (tempX < 0){tempX = 0;}
            if (tempY < 0){tempY = 0;}
            //alert(tempX + " " + tempY);
            //document.tempForm.mousePos.value = tempX + " " + tempY;
            winWidth = (winWidth - 750)/2;
            //document.tempForm.layerPos.value = winWidth;
            //document.tempForm.newLeftLoc.value = (tempX - winWidth);
            }

            var DHTML = (document.getElementById || document.all || document.layers);

            function getObj(name)
            {
              if (document.getElementById)
              {
              	this.obj = document.getElementById(name);
            	this.style = document.getElementById(name).style;
              }
              else if (document.all)
              {
            	this.obj = document.all[name];
            	this.style = document.all[name].style;
              }
              else if (document.layers)
              {
               	this.obj = document.layers[name];
               	this.style = document.layers[name];
              }
            }
            
            function invi(flag)
            {
            	if (!DHTML) return;
            	var x = new getObj('text');
            	x.style.visibility = (flag) ? 'hidden' : 'visible'
            }
            
            var texttop = 80;
            
            function move(amount)
            {
                if (!DHTML) return;
            	var x = new getObj('text');
            	texttop += amount;
            	x.style.top = texttop + "px";
            }
            function showhide(obj)
{
	var x = document.getElementById('testP');
	hide = !hide;
	x.style.visibility = (hide) ? 'hidden' : 'visible';
	setLyr(obj,'testP');
}

function setLyr(obj,lyr)
{
	var coors = findPos(obj);
	var x = document.getElementById(lyr);
	//x.style.top = coors[1] + 'px';
	if (IE) {
      x.style.left = coors[0] + 'px';
   }
   else {
      x.style.left = coors[0] + 'px';
   }

}

function findPos(obj)
{
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		//curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			//curtop += obj.offsetTop
		}
	}
	return [curleft,0];
}
            
            function changeCol(col)
            {
            	if (!DHTML) return;
            	var x = new getObj('text');
            	x.style.color = col;
            }

            function changeBG(inItem) {
                if (!DHTML) return;
            	var x = new getObj(inItem);
            	x.style.background = "#979797";
                x.style = "text";
            }

            function resetBG(inItem) {
                if (!DHTML) return;
            	var x = new getObj(inItem);
            	x.style.background = "#747474";
            }

            function setBottom() {
                var x = new getObj('pageBodyContent');
                var y = new getObj('contentBody');
                //y.style.height = x.style.height;
                //var n = new getObj('text');
                //alert(n.style.height);
                //alert(y.style.height + "\n" + x.style.height);
            }
