includes/clientside/static/loader.js
author Dan
Tue, 08 Apr 2008 20:29:18 -0400
changeset 520 4c16e87cfeae
parent 420 301f546688d1
child 581 5e8fd89c02ea
permissions -rw-r--r--
Optmized a number of Javascript routines for better speed on pathetic Javascript interpreters.

// Some final stuff - loader routines, etc.

function mdgInnerLoader(e)
{
  if(window.location.hash == '#comments') ajaxComments();
  window.onkeydown=isKeyPressed;
  window.onkeyup=function(e) { isKeyPressed(e); };
  Fat.fade_all();
  fadeInfoBoxes();
  //initTextareas();
  //buildSearchBoxes();
  jBoxInit();
  if(typeof (dbx_set_key) == 'function')
  {
    dbx_set_key();
  }
  initSliders();
  runOnloadHooks(e);
}
var ld;
if(window.onload) ld = window.onload;
else ld = function() {return;};
function enano_init(e) {
  if ( typeof(ld) == 'function' )
  {
    ld(e);
  }
  mdgInnerLoader(e);
}

if ( typeof(KILL_SWITCH) == 'boolean' && !KILL_SWITCH )
{
  window.onload = enano_init;
}