/* Allow multiple window.onload functions
Inspired by http://www.netlobo.com/wom.html */

//make sure this is not defined twice (IE only)
if (typeof loadFunctions == "undefined") {
	var loadFunctions = new Array();

	function loadWindow() {
		for(var i = 0; i < loadFunctions.length; i++)
			eval(loadFunctions[i]);
	}

	function addFunction(funct) {
		loadFunctions[loadFunctions.length] = funct;
	}
}
