var IE6 = 0;
if (navigator.appVersion.search('MSIE 6') != -1 || navigator.appVersion.search('MSIE 5') != -1) {
  IE6 = 1;
}
function wait_for_script_load () {
  var interval = setInterval(function() {
    if (eval("typeof " + 'externalLinksNewWindows') != 'undefined') {
      clearInterval(interval);
      runOnloads();
    }
  }, 50);
}
function runOnloads() {
  externalLinksNewWindows();
  //levelBottoms();
  dynImages();
  if (IE6) {
    ss_fnLoadPngs();
  }
}
function include(file) {
  var script  = document.createElement('script');
  script.src  = '/style/js/' + file;
  script.type = 'text/javascript';
  document.getElementsByTagName('head').item(0).appendChild(script);
}

include('external-links-new-windows.js');
if (IE6) {
  include('supersleight.js');
}
//include('level-bottoms.js');
include('dyn-images.js');

window.onload = wait_for_script_load;