<!--

//*******************************************************************************************************
//VARIABLE THAT DETERMINES WHETHER TO HIDE THE DIV OR NOT

var timerSwitch = null;


//*******************************************************************************************************
//THIS FUNCTION IS NEEDED TO INSTANCIATE THE MOUSE ROLLOVER 

function msover(menuName, whichVis)
{

timerSwitch = 1;
allOff();	
	
    if(document.layers)
    {
        //nn4 code
        document.layers[menuName].visibility = "show";
    }
    else if(document.all)
    {
        //ie4 code
        document.all[menuName].style.visibility = "visible";
    }
    else if (document.getElementById) 
    { 
        //nn6 code
        obj = document.getElementById(menuName);   obj.style.visibility = "visible";
    }		
    
    clearSelects(whichVis);
}

function msout(whichVis)
{
	
    timerSwitch =0;
    theTimer();
}

function clearSelects(whichVis){
	//this code is to hide select boxes due to bugs in IE where they show up on top of dhtml menus
    for(x=0;x<document.forms.length;x++){
		for(i=0;i<document.forms[x].length;i++){
		var tempobj=document.forms[x].elements[i];
			if (tempobj.type.substring(0,6) == "select"){
			if(whichVis == "hide")
				tempobj.style.visibility = "hidden";
			else
				tempobj.style.visibility = "visible"; 
			}
		}
	}
}


//*******************************************************************************************************
//THIS FUNCTION IS THE TIMER TO TURN OFF A DIV ONCE YOU LEAVE IT

function theTimer()
{
    timerHolder = setTimeout("hideDiv()",1000);
}


//*******************************************************************************************************
//THIS FUNCTION IS NEEDED TO HAVE A HIDE OR HIDDEN STATE FOR EACH DIV

function allOff()
{

    if(document.layers)
    {
    //nn4 code

    document.layers["drop1"].visibility = "hide";
    document.layers["drop2"].visibility = "hide";
    document.layers["drop3"].visibility = "hide";
    document.layers["drop4"].visibility = "hide";

	
    }
    
    else if(document.all)
    {
    //ie4 code

    document.all["drop1"].style.visibility = "hidden";
    document.all["drop2"].style.visibility = "hidden";
    document.all["drop3"].style.visibility = "hidden";
    document.all["drop4"].style.visibility = "hidden";

	
    }

    else if (document.getElementById) 
    { 
    //nn6 code

    obj = document.getElementById("drop1");  obj.style.visibility = "hidden";
    obj = document.getElementById("drop2");  obj.style.visibility = "hidden";
    obj = document.getElementById("drop3");  obj.style.visibility = "hidden";
    obj = document.getElementById("drop4");  obj.style.visibility = "hidden";


    }
}



//*******************************************************************************************************
//THIS FUNCTION CHECKS THE VARIABLE TIMERSWITCH TO SEE IF YOU WANT TO HIDE THE DIVS

function hideDiv()
{
	
    if(timerSwitch == 0)	
    {
    		clearSelects('show');
        if(document.layers)
        {
        //nn4 code

        document.layers["drop1"].visibility = "hide";
        document.layers["drop2"].visibility = "hide";        
        document.layers["drop3"].visibility = "hide";
        document.layers["drop4"].visibility = "hide";


        }
        else if(document.all)
        {
        //ie4 code

        document.all["drop1"].style.visibility = "hidden";
        document.all["drop2"].style.visibility = "hidden";
        document.all["drop3"].style.visibility = "hidden";
        document.all["drop4"].style.visibility = "hidden";


        }
        else if (document.getElementById) 
        { 
        //nn6 code

        obj = document.getElementById("drop1");  obj.style.visibility = "hidden";
        obj = document.getElementById("drop2");  obj.style.visibility = "hidden";
        obj = document.getElementById("drop3");  obj.style.visibility = "hidden";
        obj = document.getElementById("drop4");  obj.style.visibility = "hidden";

		

        }
    }
}



//*******************************************************************************************************
//THIS FUNCTION IS USED FOR KEEPING THE DIV SHOWN WHEN YOU ARE MOUSING OVER THE DIV

function divover(link)
{
    timerSwitch = 1;
}



//*******************************************************************************************************
//THIS FUNCTION IS USED TO HIDE A SHOWN DIV WHEN YOU MOUSE OFF

function divout(link)
{
		
    timerSwitch = 0;
    theTimer();
}

// -->
