// menu system

NS4 = (document.layers);
IE4 = (document.all);
ver4 = (NS4 || IE4);   
isMac = (navigator.appVersion.indexOf("Mac") != -1);
isMenu = (NS4 || (IE4 && !isMac));

if (!ver4) event = null;

browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))

function rl(imgDocID,imgObjName) {

if (browser) {
document.images[imgDocID].src = "../images/nav" + imgObjName + ".gif"
}
}

function getsize() {
y = menu[0]
}

function getmouse() {

//add netscape

mx=window.event.clientX+document.body.scrollLeft;
my=window.event.clientY+document.body.scrollLeft;
}

function movemenu(which) {

if (NS4) {
layerRef="document.layers";
styleRef="";
}
else {
layerRef="document.all";
styleRef=".style";
}       

getmouse ()

if (which == 1) {
  my = my - 132;
  mx = mx - 70;
} else if (which == 2) {
  my = my - 220;
  mx = mx - 120;
} else if (which == 3) {
  my = my - 117;
  mx = mx - 65;
}

if (IE4 || NS4) {
eval(layerRef + '["menu' + which +'"]' + styleRef + '.top = my');
eval(layerRef + '["menu' + which +'"]' + styleRef + '.left = mx');
}

if (IE4 || NS4) {
eval(layerRef + '["' + which +'"]' + styleRef + '.top = my');
eval(layerRef + '["' + which +'"]' + styleRef + '.left = mx');
}
}