var tst5_3409f_0;
var tstint5_3409f_0;
var map5_3409f_0;
var mySlidemap5_3409f_0;
var overviewmap5_3409f_0;

function CancelEvent5_3409f_0(event) { 
	var e = event; 
	if (typeof e.preventDefault == 'function') e.preventDefault(); 
		if (typeof e.stopPropagation == 'function') e.stopPropagation(); 

	if (window.event) { 
		window.event.cancelBubble = true; // for IE 
		window.event.returnValue = false; // for IE 
	} 
}
		
function checkMap5_3409f_0() {
	if (tst5_3409f_0)
		if (tst5_3409f_0.offsetWidth != tst5_3409f_0.getAttribute("oldValue"))
		{
			tst5_3409f_0.setAttribute("oldValue",tst5_3409f_0.offsetWidth);

			if (tst5_3409f_0.getAttribute("refreshMap")==0)
				if (tst5_3409f_0.offsetWidth > 0) {
					clearInterval(tstint5_3409f_0);
					getMap5_3409f_0();
					tst5_3409f_0.setAttribute("refreshMap", 1);
				} 
		}
}

function getMap5_3409f_0() {
	if (tst5_3409f_0.offsetWidth > 0) {
		map5_3409f_0 = new GMap2(document.getElementById('googlemap5_3409f_0'));
		map5_3409f_0.getContainer().style.overflow='hidden';
		map5_3409f_0.addControl(new GLargeMapControl());
		map5_3409f_0.addControl(new GMapTypeControl());
		map5_3409f_0.addMapType(G_PHYSICAL_MAP);
		var point = new GLatLng( 55.96568, -3.19444);
		map5_3409f_0.setCenter(point, 8);
		var xml = new GGeoXml("http://www.lindsayandgilmour.co.uk/kml/branches14.kml");
		map5_3409f_0.addOverlay(xml);
		map5_3409f_0.setMapType(G_NORMAL_MAP);
		map5_3409f_0.disableContinuousZoom();
		map5_3409f_0.disableDoubleClickZoom();
		map5_3409f_0.enableScrollWheelZoom();
		GEvent.addDomListener(tst5_3409f_0, 'DOMMouseScroll', CancelEvent5_3409f_0);
		GEvent.addDomListener(tst5_3409f_0, 'mousewheel', CancelEvent5_3409f_0);
	}
}

window.onload = function()
{
	if (GBrowserIsCompatible()) 
	{
		tst5_3409f_0 = document.getElementById('googlemap5_3409f_0');
	
		if (null != tst5_3409f_0)
		{
			tst5_3409f_0.setAttribute("oldValue",0);
			tst5_3409f_0.setAttribute("refreshMap",0);
			tstint5_3409f_0=setInterval("checkMap5_3409f_0()",500);
		}
	}
}
