//---------------------------------------------------------------------------
//    Check to see if dubugging is enabled :
//---------------------------------------------------------------------------
if(!eval(debug)==true)
  var debug = false;;


//---------------------------------------------------------------------------
//    Let's load some JavaScripts :
//---------------------------------------------------------------------------
function load_script(filename) {
  var script = document.createElement('script'); 
  script.type = 'text/javascript'; 
  script.src = filename; 
  document.getElementsByTagName('head')[0].appendChild(script);
  if(debug)
    monitor(dynScripts, filename);
}


//---------------------------------------------------------------------------
//    Let's load some Stylesheets :
//---------------------------------------------------------------------------
function load_stylesheet(filename) {
  var css = document.createElement('link'); 
  css.rel = 'stylesheet'; 
  css.type = 'text/css'; 
  css.href = filename; 
  document.body.appendChild(css);
  if(debug)
    monitor(dynStyles, filename);
}


//---------------------------------------------------------------------------
//    Watch the status - IF enabled :
//---------------------------------------------------------------------------
function stat() {
  // IF debugging is enabled, then dump via the dynStatus() function :
  if(debug)
    dynStatus();
  // ELSE say that debugging is disabled ::
  else
    alert('Debug not enabled');
}

