var IE6 = 0;
if (navigator.appVersion.search('MSIE 6') != -1 || navigator.appVersion.search('MSIE 5') != -1) {
  IE6 = 1;
}
function runOnloads() {
  externalLinksNewWindows();
  //levelBottoms();
  dynImages();
  if (IE6) {
    //IEPNGFix.start('div');
    IEPNGFix.start('img');
    IEPNGFix.start('a');
    divContentTop = document.getElementById('content_top_content');
    if (divContentTop.offsetHeight < 296) {
      divContentTop.style.height = 296 + 'px';
    }
  }
  if (typeof(movie) === 'function') {
    movie();
  }
}

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');
//include('level-bottoms.js');
include('dyn-images.js');
if (IE6) {
  include('fix-pngs.js');
}

window.onload = runOnloads;