/// document.onLoadHandler
if(!document.onLoadHandler) {
	document.onLoadHandler = function(fnc) {
		//setup onload function
	
		if(typeof window.addEventListener != 'undefined')
		{
			//.. gecko, safari, konqueror and standard
			window.addEventListener('load', fnc, false);
		}
		else if(typeof document.addEventListener != 'undefined')
		{
			//.. opera 7
			document.addEventListener('load', fnc, false);
		}
		else if(typeof window.attachEvent != 'undefined')
		{
			//.. win/ie
			window.attachEvent('onload', fnc);
		}
		
		//** remove this condition to degrade older browsers
		else
		{
			//.. mac/ie5 and anything else that gets this far
			
			//if there's an existing onload function
			if(typeof window.onload == 'function')
			{
				//store it
				var existing = onload;
				
				//add new onload handler
				window.onload = function()
				{
					//call existing onload function
					existing();
					
					//call generic onload function
					var loader = fnc;
					loader();
				};
			}
			else
			{
				//setup onload function
				window.onload = fnc;
			}
		}
	}
}

/// document.getElementById
if(document.all && !document.getElementById) {
    document.getElementById = function(id) {
         return document.all[id];
    }
}