var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var newwin=null;

function MM_openBrWindow(theURL, winname, winfeatures) {
  if (newwin) newwin.close();
  newwin = window.open(theURL, winname, winfeatures);
  with (newwin.document) {
    write("<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>");
    write("<center>");
    write("<img src=" + theURL + ">");
    write("</center>");
		close();
  }
  newwin.focus();
}

function ChangeImgDetail(Sender) {
  parent.document.ImgDetail.src = null;
  Cursor('Wait');
  parent.document.ImgDetail.src = Sender;
  setTimeout("Cursor('Default')", 2500);
}

function Cursor(Value) {
  document.body.style.cursor = Value;
}


function Show(Sender) {
  ResetTimeout();
  setTimeout('document.getElementById("subm").style.display="block"', 200);
}

var timeoutID;
function Hide(Sender) {
  timeoutID = setTimeout('document.getElementById("subm").style.display="none"', 750);
}

function ResetTimeout() {
  clearTimeout(timeoutID);
}