            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;
                  }
                }
            }

            var theForm = document.tempForm;
            var tempX = 0;
            var tempY = 0;
            var winWidth = 0;
            var IE = document.all?true:false;
            if (!IE) document.captureEvents(Event.MOUSEMOVE)
            document.onmousemove = getMouseXY;
            
            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;
            }

            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 = 279;
            
            function move(amount)
            {
            	if (!DHTML) return;
            	var x = new getObj('text');
            	texttop += amount;
            	x.style.top = texttop + "px";
                //var newLeft = (tempX - winWidth);
                /*x.style.left = newLeft + "px";*/
                //x.style.left = tempX + "px";
                /* original value x.style.left = tempX + "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('text');
	//x.style.top = coors[1] + 'px';
	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,282];
}
            
            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 = "#3595E2";
            }

            function resetBG(inItem) {
                if (!DHTML) return;
            	var x = new getObj(inItem);
            	x.style.background = "#3865BB";
            }

