///////////////////////////////// Nav Mouseovers /////////////////////////////////////
var loaded = 0;

function preloader (args) {
  if (document.images) {
    var imgs = new Array();
    imgs = args.split(',');
    for (var i=0; i<imgs.length; i++) {
      preLoad(imgs[i]+'_on');
    }
    loaded = 1;
  }
}

function preLoad(imageFile) {
  eval(imageFile + " = new Image(); " + imageFile + ".src = 'images/nav_" + imageFile + ".gif';");
}



function imageOn(item) {
  if (loaded) {
    eval("document." + item + "I.src = " + item + "_on.src;");
  }
}
function imageOff(item) {
  eval("document." + item + "I.src = 'images/nav_" + item + ".gif';");
}

function popupWindow(url, name, width, height) {
  newWin = window.open(url, name,"location=no,directories=no,menubar=no,statusbar=no,toolbar=no,scrollbars=no,height=" +height+ ",width=" +width+ ",resizable=no");
  newWin.resizeTo(width,height);
  newWin.focus();
  return false;
}

function doBigImage(file, title, width, height) {
  return popupWindow('display.jsp?title='+title+'&file='+file, 'bigImage', width+80, height+120);
}

function doHomeAction() {
  if (document.forms['specials'] != null) {
    if (document.forms['specials'].elements['special'].value != '') {
        document.location = document.forms['specials'].elements['special'].value;
    }
  }
}
function highlight(elem) {
  elem.className = "text highlight";
}
function lowlight(elem) {
  elem.className = "text lowlight";
}