/*
$ /js/googleMaps-1.0.0.js | 2008/02/07 15:40 | 2009/12/03 11:28 $
*/

var map=null;var geocoder=null;var newmarker;var icon=new GIcon();icon.image="/style/content/googlemap_marker.png";icon.shadow="/style/content/googlemap_marker_shadow.png";icon.iconSize=new GSize(54,48);icon.shadowSize=new GSize(54,48);icon.iconAnchor=new GPoint(21,24);icon.infoWindowAnchor=new GPoint(54,0);function load(){if(GBrowserIsCompatible()){map=new GMap2(document.getElementById("map"));map.addControl(new GLargeMapControl());map.addControl(new GMapTypeControl());map.setCenter(new GLatLng(47.171406,19.4875),6);geocoder=new GClientGeocoder()}}function createMarker(F,C,G,B,E){var A=new GLatLng(F,C);var D=new GMarker(A,{draggable:false,icon:icon});if(D){GEvent.addListener(D,"click",function(){map.closeInfoWindow();map.setCenter(A);map.zoomIn()});if(B){GEvent.addListener(D,"mouseover",function(){D.openInfoWindowHtml(B)});if(E==true){D.openInfoWindowHtml(B)}}map.addOverlay(D);map.setCenter(A,G)}return D}function setPan(E,C,A,B){map.closeInfoWindow();var D=map.fromLatLngToDivPixel(new GLatLng(C,A));map.panTo(map.fromDivPixelToLatLng(D));map.setCenter(0,7);if(B){map.openInfoWindow(new GLatLng(C+0.2,A+0.2),B)}}window.onload=function(){load();loadMarkers()};window.onunload=function(){GUnload()};
