/* map cords for elf office.

Entity Name: WN6 9DJ
x: -2.71455483045242
y: 53.5827851959309 
*/


//
// addLoadEvent()
// Adds event to window.onload without overwriting currently assigned onload functions.
// Function found at Simon Willison's weblog - http://simon.incutio.com/
//

function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
		oldonload();
		func();
		}
	}

}


function mapload() 
{
	var map = new GMap2(document.getElementById("map"));
    map.setCenter(new GLatLng(53.5827851959309, -2.71455483045242), 14);
    map.addControl(new GSmallMapControl());
	map.addControl(new GMapTypeControl());
	map.openInfoWindowHtml(map.getCenter(),"<b>ELF Productivity LTD<\/b><br />Skull House Lane,<br />Appley Bridge,<br />Lancashire,<br />WN6 9DJ.<br /><br/><b>Enter Your Postcode For Directions.</b><form action=\"http://maps.google.co.uk/maps\" method=\"get\"><label for=\"mapsUkSaddr\"></label><input type=\"text\" class=\"text\" name=\"saddr\" id=\"mapsUkSaddr\" value=\"\" size=\"7\" /><input type=\"hidden\" name=\"daddr\" value=\"WN69DJ\" /><input type=\"hidden\" name=\"hl\" value=\"en\" /><input type=\"submit\" class=\"submit\" value=\"Go\" /></form>");
	var point = new GLatLng(53.5827851959309, -2.71455483045242);
	map.addOverlay(new GMarker(point));
}

addLoadEvent(mapload);

//window.onload=function()
//{
// if (GBrowserIsCompatible()) 
//	{
//	;
//	}
//}
