/*
function showMenu(objID) {

//This function receives the object ID and y-coordinate value (in pixels)
//from the event handler and then uses those values to dynamically
//position the object in the browser window

	if (document.all) {
	
	//This checks to see if the user is using Internet Explorer
	//because only IE uses "document.all"

		//objName = eval('document.all.' + objID + '.style');
		
		//This statement creates the object reference for IE from
		//object ID sent to the script

//		objName.pixelLeft = xVal;

		//This sets the x-coordinates of the left side of the object
		//for users browsing with Internet Explorer
        document.all(objID).style.visibility="visible"


	} else {

	//If user is not using Internet Explorer do what follows
	
		document.objID="visible"

		//Create the object reference for Netscape using
		//the object ID sent to the script

	//	objName.style = "visible";

		//Set the x-coordinate for the left side of the object
		//for users browsing with Netscape
	}
}
//-->


function hideMenu(objID) {

//This function receives the object ID and y-coordinate value (in pixels)
//from the event handler and then uses those values to dynamically
//position the object in the browser window

	if (document.all) {
	
	//This checks to see if the user is using Internet Explorer
	//because only IE uses "document.all"

		//objName = eval('document.all.' + objID + '.style');
		
		//This statement creates the object reference for IE from
		//object ID sent to the script

//		objName.pixelLeft = xVal;

		//This sets the x-coordinates of the left side of the object
		//for users browsing with Internet Explorer
        document.all(objID).style.visibility="hidden"


	} else {

	//If user is not using Internet Explorer do what follows
	
		objName = eval('document.' + objID);

		//Create the object reference for Netscape using
		//the object ID sent to the script

		objName.style = "hide";

		//Set the x-coordinate for the left side of the object
		//for users browsing with Netscape
	}
}
//-->

  //global variables
  var visibleVar="null";
  var layerRef="null",styleSwitch="null",visibleVar="null";

  function init()
  {
    if (navigator.appName == "Netscape")
    {
      layerRef="document.layers";
      styleSwitch="";
      visibleVar="show";
    }
    else
    {
      layerRef="document.all";
      styleSwitch=".style";
      visibleVar="visible";
    }
  }

  function showMenu(layerName)
  {
    eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
  }
  function hideMenu(layerName)
  {
    eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
  }
//-->
*/




function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObject

function changeObjectVisibility(objectId, newVisibility) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.visibility = newVisibility;
	return true;
    } else {
	// we couldn't find the object, so we can't change its visibility
	return false;
    }
} // changeObjectVisibility


function showMenu(menuName) {
    //    alert(eventObj);
    changeObjectVisibility(menuName, 'visible')
}

function hideMenu(menuName) {
    //    alert(eventObj);
    changeObjectVisibility(menuName, 'hidden')
}

