function initializeMainMap() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng( 58.609392,-3.551717), 14); map.addControl(new GSmallMapControl()); map.enableScrollWheelZoom(); map.addControl(new GMapTypeControl()); map.setMapType(G_HYBRID_MAP); var office = new GMarker(new GLatLng(58.609392,-3.551717)); GEvent.addListener(office, 'click', function(){ office.openInfoWindowHtml('
JPL Shellfish
Unit 1 Seafood Park,
Scrabster Harbour,
Thurso,
Caithness,
KW14 7UJ
'); map.panTo(office.getLatLng()); }); map.addOverlay(office); } }