function loaded() {
  try {
    var _obj = document.getElementById("img_loading"); var _table = document.getElementById("table_loading");
    if (_obj && _table) {
      if (_obj.complete && _tm_loading) { _table.style.display = "none"; opacity("table_layout", 100); /* window.clearInterval(_tm_loading); _tm_loading = 0; */ }
    }
  } catch(e) { return false; }
}

function photo(_url, _title) {
  try {
    var _table = document.getElementById("table_loading"); var _div = document.getElementById("div_loading");
    if (_url && _table && _div) {
      if (_title != "") { var _title = new String(_title); }
      opacity("table_layout", 20); hide(_table, false); _div.parentNode.style.cursor = "pointer"; _table.onclick = function hidepreview(e) { opacity('table_layout', 100); hide('table_loading', true); };
      _div.style.width = "500"; _div.style.height = "500"; _table.style.top = document.body.scrollTop; _div.style.textAlign = "center"; _div.innerHTML = ("<B>" + document.title + "</B><BR>\r\n<BR>" + _title + "<BR>\r\n");
     _div.style.backgroundImage = ("url('" + _url + "')"); _div.style.backgroundPosition = "center"; _div.style.backgroundRepeat = "no-repeat";
    }
  } catch(e) { return; }
}

function admin() {
  try {
    window.open("./?mod=admin", "Admin", "width=750, height=660, channelmode=0, directories=0, fullscreen=0, location=0, menubar=0, resizable=1, scrollbars=1, status=0, titlebar=0, toolbar=0", true);
  } catch(e) { return; }
}

try { var _tm_loading = window.setInterval("loaded();", 100); } catch(e) { }