includes/clientside/static/loader.js
author Dan
Sun, 30 Sep 2007 19:27:44 -0400
changeset 153 9b86248e8fee
parent 57 b354deeaa4c4
child 189 fd0e9c7a7b28
permissions -rw-r--r--
Crap, that didn't work. Remerge of 42c6c83b8a00 and 824821224153

// Some final stuff - loader routines, etc.

var __tmpEnanoStartup9843275;
  
function enanoStartup(e) {
  if ( !e )
  {
    // Delay initting sliders until images are loaded
    if ( typeof(window.onload) == 'function' )
      __tmpEnanoStartup9843275 = window.onload;
    else
      __tmpEnanoStartup9843275 = function(){};
    window.onload = function(e){__tmpEnanoStartup9843275(e);initSliders();};
  }
  else
  {
    initSliders();
  }
}

function mdgInnerLoader(e)
{
  jws.startup();
  enanoStartup(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();
  }
  runOnloadHooks(e);
}
if(window.onload) var ld = window.onload;
else var ld = function() {return;};
function enano_init(e) {
  ld(e);
  mdgInnerLoader(e);
}

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