/*
 * global.js 
 * Date Created: 
 * 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/mootools-1.2.1-core.js");    
    this.require(path + "js/mootools-1.2-more.js");
    this.require(path + "js/smoothscroll.js");
    this.require(path + "js/slider.js");
  }
}

GlobalScripts.load();