calc_path();

function calc_path(adjust_path)
{
if(!adjust_path)adjust_path="";
overon = new Image();
overon.src = adjust_path+"media/menuTopOff.gif";
pressedon = new Image();
pressedon.src = adjust_path+"media/menuTopOn.gif";

normaloff = new Image();
normaloff.src = adjust_path+"media/menuTop.gif";
pressedoff = new Image();
pressedoff.src = adjust_path+"media/menuTopOff.gif";
}

function isPieceOfCrapBrowser()
{
  return (navigator.appName=="Microsoft Internet Explorer" //really we could stop here *growls*
   && parseInt(navigator.appVersion)<4)
}


function imgChange(imgName)
     {
     //Temporary hack to fix apparent errors in MSIE 3.0
     if(isPieceOfCrapBrowser())return;
     imgOn = eval(imgName + "on.src");
     document.top.src = imgOn;
     }
function imgUnChange(imgName)
     {
     //Temporary hack to fix apparent errors in MSIE 3.0
     if(isPieceOfCrapBrowser())return;
     imgOff = eval(imgName + "off.src");
     document.top.src = imgOff;
     }
