
if (document.images) {

  // LANDING IMAGE DECLARATIONS

//  var landingcorporatedown = new Image();
//  landingcorporatedown.src = "images/landingcorporatedown.gif";
// var landingcorporateup = new Image();
//  landingcorporateup.src = "images/landingcorporateup3.gif";

//  var landingestatesdown = new Image();
//  landingestatesdown.src = "images/landingestatesdown.gif";
//  var landingestatesup = new Image();
//  landingestatesup.src = "images/landingestatesup.gif";

}

function actMenuItem(imgName,defImg) {
  if(defImg != imgName)
  {
	  act(imgName,defImg);
	//  if(imgName != defImg && defImg != "")
	//  {
	//    inact(defImg);
	//  }
  }
}

function inactMenuItem(imgName,defImg) {
  if(defImg != imgName)
  {
	  inact(imgName,defImg);
	//  if(defImg != "")
	//  {
	//    act(defImg);
	//  }
  }
}

function act(imgName,defimg) {
  if (document.images)
  {
	if(document.images[imgName])
	{
	    document.images[imgName].src = "images/" + defimg;
//	    document.images[imgName].src = eval(imgName + "up.src");
	}
  }
}

function inact(imgName,defimg) {
  if (document.images)
  {
	if(document.images[imgName])
	{
	    document.images[imgName].src = "images/" + defimg;
//	    document.images[imgName].src = eval(imgName + "down.src");
	}
  }
}




function toggleSESLayer(whichLayer,divstate)
{

	if (document.getElementById)
	{

		// this is the way the standards work

		var style2 = document.getElementById(whichLayer).style;
		if(style2.display != divstate)
		{
			style2.display = style2.display? "":"block";
		}
	}
	else if (document.all)
	{
		// this is the way old msie versions work

		var style2 = document.all[whichLayer].style;
		if(style2.display != divstate)
		{
			style2.display = style2.display? "":"block";
		}
	}
	else if (document.layers)
	{

		// this is the way nn4 works
	
		var style2 = document.layers[whichLayer].style;
		if(style2.display != divstate)
		{
			style2.display = style2.display? "":"block";
		}
	}

}
function showSES()
{
	
	toggleSESLayer('sesoption',"block");
	actMenuItem('landingses','landingsesupstatic.gif');
}


function hideSES()
{
	toggleSESLayer('sesoption',"");
	actMenuItem('landingses','landingsesdown.gif');
}

