/********************************************************************************************************************************************************
DOM Onload 1.1
A modification of the original window.onload (again) code by Dean Edwards, Matthias Miller and John Resig, http://dean.edwards.name/weblog/2006/06/again/
Use:			To fire web applications once the DOM has loaded and not waiting for all binary content, like images, to load first
Author/editor:		David Smith, 2006 July 21st
More information:	http://www.zaidesign.net/development/javascript/dom_onload/
********************************************************************************************************************************************************/
window.domOnload = {
	init : function(){return;},
	timer : "",
	prepare : function() {
		if(document.addEventListener) // for Mozilla/Opera9
			document.addEventListener("DOMContentLoaded", window.domOnload.preInit, false);
		/* for Internet Explorer, changed src=javascript:void(0) to src=javascript:false as of comment 57 on script home page */
		/*@cc_on @*/
		/*@if(@_win32)
			document.write("<script id=__ie_onload defer src=javascript:false><\/script>");
			var script = document.getElementById("__ie_onload");
			script.onreadystatechange = function() {
				if (this.readyState == "complete")
					window.domOnload.preInit(); // call the onload handler
			};
		/*@end @*/
		if(/KHTML|WebKit/i.test(navigator.userAgent)) // sniff for Safari and Konqueror
			window.domOnload.timer = setInterval(function() {
				if(/loaded|complete/.test(document.readyState))
					window.domOnload.preInit(); // call the onload handler
			}, 10);
		window.onload = window.domOnload.preInit; // for other browsers
	},
	preInit : function() { // Dean Edwards/Matthias Miller/John Resig
			if(arguments.callee.done) // quit if this function has already been called
				return;
			arguments.callee.done = true; // flag this function so we don't do the same thing twice
			if(window.domOnload.timer) // kill the timer
				clearInterval(window.domOnload.timer);
			window.domOnload.init();
	}
}
window.domOnload.prepare();