﻿(function(){var browsers=['chrome','opera','msie','safari','firefox','mozilla'];var oses=['x11;','macintosh','windows'];function Browser(ua){this.CHROME=0;this.OPERA=1;this.MSIE=2;this.SAFARI=3;this.FIREFOX=4;this.MOZILLA=5;this.X11=0;this.MAC=1;this.WINDOWS=2;this.type=-1;this.os=-1;this.version=0;ua=ua.toLowerCase();for(var i=0;i<browsers.length;i++){if(ua.indexOf(browsers[i])!=-1){this.type=i;var version_re=new RegExp(browsers[i]+'[ /]?([0-9]+)');if(version_re.exec(ua)){this.version=parseFloat(RegExp.$1)}break}}for(var j=0;j<oses.length;j++){if(ua.indexOf(oses[j])!=-1){this.os=j;break}}}window.BP_BROWSER=window.BpBrowser=new Browser(navigator.userAgent)})();
(function(){var bpId=0;function BpControl(bpMsg,bpSize,bpCorner,bpClassName){if(!bpMsg){bpMsg='Loading...'}if(!bpSize){bpSize=new GSize(100,100)}if(!bpCorner){bpCorner=G_ANCHOR_TOP_LEFT}this.bpMsg=bpMsg;this.bpSize=bpSize;this.bpCorner=bpCorner;this.bpClassName=bpClassName;this.bpId=++bpId;this.bpDivId='bpcontrol'+this.bpId}BpControl.prototype=new GControl();var bpProto=BpControl.prototype;bpProto.getDivId=function(){return this.bpDivId};bpProto.getDiv=function(){return this.bpDiv};bpProto.getContent=function(){return this.bpDiv.innerHTML};bpProto.setContent=function(bpMsg){this.bpDiv.innerHTML=bpMsg};bpProto.setContentNode=function(bpNode){var bpDiv=this.getDiv();while(bpDiv.firstChild){bpDiv.removeChild(bpDiv.firstChild)}bpDiv.appendChild=bpNode};bpProto.show=function(){this.bpDiv.style.display=''};bpProto.hide=function(){this.bpDiv.style.display='none'};bpProto.getClassName=function(){return this.bpClassName};bpProto.setClassName=function(bpClassName){if(!this.bpClassName){return}this.bpClassName=bpClassName;this.bpDiv.className=bpClassName};bpProto.initialize=function(bpMap){var bpDiv=document.createElement('div');bpDiv.setAttribute('id',this.bpId);this.bpDiv=bpDiv;var bpStyle=bpDiv.style;bpStyle.display='none';if(this.bpClassName){bpDiv.className=this.bpClassName}else if(typeof(this.setStyle)=='function'){this.setStyle()}else{bpStyle.border='1px solid black';bpStyle.backgroundColor='white';bpStyle.fontWeight='bold';bpStyle.paddingLeft='3px';bpStyle.paddingRight='3px'}bpDiv.innerHTML=this.bpMsg;bpMap.getContainer().appendChild(bpDiv);this._map=bpMap;return bpDiv};bpProto.isVisible=function(){return this.bpDiv.style.display!='none'};bpProto.getDefaultPosition=function(){return new GControlPosition(this.bpCorner,this.bpSize)};bpProto.printable=function(){return false};bpProto.selectable=function(){return false};window.BpControl=BpControl}());
var clusterTabs=[];var currentClusterIndex=null;var clusterIcon=new GIcon();clusterIcon.image='/images/cluster_01.png';clusterIcon.iconSize=new GSize(32,32);clusterIcon.iconAnchor=new GPoint(16,32);clusterIcon.infoWindowAnchor=new GPoint(17,2);clusterIcon.shadow='/images/shadow_cluster.png';clusterIcon.shadowSize=new GSize(49,32);function createLabeledCluster(cluster,index){var self=this;var markerCount=cluster.gMarkersIndex.length;var xTotal=0.0,yTotal=0.0;var max=0;var title="";for(j=0;j<markerCount;++j){marker=markers[cluster.gMarkersIndex[j]];if(marker!=null){max++;xTotal+=(+marker.getPoint().lng());yTotal+=(+marker.getPoint().lat())}}title=max.toString()+" markers";if(max!=0){var latlng=new GLatLng(yTotal/max,xTotal/max)}else{var latlng=cluster.bounds.getCenter()}cluster.center=latlng;var lblClass="markerLabelShort";if(max>99){lblClass="markerLabelLong"}var clusterOptions={labelText:max.toString(),'title':title,labelOffset:new GSize(-15,-26),labelClass:lblClass,draggable:false,icon:clusterIcon};var gcluster=new LabeledMarker(latlng,clusterOptions);gcluster._clusterIndex=index;for(var j=0;j<cluster.gMarkersIndex.length;j++){hideGMarker(cluster.gMarkersIndex[j])}for(var j=0;j<cluster.gMarkersHidedIndex.length;j++){hideGMarker(cluster.gMarkersHidedIndex[j])}map.addOverlay(gcluster);GEvent.addListener(gcluster,"click",function(){if(this){openClusterInfoWindow(this,null,false)}});cluster.overlay=gcluster;return cluster}function showGMarker(index){if(markers[index]!=null){markers[index].show()}}function hideGMarker(index){if(markers[index]!=null){markers[index].hide()}}function openClusterInfoWindow(gCluster,marker_id,htmlMode){if(gCluster){if(clusterTabs instanceof Array){var indice=gCluster._clusterIndex;if(clusterTabs[indice]){var cluster=clusterTabs[indice];currentClusterIndex=indice;var htmlMarkers="";var count=cluster.gMarkersIndex.length;var clust_h=count*23;if(clust_h>185){clust_h=185}htmlMarkers+="<div id=\"markersInCluster\" style=\"height:"+clust_h+"px;overflow:auto;margin-top:7px;\"><table>";for(var i=0;i<count;i++){var gmarker=markers[cluster.gMarkersIndex[i]];htmlMarkers+="<tr id=\"clust_"+gmarker.__id+"\">";htmlMarkers+="<td>";htmlMarkers+="<a href=\""+gmarker._ttHtml.replace(/^.+?href="([^"]+)".+$/,'$1').replace(/&amp;/g,'&')+"\"><img src=\""+gmarker.getIcon().image+"\" style=\"height:16px;border:0px;\" \/><\/a>";htmlMarkers+="<\/td>";if(gmarker.__id==marker_id){htmlMarkers+="<td><span style=\"font-size:11px;font-weight:bold;\">"}else{htmlMarkers+="<td style=\"font-size:11px;\"><span>"}htmlMarkers+="<a href=\""+gmarker._ttHtml.replace(/^.+?href="([^"]+)".+$/,'$1').replace(/&amp;/g,'&')+"\">";htmlMarkers+=gmarker._ttHtml.replace(/^<a.+?>([^>]+)<.a>$/,'$1');htmlMarkers+="<\/a><\/span><\/td>";htmlMarkers+="<\/tr>"}htmlMarkers+="<\/table><\/div>";var html="<div id=\"innerClusterInfo\"style=\"width:300px;\">"+htmlMarkers+"<\/div>";if(htmlMode==true){return htmlMarkers}gCluster.openInfoWindowHtml(html)}}}}function removeClusters(){for(var i=0;i<clusterTabs.length;i++){var cluster=clusterTabs[i];var gCluster=cluster.overlay;if(gCluster){map.removeOverlay(gCluster)}}}function clusterize(){var clustParamSize=8;var clustParamMinInClust=3;var clustParamCalcType=0;var clustParamCalcDynZoom=5;var clustParamLowZoomCorrection=true;var clustParamMaxZoom=11;removeClusters();var mapBounds=map.getBounds();var mapBounds=new GLatLngBounds(new GLatLng(-90,-180),new GLatLng(90,180));var zoom=map.getZoom();if(zoom>=clustParamMaxZoom){for(var i=0;i<markers.length;i++){showGMarker(i)}return true}if(zoom==0){zoom=1}var gridSize=clustParamSize+1;if(clustParamCalcType==0){if(zoom<=clustParamCalcDynZoom){gridSize=Math.floor((clustParamSize*Math.exp(zoom-1))-(zoom*zoom*zoom));if(clustParamLowZoomCorrection&&(zoom<=2)){gridSize+=Math.floor(gridSize/2)}}else{gridSize=Math.floor((clustParamSize*zoom*zoom*zoom)/2)}}else if(clustParamCalcType==1){gridSize=Math.floor((clustParamSize*Math.exp(zoom-1))-(zoom*zoom*zoom));if(clustParamLowZoomCorrection&&(zoom<=3)){gridSize+=Math.floor(gridSize/2)}}else{gridSize=Math.floor((clustParamSize*zoom*zoom*zoom)/2)}if(gridSize<clustParamSize){gridSize=Math.floor(clustParamSize/2)}var sw=mapBounds.getSouthWest();var ne=mapBounds.getNorthEast();var size=mapBounds.toSpan();var gridCellSizeLat=size.lat()/gridSize;var gridCellSizeLng=size.lng()/gridSize;clusterTabs=[];var clusterIndexTab=[];for(var i=0;i<markers.length;i++){var MarkerLatLng=markers[i].getPoint();if(mapBounds.containsLatLng(MarkerLatLng)){var testBounds=new GLatLngBounds(sw,MarkerLatLng);var testSize=testBounds.toSpan();var x=Math.ceil(testSize.lng()/gridCellSizeLng);var y=Math.ceil(testSize.lat()/gridCellSizeLat);var key=y.toString()+'-'+x.toString();if(clusterIndexTab[key]==null){var indice=clusterTabs.length;clusterIndexTab[key]=indice;var cluster=new Object();var CellSW=new GLatLng(sw.lat()+((y-1)*gridCellSizeLat),sw.lng()+((x-1)*gridCellSizeLng));var CellNE=new GLatLng(CellSW.lat()+gridCellSizeLat,CellSW.lng()+gridCellSizeLng);cluster.bounds=new GLatLngBounds(CellSW,CellNE);cluster.gMarkersIndex=[];cluster.gMarkersHidedIndex=[];cluster.overlay=null;cluster.key=key;cluster.index=indice;cluster.center=null;cluster.gMarkersIndex.push(i);clusterTabs.push(cluster)}else{clusterTabs[clusterIndexTab[key]].gMarkersIndex.push(i)}}}for(var i=0;i<clusterTabs.length;i++){var cluster=clusterTabs[i];var markerCount=cluster.gMarkersIndex.length;if(markerCount>=clustParamMinInClust){cluster=createLabeledCluster(cluster,i)}else{for(var j=0;j<cluster.gMarkersIndex.length;j++){showGMarker(cluster.gMarkersIndex[j])}for(var j=0;j<cluster.gMarkersHidedIndex.length;j++){hideGMarker(cluster.gMarkersHidedIndex[j])}}}}function gmap_zoomend(){clusterize()}function forceRedrawCluster(){for(var i=0;i<clusterTabs.length;i++){var cluster=clusterTabs[i];var gCluster=cluster.overlay;if(gCluster&&gCluster.div){gCluster.redraw(true)}}}
function setupMapArray(map){function doMapArray(){if(this._mapArrayConfig.queue.length==0){return}var key=this._mapArrayConfig.queue[0];var config=this._mapArrayConfig.todo[key];var maxIndex=Math.min(config.startIndex+config.step,config.dataArray.length);var tt=typeof(this.getTooltip)=='function'?this.getTooltip():null;for(var i=config.startIndex;i<maxIndex;i++){var marker=config.mkMarker.call(this,config.dataArray[i]);this.addOverlay(marker);if(tt){marker.setTooltip(tt,config.dataArray[i].title)}}if(maxIndex<config.dataArray.length){config.startIndex=maxIndex;var total_mapped_count=maxIndex+map._mapArrayConfig.totalMappedCount;var total_count=map._mapArrayConfig.totalMappedCount+map._mapArrayConfig.totalCount;if(config.progressbar){config.progressbar.updateLoader(config.step)}config.onstep.call(this,total_mapped_count,total_count);setTimeout(GEvent.callback(this,doMapArray),1)}else{delete this._mapArrayConfig.todo[key];this._mapArrayConfig.queue.shift();map._mapArrayConfig.totalMappedCount+=maxIndex;if(this._mapArrayConfig.queue.length>0){total_mapped_count=map._mapArrayConfig.totalMappedCount;total_count=map._mapArrayConfig.totalMappedCount+map._mapArrayConfig.totalCount;if(config.progressbar){config.progressbar.updateLoader(config.step)}config.onstep.call(this,total_mapped_count,total_count);setTimeout(GEvent.callback(this,doMapArray),1)}else{total_count=map._mapArrayConfig.totalMappedCount;if(config.progressbar){config.progressbar.updateLoader(config.step)}config.onstep.call(this,total_count,total_count);if(config.progressbar){config.progressbar.remove()}config.ondone.call(this,total_count);map.stopMapArray()}}}function defaultMkMarker(d,tt){var lat=parseFloat(d.lat);var lng=parseFloat(d.lng);var latlng=new GLatLng(lat,lng);var marker=new GMarker(latlng);if(marker.setUserData){marker.setUserData(d)}return marker}map.stopMapArray=function(){this._mapArrayConfig={todo:{},queue:[],totalMappedCount:0,completedArrays:[],totalCount:0}};map.stopMapArray();map.mapArray=function(dataArray,args,key){if(arguments.length<3){key='one-and-only'}if(typeof(this._mapArrayConfig.todo[key])=='undefined'){this._mapArrayConfig.todo[key]={}}else{return false}if(arguments.length<2){args={}}this._mapArrayConfig.todo[key].dataArray=dataArray;this._mapArrayConfig.todo[key].step=args.step?args.step:1;this._mapArrayConfig.todo[key].mkMarker=args.mkMarker?args.mkMarker:defaultMkMarker;this._mapArrayConfig.todo[key].onstep=args.onstep?args.onstep:function(){};this._mapArrayConfig.todo[key].ondone=args.ondone?args.ondone:function(){};this._mapArrayConfig.todo[key].progressbar=args.progressbar?args.progressbar:false;this._mapArrayConfig.todo[key].startIndex=0;this._mapArrayConfig.queue.push(key);this._mapArrayConfig.totalCount+=dataArray.length;if(this._mapArrayConfig.queue.length==1){if(args.progressbar){args.progressbar.start(dataArray.length)}setTimeout(GEvent.callback(this,doMapArray),1)}return true}}
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('4 7(a,b){2.e=a;2.d=b}7.5=h 18(12,X);7.5.M=4(){s a=j.1l(\'9\');a.m=\'<9 3="17:14;8:c%;t:R;\'+\'L-u:J;H-u:G;" o="D"></9>\'+\'<9 3="1g-B:1d;y:c%;" o="x"></9>\';a.o="w";a.3.p="v";a.3.8=2.d+"15";a.3.13="0.11";a.3.y="1.10";a.3.t="Z U #T";a.3.O="N";a.3.P="Q";2.e.K().S(a);r a};7.5.I=4(){r h V(W,h F(Y,E))};4 g(b,a){2.q=a||{};2.d=2.q.8||1h;2.C=2.q.1f||\'1e...\';2.A=h 7(b,2.d);2.e=b;2.e.1c(2.A);2.k=j.l(\'x\');2.f=j.l(\'D\');2.n=j.l(\'w\');2.i=0;2.6=0}g.5.1b=4(a){2.k.3.8=\'0%\';2.i=a||0;2.6=0;2.f.3.B="#1a";2.f.m=2.C;2.n.3.p="19"};g.5.16=4(b){2.6+=b;z(2.6>0){s a=1i.1j((2.6/2.i)*c);z(a>c){a=c}2.k.3.8=a+\'%\';2.f.m=2.6+\' / \'+2.i}};g.5.1k=4(){2.n.3.p=\'v\'};',62,84,'||this|style|function|prototype|current_|ProgressbarMapControl|width|div|||100|width_|map_|text_|ProgressbarControl|new|operations_|document|div_|getElementById|innerHTML|container_|id|display|options_|return|var|border|align|none|geo_progress_container|geo_progress|height|if|control_|color|loadstring_|geo_progress_text|56|GSize|bottom|vertical|getDefaultPosition|center|getContainer|text|initialize|white|backgroundColor|textAlign|left|5px|appendChild|555|solid|GControlPosition|G_ANCHOR_TOP_RIGHT|false|30|1px|3em|8em|true|fontSize|absolute|px|updateLoader|position|GControl|block|111|start|addControl|green|Loading|loadstring|background|176|Math|ceil|remove|createElement'.split('|'),0,{}))































