function preLoad(imageFile) {
  eval(imageFile + "_on = new Image(); " + imageFile + "_on.src = 'mouseovers/" + imageFile + "_on.gif';");   
}

function imageOn(item) {
  if (loaded) {
    eval("document." + item + "I.src = " + item + "_on.src;");
  }
}

function imageOff(item) {
  eval("document." + item + "I.src = 'mouseovers/" + item + "_off.gif';");
}

function newWindow(url, name, width, height) {
  height += 30;
  photoWindow = window.open(url, name,"location=no,directories=no,menubar=no,statusbar=no,toolbar=no,scrollbars=yes,height=" +height+ ",width=" +width+ ",resizable=yes");
  photoWindow.resizeTo(width,height);
  photoWindow.focus();
  return false;
}

function getResultsPage(frm, i) {
  frm.start.value = i;
  frm.submit();
  return false;
}

function controlExpand() {
  var sup = event.srcElement.id;
  if (sup != '')
  {
  var sub = document.all[(sup + 'Sub')]
    if (sub != null)
    {
      if (sub.style.display == 'none')
      {
        sub.style.display = '';
      }
      else
      {
        sub.style.display = 'none';
      }
    }
  }
}
