
if (navigator.appName == "Netscape")
  useIE = 0;
else
  useIE=1;


function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
	this.obj = getObjNN4(document,name);
	this.style = this.obj;
  }
}

function getObjNN4(obj,name)
{
	var x = obj.layers;
	var thereturn;
	for (var i=0;i<x.length;i++)
	{
		if (x[i].id == name)
		 	thereturn = x[i];
		else if (x[i].layers.length)
			var tmp = getObjNN4(x[i],name);
		if (tmp) thereturn = tmp;
	}
	return thereturn;
}


arPopups = new Array()
function setBeginEnd(which,from,top,to,bot) {
        arPopups[which] = new Array();
        arPopups[which][0] = from;
        arPopups[which][1] = to;
        arPopups[which][2] = top;
        arPopups[which][3] = bot;

}

setBeginEnd(1,17,15,127,44);
setBeginEnd(2,17,46,127,74);
setBeginEnd(3,17,73,127,104);
setBeginEnd(4,17,105,127,134);

function mapOver(which,on) {

    var x = new getObj("elmenuover");

    whichEl = x;
    if (!on) { whichEl.style.visibility = "hidden"; return };

    clLeft = arPopups[which][0];
    clRight = arPopups[which][1];
    clTop = arPopups[which][2];
    clBot = arPopups[which][3];
    whichEl.style.clip = "rect(" + clTop + " " + clRight + " " + clBot + " " + clLeft + ")";
    whichEl.style.visibility = "visible";
}
