function FileName( szFile, iTrim ) 
{   return szFile.substring(szFile.lastIndexOf("/") + 1, szFile.length - iTrim); 
} 
function MEffect( oEvent, szDir ) 
{  var oTarget; 
   if( oEvent.srcElement ) oTarget = oEvent.srcElement; 
   else if( oEvent.target ) oTarget = oEvent.target; 
   switch( oEvent.type ) 
   { 
      case "mouseover": oTarget.src = szDir + "/" + FileName(oTarget.src, 4) + "-h.jpg"; 
      break; 
      case "mouseout": oTarget.src = szDir + "/" + FileName(oTarget.src, 6) + ".jpg"; 
      break; 
   } 
}
function preloadImages() {
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}
function loadShow () {
self.focus();
document.location.href = "gen.pl?r=shows&a=show&id=" + document.search_show.show.options[document.search_show.show.selectedIndex].value
}

function loadFace () {
self.focus();
document.location.href = "gen.pl?r=faces&a=show&id=" + document.search_face.face.options[document.search_face.face.selectedIndex].value
}