//*
//* jxjs - main javascript loader
//*

var jxjs = {
  
  version: '0.0.1',
  
  includes: 'prototype,ui',
  
  includesPath: '/scripts/',
  
  bodyOnLoad: function() {
    ajaxGlobalHandlers.initialize();
  },
  
  require: function( libraryName) {
    // inserting via DOM may fail so brute force approach
    document.write( "\n" + '<script type="text/javascript" src="' + libraryName + '"></script>');
  },

  load: function() {
    var tmp = this.includes.split(',');
    for ( var i = 0; i < tmp.length; i++) {
      this.require( this.includesPath + tmp[i] + '.js');
    }
  }
}

jxjs.load();

//* end - jxjs
