/* * Compressed by JSA(www.xidea.org) */ var _maplib_icons=[],_maplib_maps=[],_marker_id=0;createBasicIcon();function Mmap(C,A,_,E,$){if(A!=null){this.lat=-53.71621563247202;this.lng=35.2880859375;this.level=7;if(_!=null)this.lat=_;if(E!=null)this.lng=E;if($!=null)this.level=$;this.container=A;this.mid=C;this.hash="07cc694b9b3fc636710fa08b6922c42b";this.overlays=[];this.loaded=0;_maplib_maps.push(this);this.index=_maplib_maps.length;var B=window.location+"",D=B.match(/#maplib([0-9]+)/);if(D!=null)_marker_id=D[1];else _marker_id=0}}function _map_init(_,A,C,D,$){if(_>0){var B=_maplib_maps[_-1];B.iz=A;B.az=C;B.path=D;B.dir=$;B.drawMap()}}Mmap.prototype.initMap=function(){if(this.loaded<1){var $="http://www.maplib.net/api/api.php?a=mapInfo&mapid="+this.mid+"&n="+this.index+"&hash="+this.hash;GScript($)}};Mmap.prototype.drawMap=function(){var F=this;if(this.loaded<1){this.map=new GMap2(this.container);GEvent.addListener(this.map,"addoverlay",function($){F.overlays.push($)});GEvent.addListener(this.map,"removeoverlay",function($){for(var _=0;_";H.appendChild(_);var E=new GControlPosition(G_ANCHOR_BOTTOM_LEFT,new GSize(64,0));E.apply(document.getElementById("powered_by_maplib"));this.map.getContainer().appendChild(document.getElementById("powered_by_maplib"));this.map.addControl(new GLargeMapControl());this.map.enableScrollWheelZoom()}};Mmap.prototype.getMap=function(){return this.map};Mmap.prototype.showMarkers=function($){var _="http://www.maplib.net/api/api.php?a=show_markers&mapid="+this.mid+"&n="+this.index+"&hash="+this.hash+"&markerid="+_marker_id+"&amount="+$;GScript(_)};function _map_createMarker($,K,_,C,L,B,H,I,M,D,A,J){if($>0){var F=_maplib_maps[$-1];if(!_maplib_icons[B])createIcon(B,H,I,M);var G=new GLatLng(_,K),E=new GMarker(G,{icon:_maplib_icons[B],title:C});E.id=D;E.group=B;F.map.addOverlay(E);GEvent.addListener(E,"click",function(){html2=generateInfo(C,L,D);E.openInfoWindowHtml(html2)});if(J==D){F.map.closeInfoWindow();F.map.panTo(new GLatLng(_,K));F.map.setZoom(A);html2=generateInfo(C,L,D);E.openInfoWindowHtml(html2)}}}Mmap.prototype.addLegendControl=function($){if($!=null){var _="http://www.maplib.net/api/api.php?a=listLegend&mid="+this.mid+"&n="+$.id+"&index="+this.index+"&hash="+this.hash;GScript(_)}};Mmap.prototype.listMarkers=function(_,$){if(_!=null){var A="http://www.maplib.net/api/api.php?a=listMarkers&mid="+this.mid+"&n="+_.id+"&index="+this.index+"&hash="+this.hash+"&amount="+$;GScript(A)}};Mmap.prototype.addListener=function(_,$){GEvent.addListener(this.map,_,$)};Mmap.prototype.clearListeners=function($){GEvent.addListener(this.map,$)};function include_dom(A){var _=document.getElementsByTagName("head").item(0),$=document.createElement("script");$.setAttribute("language","javascript");$.setAttribute("type","text/javascript");$.setAttribute("src",A);_.appendChild($);return false}function _map_html(_,$){document.getElementById(_).innerHTML=$}function _map_recenter($,E,_,A,C,F,D){if($>0){var B=_maplib_maps[$-1];B.map.closeInfoWindow();B.map.panTo(new GLatLng(E,_));B.map.setZoom(A);for(var G=0;G0){var A=_maplib_maps[$-1];for(var F=0;F0)A.overlays[F].show();else A.overlays[F].hide();var C="maplib_markers_"+$;if(document.getElementById(C).rows.length>0){var B=document.getElementById(C).getElementsByTagName("tr");for(var E=0;E0)if(D>0)B[E].style.display="block";else B[E].style.display="none"}}}function rand(){return"&rand="+(Math.random()*Math.random())}function loading(){}function done(){}function failure(){alert("oops...errors occurred")}function generateInfo(_,$,A){$=$.replace(/\[b\](.*?)\[\/b\]/i,"$1");$=$.replace(/\[i\](.*?)\[\/i\]/i,"$1");$=$.replace(/\[u\](.*?)\[\/u\]/i,"$1");$=$.replace(/\[img\](.*?)\[\/img\]/i,"");$=$.replace(/\[url\](.*?)\[\/url\]/i,"$1");$=$.replace(/\[url\=(.*?)\](.*?)\[\/url\]/i,"$2");html2="
"+_+"  

"+$;html2=html2+"
more...
";return html2}function createBasicIcon(){_maplib_icons.basic=new GIcon();_maplib_icons.basic.image="http://www.maplib.net/markers/basic.png";_maplib_icons.basic.iconSize=new GSize(20,34);_maplib_icons.basic.iconAnchor=new GPoint(6,20);_maplib_icons.basic.infoWindowAnchor=new GPoint(5,1);_maplib_icons.basic.imageMap=[5,0,1,4,1,8,3,12,5,20,7,20,8,12,11,8,11,4,7,0]}function createIcon($,B,A,_){B=B.replace(/\.\//i,"http://www.maplib.net/");_maplib_icons[$]=new GIcon(_maplib_icons.basic,B);if(A>0)_maplib_icons[$].iconSize=new GSize(A,_)}function GScript($){document.write("<"+"script src=\""+$+"\""+" type=\"text/javascript\"><"+"/script>")}