function setimg(img) {
  document.images['largephoto'].src = eval('i' + img + '.src');
  document.images['largephoto'].height = eval('i' + img + '.height');
  document.images['largephoto'].width = eval('i' + img + '.width');
  
  text = eval('i' + img + '._caption_text');
  if (typeof text  == "undefined" ) { 
    text = "&nbsp;";
  }
  if (document.getElementById) {
    document.getElementById("caption").innerHTML = text;
  }
  else if (document.all) { // IE 4/5 code fork...
    document.all["caption"].innerHTML = text;
  }
  
}

function hilite(obj, status) {  
  if (status) {
    obj.style.border = "#555 solid 1px";      
  } else {
    obj.style.border = "#CCC solid 1px";
  }
}