var map;function addMarker(marker) {map.addOverlay(marker);var element=new Element('div');element.id='title_'+marker.id;element.name='title['+marker.id+']';element.inject($('markers_data'));var element=new Element('div');element.id='description_'+marker.id;element.name='description['+marker.id+']';element.inject($('markers_data'));GEvent.addListener(marker,'click',function(markerPoint){nameValue=$('title_'+this.id).innerHTML;descriptionValue=$('description_'+this.id).innerHTML;this.openInfoWindowHtml('
'+nameValue+'
'+descriptionValue+'
');});} function mapPanTo(lat,lng) {map.panTo(new GLatLng(lat,lng));} function addIcon(image,gsize,gpoint,gpoint2,elementId) {var icon=new GIcon();icon.image=image;icon.iconSize=gsize;icon.iconAnchor=gpoint;icon.infoWindowAnchor=gpoint2;iconList[elementId]=icon;} function showAddress(address) {geocoder.getLatLng('Polska, Łódź, Łódzkie, '+address,function(point){if(point){map.addOverlay(searchMarker);searchMarker.setLatLng(point);map.setCenter(point,15);}else{}});} function checkMarkers() {bounds=map.getBounds();for(var n=0;n