/*	@AUTHOR: DAN WOOLLOFF 
*		@COMMENTS: DO NOT edit the DomLoaded object or the loadScript function
*
*/

// Fire an event when the document content is ready (before binary content is loaded)
var DomLoaded =
{
	onload: [],
	scriptPath: "Scripts/",
	scriptSuffix: ".js",
	loadScript: function(strScript, preload, absolute){
		strScript = (!absolute) ? DomLoaded.scriptPath+strScript+DomLoaded.scriptSuffix : strScript;
		if(preload){
			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);
		}
	},
	loaded: function()
	{
		if (arguments.callee.done) return;
		arguments.callee.done = true;
		for (i = 0;i < DomLoaded.onload.length;i++){
			setTimeout("DomLoaded.onload["+i+"]()",0);
		}
	},
	load: function()
	{
		for(var i = 0; i < arguments.length; ++i){
			this.onload.push(arguments[i]);
		}
		if (document.addEventListener) 
			document.addEventListener("DOMContentLoaded", DomLoaded.loaded, null);
		if (/KHTML|WebKit/i.test(navigator.userAgent))
		{ 
			var _timer = setInterval(function()
			{
				if (/loaded|complete/.test(document.readyState))
				{
					clearInterval(_timer);
					delete _timer;
					DomLoaded.loaded();
				}
			}, 10);
		}
		/*@cc_on @*/
		/*@if (@_win32)
		var proto = "src='javascript:void(0)'";
		if (location.protocol == "https:") proto = "src=//0";
		document.write("<scr"+"ipt id=__ie_onload defer " + proto + "><\/scr"+"ipt>");
		var script = document.getElementById("__ie_onload");
		script.onreadystatechange = function() {
			if (this.readyState == "complete") {
					DomLoaded.loaded();
			}
		};
		/*@end @*/
	   window.onload = DomLoaded.loaded;
	}
};
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
DomLoaded.loadScript("cssquery", true);
DomLoaded.loadScript("swfobject", true);
DomLoaded.loadScript("sifr", true);
//DomLoaded.loadScript("sifr-debug", true);

// Initiate main script
DomLoaded.loadScript("main", true);