
var gCorpDropDownDivName;


function CorpMenuOpen(passedIdName)
{	
	//close menu div that we were on if there is a value
	//
	if(gCorpDropDownDivName)
	{ 
	    gCorpDropDownDivName.style.visibility = 'hidden';
	}

	//get the new div and replace the old div in the globalNav
	//
	gCorpDropDownDivName = document.getElementById(passedIdName);
	
	//now set the style to visible for the passedIdName element
	//
	gCorpDropDownDivName.style.visibility = 'visible';

}

function CorpMenuClose()
{

    //if the gCorpDropDownDivName has a value then set the visiblity of that element to false
    //
    if(gCorpDropDownDivName)
    { 
        gCorpDropDownDivName.style.visibility = 'hidden';
    }

}
