//---------------------------------------------//
//
//--- Event Handlers for menu clicks ---//
//
//---------------------------------------------//



//----- Level2 Menu events -----//


//
//-- function used to redirect to the relevant page when a particular Menu is clicked in Job Section
//
function JobLevel2MenuClick( strFileName )
{
  window.location.href = strFileName;
}

//
//-- function to activate announcement menu
//

function AdministrationLevel2MenuClick( strFileName )
{
  window.location.href = strFileName;
}

//----- Home Menu events -----//

//
//-- function to go back to home page
//

function GoToHome()
{
	window.location.href="default.asp";
}

//---- Top bar events --- //

//
//--- to give a 3D effect whenever the mouse is over it
//
function BarItemOnMouseOver( strId )
{
  var oId;
  
  //-- construct the id 
  oId = eval(strId);
  
  oId.style.borderStyle = 'outset';
  oId.style.cursor = 'hand';
  oId.style.borderWidth = '1px';
  oId.style.color = 'darkred';
  
  //-- make the you are here info visible if mouse is over the You Are Here menu
  if( strId == "tdWhereAmI" )
    PosInfo.style.visibility = 'visible';
}

//
//--- to negate the 3D effect whenever the mouse is out
//
function BarItemOnMouseOut( strId )
{
  var oId;
  
  //-- construct the id 
  oId = eval(strId);
  
  oId.style.borderWidth = '1px';
  oId.style.borderStyle = 'none';
  oId.style.color = 'navy';
  
  //-- make the you are here info hidden if mouse is out of the You Are Here menu
  if( strId == "tdWhereAmI" )
    PosInfo.style.visibility = 'hidden';
}





