function InlineScriptExecuter(scriptClassName)
{
  this.load = function(elementID, success)
  {
    if (success)
    {
      var content = document.getElementById(elementID);
      if (!content) return;
      
      var scripts = content.getElementsByTagName("script");
      for (var i = 0; i < scripts.length; ++scripts)
      {
        if (scripts[i].className == scriptClassName)
        {
          eval(scripts[i].firstChild);
        }
      }
    }
  }
}

window.onload = function()
{
  var loader = new Loader("content", "home.html");
  
  var loaderStatus = new LoaderStatus(80, 350);
  loader.addPreloadNotify(loaderStatus.preload);
  loader.addLoadNotify(loaderStatus.load);
  
  var menu = new Menu("navigation", "menuLink", "Menu");
  loader.addLoadNotify(menu.load);
  
  var executer = new InlineScriptExecuter("inlineScript");
  loader.addLoadNotify(executer.load);
}
