/*************************************************************  

  global.js v0.1
  (c) 2007 Brandon Quintana  
  http://www.brandonquintana.com *** bquintana@brandonquintana.com  

 *************************************************************/ 

var GlobalScripts = {
  require: function(src) {
    document.write("<script type=\"text/javascript\" src=\"" + src + "\"></script>\n");
  },
  load: function() {
    var scripts = document.getElementsByTagName("script");
    
    if (scripts[0].src.match(/global\.js(\?.*)?$/))
        var path = scripts[0].src.replace(/global\.js(\?.*)?$/,'');

    this.require(path + "prototype.js");
    this.require(path + "prototypeExtensions.js");
    this.require(path + "Base.js");
    this.require(path + "swfobject.js");
    this.require(path + "flashelements.js");
    this.require(path + "tiny_mce/tiny_mce.js");
    this.require(path + "tiny_mce.js");
    this.require(path + "admin.js");
  }
}

GlobalScripts.load();