(function(){function p(h){(function(a){function h(){a("object.cgmp-json-string-placeholder").each(function(e,D){var n=a(D).attr("id"),n=a(D).find("param#json-string-"+n).val(),n=y.searchReplace(n,"'",""),n=n.replace(""",""),b=p(n);if("undefined"===typeof b||!b)return f.fatal("We did not parse JSON from OBJECT param. Aborting map generation .."),!1;if(0t&&4<=r?p=a.parseJSON:window.JSON&&window.JSON.parse? p=window.JSON.parse:f.fatal("Using parseJson stub..");var v=function(){var a={};return{initMap:function(f,n,b,l,h){a=f;f=[];for(var p in google.maps.MapTypeId)f.push(google.maps.MapTypeId[p]);"OSM"==l?(f.push(l),a.mapTypes.set(l,new google.maps.ImageMapType({getTileUrl:function(a,b){return"http://tile.openstreetmap.org/"+b+"/"+a.x+"/"+a.y+".png"},tileSize:new google.maps.Size(256,256),name:"OpenStreet",maxZoom:20}))):"ROADMAP"==l?l=google.maps.MapTypeId.ROADMAP:"SATELLITE"==l?l=google.maps.MapTypeId.SATELLITE: "HYBRID"==l?l=google.maps.MapTypeId.HYBRID:"TERRAIN"==l&&(l=google.maps.MapTypeId.TERRAIN);a.setOptions({zoom:b,mapTypeId:l,styles:h,mapTypeControlOptions:{mapTypeIds:f}})},setMapControls:function(f){a.setOptions(f)}}}(),u=function(){var a={};return{init:function(f){a=f},buildKmlLayer:function(h){if(0>h.toLowerCase().indexOf("http"))return f.error("KML URL must start with HTTP(S). Aborting.."),!1;var n=new google.maps.KmlLayer(h);google.maps.event.addListener(n,"status_changed",function(){var a=n.getStatus(); if(a!=google.maps.KmlLayerStatus.OK){var l="";switch(a){case google.maps.KmlLayerStatus.DOCUMENT_NOT_FOUND:l=CGMPGlobal.kmlNotFound;break;case google.maps.KmlLayerStatus.DOCUMENT_TOO_LARGE:l=CGMPGlobal.kmlTooLarge;break;case google.maps.KmlLayerStatus.FETCH_ERROR:l=CGMPGlobal.kmlFetchError;break;case google.maps.KmlLayerStatus.INVALID_DOCUMENT:l=CGMPGlobal.kmlDocInvalid;break;case google.maps.KmlLayerStatus.INVALID_REQUEST:l=CGMPGlobal.kmlRequestInvalid;break;case google.maps.KmlLayerStatus.LIMITS_EXCEEDED:l= CGMPGlobal.kmlLimits;break;case google.maps.KmlLayerStatus.TIMED_OUT:l=CGMPGlobal.kmlTimedOut;break;case google.maps.KmlLayerStatus.UNKNOWN:l=CGMPGlobal.kmlUnknown}if(""!=l){var e=CGMPGlobal.kml.replace("[TITLE]","Comprehensive Google Map Plugin

Google KML error:
"),e=e.replace("[MSG]",l);e.replace("[STATUS]",a);f.error("Google returned KML error: "+l+" ("+a+")");f.error("KML file: "+n.getUrl())}}});google.maps.event.addListener(n,"defaultviewport_changed",function(){}); n.setMap(a)},buildTrafficLayer:function(){(new google.maps.TrafficLayer).setMap(a)},buildBikeLayer:function(){(new google.maps.BicyclingLayer).setMap(a)},buildPanoramioLayer:function(h){if("undefined"===typeof google.maps.panoramio||!google.maps.panoramio||null==google.maps.panoramio)return f.error("We cannot access Panoramio library. Aborting.."),!1;var n=new google.maps.panoramio.PanoramioLayer;n?(null!=h&&""!=h&&n.setUserId(h),n.setMap(a)):f.error("Could not instantiate Panoramio object. Aborting..")}}}(), N=function(){function h(){clearTimeout(I);if(0Could not route directions from
'"+ c+"' to
'"+g+"'
Got result from Google: ["+e+"]"),a(d+" button#print_sub").hide(),a(d+" button#d_sub").removeAttr("disabled").html("Get directions"))})}});a(document).on("click",d+" button#print_sub",function(){var c=a(d+" input#a_address").val(),b=a(d+" input#b_address").val(),k="d";a(d+" a#dir_w_btn").hasClass("selected")&&(k="w");c="https://web.archive.org/web/20160619204433/http://maps.google.com/?saddr="+c+"&daddr="+b+"&dirflg="+k+"&pw=2";c=a("input#"+m+"_radio_miles").is(":checked")?c+"&doflg=ptm":c+"&doflg=ptk";"d"=== k&&(k=a("input#"+m+"_avoid_hway").is(":checked"),b=a("input#"+m+"_avoid_tolls").is(":checked"),k&&(c+="&dirflg=h"),b&&(c+="&dirflg=t"));window.open(c);return!1});a(document).on("change focus",d+" input#a_address",function(){a(d+" input#a_address").removeClass("d_error");return!1});a(document).on("change focus",d+" input#b_address",function(){a(d+" input#b_address").removeClass("d_error");return!1});a(document).on("click",d+" .kd-button",function(){var c=this.id;"dir_d_btn"==c?a(d+" a#dir_d_btn").hasClass("selected")? f.warn("Driving travel mode is already selected"):(a(d+" a#dir_d_btn").addClass("selected"),a(d+" a#dir_w_btn").removeClass("selected")):"dir_w_btn"==c&&(a(d+" a#dir_w_btn").hasClass("selected")?f.warn("Walking travel mode is already selected"):(a(d+" a#dir_w_btn").addClass("selected"),a(d+" a#dir_d_btn").removeClass("selected")));return!1})}function $(a,b){var c=Math.floor(111111*Math.random()),c=c+"-"+m,g="
"; if(!b.geoMashup||b.geoMashup&&!b.infoBubbleContainPostLink)g+="

"+CGMPGlobal.address+":

",g+="

"+a+"

",""!=b.customBubbleText&&(g+="

"+b.customBubbleText+"

");else var e=b.postTitle.substring(0,30),g=g+""+("

"+e+"..

"),g=g+("

"+b.postExcerpt+"

");g+="
";return{bubbleHolderId:c,bubbleContent:g}}function q(a,b,c){var e={clickable:!1,cursor:"pointer", draggable:!1,flat:!0,icon:{url:CGMPGlobal.customMarkersUri+"gpsloc.png",size:new google.maps.Size(34,34),scaledSize:new google.maps.Size(17,17),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(8,8)},optimized:!1,position:new google.maps.LatLng(0,0),title:"Current location",zIndex:2};b&&(e=this.copyOptions_(e,b));b={clickable:!1,radius:0,strokeColor:"1bb6ff",strokeOpacity:0.4,fillColor:"61a0bf",fillOpacity:0.4,strokeWeight:1,zIndex:1};c&&(b=this.copyOptions_(b,c));this.marker_=new google.maps.Marker(e); this.circle_=new google.maps.Circle(b);this.map=this.position=this.accuracy=null;this.set("minimum_accuracy",null);this.set("position_options",{enableHighAccuracy:!0,maximumAge:1E3});this.circle_.bindTo("map",this.marker_);a&&this.setMap(a)}var x,E,K,R,I,Q,s,H,W,B,J,L,m,S,z,C,X,G,Y,w=null,V=!1,T=!1,O=!1,P=[],F=[],U={};q.prototype=new google.maps.MVCObject;q.prototype.set=function(a,b){if(/^(?:position|accuracy)$/i.test(a))throw"'"+a+"' is a read-only property.";/map/i.test(a)?this.setMap(b):google.maps.MVCObject.prototype.set.apply(this, arguments)};q.prototype.marker_=null;q.prototype.circle_=null;q.prototype.getMap=function(){return this.map};q.prototype.getPositionOptions=function(){return this.get("position_options")};q.prototype.setPositionOptions=function(a){this.set("position_options",a)};q.prototype.getPosition=function(){return this.position};q.prototype.getBounds=function(){return this.position?this.circle_.getBounds():null};q.prototype.getAccuracy=function(){return this.accuracy};q.prototype.getMinimumAccuracy=function(){return this.get("minimum_accuracy")}; q.prototype.setMinimumAccuracy=function(a){this.set("minimum_accuracy",a)};q.prototype.watchId_=-1;q.prototype.setMap=function(a){this.map=a;this.notify("map");a?this.watchPosition_():(this.marker_.unbind("position"),this.circle_.unbind("center"),this.circle_.unbind("radius"),this.position=this.accuracy=null,navigator.geolocation.clearWatch(this.watchId_),this.watchId_=-1,this.marker_.setMap(a))};q.prototype.setMarkerOptions=function(a){this.marker_.setOptions(this.copyOptions_({},a))};q.prototype.setCircleOptions= function(a){this.circle_.setOptions(this.copyOptions_({},a))};q.prototype.updatePosition_=function(a){var b=new google.maps.LatLng(a.coords.latitude,a.coords.longitude),c=null==this.marker_.getMap();if(c){if(null!=this.getMinimumAccuracy()&&a.coords.accuracy>this.getMinimumAccuracy())return;this.marker_.setMap(this.map);this.marker_.bindTo("position",this);this.circle_.bindTo("center",this,"position");this.circle_.bindTo("radius",this,"accuracy")}this.accuracy!=a.coords.accuracy&&google.maps.MVCObject.prototype.set.call(this, "accuracy",a.coords.accuracy);!c&&null!=this.position&&this.position.equals(b)||google.maps.MVCObject.prototype.set.call(this,"position",b)};q.prototype.watchPosition_=function(){var a=this;navigator.geolocation&&(this.watchId_=navigator.geolocation.watchPosition(function(b){a.updatePosition_(b)},function(b){google.maps.event.trigger(a,"geolocation_error",b)},this.getPositionOptions()))};q.prototype.copyOptions_=function(a,b){for(var c in b)!0!==q.DISALLOWED_OPTIONS[c]&&(a[c]=b[c]);return a};q.DISALLOWED_OPTIONS= {map:!0,position:!0,radius:!0};return{init:function(a,b,c,e){F=e;s=a;m=s.getDiv().id;W=b;K=c;T="false"!==e.enablemarkerclustering;U=google.maps.event.addListener(s,"click",function(){u()});x=[];E=[];L=5;B=J=H=I=null;R=Q=!1;S=new google.maps.Geocoder;z=new google.maps.LatLngBounds;C=new google.maps.InfoWindow;X=new google.maps.StreetViewService;Y=new google.maps.DirectionsService;rendererOptions={draggable:!0};G=new google.maps.DirectionsRenderer(rendererOptions);G.setPanel(document.getElementById("rendered-directions-placeholder-"+ m))},setGeoLocationIfEnabled:function(a){"true"===a&&is_mobile_device()&&(w=new q,google.maps.event.addListenerOnce(w,"position_changed",function(){s.setCenter(this.getPosition());s.fitBounds(this.getBounds())}),google.maps.event.addListener(w,"geolocation_error",function(a){f.error("There was an error obtaining your position. Message: "+a.message);w=null}),w.setPositionOptions({enableHighAccuracy:!0,timeout:6E3,maximumAge:0}),w.setMap(s))},buildAddressMarkers:function(a,f,c){R=!0;H=y.trim(a);H=y.searchReplace(H, "'","");"true"===f?(V=!0,a=p(H),"true"===c?n(a,!0):"false"===c&&n(a,!1)):null!=f&&"false"!==f||b(H,"","","",!1,!1);r();h()},isBuildAddressMarkersCalled:function(){return R}}},y=function(){return{isNumeric:function(a){return/^([0-9?(\-.,;\s{1,})]+)$/.test(a)},isAlphaNumeric:function(a){return/^([a-zA-Z0-9?(/\-.,\s{1,})]+)$/.test(a)},trim:function(a){return a.replace(/^\s+|\s+$/g,"")},searchReplace:function(a,f,h){return a.replace(RegExp(f,"g"),h)}}}(),f=function(){var a=function(a){navigator.userAgent.match(/msie|trident/i)|| console.log(a)};return{info:function(f){a("Info :: "+f)},raw:function(f){a(f)},warn:function(f){a("Warning :: "+f)},error:function(f){a("Error :: "+f)},fatal:function(f){a("Fatal :: "+f)}}}();(function(){return{alertError:function(e){function f(b,e){b.preventDefault();var h=a(e).closest("div.cgmp-popup-shortcode-dialog");h&&a(h).remove();0==a("div.cgmp-popup-shortcode-dialog").length&&a("#cgmp-popup-mask").remove()}var h=a('
'),b=Math.random().toString(36).substring(3),l= a('
');l.html("

"+e+"

");a("body").append(h);a("body").append(l);e=a(document).height();h=a(window).width();a("#cgmp-popup-mask").css({width:h,height:e,opacity:0.1});1==a("#cgmp-popup-mask").length&& a("#cgmp-popup-mask").show();e=a(window).height();h=a(window).width();a("div#"+b).css("top",e/2-a("div#"+b).height()/2);a("div#"+b).css("left",h/2-a("div#"+b).width()/2);a("div#"+b).fadeIn(500);a(".cgmp-popup-window .close-dialog").click(function(b){f(b,a(this))});a(".cgmp-popup-window .dialog-dismiss").click(function(b){f(b,a(this))});a("#cgmp-popup-mask").click(function(){a(this).remove();a(".cgmp-popup-window").remove()});a(window).resize(function(){var b=a(".window"),e=a(document).height(),f= a(window).width();a("#cgmp-popup-mask").css({width:f,height:e});e=a(window).height();f=a(window).width();b.css("top",e/2-b.height()/2);b.css("left",f/2-b.width()/2)})}}})();t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r=document.createElement("link");r.type="text/css";r.rel="stylesheet";r.href=CGMPGlobal.cssHref;r.media="screen";t.appendChild(r);t=parseFloat(a.fn.jquery.split(".")[0]);r=parseFloat(a.fn.jquery.split(".")[1]);(1>t||1<=t&&2>t&&9>r)&&f.fatal("Client uses jQuery older than the version 1.9.0, check if he is using jQuery Migrate plugin"); if("undefined"===typeof google||!google)return f.fatal("We do not have reference to Google API. Aborting map generation .."),!1;if("undefined"!==typeof GMap2&&GMap2)return f.fatal("It looks like the webpage has reference to GMap2 object from Google API v2. Aborting map generation .."),!1;google.load("maps","3",{other_params:"sensor=false&libraries=panoramio&language="+CGMPGlobal.language,callback:function(){h()}})})("undefined"!==typeof h&&null!=h&&h?h:jQuery)}if("undefined"===typeof jQuery||null== jQuery){var r=!1,v=document.head||document.getElementsByTagName("head")[0]||document.documentElement,h=document.createElement("script");h.type="text/javascript";h.src="https://web.archive.org/web/20160619204433/http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js";h.onload=h.onreadystatechange=function(){if(!r&&(!this.readyState||/loaded|complete/.test(h.readyState))){r=!0;var u=jQuery.noConflict();p(u);h.onload=h.onreadystatechange=null;v&&h.parentNode&&v.removeChild(h);h=void 0}};v.appendChild(h)}else p()})(); function is_mobile_device(){var p=navigator.userAgent;return"undefined"!==typeof p&&""!=p?p.match(/Android|BlackBerry|IEMobile|i(Phone|Pad|Pod)|Kindle|MeeGo|NetFront|Nokia|Opera M(ob|in)i|Pie|PalmOS|PDA|Polaris|Plucker|Samsung|SonyEricsson|SymbianOS|UP.Browser|Vodafone|webOS|Windows Phone/i):!1} function base64_decode(p){var r,v,h,u,a,A=0,M=0;u="";var t=[];if(!p)return p;p+="";do r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(p.charAt(A++)),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(p.charAt(A++)),u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(p.charAt(A++)),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(p.charAt(A++)),h=r<<18|v<<12|u<<6|a,r=h>>16&255,v=h>>8&255, h&=255,64==u?t[M++]=String.fromCharCode(r):64==a?t[M++]=String.fromCharCode(r,v):t[M++]=String.fromCharCode(r,v,h);while(A