// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function popUp(url, w, h) {
  window.open(url, "", "height="+h+",width="+w);
}

function updateTitle(text) {
  clearTimeout(menuTimeoutID);
  text = "&gt; " + text;
  $("title").update(text);
}

function imageLoading() {
  $("main-image").hide();
  $("loading-image").show();
}

function checkImageLoaded() {
  var img = document.getElementById("main-image");
  if (img.complete) {
    showImage();
  } else {
    setTimeout("checkImageLoaded()", 1);
  }
}

