/*
 * global.js 
 * Date Created: March 1, 2009
 * Requires:
 * Author: brandon quintana consulting, llc
 */

var path;

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

	this.require(path + "js/jquery-1.3.2.min.js");
	this.require(path + "js/external.js");
  }
}

GlobalScripts.load();