/*
	File: loadJS.js
	Created: 22/05/08
	Created by: Phil Jeffs
	Edited by: Mike "1312" Byrne (on the JQuery remix)
	Version: 1.00_jquery
	
	Acts as a stub for all other JS files.
	
	IMPORTANT:
	This requires the JQuery library to be included first. 
	You MUST include it before this file.
*/

var loadJS = {
	Author: 'Phil Jeffs, Mike Byrne',
	Version: '1.00_jquery',
	// Set the root path for JS files (don't forget the trailing slash)	
	JSRoot: '/javascripts/', 										
 	// List all of the js files you want to include	
	Scripts: 'application-jquery,jquery.delegate-1.1.min,slider,gallery,jquery.reflection',
	require: function(libName) {
    	document.write('<script type="text/javascript" src="'+loadJS.JSRoot+libName+'"></script>');		
	},
	
	load: function() {
		jQuery.each(loadJS.Scripts.split(','), function() {
			loadJS.require(this+'.js');
		});
	}	
}

loadJS.load();