
/*------------------------------------------------------------------------
# Map Object Manager Class
# ------------------------------------------------------------------------
# author:    Dmitry Zhuk
# copyright: Copyright (C) 2013 zhuk.cc. All Rights Reserved.
# license:   http://creativecommons.org/licenses/by-nc-nd/4.0/
#            Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
# website:   http://zhuk.cc
# Technical Support Forum: http://forum.zhuk.cc/
# version: 21.12.29
-------------------------------------------------------------------------*/
function jm(iH,jc,hQ,iw,ij,hK){var iW;var it=ij;if(iH!=0){it=jF(hQ,it.toLowerCase());}else{it=it.toLowerCase();}if(jc==2||jc==3){iW=iK(iw,hK.toLowerCase());}else{iW=hK.toLowerCase();}if(jc==0){return iW.indexOf(it)!== -1;}else if(jc==1){return iW.indexOf(iK(iw,it))!== -1;}else if(jc==2){return iW.indexOf(it)!== -1;}else if(jc==3){return iW.indexOf(iK(iw,it))!== -1;}else{return iW.indexOf(it)!== -1;}};function jF(hQ,ij){var ju="";if((typeof hQ!=='undefined')&&(hQ!=null)){for(var jw=0;jw<ij.length;jw++){var iS=hQ[ij.charAt(jw)];if((typeof iS!=='undefined')&&(iS!=null)){ju+=iS;}else{ju+=ij.charAt(jw);}}}else{ju=ij;}return ju;};function iK(iw,ij){var ju="";if((typeof iw!=='undefined')&&(iw!=null)){for(var jw=0;jw<ij.length;jw++){var iQ=iw[ij.charAt(jw)];if((typeof iQ!=='undefined')&&(iQ!=null)){ju+=iQ;}else{ju+=ij.charAt(jw);}}}else{ju=ij;}return ju;};function iE(iH,gW){var ju="";if(iH!=100){if(iH==1){if(gW=="Accent"){ju="ё:е";}else if(gW=="Mapping"){ju="f:а;,:б;d:в;u:г;l:д;t:е;`:ё;;:ж;p:з;b:и;q:й;r:к;k:л;v:м;y:н;j:о;g:п;h:р;c:с;n:т;e:у;a:ф;[:х;w:ц;x:ч;i:ш;o:щ;m:ь;s:ы;]:ъ;':э;.:ю;z:я;<:Б;~:Ё;::Ж;{:Х;}:Ъ;QQ:Э";}else{ju="";}}else if(iH==2){if(gW=="Accent"){ju="";}else if(gW=="Mapping"){ju="f:ф;d:д;u:у;l:л;t:т;`:ѝ;;:ч;p:п;b:б;q:љ;r:р;k:к;v:в;y:ѕ;j:ј;g:г;h:х;c:с;n:н;e:е;a:а;[:ш;w:љ;x:џ;i:и;o:о;m:м;s:с;]:ѓ;':ќ;z:з;\\:ж;~:Ѝ;::Ч;{:Ш;}:Ѓ;QQ:Ќ;|:Ж";}else{ju="";}}else{ju="";}}return ju;};function zhomMapObjectManager(){zhomMapObjectManager.ac+=1;this.bQ=zhomMapObjectManager.ac;this.G=[];this.eU=[];this.fX=[];this.gn=[];this.gG=[];this.aY=[];this.bL=[];this.bj="";this.al=[];this.ct=[];this.bE=[];this.fr=[];this.dS=[];this.gy="";this.gZ="";this.hd=[];this.iY;this.iJ=0;this.ay=false;this.bm=false;this.az=false;this.ie="Independent";this.kR=true;this.bI=false;this.aZ=false;this.eB=false;this.iX=0;this.placemarkCenterZoom=false;this.placemarkCenterZoomBounds;this.kF="";this.iv=false;this.er=false;this.bz=0;this.bB="";this.ft="";this.bO="";this.bF="";this.hY="";this.aw=0;this.bV="";this.aQ="";this.bq=0;this.aD=0;this.fC=0;this.map=null;this.hm="";this.dj=null;this.aj=jQuery.noConflict();this.bN=[];this.jq=[];this.jE=[];this.R="0";this.bK=null;this.ah=null;this.aH=null;this.jQ=null;this.ld=null;this.kq=null;this.bs=null;this.kY=null;this.kb=null;this.jK=null;this.lz=null;this.kt=null;this.iL=0;this.jn=0;this.ii=0;this.eV=0;this.jD=0;this.fq="";this.eh="";this.eH=0;this.gz=5;this.ix=0;this.iZ="";this.lw="";this.gh=0;this.fH=0;this.eQ=0;this.eE=0;this.eo="";this.markerlistsearchType=0;this.markerlistsearchMappingType=0;this.markerlistsearchMapping="";this.markerlistsearchAccent="";this.markerlistsearchAccentSide='0';this.dN=2;this.grouplistsearchType=0;this.grouplistsearchMappingType=0;this.grouplistsearchMapping="";this.grouplistsearchAccent="";this.grouplistsearchAccentSide='0';this.cZ=false;this.cW=null;zhomMapObjectManager.aO[this.bQ]=this;this.fF='a-markergroup_';};zhomMapObjectManager.ac=0;zhomMapObjectManager.aO=[];zhomMapObjectManager.prototype.setGroupCountObject=function(t){this.bj=t;};zhomMapObjectManager.prototype.setGoGoogleText=function(t){this.iZ=t;};zhomMapObjectManager.prototype.setPlacemarkDateFormat=function(t){this.lw=t;};zhomMapObjectManager.prototype.setGoGoogle=function(t){this.ix=t;};zhomMapObjectManager.prototype.setPanelHeightDeltaFix=function(t){this.gz=t;};zhomMapObjectManager.prototype.setCompatibleMode=function(t){this.jD=t;};zhomMapObjectManager.prototype.setAjaxBufferSizePlacemark=function(t){this.iL=t;};zhomMapObjectManager.prototype.setAjaxBufferSizePath=function(t){this.jn=t;};zhomMapObjectManager.prototype.setAjaxBufferSizeRoute=function(t){this.ii=t;};zhomMapObjectManager.prototype.setPlacemarkLoadType=function(t){this.eV=t;};zhomMapObjectManager.prototype.setMap=function(t){this.map=t;};zhomMapObjectManager.prototype.setObjectGroupManagementType=function(t){this.ie=t;};zhomMapObjectManager.prototype.setMapLanguageTag=function(t){this.hm=t;};zhomMapObjectManager.prototype.addManagedGroup=function(cq,gm,jj,bP,bC){var hc;hc=new Object();hc.id=cq;hc.title=gm;hc.description=jj;hc.minzoom=bP;hc.maxzoom=bC;this.fX.push(hc);};zhomMapObjectManager.prototype.setPlacemarkListSearchMapping=function(gW,jc,iw,hQ){this.markerlistsearchMappingType=gW;this.markerlistsearchAccent=iw;this.markerlistsearchAccentSide=jc;this.markerlistsearchMapping=hQ;};zhomMapObjectManager.prototype.setGroupListSearchMapping=function(gW,jc,iw,hQ){this.grouplistsearchMappingType=gW;this.grouplistsearchAccent=iw;this.grouplistsearchAccentSide=jc;this.grouplistsearchMapping=hQ;};zhomMapObjectManager.prototype.setPanelInfowin=function(t){this.eH=t;};zhomMapObjectManager.prototype.setCenterPlacemark=function(t){this.gy=t;};zhomMapObjectManager.prototype.addActionPlacemarkAction=function(t){this.hd.push(t);};zhomMapObjectManager.prototype.setActionPlacemark=function(t){this.gZ=t;};zhomMapObjectManager.prototype.setRequestURL=function(t){this.bV=t;};zhomMapObjectManager.prototype.setContactAttrs=function(t){this.aQ=t;};zhomMapObjectManager.prototype.setUserContact=function(t){this.bq=t;};zhomMapObjectManager.prototype.setUserUser=function(t){this.aD=t;};zhomMapObjectManager.prototype.setServiceDirection=function(t){this.bz=t;};zhomMapObjectManager.prototype.setIcoIcon=function(t){this.bB=t;};zhomMapObjectManager.prototype.setIcoIcon4Size=function(t){this.ft=t;};zhomMapObjectManager.prototype.setIcoUtils=function(t){this.bO=t;};zhomMapObjectManager.prototype.setIcoDir=function(t){this.bF=t;};zhomMapObjectManager.prototype.setArticleID=function(t){this.hY=t;this.fF='a-markergroup'+t+"_";};zhomMapObjectManager.prototype.setPlacemarkRating=function(t){this.aw=t;};zhomMapObjectManager.prototype.setPlacemarkTitleTag=function(t){this.fq=t;};zhomMapObjectManager.prototype.setPlacemarkCreationInfo=function(t){this.fC=t;};zhomMapObjectManager.prototype.setFeature4Control=function(t){this.eh=t;};zhomMapObjectManager.prototype.addOverlayMapType=function(t){this.gn.push(t);};zhomMapObjectManager.prototype.addGroundOverlay=function(t){this.gG.push(t);};zhomMapObjectManager.prototype.setHoverMarkerType=function(t){this.R=t;};zhomMapObjectManager.prototype.setUserMarkersFilter=function(t){this.bs=String(t).replace(/\s+/g,"");};zhomMapObjectManager.prototype.setPlacemarkCategotyList=function(t){this.ld=String(t).replace(/\s+/g,"");};zhomMapObjectManager.prototype.setPlacemarkGroupList=function(t){this.jQ=String(t).replace(/\s+/g,"");};zhomMapObjectManager.prototype.setExcludePlacemarkList=function(t){this.aH=String(t).replace(/\s+/g,"");};zhomMapObjectManager.prototype.setPlacemarkList=function(t){this.ah=String(t).replace(/\s+/g,"");};zhomMapObjectManager.prototype.setPathCategotyList=function(t){this.lz=String(t).replace(/\s+/g,"");};zhomMapObjectManager.prototype.setPathGroupList=function(t){this.jK=String(t).replace(/\s+/g,"");};zhomMapObjectManager.prototype.setExcludePathList=function(t){this.kb=String(t).replace(/\s+/g,"");};zhomMapObjectManager.prototype.setPathTagList=function(t){this.kt=String(t).replace(/\s+/g,"");};zhomMapObjectManager.prototype.setPlacemarkTagList=function(t){this.kq=String(t).replace(/\s+/g,"");};zhomMapObjectManager.prototype.setPathList=function(t){this.kY=String(t).replace(/\s+/g,"");};zhomMapObjectManager.prototype.setMapID=function(t){this.bK=String(t).replace(/\s+/g,"");};zhomMapObjectManager.prototype.enableObjectGroupManagement=function(t){this.az=true;this.kR=t;};zhomMapObjectManager.prototype.enablePlacemarkCenterZoom=function(t){this.placemarkCenterZoom=true;this.placemarkCenterZoomBounds=t;};zhomMapObjectManager.prototype.disableAutoPan=function(){this.cZ=true;this.cW={autoPan:false};};zhomMapObjectManager.prototype.enablePlacemarkList=function(){this.er=true;};zhomMapObjectManager.prototype.enableOpacityOverlayControl=function(){this.iv=true;};zhomMapObjectManager.prototype.enablePlacemarkGroupManagement=function(){this.bI=true;};zhomMapObjectManager.prototype.enablePathGroupManagement=function(){this.aZ=true;};zhomMapObjectManager.prototype.enablePathXGroupManagement=function(){this.eB=true;};zhomMapObjectManager.prototype.enablePlacemarkClusterization=function(){this.ay=true;};zhomMapObjectManager.prototype.enablePlacemarkClusterizationByGroup=function(){this.bm=true;};zhomMapObjectManager.prototype.setMarkerListPos=function(t){this.fH=t;};zhomMapObjectManager.prototype.setMarkerListContent=function(t){this.eQ=t;};zhomMapObjectManager.prototype.setMarkerListAction=function(t){this.eE=t;};zhomMapObjectManager.prototype.setMarkerListCSSStyle=function(t){this.eo=t;};zhomMapObjectManager.prototype.setLinkType=function(t){this.dN=t;};zhomMapObjectManager.prototype.enableManagementByCategory=function(kd,lk,kh){var ae=this.aj;this.kF=kd;ae(document).ready(function(){ae.fn.zTree.init(ae("#"+kd),lk,kh);});};zhomMapObjectManager.prototype.PlacemarkFire=function(co){zhomMapObjectManager.prototype.cD(this,co);};zhomMapObjectManager.prototype.PlacemarkFireLink=function(co){zhomMapObjectManager.prototype.dc(this,co);};zhomMapObjectManager.prototype.cD=function(l,co){var mw=l;var bi;if(typeof mw.bN[co]!=='undefined'){bi=mw.bN[co];bi.fire("click");}};zhomMapObjectManager.prototype.dc=function(l,co){var mw=l;var bi;var ak=mw.map;if(typeof mw.bN[co]!=='undefined'){bi=mw.bN[co];var cI=bi.zhomPlacemark_sitelocation;var bM=parseInt(bi.zhomPlacemark_zoombyclick);if(mw.dN==2){if(bM!=100){ak.setView(bi.getLatLng(),bM);}if(cI!=""){window.open(cI);}}else if(mw.dN==3){if(bM!=100){ak.setView(bi.getLatLng(),bM);}if(cI!=""){window.location=cI;}}else{bi.fire("click");}}};zhomMapObjectManager.prototype.PlacemarkAdd=function(lX,co,T,K){zhomMapObjectManager.prototype.cE(this,lX,co,T,K);};zhomMapObjectManager.prototype.cE=function(l,lX,co,T,K){var mw=l;var bv=lX;var bi;mw.bN[co]=T;if(typeof mw.aY[bv]!=='undefined'){mw.aY[bv]=1;bi=mw.bL[bv];bi.push(T);mw.bL[bv]=bi;}else{mw.aY[bv]=1;mw.bL[bv]=[T];}};zhomMapObjectManager.prototype.hI=function(l,t){var mw=l;var hC;var ho;hC=mw.gn;for(var i=0;i<hC.length;i++){ho=hC[i];ho.setOpacity(t);}hC=mw.gG;for(var i=0;i<hC.length;i++){ho=hC[i];ho.setOpacity(t);}};zhomMapObjectManager.prototype.setOverlayOpacity=function(t){zhomMapObjectManager.prototype.hI(this,t);};zhomMapObjectManager.prototype.PathAdd=function(lX,bH){zhomMapObjectManager.prototype.dh(this,lX,bH);};zhomMapObjectManager.prototype.PathXAdd=function(lX,bH){zhomMapObjectManager.prototype.ep(this,lX,bH);};zhomMapObjectManager.prototype.dh=function(l,lX,bH){var mw=l;var bv=lX;var bi;if(typeof mw.ct[bv]!=='undefined'){mw.ct[bv]=1;bi=mw.bE[bv];bi.push(bH);mw.bE[bv]=bi;}else{mw.ct[bv]=1;mw.bE[bv]=[bH];}};zhomMapObjectManager.prototype.iV=function(l,ao,bH){var mw=l;bH.addTo(mw.map);if(mw.iv){if(ao=="1"){mw.addGroundOverlay(bH);}}};zhomMapObjectManager.prototype.allObjectsAddPlacemark=function(cq,T){zhomMapObjectManager.prototype.eL(this,cq,T);};zhomMapObjectManager.prototype.eL=function(l,eW,T){var mw=l;var bv=eW;var bi;if(typeof mw.eU[bv]!=='undefined'){bi=mw.eU[bv];bi.push(T);mw.eU[bv]=bi;}else{mw.eU[bv]=[T];}};zhomMapObjectManager.prototype.ep=function(l,lX,bH){var mw=l;var bv=lX;var bi;if(typeof mw.fr[bv]!=='undefined'){mw.fr[bv]=1;bi=mw.dS[bv];bi.push(bH);mw.dS[bv]=bi;}else{mw.fr[bv]=1;mw.dS[bv]=[bH];}};zhomMapObjectManager.prototype.PlacemarkCount=function(){return this.bL.length;};zhomMapObjectManager.prototype.bX=function(ee,dn){var F;var aG=ee;var aU;for(var i=0;i<aG.length;i++){F=aG[i];aU=this.G[i];if((typeof F!=='undefined')&&(F!=null)){if((typeof aU!=='undefined')&&(aU!=null)){if(this.az&&this.bI){if(aU!=0){this.aI(i,dn);}else{this.bZ(i,dn);}}else{this.aI(i,dn);}}else{this.aI(i,dn);}}}};zhomMapObjectManager.prototype.cs=function(ml,hw){var F;var ht=ml;var aU;for(var i=0;i<ht.length;i++){F=ht[i];aU=this.G[i];if((typeof F!=='undefined')&&(F!=null)){if((typeof aU!=='undefined')&&(aU!=null)){if(this.az&&this.eB){if(F!=0){this.hM(i,hw);}else{this.cR(i,hw);}}else{this.hM(i,hw);}}else{this.hM(i,hw);}}}};zhomMapObjectManager.prototype.dq=function(ml,hw){var F;var ht=ml;var aU;for(var i=0;i<ht.length;i++){F=ht[i];aU=this.G[i];if((typeof F!=='undefined')&&(F!=null)){if((typeof aU!=='undefined')&&(aU!=null)){if(this.az&&this.aZ){if(F!=0){this.ji(i,hw);}else{this.dw(i,hw);}}else{this.ji(i,hw);}}else{this.ji(i,hw);}}}};zhomMapObjectManager.prototype.cY=function(){var mw=this;var cp;var bv;var F;var eu;var gN;var db=[mw.aY,mw.ct,mw.fr];for(var ia=0;ia<db.length;ia++){cp=db[ia];for(var i=0;i<cp.length;i++){bv=cp[i];gN=0;if((typeof bv!=='undefined')&&(bv!=null)){if(mw.bj=="10"||mw.bj=="11"||mw.bj=="12"||mw.bj=="20"||mw.bj=="21"||mw.bj=="22"){F=mw.bL[i];if((typeof F!=='undefined')&&(F!=null)){for(var j=0;j<F.length;j++){gN=gN+1;}}}if(mw.bj=="10"||mw.bj=="11"||mw.bj=="12"||mw.bj=="30"||mw.bj=="31"||mw.bj=="32"){F=mw.bE[i];if((typeof F!=='undefined')&&(F!=null)){for(var j=0;j<F.length;j++){gN=gN+1;}}}if(mw.bj=="10"||mw.bj=="11"||mw.bj=="12"||mw.bj=="30"||mw.bj=="31"||mw.bj=="32"){F=mw.dS[i];if((typeof F!=='undefined')&&(F!=null)){for(var j=0;j<F.length;j++){gN=gN+1;}}}}if(mw.bj=="10"||mw.bj=="11"||mw.bj=="12"||mw.bj=="20"||mw.bj=="21"||mw.bj=="22"||mw.bj=="30"||mw.bj=="31"||mw.bj=="32"){if(gN!=0){eu=document.getElementById("s-markergroup_"+i);if(eu!=null){eu.innerHTML=' '+gN+' ';}}}}}};zhomMapObjectManager.prototype.ab=function(lX,aB){var ai=aB;var bg;var bu;var bv;var eu;if((typeof ai!=='undefined')&&(ai!=null)){if(this.az&&this.bI){var aU=this.G[lX];if((typeof aU!=='undefined')&&(aU==1)){if(this.ay){if(this.bm){bg=this.al[lX];bg.addLayers(ai);}else{bg=this.al[0];bg.addLayers(ai);}}else{for(var j=0;j<ai.length;j++){bu=ai[j];bu.addTo(this.map);}}if(this.er){for(var j=0;j<ai.length;j++){bu=ai[j];bv="zhom_pmlist_item_"+this.hY+"_"+bu.zhomPlacemarkID;eu=document.getElementById(bv);if(eu!=null){eu.style.display='block';}}}}}else{if(this.ay){if(this.bm){bg=this.al[lX];bg.addLayers(ai);}else{bg=this.al[0];bg.addLayers(ai);}}else{for(var j=0;j<ai.length;j++){bu=ai[j];bu.addTo(this.map);}}if(this.er){for(var j=0;j<ai.length;j++){bu=ai[j];bv="zhom_pmlist_item_"+this.hY+"_"+bu.zhomPlacemarkID;eu=document.getElementById(bv);if(eu!=null){eu.style.display='block';}}}}}};zhomMapObjectManager.prototype.aN=function(lX,aB){var ai=aB;var bg;var bu;var bv;var eu;var ak=this.map;if((typeof ai!=='undefined')&&(ai!=null)){if(this.az&&this.bI){var aU=this.G[lX];if((typeof aU==='undefined')||(aU==0)){if(this.ay){if(this.bm){bg=this.al[lX];bg.removeLayers(ai);}else{bg=this.al[0];bg.removeLayers(ai);}}else{for(var j=0;j<ai.length;j++){bu=ai[j];ak.removeLayer(bu);}}if(this.er){for(var j=0;j<ai.length;j++){bu=ai[j];bv="zhom_pmlist_item_"+this.hY+"_"+bu.zhomPlacemarkID;eu=document.getElementById(bv);if(eu!=null){eu.style.display='none';}}}}}else{if(this.ay){if(this.bm){bg=this.al[lX];bg.removeLayers(ai);}else{bg=this.al[0];bg.removeLayers(ai);}}else{for(var j=0;j<ai.length;j++){bu=ai[j];ak.removeLayer(bu);}}if(this.er){for(var j=0;j<ai.length;j++){bu=ai[j];bv="zhom_pmlist_item_"+this.hY+"_"+bu.zhomPlacemarkID;eu=document.getElementById(bv);if(eu!=null){eu.style.display='none';}}}}}};zhomMapObjectManager.prototype.aI=function(lX,dn){var ai=dn[lX];this.ab(lX,ai);};zhomMapObjectManager.prototype.bZ=function(lX,dn){var ai=dn[lX];this.aN(lX,ai);};zhomMapObjectManager.prototype.hM=function(lX,hw){var ai=hw[lX];this.eb(lX,ai);};zhomMapObjectManager.prototype.cR=function(lX,hw){var ai=hw[lX];this.fh(lX,ai);};zhomMapObjectManager.prototype.ji=function(lX,hw){var ai=hw[lX];this.dE(lX,ai);};zhomMapObjectManager.prototype.dw=function(lX,hw){var ai=hw[lX];this.cn(lX,ai);};zhomMapObjectManager.prototype.ClusterAdd=function(lX,ar){this.al[lX]=ar;};zhomMapObjectManager.prototype.aq=function(l,v,bD){if(v.dataexists==1){var mw=l;var ak=mw.map;var aR=parseInt(v.actionbyclick);var bM=parseInt(v.zoombyclick);bD.zhomPlacemark_actionbyclick=aR;bD.zhomPlacemark_zoombyclick=bM;if(aR==0){if(bM!=100){ak.setView(bD.getLatLng(),bM);}}else if(aR==1){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var ha=eval(v.contentstring);var aC="";if(v.contentstyle!=""){aC=JSON.decode(v.contentstyle);}bD.zhomPlacemark_contentstring=ha;bD.zhomPlacemark_titleplacemark=v.titleplacemark;if(mw.eH==1){}else{if(aC!=""){bD.bindPopup(L.popup(aC).setContent(ha));}else{if(mw.cZ){bD.bindPopup(L.popup(mw.cW).setContent(ha));}else{bD.bindPopup(ha);}}}if(mw.fH!=0){Map_Animate_Marker_Hide(ak,bD);}if(mw.eH==1){mw.panelShowPlacemarkContent(ha);}else{bD.openPopup();}}else if(aR==2){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var cI=v.hrefsite;bD.zhomPlacemark_sitelocation=cI;window.open(cI);}else if(aR==3){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var cI=v.hrefsite;bD.zhomPlacemark_sitelocation=cI;window.location=cI;}else if(aR==4){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var ha=eval(v.contentstring);var aC="";if(v.contentstyle!=""){aC=JSON.decode(v.contentstyle);}bD.zhomPlacemark_contentstring=ha;bD.zhomPlacemark_titleplacemark=v.titleplacemark;if(mw.eH==1){}else{if(aC!=""){bD.bindPopup(L.popup(aC).setContent(ha));}else{if(mw.cZ){bD.bindPopup(L.popup(mw.cW).setContent(ha));}else{bD.bindPopup(ha);}}}if(mw.fH!=0){Map_Animate_Marker_Hide(ak,bD);}if(mw.eH==1){mw.panelShowPlacemarkContentTabs(ha);}else{bD.openPopup();var gN=document.getElementById("zhom-tablinks"+v.id+"_1");if(gN!=null){gN.click();}}}else if(aR==10){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var cI="";if(v.hrefcontact!=""){cI=v.hrefcontact;}else if(v.contactid!=""&&parseInt(v.contactid)!=0){cI=mw.bV+'index.php?option=com_contact&amp;view=contact&amp;id='+v.contactid;}bD.zhomPlacemark_sitelocation=cI;if(cI!=""){window.open(cI);}}else if(aR==11){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var cI="";if(v.hrefcontact!=""){cI=v.hrefcontact;}else if(v.contactid!=""&&parseInt(v.contactid)!=0){cI=mw.bV+'index.php?option=com_contact&amp;view=contact&amp;id='+v.contactid;}bD.zhomPlacemark_sitelocation=cI;if(cI!=""){window.location=cI;}}else if(aR==12){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var cI="";if(v.hrefarticle!=""){cI=v.hrefarticle;}else if(v.articleid!=""&&parseInt(v.articleid)!=0){cI=mw.bV+'index.php?option=com_content&amp;view=article&amp;id='+v.articleid;}bD.zhomPlacemark_sitelocation=cI;if(cI!=""){window.open(cI);}}else if(aR==13){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var cI="";if(v.hrefarticle!=""){cI=v.hrefarticle;}else if(v.articleid!=""&&parseInt(v.articleid)!=0){cI=mw.bV+'index.php?option=com_content&amp;view=article&amp;id='+v.articleid;}bD.zhomPlacemark_sitelocation=cI;if(cI!=""){window.location=cI;}}else if(aR==14){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var cI="";if(v.hrefdetail!=""){cI=v.hrefdetail;}else if(v.di!=""&&parseInt(v.di)!=0){cI=v.di;}bD.zhomPlacemark_sitelocation=cI;if(cI!=""){window.open(cI);}}else if(aR==15){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var cI="";if(v.hrefdetail!=""){cI=v.hrefdetail;}else if(v.di!=""&&parseInt(v.di)!=0){cI=v.di;}bD.zhomPlacemark_sitelocation=cI;if(cI!=""){window.location=cI;}}else{alert("Unexpected action by click: "+aR);}bD.zhomPlacemarkConfigLoaded=1;}else{}};zhomMapObjectManager.prototype.hF=function(l,bD){var mw=l;var ak=mw.map;var aR=parseInt(bD.zhomPlacemark_actionbyclick);var bM=parseInt(bD.zhomPlacemark_zoombyclick);if(aR==0){if(bM!=100){ak.setView(bD.getLatLng(),bM);}}else if(aR==1){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var ha=bD.zhomPlacemark_contentstring;if(mw.fH!=0){Map_Animate_Marker_Hide(ak,bD);}if(mw.eH==1){mw.panelShowPlacemarkContent(ha);}else{bD.openPopup();}}else if(aR==2){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var cI=bD.zhomPlacemark_sitelocation;window.open(cI);}else if(aR==3){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var cI=bD.zhomPlacemark_sitelocation;window.location=cI;}else if(aR==4){if(bM!=100){ak.setView(bD.getLatLng(),bM);}if(mw.fH!=0){Map_Animate_Marker_Hide(ak,bD);}var ha=bD.zhomPlacemark_contentstring;if(mw.eH==1){mw.panelShowPlacemarkContentTabs(ha);}else{if(mw.fH!=0){Map_Animate_Marker_Hide(ak,bD);}bD.openPopup();var gN=document.getElementById("zhom-tablinks"+bD.zhomPlacemarkID+"_1");if(gN!=null){gN.click();}}}else if(aR==10){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var cI=bD.zhomPlacemark_sitelocation;window.open(cI);}else if(aR==11){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var cI=bD.zhomPlacemark_sitelocation;window.location=cI;}else if(aR==12){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var cI=bD.zhomPlacemark_sitelocation;window.open(cI);}else if(aR==13){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var cI=bD.zhomPlacemark_sitelocation;window.location=cI;}else if(aR==14){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var cI=bD.zhomPlacemark_sitelocation;window.open(cI);}else if(aR==15){if(bM!=100){ak.setView(bD.getLatLng(),bM);}var cI=bD.zhomPlacemark_sitelocation;window.location=cI;}else{alert("Unexpected action by click: "+aR);}};zhomMapObjectManager.prototype.hx=function(l,v,hA,gS){if(v.dataexists==1){var mw=l;var ak=mw.map;var aR=parseInt(v.actionbyclick);hA.zhomPath_actionbyclick=aR;if(aR==0){}else if(aR==1){var ha=eval(v.contentstring);hA.zhomPath_contentstring=ha;hA.zhomPath_titlepath=v.titlepath;if(mw.eH==1){}else{if(mw.cZ){hA.bindPopup(L.popup(mw.cW).setContent(ha));}else{hA.bindPopup(ha);}}if(mw.fH!=0){Map_Animate_Marker_Hide(ak,hA);}if(mw.eH==1){mw.panelShowPathContent(ha);}else{hA.openPopup(gS);}}else if(aR==2){var cI=v.hrefsite;hA.zhomPath_sitelocation=cI;window.open(cI);}else if(aR==3){var cI=v.hrefsite;hA.zhomPath_sitelocation=cI;window.location=cI;}else{alert("Unexpected action by click: "+aR);}hA.zhomPathConfigLoaded=1;}else{}};zhomMapObjectManager.prototype.gJ=function(l,hA,gS){var mw=l;var ak=mw.map;var aR=hA.zhomPath_actionbyclick;if(aR==0){}else if(aR==1){var ha=hA.zhomPath_contentstring;if(mw.fH!=0){Map_Animate_Marker_Hide(ak,hA);}if(mw.eH==1){mw.panelShowPathContent(ha);}else{hA.openPopup(gS);hA.getPopup().bringToFront();}}else if(aR==2){var cI=hA.zhomPath_sitelocation;window.open(cI);}else if(aR==3){var cI=hA.zhomPath_sitelocation;window.location=cI;}else{alert("Unexpected action by click: "+aR);}};zhomMapObjectManager.prototype.GetPlacemarkAJAX=function(V){var bw=this.bV+'index.php?option=com_zhosmmap&no_html=1&format=raw&task=getAJAXPlacemarkList';var ak=this.map;var fl=this.bK;var nd=this.ah;var mZ=this.aH;var eD=this.jQ;var aW=this.ld;var mL=this.bs;var mw=this;var lD=this.eV;var nl=this.kq;var av={mapid:fl,placemarklistid:nd,explacemarklistid:mZ,grouplistid:eD,categorylistid:aW,taglistid:nl,usermarkersfilter:mL,placemarkloadtype:lD,x1:ak.getBounds().getSouthWest().lng,y1:ak.getBounds().getSouthWest().lat,x2:ak.getBounds().getNorthEast().lng,y2:ak.getBounds().getNorthEast().lat};if(V=='mootools'){var dr=new Request({url:bw,method:'post',data:av,async:true,onSuccess:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=JSON.decode(responseText);zhomMapObjectManager.prototype.aA(V,mw,bc);},onRequest:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},onFailure:function(xhr){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert(xhr.status+','+xhr.statusText+','+xhr.responseText);}}).send();}else if(V=='jquery'){var ae=mw.aj;ae.ajax({url:bw,type:'post',data:av,dataType:'json',async:true,success:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=responseText;zhomMapObjectManager.prototype.aA(V,mw,bc);},beforeSend:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},fail:function(xhr,textStatus){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert("Error"+textStatus);}});}};zhomMapObjectManager.prototype.eZ=function(V,l,ed){var mw=l;var bf=ed;var bv;var bw=mw.bV+'index.php?option=com_zhosmmap&no_html=1&format=raw&task=getAJAXPlacemarks';var av={ajaxarray:bf,mapmarkerlistpos:mw.fH,mapmarkerlistcontent:mw.eQ,mapmarkerlistaction:mw.eE,mapmarkerlistcssstyle:mw.eo,maparticleid:mw.hY,iconicon:mw.bB,iconiconsize:mw.ft,placemarkdateformat:mw.lw};if(V=='mootools'){var dr=new Request({url:bw,method:'post',data:av,async:true,onSuccess:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=JSON.decode(responseText);zhomMapObjectManager.prototype.da(V,mw,bc);},onRequest:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},onFailure:function(xhr){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert(xhr.status+','+xhr.statusText+','+xhr.responseText);}}).send();}else if(V=='jquery'){var ae=mw.aj;ae.ajax({url:bw,type:'post',data:av,dataType:'json',async:true,success:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=responseText;zhomMapObjectManager.prototype.da(V,mw,bc);},beforeSend:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},fail:function(xhr,textStatus){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert("Error"+textStatus);}});}};zhomMapObjectManager.prototype.aA=function(V,l,aK){if(aK.dataexists==1){var bJ=aK.markers;var mw=l;var bf=[];var bv;var fv=mw.iL;var cN;cN=0;for(var i=0;i<bJ.length;i++){bv=bJ[i].id;if(typeof mw.bN[bv]!=='undefined'){}else{bf.push(bv);if(fv!=0){cN+=1;if(cN>=fv){cN=0;var ba=bf.slice(0);zhomMapObjectManager.prototype.eZ(V,mw,ba);bf=[];}}}}var ba=bf.slice(0);if(ba.length!=0){zhomMapObjectManager.prototype.eZ(V,mw,ba);}bf=[];}else{}};zhomMapObjectManager.prototype.da=function(V,l,v){var aG=[];var cv=[];var bi;var dP;var bJ=v.markers;var mw=l;var bv;var aV;if(v.dataexists==1){for(var i=0;i<bJ.length;i++){bv=bJ[i].id;aV=bJ[i].markergroup;if(typeof mw.bN[bv]!=='undefined'){}else{dP=mw.dC(V,mw,bJ[i]);if(mw.fH!=0){var fo;if(mw.eQ<100){fo='var markerUL = document.getElementById("OMapsMarkerUL'+mw.hY+'");';}else{fo='var markerUL = document.getElementById("OMapsMarkerTABLEBODY'+mw.hY+'");';}if(bJ[i].placemarklistcontent!=""){eval(fo+bJ[i].placemarklistcontent);}}if((typeof aG[aV]!=='undefined')&&(aG[aV]!=null)){aG[aV]+=1;bi=cv[aV];bi.push(dP);cv[aV]=bi;}else{aG[aV]=1;cv[aV]=[dP];}}}mw.bX(aG,cv);mw.refreshPlacemarkCenterZoomBounds();mw.refreshPlacemarkListSearch();mw.cY();mw.jh();}else{}};zhomMapObjectManager.prototype.dC=function(V,l,an){var mw=l;var aX=L.latLng(an.latitude,an.longitude);var aF;var ig=mw.placemarkCenterZoomBounds;var hZ=new Object();var hN={};var fD;hZ["draggable"]=false;if(an.markercontent=="0"||an.markercontent=="1"||an.markercontent=="9"){hZ["title"]=an.title;}hN=JSON.parse(JSON.stringify(hZ));if((an.baloon=="5"||an.baloon=="52"||an.baloon=="54")&&an.overridemarkericon=="0"){}else{if(an.icondefinition!=""){fD=eval(an.icondefinition);hN["icon"]=fD;}}aF=L.marker(aX,hN);if(an.openbaloon==1){mw.iY=aF;mw.iJ=1;}if(an.baloon=="2"||an.baloon=="22"||an.baloon=="52"){aF.setBouncingOptions({exclusive:false,elastic:false});aF.bounce();}else if(an.baloon=="4"||an.baloon=="24"||an.baloon=="54"){aF.setBouncingOptions({exclusive:false,elastic:true});aF.bounce();}zhomMapObjectManager.prototype.cE(mw,an.markergroup,an.id,aF,an);aF.zhomRating=an.rating_value;aF.zhomPlacemarkID=an.id;aF.zhomPlacemarkDescription=an.description;aF.zhomContactAttrs=mw.aQ;aF.zhomUserContact=mw.bq;aF.zhomUserUser=mw.aD;aF.zhomOriginalPosition=aF.getLatLng();aF.zhomTitle=an.title;aF.zhomCreateddate=an.createddate;aF.zhomCreateddateUser=an.createddate_user;aF.zhomIncludeInList=an.includeinlist;mw.allObjectsAddPlacemark(an.id,aF);zhomMapObjectManager.prototype.as(V,mw,aF);if(mw.R!="0"){if(an.do_hover!=""){zhomMapObjectManager.prototype.aS(V,mw,aF);}}if(mw.gy==an.id){mw.map.setView(aX,mw.map.getZoom());}if(mw.gZ==an.id){for(var i=0;i<mw.hd.length;i++){if(mw.hd[i]=="click"){aF.fire("click");}else if(mw.hd[i]=="exclusive elastic bounce"){aF.setBouncingOptions({exclusive:true,elastic:true});aF.bounce();}else if(mw.hd[i]=="elastic bounce"){aF.setBouncingOptions({exclusive:false,elastic:true});aF.bounce();}else if(mw.hd[i]=="exclusive bounce"){aF.setBouncingOptions({exclusive:true,elastic:false});aF.bounce();}else if(mw.hd[i]=="bounce"){aF.setBouncingOptions({exclusive:false,elastic:false});aF.bounce();}else{dK=mw.bB+mw.hd[i].replace("#","%23")+".png";aF.setIcon(dK);}}}if(mw.placemarkCenterZoom){ig.extend(aX);}return aF;};zhomMapObjectManager.prototype.jh=function(){var mw=this;var aF;if(mw.iJ==1){aF=mw.iY;aF.fire("click");}};zhomMapObjectManager.prototype.PlacemarkListAction=function(cq){var mw=this;var ak=mw.map;if(typeof mw.eU[cq]!=='undefined'){var fm=mw.eU[cq];var es=fm[0];var fs=es.getLatLng();if(mw.eE==0){ak.setView(fs,ak.getZoom());}else if(mw.eE==1){es.fire("click");}else if(mw.eE==11){ak.setView(fs,ak.getZoom());es.fire("click");}else if(mw.eE==2){ak.setView(fs,ak.getZoom());Map_Animate_Marker(ak,es);}else if(mw.eE==3){Map_Animate_Marker(ak,es);es.fire("click");}else if(mw.eE==12){Map_Animate_Marker(ak,es);ak.setView(fs,ak.getZoom());es.fire("click");}else{ak.setView(fs,ak.getZoom());}}};zhomMapObjectManager.prototype.PlacemarkAddListeners=function(V,an){var mw=this;mw.as(V,mw,an);};zhomMapObjectManager.prototype.as=function(V,l,am){am.zhomPlacemarkConfigLoaded=0;am.on('click',function(event){var mw=l;var bw=mw.bV+'index.php?option=com_zhosmmap&no_html=1&format=raw&task=getPlacemarkDetails';var av={id:this.zhomPlacemarkID,contactattrs:this.zhomContactAttrs,usercontact:this.zhomUserContact,useruser:this.zhomUserUser,servicedirection:mw.bz,iconicon:mw.bB,iconutil:mw.bO,icondir:mw.bF,articleid:mw.hY,placemarkrating:mw.aw,placemarktitletag:mw.fq,language:mw.hm,showcreateinfo:mw.fC,panelinfowin:mw.eH,gogoogle:mw.ix,gogoogle_text:mw.iZ,placemarkdateformat:mw.lw};var aL=this;if(am.zhomPlacemarkConfigLoaded=="1"){setTimeout(function f(){zhomMapObjectManager.prototype.hF(mw,am);},5);}else{if(V=='mootools'){var dr=new Request({url:bw,method:'post',data:av,async:true,onSuccess:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=JSON.decode(responseText);zhomMapObjectManager.prototype.aq(mw,bc,am);},onRequest:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},onFailure:function(xhr){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert(xhr.status+','+xhr.statusText+','+xhr.responseText);}}).send();}else if(V=='jquery'){var ae=mw.aj;ae.ajax({url:bw,type:'post',data:av,dataType:'json',async:true,success:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=responseText;zhomMapObjectManager.prototype.aq(mw,bc,am);},beforeSend:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},fail:function(xhr,textStatus){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert("Error"+textStatus);}});}}});};zhomMapObjectManager.prototype.PlacemarkAddHoverListeners=function(V,an){var mw=this;zhomMapObjectManager.prototype.aS(V,mw,an);};zhomMapObjectManager.prototype.aS=function(V,l,am){am.zhomPlacemarkHoverConfigLoaded=0;am.on('mouseover',function(event){var mw=l;var bw=mw.bV+'index.php?option=com_zhosmmap&no_html=1&format=raw&task=getPlacemarkHoverText';var av={id:this.zhomPlacemarkID};var aL=this;if(am.zhomPlacemarkHoverConfigLoaded=="1"){setTimeout(function f(){zhomMapObjectManager.prototype.gF(mw,am);},5);}else{if(V=='mootools'){var dr=new Request({url:bw,method:'post',data:av,async:true,onSuccess:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=JSON.decode(responseText);zhomMapObjectManager.prototype.bh(mw,bc,am);},onRequest:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},onFailure:function(xhr){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert(xhr.status+','+xhr.statusText+','+xhr.responseText);}}).send();}else if(V=='jquery'){var ae=mw.aj;ae.ajax({url:bw,type:'post',data:av,dataType:'json',async:true,success:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=responseText;zhomMapObjectManager.prototype.bh(mw,bc,am);},beforeSend:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},fail:function(xhr,textStatus){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert("Error"+textStatus);}});}}});am.on('mouseout',function(event){var mw=l;if(mw.R!="0"){this.closeTooltip();}});};zhomMapObjectManager.prototype.GetPathAJAX=function(V){var bw=this.bV+'index.php?option=com_zhosmmap&no_html=1&format=raw&task=getAJAXPathList';var ak=this.map;var fl=this.bK;var hu=this.kY;var gu=this.kb;var eD=this.jK;var aW=this.lz;var jM=this.kt;var mw=this;var av={mapid:fl,pathlistid:hu,expathlistid:gu,grouplistid:eD,categorylistid:aW,pathtaglistid:jM};if(V=='mootools'){var dr=new Request({url:bw,method:'post',data:av,async:true,onSuccess:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=JSON.decode(responseText);zhomMapObjectManager.prototype.jy(V,mw,bc);},onRequest:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},onFailure:function(xhr){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert(xhr.status+','+xhr.statusText+','+xhr.responseText);}}).send();}else if(V=='jquery'){var ae=mw.aj;ae.ajax({url:bw,type:'post',data:av,dataType:'json',async:true,success:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=responseText;zhomMapObjectManager.prototype.jy(V,mw,bc);},beforeSend:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},fail:function(xhr,textStatus){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert("Error"+textStatus);}});}};zhomMapObjectManager.prototype.jy=function(V,l,aK){if(aK.dataexists==1){var hk=aK.paths;var mw=l;var ib=[];var bv;var fv=mw.jn;var cN;cN=0;for(var i=0;i<hk.length;i++){bv=hk[i].id;if(typeof mw.jq[bv]!=='undefined'){}else{ib.push(bv);if(fv!=0){cN+=1;if(cN>=fv){cN=0;var jk=ib.slice(0);zhomMapObjectManager.prototype.ic(V,mw,jk);ib=[];}}}}var jk=ib.slice(0);if(jk.length!=0){zhomMapObjectManager.prototype.ic(V,mw,jk);}ib=[];}else{}};zhomMapObjectManager.prototype.ic=function(V,l,by){var mw=l;var ib=by;var bv;var bw=mw.bV+'index.php?option=com_zhosmmap&no_html=1&format=raw&task=getAJAXPaths';var av={ajaxarray:ib,maparticleid:mw.hY};if(V=='mootools'){var dr=new Request({url:bw,method:'post',data:av,async:true,onSuccess:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=JSON.decode(responseText);zhomMapObjectManager.prototype.iP(V,mw,bc);},onRequest:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},onFailure:function(xhr){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert(xhr.status+','+xhr.statusText+','+xhr.responseText);}}).send();}else if(V=='jquery'){var ae=mw.aj;ae.ajax({url:bw,type:'post',data:av,dataType:'json',async:true,success:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=responseText;zhomMapObjectManager.prototype.iP(V,mw,bc);},beforeSend:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},fail:function(xhr,textStatus){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert("Error"+textStatus);}});}};zhomMapObjectManager.prototype.iP=function(V,l,v){var bi;var fS=[];var gR=[];var gU;var hq=[];var ht=[];var hf=[];var hJ;var gs=[];var hn;var gC=[];var hk=v.paths;var mw=l;var bv;var aV;if(v.dataexists==1){for(var i=0;i<hk.length;i++){bv=hk[i].id;aV=hk[i].markergroup;if(typeof mw.jq[bv]!=='undefined'){}else{mw.jq[bv]=hk[i];hq=mw.iT(V,mw,hk[i]);for(var j=0;j<hq.length;j++){gU=hq[j];if((typeof fS[aV]!=='undefined')&&(fS[aV]!=null)){fS[aV]+=1;bi=gR[aV];bi.push(gU);gR[aV]=bi;}else{fS[aV]=1;gR[aV]=[gU];}}gC=mw.iO(V,mw,hk[i]);}}mw.cs(fS,gR);mw.dq(ht,hf);}else{}};zhomMapObjectManager.prototype.iT=function(V,l,gM){var mw=l;var kS;var kI=[];var ko;var mD=[];var kk=[];var lg=[];var gK;if(gM.path!=""){if(gM.objecttype=="0"){ko=gM.path;mD=ko.split(";");for(var i=0;i<mD.length;i++){kk=mD[i].split(",");lg.push(L.latLng(kk[0],kk[1]));}gK=new Object();if(parseInt(gM.geodesic)==1){gK.geodesic=true;}else{gK.geodesic=false;}gK.color=gM.color;gK.opacity=parseFloat(gM.opacity);gK.weight=parseFloat(gM.weight);switch(parseInt(gM.linecap)){case 0:gK.lineCap='round';break;case 1:gK.lineCap='butt';break;case 2:gK.lineCap='square';break;default:gK.lineCap='round';break;}switch(parseInt(gM.linejoin)){case 0:gK.lineJoin='round';break;case 1:gK.lineJoin='arcs';break;case 2:gK.lineJoin='bevel';break;case 3:gK.lineJoin='miter';break;case 4:gK.lineJoin='miter-clip';break;default:gK.lineJoin='round';break;}if(gM.dasharray!=""){gK.dashArray=gM.dasharray;}if(gM.dashoffset!=""){gK.dashOffset=gM.dashoffset;}kS=L.polyline(lg,gK);kS.zhomPathID=gM.id;kS.zhomObjectType=gM.objecttype;kS.zhomInfowinContent="";kS.zhomTitle=gM.title;if(gM.hover_color!=""){kS.zhomHoverChangeColor=1;kS.zhomStrokeColor=gM.color;}else{kS.zhomHoverChangeColor=0;}zhomMapObjectManager.prototype.ep(mw,gM.markergroup,kS);kI.push(kS);zhomMapObjectManager.prototype.addPathListeners(V,mw,kS);if(mw.R!="0"||gM.hoverhtml!=""||gM.hover_color!=""){zhomMapObjectManager.prototype.addPathHoverListeners(V,mw,kS);}}else if(gM.objecttype=="1"){ko=gM.path;mD=ko.split(";");for(var i=0;i<mD.length;i++){kk=mD[i].split(",");lg.push(L.latLng(kk[0],kk[1]));}gK=new Object();if(gM.geodesic=="1"){gK.geodesic=true;}else{gK.geodesic=false;}gK.color=gM.color;gK.opacity=parseFloat(gM.opacity);gK.weight=parseFloat(gM.weight);if(gM.fillcolor!=""){gK.fillColor=gM.fillcolor;}if(gM.fillopacity!=""){gK.fillOpacity=gM.fillopacity;}switch(parseInt(gM.linejoin)){case 0:gK.lineJoin='round';break;case 1:gK.lineJoin='arcs';break;case 2:gK.lineJoin='bevel';break;case 3:gK.lineJoin='miter';break;case 4:gK.lineJoin='miter-clip';break;default:gK.lineJoin='round';break;}if(gM.dasharray!=""){gK.dashArray=gM.dasharray;}if(gM.dashoffset!=""){gK.dashOffset=gM.dashoffset;}kS=L.polygon(lg,gK);kS.zhomPathID=gM.id;kS.zhomObjectType=gM.objecttype;kS.zhomInfowinContent="";kS.zhomTitle=gM.title;if(gM.hover_color!=""||gM.hover_fillcolor!=""){kS.zhomHoverChangeColor=1;kS.zhomStrokeColor=gM.color;kS.zhomFillColor=gM.fillcolor;}else{kS.zhomHoverChangeColor=0;}zhomMapObjectManager.prototype.ep(mw,gM.markergroup,kS);kI.push(kS);zhomMapObjectManager.prototype.addPathListeners(V,mw,kS);if(mw.R!="0"||gM.hoverhtml!=""||gM.hover_color!=""){zhomMapObjectManager.prototype.addPathHoverListeners(V,mw,kS);}}else if(gM.objecttype=="2"){ko=gM.path;mD=ko.split(";");for(var i=0;i<mD.length;i++){kk=mD[i].split(",");gK=new Object();gK.radius=parseFloat(gM.radius);gK.color=gM.color;gK.opacity=parseFloat(gM.opacity);gK.weight=parseFloat(gM.weight);if(gM.fillcolor!=""){gK.fillColor=gM.fillcolor;}if(gM.fillopacity!=""){gK.fillOpacity=gM.fillopacity;}if(gM.dasharray!=""){gK.dashArray=gM.dasharray;}if(gM.dashoffset!=""){gK.dashOffset=gM.dashoffset;}kS=L.circle(L.latLng(kk[0],kk[1]),gK);kS.zhomPathID=gM.id;kS.zhomObjectType=gM.objecttype;kS.zhomInfowinContent="";kS.zhomTitle=gM.title;if(gM.hover_color!=""||gM.hover_fillcolor!=""){kS.zhomHoverChangeColor=1;kS.zhomStrokeColor=gM.color;kS.zhomFillColor=gM.fillcolor;}else{kS.zhomHoverChangeColor=0;}zhomMapObjectManager.prototype.ep(mw,gM.markergroup,kS);kI.push(kS);zhomMapObjectManager.prototype.addPathListeners(V,mw,kS);if(mw.R!="0"||gM.hoverhtml!=""||gM.hover_color!=""){zhomMapObjectManager.prototype.addPathHoverListeners(V,mw,kS);}}}else{}}return kI;};zhomMapObjectManager.prototype.ip=function(V,l,gM){var mw=l;var kS;var kI=[];var gK;if(gM.kmllayer!=""){gK=new Object();if(gM.showtype=="0"){gK.preserveViewport=false;}else if(gM.showtype=="1"){gK.preserveViewport=true;}else{gK.preserveViewport=false;}if(gM.suppressinfowindows=="1"){gK.suppressInfoWindows=true;}else{gK.suppressInfoWindows=false;}kS=new google.maps.KmlLayer(gM.kmllayer,gK);zhomMapObjectManager.prototype.dh(mw,gM.markergroup,kS);kI.push(kS);}return kI;};zhomMapObjectManager.prototype.iO=function(V,l,gM){var mw=l;var kS;var kI=[];var gK;var nm;var kk=[];if(gM.imgurl!=""&&gM.imgbounds!=""){kk=gM.imgbounds.split(";");if(kk.length==4){nm=L.latLngBounds(L.latLng(kk[0],kk[1]),L.latLng(kk[2],kk[3]));gK=new Object();if(gM.imgopacity!=""){gK.opacity=parseFloat(gM.imgopacity);}else{gK.opacity=1;}if(gM.imgclickable=="1"){gK.interactive=true;}else{gK.interactive=false;}kS=L.imageOverlay(gM.imgurl,nm,gK);kS.zhomPathID=gM.id;kS.zhomInfowinContent="";kS.zhomTitle=gM.title;zhomMapObjectManager.prototype.iV(mw,gM.imgopacitymanage,kS);zhomMapObjectManager.prototype.addPathListeners(V,mw,kS);kI.push(kS);}}return kI;};zhomMapObjectManager.prototype.PathAddListeners=function(V,gM){var mw=this;mw.addPathListeners(V,mw,gM);};zhomMapObjectManager.prototype.addPathListeners=function(V,l,hD){hD.zhomPathConfigLoaded=0;hD.on('click',function(event){var mw=l;var bw=mw.bV+'index.php?option=com_zhosmmap&no_html=1&format=raw&task=getPathDetails';var av={id:this.zhomPathID,iconicon:mw.bB,iconutil:mw.bO,icondir:mw.bF,articleid:mw.hY,placemarktitletag:mw.fq,language:mw.hm,panelinfowin:mw.eH};var aL=this;if(hD.zhomPathConfigLoaded=="1"){setTimeout(function f(){zhomMapObjectManager.prototype.gJ(mw,hD,event.latlng);},5);}else{if(V=='mootools'){var dr=new Request({url:bw,method:'post',data:av,async:true,onSuccess:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=JSON.decode(responseText);zhomMapObjectManager.prototype.hx(mw,bc,hD,event.latlng);},onRequest:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},onFailure:function(xhr){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert(xhr.status+','+xhr.statusText+','+xhr.responseText);}}).send();}else if(V=='jquery'){var ae=mw.aj;ae.ajax({url:bw,type:'post',data:av,dataType:'json',async:true,success:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=responseText;zhomMapObjectManager.prototype.hx(mw,bc,hD,event.latlng);},beforeSend:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},fail:function(xhr,textStatus){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert("Error"+textStatus);}});}}});};zhomMapObjectManager.prototype.PathAddHoverListeners=function(V,gM){var mw=this;zhomMapObjectManager.prototype.addPathHoverListeners(V,mw,gM);};zhomMapObjectManager.prototype.addPathHoverListeners=function(V,l,hD){hD.zhomPathHoverConfigLoaded=0;hD.on('mouseover',function(event){var mw=l;var bw=mw.bV+'index.php?option=com_zhosmmap&no_html=1&format=raw&task=getPathHoverText';var av={id:this.zhomPathID};var hE=this;if(hD.zhomPathHoverConfigLoaded=="1"){setTimeout(function f(){zhomMapObjectManager.prototype.gB(mw,hD);},5);}else{if(V=='mootools'){var dr=new Request({url:bw,method:'post',data:av,async:true,onSuccess:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=JSON.decode(responseText);zhomMapObjectManager.prototype.hB(mw,bc,hD);},onRequest:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},onFailure:function(xhr){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert(xhr.status+','+xhr.statusText+','+xhr.responseText);}}).send();}else if(V=='jquery'){var ae=mw.aj;ae.ajax({url:bw,type:'post',data:av,dataType:'json',async:true,success:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=responseText;zhomMapObjectManager.prototype.hB(mw,bc,hD);},beforeSend:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},fail:function(xhr,textStatus){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert("Error"+textStatus);}});}}});hD.on('mouseout',function(event){var mw=l;var gK;if(mw.R!="0"){this.closeTooltip();}if(hD.zhomHoverChangeColor=="1"){gK=new Object();if(hD.zhomObjectType=="0"){if(hD.zhomStrokeColor!=""){gK.color=hD.zhomStrokeColor;}}else if(hD.zhomObjectType=="1"||hD.zhomObjectType=="2"){if(hD.zhomStrokeColor!=""){gK.color=hD.zhomStrokeColor;}if(hD.zhomFillColor!=""){gK.fillColor=hD.zhomFillColor;}}hD.setStyle(gK);}});};zhomMapObjectManager.prototype.bh=function(l,v,bD){if(v.dataexists==1){var mw=l;var ak=mw.map;var fB="";bD.zhomPlacemark_hoverstring=fB;if(mw.R!="0"){fB=eval(v.hoverstring);bD.zhomPlacemark_hoverstring=fB;if(fB!=""){if(mw.R=="10"){bD.bindTooltip(fB,{sticky:true});}else{bD.bindTooltip(fB);}bD.openTooltip();}}bD.zhomPlacemarkHoverConfigLoaded=1;}else{}};zhomMapObjectManager.prototype.gF=function(l,bD){var mw=l;var ak=mw.map;var fB="";if(mw.R!="0"&&bD.zhomPlacemark_hoverstring!=""){fB=bD.zhomPlacemark_hoverstring;if(fB!=""){bD.openTooltip();}}};zhomMapObjectManager.prototype.hB=function(l,v,hA){if(v.dataexists==1){var mw=l;var ak=mw.map;var gK;var fB="";hA.zhomPath_hoverstring=fB;if(mw.R!="0"){if(v.hoverstring!=""){fB=eval(v.hoverstring);hA.zhomPath_hoverstring=fB;if(fB!=""){if(mw.R=="10"){hA.bindTooltip(fB,{sticky:true});}else{hA.bindTooltip(fB);}hA.openTooltip();}}}hA.zhomPath_objecttype=v.objecttype;hA.zhomPath_hover_color="";hA.zhomPath_hover_fillcolor="";gK=new Object();if(v.objecttype=="0"){if(v.hover_color!=""){gK.color=v.hover_color;hA.zhomPath_hover_color=v.hover_color;}}else if(v.objecttype=="1"||v.objecttype=="2"){if(v.hover_color!=""){gK.color=v.hover_color;hA.zhomPath_hover_color=v.hover_color;}if(v.hover_fillcolor!=""){gK.fillColor=v.hover_fillcolor;hA.zhomPath_hover_fillcolor=v.hover_fillcolor;}}hA.setStyle(gK);hA.zhomPathHoverConfigLoaded=1;}else{}};zhomMapObjectManager.prototype.gB=function(l,hA){var mw=l;var ak=mw.map;var gK;var fB="";if(mw.R!="0"&&hA.zhomPath_hoverstring!=""){fB=hA.zhomPath_hoverstring;if(fB!=""){hA.openTooltip();}}gK=new Object();if(hA.zhomPath_objecttype=="0"){if(hA.zhomPath_hover_color!=""){gK.color=hA.zhomPath_hover_color;}}else if(hA.zhomPath_objecttype=="1"||hA.zhomPath_objecttype=="2"){if(hA.zhomPath_hover_color!=""){gK.color=hA.zhomPath_hover_color;}if(hA.zhomPath_hover_fillcolor!=""){gK.fillColor=hA.zhomPath_hover_fillcolor;}}hA.setStyle(gK);};zhomMapObjectManager.prototype.GroupStateDefine=function(lX,bn){this.G[lX]=bn;};zhomMapObjectManager.prototype.dE=function(lX,ax){var ai=ax;var bx;var aU;var np;var mi;if((typeof ai!=='undefined')&&(ai!=null)){if(this.az&&this.aZ){aU=this.G[lX];if((typeof aU!=='undefined')&&(aU==1)){for(var j=0;j<ai.length;j++){bx=ai[j];bx.addTo(this.map);if((typeof bx.zhomElevation!=='undefined')&&(bx.zhomElevation==1)){nh=bx.zhomElevationObject;np=document.getElementsByClassName("elevation-control");mi=np[nh.zhomElevationIndex-1];if(typeof mi!=='undefined'){mi.style.display="block";}}}}}else{for(var j=0;j<ai.length;j++){bx=ai[j];bx.addTo(this.map);}}}};zhomMapObjectManager.prototype.cn=function(lX,ax){var ai=ax;var bx;var aU;var ak=this.map;var nh;var np;var mi;if((typeof ai!=='undefined')&&(ai!=null)){if(this.az&&this.aZ){aU=this.G[lX];if((typeof aU==='undefined')||(aU==0)){for(var j=0;j<ai.length;j++){bx=ai[j];ak.removeLayer(bx);if((typeof bx.zhomElevation!=='undefined')&&(bx.zhomElevation==1)){nh=bx.zhomElevationObject;np=document.getElementsByClassName("elevation-control");mi=np[nh.zhomElevationIndex-1];if(typeof mi!=='undefined'){mi.style.display="none";}}}}}else{for(var j=0;j<ai.length;j++){bx=ai[j];ak.removeLayer(bx);}}}};zhomMapObjectManager.prototype.eb=function(lX,ax){var ai=ax;var bx;var aU;if((typeof ai!=='undefined')&&(ai!=null)){if(this.az&&this.eB){aU=this.G[lX];if((typeof aU!=='undefined')&&(aU==1)){for(var j=0;j<ai.length;j++){bx=ai[j];bx.addTo(this.map);}}}else{for(var j=0;j<ai.length;j++){bx=ai[j];bx.addTo(this.map);}}}};zhomMapObjectManager.prototype.fh=function(lX,ax){var ai=ax;var bx;var aU;var ak=this.map;if((typeof ai!=='undefined')&&(ai!=null)){if(this.az&&this.eB){aU=this.G[lX];if((typeof aU==='undefined')||(aU==0)){for(var j=0;j<ai.length;j++){bx=ai[j];ak.removeLayer(bx);}}}else{for(var j=0;j<ai.length;j++){bx=ai[j];ak.removeLayer(bx);}}}};zhomMapObjectManager.prototype.GroupStateToggle=function(lX){if(this.az){if(this.ie=="OnlyOneActive"){this.GroupStateHideAll();var aU=this.G[lX];if((typeof aU==='undefined')||(aU==0)){this.GroupStateShow(lX);}else{this.GroupStateHide(lX);}}else{var aU=this.G[lX];if((typeof aU==='undefined')||(aU==0)){this.GroupStateShow(lX);}else{this.GroupStateHide(lX);}}}};zhomMapObjectManager.prototype.GroupStateShow=function(lX){var F;if(this.az){var aU=this.G[lX];if((typeof aU==='undefined')||(aU==0)){this.G[lX]=1;if(this.bI){F=this.bL[lX];if(typeof F!=='undefined'){this.ab(lX,F);}}if(this.aZ){F=this.bE[lX];if(typeof F!=='undefined'){this.dE(lX,F);}}if(this.eB){F=this.dS[lX];if(typeof F!=='undefined'){this.eb(lX,F);}}if(this.kR){if(this.jD==1){var fM=this.fF+lX;var af=document.getElementById(fM);bk(af,"active");}else if(this.jD==2){var ae=this.aj;var fM="#"+this.fF+lX;var gN=ae(fM).hasClass("active");if(!gN){ae(fM).addClass("active");}}else{var fM=this.fF+lX;var af=document.getElementById(fM);af.addClass("active");}}}}};zhomMapObjectManager.prototype.GroupStateHide=function(lX){var F;if(this.az){var aU=this.G[lX];if((typeof aU!=='undefined')&&(aU==1)){this.G[lX]=0;if(this.bI){F=this.bL[lX];if(typeof F!=='undefined'){this.aN(lX,F);}}if(this.aZ){F=this.bE[lX];if(typeof F!=='undefined'){this.cn(lX,F);}}if(this.eB){F=this.dS[lX];if(typeof F!=='undefined'){this.fh(lX,F);}}if(this.kR){if(this.jD==1){var fM=this.fF+lX;var af=document.getElementById(fM);aE(af,"active");}else if(this.jD==2){var ae=this.aj;var fM="#"+this.fF+lX;var gN=ae(fM).hasClass("active");if(gN){ae(fM).removeClass("active");}}else{var fM=this.fF+lX;var af=document.getElementById(fM);af.removeClass("active");}}}}};zhomMapObjectManager.prototype.GroupStateShowAll=function(){var bv;if(this.az){for(var i=1;i<this.G.length;i++){bv=this.G[i];if(typeof bv!=='undefined'){this.GroupStateShow(i);}}}};zhomMapObjectManager.prototype.GroupStateHideAll=function(){var bv;if(this.az){for(var i=1;i<this.G.length;i++){bv=this.G[i];if(typeof bv!=='undefined'){this.GroupStateHide(i);}}}};zhomMapObjectManager.prototype.GroupStateShowAllCategoryGroup=function(){var ae=this.aj;var jP=this.kF;var kr=ae.fn.zTree.getZTreeObj(jP);kr.checkAllNodes(true);};zhomMapObjectManager.prototype.GroupStateHideAllCategoryGroup=function(){var ae=this.aj;var jP=this.kF;var kr=ae.fn.zTree.getZTreeObj(jP);kr.checkAllNodes(false);};zhomMapObjectManager.prototype.InitializeByGroupState=function(){var bv;var F;for(var i=0;i<this.G.length;i++){bv=this.G[i];if(typeof bv!=='undefined'){if(this.az){if(this.bI){if(bv==1){F=this.bL[i];if(typeof F!=='undefined'){this.ab(i,F);}}else{F=this.bL[i];if(typeof F!=='undefined'){this.aN(i,F);}}}else{F=this.bL[i];if(typeof F!=='undefined'){this.ab(i,F);}}}else{F=this.bL[i];if(typeof F!=='undefined'){this.ab(i,F);}}if(this.az){if(this.aZ){if(bv==1){F=this.bE[i];if(typeof F!=='undefined'){this.dE(i,F);}}else{F=this.bE[i];if(typeof F!=='undefined'){this.cn(i,F);}}}else{F=this.bE[i];if(typeof F!=='undefined'){this.dE(i,F);}}}else{F=this.bE[i];if(typeof F!=='undefined'){this.dE(i,F);}}if(this.az){if(this.eB){if(bv==1){F=this.dS[i];if(typeof F!=='undefined'){this.eb(i,F);}}else{F=this.dS[i];if(typeof F!=='undefined'){this.fh(i,F);}}}else{F=this.dS[i];if(typeof F!=='undefined'){this.eb(i,F);}}}else{F=this.dS[i];if(typeof F!=='undefined'){this.eb(i,F);}}}}this.cY();};zhomMapObjectManager.prototype.PlacemarkRateMouseOver=function(cq,cU,dv){var mw=this;var aJ;for(var i=1;i<=cU;i++){aJ=document.getElementById("placemarkRateImage"+cq+"_"+i);aJ.src=mw.bO+"star1_10.png";}for(var i=cU+1;i<=dv;i++){aJ=document.getElementById("placemarkRateImage"+cq+"_"+i);aJ.src=mw.bO+"star1_00.png";}};zhomMapObjectManager.prototype.PlacemarkRateMouseOut=function(cq,cU,dv){var mw=this;var aJ;for(var i=1;i<=dv;i++){aJ=document.getElementById("placemarkRateImage"+cq+"_"+i);aJ.src=mw.bO+"star1_00.png";}};zhomMapObjectManager.prototype.PlacemarkRateDivMouseOut=function(cq,dv){var mw=this;zhomMapObjectManager.prototype.PlacemarkRateDivShowRate(mw,cq,dv);};zhomMapObjectManager.prototype.PlacemarkRateDivShowRate=function(l,cq,dv){var mw=l;var dk=dv;if(mw.bN[cq]===undefined){alert("Unable to find placemark with ID = "+cq);}else{var cP=mw.bN[cq];var cJ=cP.zhomRating;var dF=Math.floor(cJ);var cd;var aJ;if(cJ>dk){cJ=dk;dF=dk;}cd=0;if(cJ==0){cd++;aJ=document.getElementById("placemarkRateImage"+cq+"_"+cd);aJ.src=mw.bO+"star0_00.png";}else if(dF==0&&cJ>0){cd++;aJ=document.getElementById("placemarkRateImage"+cq+"_"+cd);aJ.src=mw.bO+"star0_05.png";}else{for(var i=0;i<dF;i++){cd++;aJ=document.getElementById("placemarkRateImage"+cq+"_"+cd);aJ.src=mw.bO+"star0_10.png";}if(Math.ceil((cJ-dF)*10)>4){cd++;aJ=document.getElementById("placemarkRateImage"+cq+"_"+cd);aJ.src=mw.bO+"star0_05.png";}}for(var i=cd;i<dk;i++){aJ=document.getElementById("placemarkRateImage"+cq+"_"+(i+1));aJ.src=mw.bO+"star0_00.png";}}};zhomMapObjectManager.prototype.PlacemarkRateDivText=function(l,cq,cf){var mw=l;if(mw.bN[cq]===undefined){alert("Unable to find placemark with ID = "+cq);}else{var dg=document.getElementById("rateContentResult"+cq);dg.innerHTML=cf;}};zhomMapObjectManager.prototype.PlacemarkRateUpdate=function(V,cq,cL,dv,eF){var mw=this;if(mw.bN[cq]===undefined){alert("Unable to find placemark with ID = "+cq);}else{var bw=mw.bV+'index.php?option=com_zhosmmap&no_html=1&format=raw&task=setPlacemarkRating';var av={id:cq,rating:cL,language:eF};if(V=='mootools'){var dr=new Request({url:bw,method:'post',data:av,async:true,onSuccess:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=JSON.decode(responseText);zhomMapObjectManager.prototype.be(mw,bc,cq,dv);},onRequest:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},onFailure:function(xhr){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert(xhr.status+','+xhr.statusText+','+xhr.responseText);}}).send();}else if(V=='jquery'){var ae=mw.aj;ae.ajax({url:bw,type:'post',data:av,dataType:'json',async:true,success:function(responseText){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';var bc=responseText;zhomMapObjectManager.prototype.be(mw,bc,cq,dv);},beforeSend:function(){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='block';},fail:function(xhr,textStatus){var H=document.getElementById("OMapsLoading"+mw.hY);H.style.display='none';alert("Error"+textStatus);}});}}};zhomMapObjectManager.prototype.be=function(l,v,cq,dv){var mw=l;if(v.dataexists==1){if(mw.bN[cq]===undefined){alert("Unable to find placemark with ID = "+cq);}else{var cP=mw.bN[cq];cP.zhomRating=v.averagerating;zhomMapObjectManager.prototype.PlacemarkRateDivShowRate(mw,cq,dv);zhomMapObjectManager.prototype.PlacemarkRateDivText(mw,cq,v.errortext);}}else{zhomMapObjectManager.prototype.PlacemarkRateDivText(mw,cq,v.errortext);}};zhomMapObjectManager.prototype.enablePlacemarkListSearch=function(iM){var mw=this;mw.gh=1;mw.markerlistsearchType=iM;zhomMapObjectManager.prototype.hG(mw);};zhomMapObjectManager.prototype.iq=function(l){var mw=l;var ak=mw.map;var ig=mw.placemarkCenterZoomBounds;if(mw.placemarkCenterZoom){ak.fitBounds(ig);}};zhomMapObjectManager.prototype.refreshPlacemarkCenterZoomBounds=function(){var mw=this;zhomMapObjectManager.prototype.iq(mw);};zhomMapObjectManager.prototype.refreshPlacemarkListSearch=function(){var mw=this;zhomMapObjectManager.prototype.hG(mw);};zhomMapObjectManager.prototype.hG=function(l){var mw=l;var ae=mw.aj;var fm,bJ,bd;var av=[];var eA;var iM;if(mw.gh==1){fm=mw.eU;iM=mw.markerlistsearchType;for(var i=0;i<fm.length;i++){bJ=fm[i];if((typeof bJ!=='undefined')&&(bJ!=null)){bd=bJ[0];if((typeof bd!=='undefined')&&(bd!=null)){if(bd.zhomIncludeInList==1){eA=new Object();eA.label=bd.zhomTitle;eA.value=bd.zhomPlacemarkID;eA.description=bd.zhomPlacemarkDescription;av.push(eA);}else{}}}}var jo;var ja;var je;var hO=[];var iu=[];var jA;var iA;var iU;var jg=[];var jl=[];jA=mw.markerlistsearchMappingType;iA=mw.markerlistsearchAccentSide;if(jA!=0){if(jA!=100){if(jA==1){mw.markerlistsearchAccent=iE(jA,"Accent");mw.markerlistsearchMapping=iE(jA,"Mapping");;}else if(jA==2){iA=0;mw.markerlistsearchAccent=iE(jA,"Accent");mw.markerlistsearchMapping=iE(jA,"Mapping");;}}if(mw.markerlistsearchAccent!=""){iU=mw.markerlistsearchAccent;iU=iU.replace(/;;/g,";\n");iU=iU.replace(/QQ/g,"\"");jg=iU.split(";");for(var jw=0;jw<jg.length;jw++){if((typeof jg[jw]!=='undefined')&&jg[jw]!=null&&jg[jw]!=""){iU=jg[jw];iU=iU.replace("\n",";");iU=iU.replace("::","\n:");jl=iU.split(":");if((typeof jl[0]!=='undefined')&&(jl[0]!=null)&&(jl[0]!="")&&(typeof jl[1]!=='undefined')&&(jl[1]!=null)&&(jl[1]!="")){jl[0]=jl[0].replace("\n",":");if(typeof jo==='undefined'){jo=new Object();}jo[jl[0]]=jl[1];}else{alert("Wrong synonym definition \""+jg[jw]+"\" at pair position "+(jw+1));}}else{alert("Empty synonym definition at pair position "+(jw+1));}}}if(mw.markerlistsearchMapping!=""){je=mw.markerlistsearchMapping;je=je.replace(/;;/g,";\n");je=je.replace(/QQ/g,"\"");hO=je.split(";");for(var jw=0;jw<hO.length;jw++){if((typeof hO[jw]!=='undefined')&&hO[jw]!=null&&hO[jw]!=""){je=hO[jw];je=je.replace("\n",";");je=je.replace("::","\n:");iu=je.split(":");if((typeof iu[0]!=='undefined')&&(iu[0]!=null)&&(iu[0]!="")&&(typeof iu[1]!=='undefined')&&(iu[1]!=null)&&(iu[1]!="")){iu[0]=iu[0].replace("\n",":");if(typeof ja==='undefined'){ja=new Object();}ja[iu[0]]=iu[1];}else{alert("Wrong mapping definition \""+hO[jw]+"\" at pair position "+(jw+1));}}else{alert("Empty mapping definition at pair position "+(jw+1));}}}}function ZhOMLightwellPlacemarkList(request,response){var jw,hT,cP,hL=[];if(request.term===""){response([]);return;}for(jw=0,hT=av.length;jw<hT;jw++){cP=av[jw];if(iM==0){if(jm(jA,iA,ja,jo,request.term,cP.label)){hL.push(cP);}}else if(iM==1){if(jm(jA,iA,ja,jo,request.term,cP.label)||jm(jA,iA,ja,jo,request.term,cP.description)){hL.push(cP);}}else{if(jm(jA,iA,ja,jo,request.term,cP.label)){hL.push(cP);}}}response(hL);};ae("#OMapsMarkerListSearchAutocomplete"+mw.hY).autocomplete({source:ZhOMLightwellPlacemarkList,focus:function(event,ui){if((typeof ui.item!=='undefined')&&(ui.item!=null)){ae("#OMapsMarkerListSearchAutocomplete"+mw.hY).val(ui.item.label);}return false;},select:function(event,ui){if((typeof ui.item!=='undefined')&&(ui.item!=null)){var fu="zhom_pmlist_item_"+mw.hY+"_"+ui.item.value;var eG=document.getElementById(fu);if(typeof eG.onclick=="function"){eG.onclick.apply(eG);}else{}ae("#OMapsMarkerListSearchAutocomplete"+mw.hY).val(ui.item.label);}return false;}});}};zhomMapObjectManager.prototype.enableGroupListSearch=function(iM){var mw=this;mw.iX=1;mw.grouplistsearchType=iM;zhomMapObjectManager.prototype.gc(mw);};zhomMapObjectManager.prototype.gc=function(l){var mw=l;var ae=mw.aj;var hv,gI;var av=[];var gY;var iM;if(mw.iX==1){hv=mw.fX;iM=mw.grouplistsearchType;for(var i=0;i<hv.length;i++){gI=hv[i];if((typeof gI!=='undefined')&&(gI!=null)){gY=new Object();gY.label=gI.title;gY.value=gI.id;gY.description=gI.description;av.push(gY);}}var jo;var ja;var je;var hO=[];var iu=[];var jA;var iA;var iU;var jg=[];var jl=[];jA=mw.grouplistsearchMappingType;iA=mw.grouplistsearchAccentSide;if(jA!=0){if(jA!=100){if(jA==1){mw.grouplistsearchAccent=iE(jA,"Accent");mw.grouplistsearchMapping=iE(jA,"Mapping");;}else if(jA==2){iA=0;mw.grouplistsearchAccent=iE(jA,"Accent");mw.grouplistsearchMapping=iE(jA,"Mapping");;}}if(mw.grouplistsearchAccent!=""){iU=mw.grouplistsearchAccent;iU=iU.replace(/;;/g,";\n");iU=iU.replace(/QQ/g,"\"");jg=iU.split(";");for(var jw=0;jw<jg.length;jw++){if((typeof jg[jw]!=='undefined')&&jg[jw]!=null&&jg[jw]!=""){iU=jg[jw];iU=iU.replace("\n",";");iU=iU.replace("::","\n:");jl=iU.split(":");if((typeof jl[0]!=='undefined')&&(jl[0]!=null)&&(jl[0]!="")&&(typeof jl[1]!=='undefined')&&(jl[1]!=null)&&(jl[1]!="")){jl[0]=jl[0].replace("\n",":");if(typeof jo==='undefined'){jo=new Object();}jo[jl[0]]=jl[1];}else{alert("Wrong synonym definition \""+jg[jw]+"\" at pair position "+(jw+1));}}else{alert("Empty synonym definition at pair position "+(jw+1));}}}if(mw.grouplistsearchMapping!=""){je=mw.grouplistsearchMapping;je=je.replace(/;;/g,";\n");je=je.replace(/QQ/g,"\"");hO=je.split(";");for(var jw=0;jw<hO.length;jw++){if((typeof hO[jw]!=='undefined')&&hO[jw]!=null&&hO[jw]!=""){je=hO[jw];je=je.replace("\n",";");je=je.replace("::","\n:");iu=je.split(":");if((typeof iu[0]!=='undefined')&&(iu[0]!=null)&&(iu[0]!="")&&(typeof iu[1]!=='undefined')&&(iu[1]!=null)&&(iu[1]!="")){iu[0]=iu[0].replace("\n",":");if(typeof ja==='undefined'){ja=new Object();}ja[iu[0]]=iu[1];}else{alert("Wrong mapping definition \""+hO[jw]+"\" at pair position "+(jw+1));}}else{alert("Empty mapping definition at pair position "+(jw+1));}}}}function ZhOMLightwellGroupList(request,response){var jw,hT,cP,hL=[];if(request.term===""){response([]);return;}for(jw=0,hT=av.length;jw<hT;jw++){cP=av[jw];if(iM==0){if(jm(jA,iA,ja,jo,request.term,cP.label)){hL.push(cP);}}else if(iM==1){if(jm(jA,iA,ja,jo,request.term,cP.label)||jm(jA,iA,ja,jo,request.term,cP.description)){hL.push(cP);}}else{if(jm(jA,iA,ja,jo,request.term,cP.label)){hL.push(cP);}}}response(hL);};ae("#OMapsGroupListSearchAutocomplete"+mw.hY).autocomplete({source:ZhOMLightwellGroupList,focus:function(event,ui){if((typeof ui.item!=='undefined')&&(ui.item!=null)){ae("#OMapsGroupListSearchAutocomplete"+mw.hY).val(ui.item.label);}return false;},select:function(event,ui){if((typeof ui.item!=='undefined')&&(ui.item!=null)){var fu="a-markergroup"+mw.hY+"_"+ui.item.value;var eG=document.getElementById(fu);if(typeof eG.onclick=="function"){eG.onclick.apply(eG);}else{}ae("#OMapsGroupListSearchAutocomplete"+mw.hY).val(ui.item.label);}return false;}});}};zhomMapObjectManager.prototype.enablePanel=function(){var mw=this;var ae=mw.aj;ae(function(){var fL=ae("#OMapsPanel"+mw.hY).tabs();fL.find(".ui-tabs-nav").sortable({axis:"x",stop:function(){fL.tabs("refresh");}});ae("#OMapsPanel"+mw.hY).height(function(){return ae("#OMapsMainPanel"+mw.hY).height()-ae("#OMapsMainPanel"+mw.hY+" #OMapsPanel"+mw.hY+" ul.ui-tabs-nav").outerHeight(true)-(ae("#OMapsPanel"+mw.hY).outerHeight(true)-ae("#OMapsPanel"+mw.hY).height())-mw.gz});var fo=ae("#OMapsPanel"+mw.hY+" div.ui-tabs-panel").outerHeight(true);ae("#OMapsPanel"+mw.hY+" div.ui-tabs-panel").height(function(){return ae("#OMapsPanel"+mw.hY).height()-ae("#OMapsMainPanel"+mw.hY+" #OMapsPanel"+mw.hY+" ul.ui-tabs-nav").outerHeight(true)-(fo*2.2)});});};zhomMapObjectManager.prototype.panelShowPlacemarkContent=function(t){var mw=this;var ae=mw.aj;ae(function(){var fL=ae("#OMapsPanel"+mw.hY+"tabs-1").html(t);var bv=ae("#OMapsPanel"+mw.hY+' a[href="#OMapsPanel'+mw.hY+'tabs-1"]').parent().index();fL=ae("#OMapsPanel"+mw.hY).tabs("option","active",bv);var gN=ae("#OMapsID"+mw.hY+' div.zhom-panel-button'+mw.eh+'-star').hasClass("active");if(!gN){ae("#OMapsID"+mw.hY+' div.zhom-panel-button-ui'+mw.eh+'-star').trigger("click");}});};zhomMapObjectManager.prototype.panelShowPathContent=function(t){var mw=this;var ae=mw.aj;ae(function(){var fL=ae("#OMapsPanel"+mw.hY+"tabs-1").html(t);var bv=ae("#OMapsPanel"+mw.hY+' a[href="#OMapsPanel'+mw.hY+'tabs-1"]').parent().index();fL=ae("#OMapsPanel"+mw.hY).tabs("option","active",bv);var gN=ae("#OMapsID"+mw.hY+' div.zhom-panel-button'+mw.eh+'-star').hasClass("active");if(!gN){ae("#OMapsID"+mw.hY+' div.zhom-panel-button-ui'+mw.eh+'-star').trigger("click");}});};zhomMapObjectManager.prototype.panelShowPlacemarkContentTabs=function(t){var mw=this;var ae=mw.aj;ae(function(){var fL=ae("#OMapsPanel"+mw.hY+"tabs-1").html(t);ae(function(){ae("#OMapsPanelAccordion"+mw.hY).accordion({collapsible:true});});var bv=ae("#OMapsPanel"+mw.hY+' a[href="#OMapsPanel'+mw.hY+'tabs-1"]').parent().index();fL=ae("#OMapsPanel"+mw.hY).tabs("option","active",bv);var gN=ae("#OMapsID"+mw.hY+' div.zhom-panel-button'+mw.eh+'-star').hasClass("active");if(!gN){ae("#OMapsID"+mw.hY+' div.zhom-panel-button-ui'+mw.eh+'-star').trigger("click");}});};function zhomGeolocationButtonControl(gE,bU,gp,gW,gS,gi,gm,aT,aP,hl){var gl;var bW;L.Control.GeolocationButton=L.Control.extend({onAdd:function(map){if(gp==1){gl='';}else{gl='2';}if(gW==1){gl=gl+'-star';gl=gl+'';bW=1;}else if(gW==2){gl=gl+'';bW=2;}else if(gW==3){gl=gl+'-star';bW=3;}else{gl=gl+'';bW=1;}var gv=document.createElement('DIV');gv.className="zhom-"+gi+"-button"+gl;gv.index=1;L.DomEvent.disableClickPropagation(gv);var gg=document.createElement('DIV');gg.className="zhom-"+gi+"-button-ui"+gl;gg.title=gm;gv.appendChild(gg);var gH=document.createElement('DIV');gH.className="zhom-"+gi+"-button-text"+gl;if(bW==1){gH.innerHTML='<img style="border: 0px none; padding: 0px; margin: 0px; width: '+aT+'px; height: '+aP+'px;" src="'+hl+'">';}else if(bW==2){gH.innerHTML=gm;}else if(bW==3){gH.innerHTML='<img style="border: 0px none; padding: 0px; margin: 0px; width: '+aT+'px; height: '+aP+'px;" src="'+hl+'">'+gm;}else{gH.innerHTML="";}gg.appendChild(gH);gg.onclick=function(){window["findMyPosition"+gE]("Button");};return gv;},onRemove:function(map){}});L.control.GeolocationButton=function(opts){return new L.Control.GeolocationButton(opts);};var fO="";if(gS){switch(gS){case 0:break;case 2:fO='topleft';break;case 3:fO='topright';break;case 11:fO='bottomleft';break;case 12:fO='bottomright';break;default:fO='';break;}}if(fO!=""){L.control.GeolocationButton({position:fO}).addTo(bU);}};zhomOverlayOpacityControl.prototype.opacity=100;zhomOverlayOpacityControl.prototype.fW=function(){this.opacity=100;};zhomOverlayOpacityControl.prototype.changeOpacity=function(){var hX=this.hy;hX.setOverlayOpacity(this.opacity/100);};function zhomOverlayOpacityControl(gE,bU,gr,gp,gW,gS,gi,gm){this.gw=gE;this.mA=bU;this.hi=gr.aj;this.hy=gr;var control=this;var gl;var bW;L.Control.zhomOverlayOpacity=L.Control.extend({onAdd:function(map){if(gp==1){gl='';}else{gl='2';}if(gW=="vertical"){bW="vertical";}else if(gW=="horizontal"){bW="horizontal";}else{bW="vertical";}var gv=document.createElement('DIV');gv.className="zhom-"+gi+"-slider"+gl;gv.style.padding='5px';gv.index=1;this.gL=gv;L.DomEvent.disableClickPropagation(gv);var gg=document.createElement('DIV');gg.className="zhom-"+gi+"-slider-ui"+gl;gg.title=gm;gv.appendChild(gg);var controlInput=document.createElement('INPUT');controlInput.className="zhom-"+gi+"-slider-input"+gl;controlInput.type="range";controlInput.min="0";controlInput.max="100";controlInput.value="100";controlInput.step="1";gg.appendChild(controlInput);control.fW();controlInput.onchange=function(event){control.opacity=this.value;control.changeOpacity();};controlInput.oninput=function(event){control.opacity=this.value;control.changeOpacity();};return gv;},onRemove:function(map){}});L.control.zhomOverlayOpacity=function(opts){return new L.Control.zhomOverlayOpacity(opts);};var fO="";if(gS){switch(gS){case 0:break;case 2:fO='topleft';break;case 3:fO='topright';break;case 11:fO='bottomleft';break;case 12:fO='bottomright';break;default:fO='';break;}}if(fO!=""){L.control.zhomOverlayOpacity({position:fO}).addTo(bU);}};zhomPlacemarkListButtonControl.prototype.controlState=0;zhomPlacemarkListButtonControl.prototype.fQ=function(){if(this.controlState==1){this.controlState=0;var toHideDiv=document.getElementById(this.fP);toHideDiv.style.display="none";}else{this.controlState=1;var toShowDiv=document.getElementById(this.fP);toShowDiv.style.display="block";}};zhomPlacemarkListButtonControl.prototype.fW=function(){};function zhomPlacemarkListButtonControl(gf,bU,gp,gW,gS,gi,gm,aT,aP,hl){this.fP=gf;var gl;var bW;var control=this;L.Control.PlacemarkListButton=L.Control.extend({onAdd:function(map){if(gp==1){gl='';}else{gl='2';}if(gW==1){gl=gl+'-star';bW=2;control.controlState=0;}else if(gW==2){gl=gl+'';bW=3;control.controlState=0;}else if(gW==11){gl=gl+'-star';bW=2;control.controlState=1;}else if(gW==12){gl=gl+'';bW=3;control.controlState=1;}else{gl=gl+'';bW=1;control.controlState=0;}var gv=document.createElement('DIV');gv.className="zhom-"+gi+"-button"+gl;gv.index=1;this.gL=gv;L.DomEvent.disableClickPropagation(gv);var gg=document.createElement('DIV');gg.className="zhom-"+gi+"-button-ui"+gl;gg.title=gm;gv.appendChild(gg);var gH=document.createElement('DIV');gH.className="zhom-"+gi+"-button-text"+gl;if(bW==1){gH.innerHTML="";}else if(bW==2){gH.innerHTML='<img style="border: 0px none; padding: 0px; margin: 0px; width: '+aT+'px; height: '+aP+'px;" src="'+hl+'">';}else if(bW==3){gH.innerHTML=gm;}else{gH.innerHTML="";}gg.appendChild(gH);control.fW();gg.onclick=function(){control.fQ();};return gv;},onRemove:function(map){}});L.control.PlacemarkListButton=function(opts){return new L.Control.PlacemarkListButton(opts);};var fO="";if(gS){switch(gS){case 0:break;case 2:fO='topleft';break;case 3:fO='topright';break;case 11:fO='bottomleft';break;case 12:fO='bottomright';break;default:fO='';break;}}if(fO!=""){L.control.PlacemarkListButton({position:fO}).addTo(bU);}};function zhomMapCenterButtonControl(hb,gk,bU,gp,gW,gS,gi,gm,aT,aP,hl){var gl;var bW;L.Control.MapCenterButton=L.Control.extend({onAdd:function(map){if(gp==1){gl='';}else{gl='2';}if(gW==1){gl=gl+'-star';bW=2;}else if(gW==2){gl=gl+'-star';bW=2;}else if(gW==11){gl=gl+'';bW=3;}else if(gW==12){gl=gl+'';bW=3;}else{gl=gl+'';bW=1;}var gv=document.createElement('DIV');gv.className="zhom-"+gi+"-button"+gl;gv.index=1;this.gL=gv;L.DomEvent.disableClickPropagation(gv);var gg=document.createElement('DIV');gg.className="zhom-"+gi+"-button-ui"+gl;gg.title=gm;gv.appendChild(gg);var gH=document.createElement('DIV');gH.className="zhom-"+gi+"-button-text"+gl;if(bW==1){gH.innerHTML="";}else if(bW==2){gH.innerHTML='<img style="border: 0px none; padding: 0px; margin: 0px; width: '+aT+'px; height: '+aP+'px;" src="'+hl+'">';}else if(bW==3){gH.innerHTML=gm;}else{gH.innerHTML="";}gg.appendChild(gH);gg.onclick=function(){if(gk!="do not change"){bU.setView(hb,parseInt(gk));}else{bU.setView(hb,bU.getZoom());}};return gv;},onRemove:function(map){}});L.control.MapCenterButton=function(opts){return new L.Control.MapCenterButton(opts);};var fO="";if(gS){switch(gS){case 0:break;case 2:fO='topleft';break;case 3:fO='topright';break;case 11:fO='bottomleft';break;case 12:fO='bottomright';break;default:fO='';break;}}if(fO!=""){L.control.MapCenterButton({position:fO}).addTo(bU);}};function zhomPanelButtonControl(gf,gQ,fT,gq,bU,l,gp,gW,gS,gi,gm,aT,aP,hl){var gl;var bW;L.Control.PanelButton=L.Control.extend({initialize:function(){this.fP=gf;this.fU=gQ;this.fY=fT;this.hi=jQuery.noConflict();this.gX=l;this.gT=gq;this.mA=bU;var gP=this.mA;this.controlState=0;if(gp==1){gl='';}else{gl='2';}if(gW==1){gl=gl+'-star';bW=1;this.controlState=1;}else if(gW==0){gl=gl+'-star';bW=1;this.controlState=0;}else{gl=gl+'-star';bW=1;this.controlState=0;}var gv=document.createElement('DIV');gv.className="zhom-"+gi+"-button"+gl;gv.style.padding='0px';gv.index=1;this.gL=gv;L.DomEvent.disableClickPropagation(gv);var gg=document.createElement('DIV');gg.className="zhom-"+gi+"-button-ui"+gl;gg.title=gm;gv.appendChild(gg);var gH=document.createElement('DIV');gH.className="zhom-"+gi+"-button-text"+gl;if(bW==1){gH.innerHTML="";}else if(bW==2){gH.innerHTML='<img style="border: 0px none; padding: 0px; margin: 0px; width: '+aT+'px; height: '+aP+'px;" src="'+hl+'">';}else if(bW==3){gH.innerHTML=gm;}else{gH.innerHTML="";}gg.appendChild(gH);L.DomEvent.on(gg,'click',this._onClick,this);this._controlDiv=gv;var jr=this.hi;this.initialMapDivWidth=jr('#'+this.fU).width();this.panelDiv=document.getElementById(this.fP);this.panelDivW=this.gT;if(this.controlState==0){this.gL.classList.remove("active");this.panelDiv.style.display="none";}else{this.gL.classList.add("active");jr('#'+this.fU).width(this.initialMapDivWidth-this.panelDivW);this.panelDiv.style.display="inline";gP.invalidateSize();}},onAdd:function(map){return this._controlDiv;},onRemove:function(map){},_onClick:function(){var jr=this.hi;var he=document.getElementById(this.fP);var gP=this.mA;var gd=this.fY;var gx=this.gX;if(this.controlState==1){this.gL.classList.remove("active");this.controlState=0;this.panelDiv.style.display="none";jr('#'+this.fU).animate({width:this.initialMapDivWidth},1000,function(){gP.invalidateSize();});}else{this.gL.classList.add("active");this.controlState=1;jr('#'+this.fU).animate({width:this.initialMapDivWidth-this.panelDivW},1000,function(){he.style.display="inline";gP.invalidateSize();jr('#'+gd).accordion("refresh");});}}});L.control.PanelButton=function(opts){return new L.Control.PanelButton(opts);};var fO="";if(gS){switch(gS){case 0:break;case 2:fO='topleft';break;case 3:fO='topright';break;case 11:fO='bottomleft';break;case 12:fO='bottomright';break;default:fO='';break;}}if(fO!=""){L.control.PanelButton({position:fO}).addTo(bU);}} 