/**
*	Global script that loads all other script resources
* @author: DAN WOOLLOFF 
*/

(function(){
	window.ScriptLoader =
	{
		init: function(scriptPath, scriptSuffix){
			this.scriptPath = scriptPath;
			this.scriptSuffix = scriptSuffix;
		},
		scriptPath: "scripts/",
		scriptSuffix: ".js",
		loadScript: function(strScript, append, absolute){
			strScript = (!absolute) ? this.scriptPath+strScript+this.scriptSuffix : strScript;
			if(!append){
				document.write("<script src='"+strScript+"' type='text/javascript'><\/scri"+"pt>");
			}else{
				var e = document.createElement("script");
				e.src = strScript;
				e.type="text/javascript";
				document.getElementsByTagName("head")[0].appendChild(e);
			}
		}
	};
})()
var isSecure = (window.location.protocol.indexOf('https:') == 0);
var browser = (navigator.userAgent.indexOf("MSIE") != -1) ? "IE" : "OTHER";
// Include other JS files dynamically
// Load all required script resources - add any scripts you wish to use here
ScriptLoader.init("scripts/", ".js");
ScriptLoader.loadScript("core.console");
ScriptLoader.loadScript("core.string");
ScriptLoader.loadScript("jquery");
ScriptLoader.loadScript("jquery.extra");
ScriptLoader.loadScript("jquery.ajaxy");
ScriptLoader.loadScript("jquery.isready");
ScriptLoader.loadScript("jquery.haseventlistener.2.0.3");
ScriptLoader.loadScript("jquery.unobtrusivelib");
ScriptLoader.loadScript("jquery.swfobject");
ScriptLoader.loadScript("jquery.em");
ScriptLoader.loadScript("jquery.mousewheel");
ScriptLoader.loadScript("jquery.scrollpane");
/*var _gat;
var gaJsHost = (isSecure) ? "https://ssl." : "http://www.";
ScriptLoader.loadScript(gaJsHost + "google-analytics.com/ga.js", false, true);*/

// Initiate main script
ScriptLoader.loadScript("main");
