function initialize()
{initNXGMap(document.getElementById('map'));}
//setup onload function
if(typeof window.addEventListener != 'undefined') //.. gecko, safari, konqueror and standard
	window.addEventListener('load', initialize, false);
else if(typeof document.addEventListener != 'undefined') //.. opera 7
	document.addEventListener('load', initialize, false);
else if(typeof window.attachEvent != 'undefined') //.. win/ie
	window.attachEvent('onload', initialize);
else //** remove this condition to degrade older browsers : mac/ie5 and anything else that gets this far
{
	if(typeof window.onload == 'function') //if there's an existing onload function
	{
		var existing = onload;
		window.onload = function()  //add new onload handler
		{
			existing(); //call existing onload function
			initialize();  //call replacetext onload function
		};
	}
	else  //setup onload function
		window.onload = initialize;
}

