﻿HMap.prototype.eh=function(){if(this.aA.length>0){var ae=new HJS(this.aA+"?nc=1");ae.bC();ae.aK();}else{this.cs();}};HMap.prototype.initHMap=function(a){for(var i=0;i<a.length;i++){var cz=a[i];var d=new HFeed();d.bA=2+i;d.eZ(cz);this.V[d.bA]=d;}this.cs();};function HFeed(){this.bA=0;this.cR="";this.G="";this.o=false;this.ac="black";this.l=null;this.U=[];this.k=[];this.J=HGEO;};HFeed.prototype.eZ=function(a){this.cR=a[0];this.G=a[1];this.o=true;if(a.length>2){this.ac=a[2];}};HFeed.prototype.cn=function(){var f="<table cellpadding=1 cellspacing=0 style='color:white; background-color:"+this.ac+";font-weight:bold;width:340px'><tr><td>"+"&nbsp;"+"<input id='sc"+this.bA+"' onclick='hmap.feedCheck(this)' type='checkbox' "+(this.o?"checked='checked'":"")+" /> "+"<a href='javascript:hmap.feedClick("+this.bA+")' style='color:white;text-decoration:none'>"+this.G+" ("+this.k.length+")</a>";if(this.J==HPAN&&this.o){f+="</td><td align='right'>";if(hmap.ab>1){var cb="<select onchange='hmap.pageClick(this)' style='font-size:10px;background-color:beige' >";for(var i=0;i<hmap.ab;i++){var fe=(i==hmap.M)?" selected=selected":"";cb+="<option"+fe+">"+(i+1)+"</option>";}cb+="</select>";f+="&nbsp;&nbsp;Page "+cb+" of "+hmap.ab+"&nbsp;&nbsp;&nbsp;";if(hmap.M>0){f+="<span onclick='hmap.prevPage()' style='cursor:pointer;border:solid 1px white; background-color:black;color:white;font-weight:bold' onmouseover='hmap.controlHi(this)' onmouseout='hmap.controlLo(this)'>&nbsp;Prev&nbsp;</span>&nbsp;";}if(hmap.M<hmap.ab-1){f+="<span onclick='hmap.nextPage()' style='cursor:pointer;border:solid 1px white; background-color:black;color:white;font-weight:bold' onmouseover='hmap.controlHi(this)' onmouseout='hmap.controlLo(this)'>&nbsp;Next&nbsp;</span>&nbsp;";}}}f+="</td></tr></table>";if(this.J==HPAN&&this.o){f+="<div style='width:340px;color:white; background-color:forestgreen'>"+"<table cellspacing=0 cellpadding=1 style='width:100%'><tr><td style='width:100%'>"+"<table cellspacing=0 cellpadding=1 style='font-size:11px;width:100%; color:black; background-color:yellowgreen'><tr><td>"+"Sidebar</td><td><select id='sideSelect' onchange='hmap.clickSideSelect(this)' style='font-size:11px;width:100px;background-color:beige'><option "+(hmap.panSidebarStyle==0?"selected='selected'":"")+" >List</option><option "+(hmap.panSidebarStyle==1?"selected='selected'":"")+" >Thumbnails</options></select>"+"</td><td>"+"Marker</td><td><select id='markerSelect' onchange='hmap.clickMarkerSelect(this)' style='font-size:11px;width:100px;background-color:beige'><option "+(hmap.panMarkerStyle==0?"selected='selected'":"")+">Icons</option><option "+(hmap.panMarkerStyle==1?"selected='selected'":"")+">Thumbnails</options></select>"+"</td></tr><tr><td>"+"Order</td><td><select id='orderSelect' onchange='hmap.clickOrderSelect(this)' style='font-size:11px;width:100px;background-color:beige'><option "+(hmap.panOrder==0?"selected='selected'":"")+">Most Popular</option><option "+(hmap.panOrder==1?"selected='selected'":"")+" >Most Recent</options></select>"+"</td><td>"+"Count</td><td><select id='countSelect' onchange='hmap.clickCountSelect(this)' style='font-size:11px;width:100px;background-color:beige'><option "+(hmap.panPageSize==25?"selected='selected'":"")+">25</option><option "+(hmap.panPageSize==50?"selected='selected'":"")+">50</options><option "+(hmap.panPageSize==100?"selected='selected'":"")+">100</option></select>"+"</td></tr></table>"+"<span style='font-size:10px'>&nbsp;Photos provided by <a target='_blank' href='http://www.panoramio.com' style='color:white;text-decoration:none'>Panoramio</a> are under the copyright of their owners</span>"+"</td></tr></table>"+"</div>";}if(this.J==HWIKI&&this.o){f+="<div style='width:340px;color:white; background-color:#2f4f4f'>"+"<span style='font-size:10px'>&nbsp;Published under the terms of the <a target='_blank' href='http://en.wikipedia.org/wiki/Wikipedia:Text_of_the_GNU_Free_Documentation_License' style='color:white;text-decoration:none'>GNU Free Documentation License</a></span>"+"</div>";}return f;};HPlace.prototype.dQ=function(a){this.al=a.id;this.G=a.name;this.l=a;this.ac=hmap.cr.ac;this.J=HGEO;};HMap.prototype.ce=function(){var f="&nbsp;&nbsp;Filters &nbsp;&nbsp;";if(this.V.length>1){f+="<a style='color:dodgerblue' href='javascript:hmap.allClick()'>All</a> &nbsp;&nbsp;"+"<a style='color:dodgerblue' href='javascript:hmap.noneClick()'>None</a> &nbsp;&nbsp;";}for(var i=0;i<this.V.length;i++){var d=this.V[i];var eF=d.o?"checked='checked' ":"";f+="<input id='fc"+i+"' type='checkbox' "+eF+" onclick='hmap.feedCheck(this)' /> "+"<a id='fl"+i+"' href='javascript:hmap.feedClick("+i+")' style='color:"+d.ac+"' >"+d.G+"</a> &nbsp;";}this.e("feedDiv").innerHTML=f;};HMap.prototype.dm=function(){this.ce();GEvent.addListener(hmap.map,"addoverlay",function(bJ){if(bJ.name){if(bJ.eR){}else{bJ.eR=true;var g=new HPlace();g.dQ(bJ);hmap.cr.dw(g);}}});this.aB=1;HNextFeed();};function HNextFeed(){setTimeout("HNextFeed2()",hmap.feedLoadDelay);};function HNextFeed2(){hmap.aB++;if(hmap.aB<hmap.V.length){var d=hmap.V[hmap.aB];hmap.cr=d;d.l=new GGeoXml(d.cR,HNextFeed);d.l.fm=hmap.aB;if(d.o){if(d.l){hmap.map.addOverlay(d.l);}}}else{hmap.P();}};HFeed.prototype.dw=function(O){if(this.U[O.al]==null){this.U[O.al]=O;this.k.push(O);}};;HMap.prototype.feedCheck=function(a){this.sscStop();var dj=a.id.substr(0,2);var cd=parseInt(a.id.substr(2));var d=this.V[cd];d.o=a.checked;if(d.J==HGEO){if(d.o){this.map.addOverlay(d.l);}else{this.map.removeOverlay(d.l);}}else{for(var i=0;i<d.k.length;i++){var g=d.k[i];if(d.o){this.map.addOverlay(g.l);}else{this.map.removeOverlay(g.l);}}}if(dj=="fc"){if(this.e("sc"+cd)){this.e("sc"+cd).checked=d.o;}}else{this.e("fc"+cd).checked=d.o;}this.P();};HMap.prototype.feedClick=function(fj){this.sscStop();for(var i=0;i<this.V.length;i++){d=this.V[i];if(i==fj){this.e("fc"+i).checked=true;if(this.e("sc"+i)){this.e("sc"+i).checked=true;}d.o=true;}else{this.e("fc"+i).checked=false;if(this.e("sc"+i)){this.e("sc"+i).checked=false;}d.o=false;}if(d.J==HGEO){if(d.l){if(d.o){this.map.addOverlay(d.l);}else{this.map.removeOverlay(d.l);}}}else{for(var j=0;j<d.k.length;j++){var g=d.k[j];if(d.o){this.map.addOverlay(g.l);}else{this.map.removeOverlay(g.l);}}}if(d.o){if(d.J==HGEO){if(d.l){d.l.gotoDefaultViewport(hmap.map);}}else{this.map.setCenter(this.aO,this.ba);}}}this.P();};HMap.prototype.allClick=function(){this.sscStop();for(var i=0;i<this.V.length;i++){d=this.V[i];this.e("fc"+i).checked=true;if(this.e("sc"+i)){this.e("sc"+i).checked=true;}if(!d.o){d.o=true;if(d.J==HGEO){if(d.l){this.map.addOverlay(d.l);}}else{for(var j=0;j<d.k.length;j++){var g=d.k[j];this.map.addOverlay(g.l);}}}}this.map.setCenter(this.aO,this.ba);this.P();};HMap.prototype.noneClick=function(){this.sscStop();this.weatherClose();for(var i=0;i<this.V.length;i++){d=this.V[i];this.e("fc"+i).checked=false;if(this.e("sc"+i)){this.e("sc"+i).checked=false;}if(d.o){d.o=false;if(d.J==HGEO){if(d.l){this.map.removeOverlay(d.l);}}else{for(var j=0;j<d.k.length;j++){var g=d.k[j];this.map.removeOverlay(g.l);}}}}this.P();};;HMap.prototype.bO=function(){if(this.aj==2){this.bu=parseInt(document.documentElement.clientWidth);this.as=parseInt(document.documentElement.clientHeight);}else{this.bu=parseInt(window.innerWidth);this.as=parseInt(window.innerHeight);}this.as-=this.topMargin;if(this.aj==4){this.as-=1;}var az=(64+4)*5+17;this.eq=az;this.cV=52;this.dM=az;this.bZ=48;this.dK=az;this.bR=16;this.cH=az;this.ct=this.as-this.cV-this.bZ-this.bR;this.eW=this.bu-az;this.bW=26*this.headerRows;this.ca=this.bu-az;this.bM=this.as-this.bW;this.D=this.ca-120;this.am=this.bM-200;if(this.D>660){this.D=660;}if(this.D>this.am*2){this.D=this.am*2;}else{this.am=parseInt(this.D/2);}};HMap.prototype.dN=function(){this.bO();var ef=hmap.e("mainDiv");ef.innerHTML="<table cellspacing=0 cellpadding=0><tr style='height:28px' valign=top><td>"+this.dY()+"<div id='indexDiv' style='font-size:11px;width:"+this.cH+"px;height:"+this.ct+"px;overflow:auto'>"+"<div id='indexInnerDiv'></div>"+"</div>"+this.dp()+"<div id='noticeDiv' style='width:"+this.dK+"px;height:"+this.bR+"px;font-size:10px; color:white; background-color:dodgerblue'>"+"&nbsp;Visit <a target='_blank' href='http://www.mapchannels.com' style='color:yellow'>Map Channels</a> for free mapping tools<br />"+"</div>"+"</td><td>"+"<table cellspacing=0 cellpadding=0 style='width:100%;height:"+this.bW+"px'><tr valign=middle><td>"+"<div id='feedDiv' style='font-size:11px'></div>"+"</td><td style='width:100px' align='right'>"+"<span id='permalinkDiv'></span>&nbsp;"+"</td></tr></table>"+"<div id='mapDiv' style='width:"+this.ca+"px;height:"+this.bM+"px'></div>"+this.cF()+this.dg()+"</td></tr></table>";};HMap.prototype.dY=function(){var f="<div id='geoDiv' style='width:"+this.eq+"px;height:"+this.cV+"px;color:black; background-color:white'>"+"<table cellspacing=0 cellpadding=2 style='font-size:11px;width:100%'><tr style='background-color:orange;height:26px' valign=middle><td colspan=2>"+"Location "+"<input id='geoAddress' type='text' style='font-size:11px;width:244px'  onkeypress='return hmap.geoKeyPress(event)' /> "+"<input type='button' style='font-size:11px; width:56px' onclick='hmap.geoFind()' value='Find' />"+"</td></tr><tr style='height:20px' valign='middle'><td>";if(this.streetviewLayer>0){f+="<input type='checkbox' onclick='hmap.streetviewClick(this)' />Streetview ";}if(this.trafficLayer>0){f+="<input type='checkbox' onclick='hmap.trafficClick(this)' />Traffic ";}if(this.weatherOption>0){f+="<input id='weatherBox' type='checkbox' onclick='hmap.weatherClick(this)' />Weather ";}if(this.slideshowOption>0){f+="<input id='slideshowBox' type='checkbox' onclick='hmap.slideshowClick(this)' />Slideshow";}f+="</td><td align=right>"+"<span onclick='hmap.refreshClick()' title='Refresh Panoramio and Wikipedia Markers' style='cursor:pointer; background-color:darkgreen;border:solid 1px gray;color:white;font-weight:bold' onmouseover='hmap.controlHi(this)' onmouseout='hmap.controlLo(this)'>&nbsp;Refresh&nbsp;</span>&nbsp;"+"</td></tr></table>"+"</div>";return f;};HMap.prototype.dp=function(){var f="<div id='bannerDiv' style='width:"+this.dM+"px;height:"+this.bZ+"px; color:white; background-color:darkred'>"+"<table style='font-size:10px;width:100%'><tr><td>"+"<a target='_blank' href='http://hotels.mapchannels.com' title='Map Channels Hotel Search' style='color:yellow;font-size:13px;font-weight:bold;text-decoration:none'>Hotel Search</a>"+"</td><td>"+"Check-in"+"</td><td>"+"<select id='hdSelect' title='Check-in Date' onchange='hmap.searchUpdate()'  style='font-size:10px;background-color:beige;width:50px'>"+"</select> &nbsp;"+"<select id='hmSelect' title='Check-in Month' onchange='hmap.searchMonthChange()' style='font-size:10px;background-color:beige;width:100px'>"+"</select>"+"</td></tr><tr><td>"+"</td><td>"+"Nights"+"</td><td>"+"<select id='hnSelect' title='Number of Nights' onchange='hmap.searchUpdate()'  style='font-size:10px;background-color:beige;width:50px'></select> &nbsp;"+"<span id='hotelSearchLink'></span>"+"</td></tr></table>"+"</div>";return f;};HMap.prototype.cF=function(){var f="<div id='sscDiv' style='position:relative;width:320px;height:52px;display:none;border:solid 1px black;font-size:10px;background-color:white'>"+"<span id='sscStatus' style='position:absolute;top:4px;left:12px;font-weight:bold;color:green'>Slide Show Playing</span>"+"<div style='position:absolute;top:4px;left:240px'>"+"<span id='sscAction'><a href='javascript:hmap.sscPause()' style='color:darkorange' >Pause</a></span> &nbsp;"+"</div>"+"<div style='position:absolute;top:4px;left:280px'>"+"<a href='javascript:hmap.sscStop()' style='color:red' >Stop</a>"+"</div>"+"<div style='position:absolute;top:22px;left:12px'>"+"Order <select id='sscOrder' onchange='hmap.sscOrderChange(this)'><option>Random</option><option>Name</option><option>Latitude</option><option>Longitude</option></select>"+"</div>"+"<div style='position:absolute;top:22px;left:160px'>"+"Interval <select id='sscInterval' onchange='hmap.sscIntervalChange(this)'>"+"<option>1</option><option>2</option><option>3</option><option>4</option>"+"<option selected=selected>5</option><option>6</option><option>7</option><option>8</option>"+"<option>9</option><option>10</option><option>11</option><option>12</option>"+"</select> seconds"+"</div>"+"</div>";return f;};HMap.prototype.dg=function(){var f="";if(this.weatherOption>0){f="<div id='weatherDiv' style='position:relative;opacity:0.9;width:400px;height:180px;display:none;border:solid 1px black;font-size:10px;background-color:lemonchiffon'>"+"<div style='position:absolute;top:4px;left:12px;color:green'>Current Weather Observations from <a target='_blank' href='http://www.geonames.org' style='color:green'>GeoNames.org</a></div>"+"<div style='position:absolute;top:4px;left:300px'>"+"<a href='javascript:hmap.weatherUpdate()' style='color:blue' >Update</a>"+"</div>"+"<div style='position:absolute;top:4px;left:350px'>"+"<a href='javascript:hmap.weatherClose()' style='color:red' >Close</a>"+"</div>"+"<div id='currentWeather' style='position:absolute;top:20px;left:12px'>..."+"</div>"+"</div>";}return f;};HMap.prototype.dG=function(){this.bO();hmap.e("indexDiv").style.width=this.cH+"px";hmap.e("indexDiv").style.height=this.ct+"px";hmap.e("mapDiv").style.width=this.ca+"px";hmap.e("mapDiv").style.height=this.bM+"px";};;HMap.prototype.geoFind=function(){var bs=this.e("geoAddress").value;var B=[];B[G_GEO_SUCCESS]="Success";B[G_GEO_MISSING_ADDRESS]="Missing Address: The address was either missing or had no value.";B[G_GEO_UNKNOWN_ADDRESS]="Unknown Address:  No corresponding geographic location could be found for the specified address.";B[G_GEO_UNAVAILABLE_ADDRESS]="Unavailable Address:  The geocode for the given address cannot be returned due to legal or contractual reasons.";B[G_GEO_BAD_KEY]="Bad Key: The API key is either invalid or does not match the domain for which it was given";B[G_GEO_TOO_MANY_QUERIES]="Too Many Queries: The daily geocoding quota for this site has been exceeded.";B[G_GEO_SERVER_ERROR]="Server error: The geocoding request could not be successfully processed.";var bc=new GClientGeocoder(new GGeocodeCache());bc.getLatLng(bs,function(bl){hmap.map.closeInfoWindow();if(bl){hmap.map.setCenter(bl,12);hmap.aT();hmap.refreshClick();hmap.dO();if(hmap.weatherOption>0){hmap.bt();}}else{var I=bc.getCache().get(bs);var aU="";if(I){var aU="Error "+I.Status.code+" : ";if(B[I.Status.code]){aU+=B[I.Status.code];}alert(aU);}}});};HMap.prototype.geoKeyPress=function(bU){var bp=bU.keyCode;if(bp==13){this.geoFind();return false;}return true;};;HMap.prototype.ee=function(id){this.dX=new Array("","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");this.fg=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");this.db=[0,31,28,31,30,31,30,31,31,30,31,30,31];var bY=new Date();this.aY=bY.getDate();this.aq=bY.getMonth()+1;this.ax=bY.getFullYear();this.aZ=1;this.ev=this.aY;this.dZ=this.aq;this.ek=this.ax;this.bL(this.e("hdSelect"),this.aY,this.aq,this.ax);this.cT(this.e("hmSelect"),this.aq,this.ax);this.cJ(this.e("hnSelect"),this.aZ);this.aa();};HMap.prototype.dv=function(bh,bS){if((bh==2)&&((bS%4)==0)){return 29;}else{return this.db[bh];}};HMap.prototype.bL=function(at,er,bh,bS){var dC=this.dv(bh,bS);if(er>dC){er=dC;}var dP=0;if(bh==this.dZ&&bS==this.ek){dP=this.ev-1;}at.options.length=0;var ix=0;for(var i=dP;i<dC;i++){var ci=i+1;var ak=(er==ci);var dT=ci.toString();var bB=new Option(dT,ci,ak,ak);at.options[ix++]=bB;}};HMap.prototype.cT=function(at,bh,bS){var en=new Date();var aW=en.getMonth();var bX=en.getFullYear();var eP=12;at.options.length=0;for(var i=0;i<eP;i++){var dT=this.dX[aW+1]+" "+bX;var ak=((aW+1)==bh)&&(bX==bS);var fh=(bX*100)+(aW+1);var bB=new Option(dT,fh,ak,ak);at.options[i]=bB;aW++;if(aW>11){aW=0;bX++;}}};HMap.prototype.cJ=function(at,eH){at.options.length=0;for(var i=0;i<30;i++){var ak=((i+1)==eH);var bB=new Option((i+1),(i+1),ak,ak);at.options[i]=bB;}};HMap.prototype.searchMonthChange=function(){var ci=this.e("hdSelect").value;var ao=this.e("hmSelect").value;var aW=parseInt(ao%100);var bX=parseInt(ao/100);this.bL(this.e("hdSelect"),ci,aW,bX);this.aa();};HMap.prototype.searchUpdate=function(){this.aa();};HMap.prototype.aa=function(){var ci=this.e("hdSelect").value;var ao=this.e("hmSelect").value;var eL=this.e("hnSelect").value;var bk=this.map.getCenter();var z=this.map.getZoom()-1;if(z<10){z=10;}var x=bk.lng();var y=bk.lat();this.aY=parseInt(ci);ao=parseInt(ao);this.aq=parseInt(ao%100);this.ax=parseInt(ao/100);this.aZ=parseInt(eL);var by="http://hotels.mapchannels.com/search.aspx?d="+this.aY+"&m="+this.aq+"&y="+this.ax+"&n="+this.aZ+"&lx="+x+"&ly="+y+"&lz=12";this.e("hotelSearchLink").innerHTML="<a target='_blank' href='"+by+"' title='Find Hotels Now' style='color:yellow;font-size:13px' >Search Now</a>";};function HJS(eA){this.dD=eA;this.dF=document.getElementsByTagName("head").item(0);};HJS.prototype.bC=function(){this.ei='&noCacheIE='+(new Date()).getTime();this.ad=document.createElement("script");this.ad.setAttribute("type","text/javascript");this.ad.setAttribute("charset","utf-8");this.ad.setAttribute("src",this.dD+this.ei);};HJS.prototype.aV=function(){var bY=new Date();this.dB='&noCacheIE='+bY.getDate().toString()+bY.getMonth().toString();this.ad=document.createElement("script");this.ad.setAttribute("type","text/javascript");this.ad.setAttribute("charset","utf-8");this.ad.setAttribute("src",this.dD+this.dB);};HJS.prototype.eG=function(){this.dF.removeChild(this.ad);};HJS.prototype.aK=function(){this.dF.appendChild(this.ad);};;var hmap=null;var HGEO=0;var HPAN=1;var HWIKI=2;function HMap(){this.bo="http://data.mapchannels.com/hm/script/v1/map.htm";this.map=null;this.cB=false;this.aE=null;this.ah=null;this.aC=0;this.bN=null;this.x= -73.986182;this.y=40.756683;this.z=15;this.af=new GLatLng(this.y,this.x);this.cX=null;this.cW=null;this.cY=null;this.bG="";this.ap=[];this.aA="";this.V=[];this.mapType=0;this.wheelScroll=0;this.googleBar=0;this.topMargin=0;this.headerRows=1;this.googleEarthLayer=0;this.panMarkerStyle=1;this.panSidebarStyle=1;this.panOrder=0;this.panPageSize=25;this.panImageSize=0;this.trafficLayer=1;this.streetviewLayer=1;this.weatherOption=1;this.slideshowOption=1;this.feedLoadDelay=100;};HMap.prototype.ec=function(){this.dr();this.cG();this.eh();};HMap.prototype.cs=function(){if(this.cX&&this.cW&&this.cY){this.x=this.cX;this.y=this.cW;this.z=this.cY;}this.af=new GLatLng(this.y,this.x);this.dN();this.ej();this.ee();this.ew();this.dq();this.dm();};HMap.prototype.cG=function(){var dn=document.location.href.indexOf("?");if(dn>0){this.bo=document.location.href.substr(0,dn);}var aR=document.location.search.substring(1);this.bG=this.aJ(aR,"data");var ea=this.aJ(aR,"x");var dV=this.aJ(aR,"y");var dW=this.aJ(aR,"z");if(ea.length>0&&dV.length>0){this.cX=parseFloat(ea);this.cW=parseFloat(dV);}if(dW.length>0){this.cY=parseInt(dW);}if(this.bG.length>0){var cQ=this.bG;var eu=cQ.indexOf(".js");if(eu<0){cQ="http://data.mapchannels.com/hm/data/"+cQ+".js";}this.aA=cQ;}else{var cw=hmap.e("hmapData");if(cw){this.aA=cw.innerHTML;}}};function initPage(){hmap=new HMap();hmap.ec();};function closePage(){GUnload();};function resizePage(){hmap.dG();};;HMap.prototype.ej=function(){this.dA=[G_NORMAL_MAP,G_SATELLITE_MAP,G_HYBRID_MAP,G_PHYSICAL_MAP];var cp=G_NORMAL_MAP;if(this.mapType>0&&this.mapType<4){cp=this.dA[this.mapType];}var cD={suppressZoomToBounds:true};var da=this.e("mapDiv");this.map=new GMap2(da,cD);this.map.addControl(new GLargeMapControl());this.map.addControl(new GScaleControl());this.map.addControl(new GMapTypeControl());this.map.addMapType(G_PHYSICAL_MAP);if(this.googleEarthLayer>0){this.map.addMapType(G_SATELLITE_3D_MAP);}this.map.enableDoubleClickZoom();this.map.enableContinuousZoom();if(this.wheelScroll>0){this.map.enableScrollWheelZoom();}if(this.googleBar>0){this.map.enableGoogleBar();}this.aG=document.createElement("toolDiv");this.map.getPane(G_MAP_FLOAT_PANE).appendChild(this.aG);this.aG.style.visibility="hidden";this.map.setCenter(this.af,this.z);if(this.mapType<4){this.map.setMapType(cp);}if(this.mapType==4){this.googleEarthLayer=1;}this.aT();if(this.slideshowOption>0){this.bV();}if(this.weatherOption>0){this.cy();this.dL();}GEvent.addListener(hmap.map,"moveend",function(){hmap.aT();});if(this.googleEarthLayer>0){this.map.getEarthInstance(getEarthInstanceCB);this.ge=null;}if(this.mapType==4){this.map.setMapType(G_SATELLITE_3D_MAP);}};function getEarthInstanceCB(object){this.ge=object;};HMap.prototype.bV=function(){var cZ=this.e("sscDiv");if(cZ){var bx=new GControlPosition(G_ANCHOR_BOTTOM_RIGHT,new GSize(7,29));bx.apply(cZ);this.map.getContainer().appendChild(cZ);}};HMap.prototype.cy=function(){var bz=this.e("weatherDiv");if(bz){var bx=new GControlPosition(G_ANCHOR_TOP_RIGHT,new GSize(7,29));bx.apply(bz);this.map.getContainer().appendChild(bz);}};HMap.prototype.aT=function(){this.af=this.map.getCenter();this.z=this.map.getZoom();this.dc=this.map.getBounds();this.cU();this.aa();};HMap.prototype.cU=function(){var f="<a target='_blank' title='Bookmark fullscreen map view' href='"+hmap.bo+"?";if(this.aA.length>0){f+="data="+this.aA+"&";}f+="x="+this.aw(this.af.lng(),6)+"&y="+this.aw(this.af.lat(),6)+"&z="+this.z+"' style='font-size:11px'>Permalink</a>";hmap.e("permalinkDiv").innerHTML=f;};;HMap.prototype.dq=function(){this.dc=this.map.getBounds();this.L=this.dc;this.aO=this.af;this.ba=this.z;this.M=0;this.ab=0;this.aM=0;var d=new HFeed();d.G="Photos";d.ac="forestgreen";d.o=true;d.J=HPAN;this.Q=d;this.V[0]=this.Q;this.ag();};HMap.prototype.ag=function(){if(this.cB){return;}if(this.bb.o){this.cI();}var el=(hmap.panOrder==0)?"popularity":"upload_date";var sw=this.L.getSouthWest();var ne=this.L.getNorthEast();this.cB=true;this.aM=this.M*this.panPageSize;hmap.e("indexInnerDiv").innerHTML="&nbsp;Loading ...";var d=this.Q;for(var i=0;i<d.k.length;i++){g=d.k[i];this.map.removeOverlay(g.l);delete g;}d.k=[];d.U=[];var bk=this.L.getCenter();this.map.setCenter(bk);var by="http://www.panoramio.com/map/get_panoramas.php?order="+el+"&set=public"+"&from="+this.aM+"&to="+(this.aM+this.panPageSize)+"&minx="+sw.lng()+"&miny="+sw.lat()+"&maxx="+ne.lng()+"&maxy="+ne.lat()+"&size=square&callback=hmap.cbPanoramio";var ae=new HJS(by);ae.aV();ae.aK();};HMap.prototype.bE=function(){var d=this.Q;for(var i=0;i<d.k.length;i++){var g=d.k[i];this.map.removeOverlay(g.l);g.bj();}};HMap.prototype.cbPanoramio=function(a){this.ab=parseInt((a.count+this.panPageSize-1)/this.panPageSize);for(var i=0;i<a.photos.length;i++){var eO=a.photos[i];var g=new HPlace();g.dh(eO);if(this.L.contains(g.bQ)){hmap.dI(g);}}this.P();this.cB=false;};HMap.prototype.bv=function(){var d=this.Q;for(var i=0;i<d.k.length;i++){g=d.k[i];this.map.removeOverlay(g.l);delete g;}this.Q.k=[];this.Q.U=[];};HMap.prototype.dO=function(){this.e("fc1").checked=true;this.bb.o=true;this.cI();};HMap.prototype.refreshClick=function(){this.sscStop();this.e("fc0").checked=true;if(this.e("sc0")){this.e("sc0").checked=true;}this.Q.o=true;this.M=0;this.L=this.dc;this.aO=this.af;this.ba=this.z;this.ag();};HPlace.prototype.dh=function(a){this.J=HPAN;this.al="pan"+a.photo_id;this.G=a.photo_title;this.eC=a.upload_date;this.x=a.longitude;this.y=a.latitude;this.bQ=new GLatLng(this.y,this.x);this.dJ="<div style='padding-right:8px;float:left'>"+"<img src='"+a.photo_file_url+"' alt='' width='"+a.width+"' height='"+a.height+"' /></div>"+"Posted by: <a target='_blank' href='"+a.owner_url+"' >"+a.owner_name+"</a><br />"+"Date: "+a.upload_date+"<br /><br />"+"<img src='http://mcmarkers.googlepages.com/panoramio.png' width=18 height=18 alt='' /> "+"<a target='_blank' href='"+a.photo_url+"' >View this image on Panoramio</a><br /><br />"+"<span style='font-size:10px'>"+"Photos provided by <a target='_blank' href='http://www.panoramio.com' >Panoramio</a> are under the copyright of their owners.</span><br />";var av=a.photo_file_url;this.bm=av;this.cu=av;this.cv=av;this.cL=av;var bx=av.indexOf("/square/");if(bx>0){var bd=av.substr(bx+8);this.cu=av.substr(0,bx)+"/mini_square/"+bd;this.cL="http://mw2.google.com/mw-panoramio/photos/small/"+bd;this.cv="http://mw2.google.com/mw-panoramio/photos/medium/"+bd;}this.bP="<table style='width:320px'><tr><td style='width:100%;font-weight:bold;color:dodgerblue' align='left'>"+this.G+"</td></tr><tr style='height:240px'><td align='center'>"+"<img src='"+this.cL+"' alt='' />"+"</td></tr><tr><td align='left' style='font-size:10px'>"+"<a target='_blank' href='"+a.photo_url+"' >Panoramio</a> photo copyright of "+"<a target='_blank' href='"+a.owner_url+"' >"+a.owner_name+"</a> &nbsp;"+" "+hmap.aD(a.upload_date)+"</td></tr><tr><td align='right' style='font-size:10px'>"+"<a href='javascript:hmap.setImageSize()' style='color:darkred'>View Larger Image</a>"+"</td></tr></table>";this.bK="<table style='width:500px'><tr><td style='width:100%;font-weight:bold;color:dodgerblue' align='left' colspan=2>"+this.G+"</td></tr><tr style='height:500px'><td align='center' colspan=2>"+"<img src='"+this.cv+"' alt='' />"+"</td></tr><tr style='font-size:10px'><td align='left'>"+"<a target='_blank' href='"+a.photo_url+"' >Panoramio</a> photo copyright of "+"<a target='_blank' href='"+a.owner_url+"' >"+a.owner_name+"</a> &nbsp;"+" "+hmap.aD(a.upload_date)+"</td><td align='right'>"+"<a href='javascript:hmap.setImageSize()' style='color:darkred'>View Smaller Image</a>"+"</td></tr></table>";this.o=true;};;HMap.prototype.dI=function(O){var d=this.Q;if(d.U[O.al]==null){d.U[O.al]=O;d.k.push(O);if(!O.l&&O.J>0){O.bj();}}};HMap.prototype.dy=function(O){var d=this.bb;if(d.U[O.al]==null){d.U[O.al]=O;d.k.push(O);if(!O.l&&O.J>0){O.bj();}}};function HPlace(){this.al="";this.G="";this.eC="";this.x=0;this.y=0;this.bQ=null;this.url="";this.markerImage="";this.bm="";this.fk="";this.bI="";this.bP="";this.bK="";this.dJ="";this.bw=0;this.ac="black";this.J=HGEO;};HPlace.prototype.de=function(){if(hmap.panSidebarStyle==0||this.J!=HPAN){var f="<div id='r"+this.bw+"' style='cursor:pointer; color:"+this.ac+"; background-color:"+"white;width:340px' "+"onmouseover='hmap.rowHi("+this.bw+")' onmouseout='hmap.rowLo("+this.bw+")' onclick='hmap.rowClick("+this.bw+")' >"+"&nbsp;&bull; "+this.G+"</div>";}else{var f="<div id='r"+this.bw+"' style='float:left;cursor:pointer; padding:2px; background-color:white' title='"+this.G+"' onmouseover='hmap.rowHi("+this.bw+")' onmouseout='hmap.rowLo("+this.bw+")' onclick='hmap.rowClick("+this.bw+")' >"+"<img src='"+this.bm+"' alt='' border=0 height=64 width=64 />"+"</div>";}return f;};HPlace.prototype.dH=function(){var f="";if(this.J==HPAN){if(hmap.panImageSize==0){f=this.bP;}else{f=this.bK;}}else{f=this.bI;}return f;};HPlace.prototype.aI=function(){hmap.bN=this;var ep=this.dH();hmap.aS();this.l.openInfoWindowHtml(ep,{maxWidth:400});hmap.weatherClose();};HMap.prototype.setImageSize=function(){if(hmap.bN){this.map.closeInfoWindow();hmap.panImageSize=hmap.panImageSize?0:1;hmap.bN.aI();}};HPlace.prototype.bj=function(){var g=this;var v=new GIcon();if(this.J==HPAN&&hmap.panMarkerStyle==1){v.image=this.cu;v.iconSize=new GSize(32,32);v.printImage=v.image;v.mozPrintImage=v.image;v.iconAnchor=new GPoint(16,16);v.infoWindowAnchor=new GPoint(16,0);}else if(this.J==HWIKI){v.image="http://mcmarkers.googlepages.com/wikipedia.png";v.iconSize=new GSize(19,19);v.printImage=v.image;v.mozPrintImage=v.image;v.iconAnchor=new GPoint(9,9);v.infoWindowAnchor=new GPoint(9,0);}else{v.image="http://mcmarkers.googlepages.com/panoramio.png";v.iconSize=new GSize(18,18);v.printImage=v.image;v.mozPrintImage=v.image;v.iconAnchor=new GPoint(9,9);v.infoWindowAnchor=new GPoint(9,0);}var t=new GMarker(this.bQ,{icon:v});t.eS=g;hmap.map.addOverlay(t);this.l=t;GEvent.addListener(t,'click',function(){t.eS.aI();});GEvent.addListener(t,"mouseover",function(){g.cq();});GEvent.addListener(t,"mouseout",function(){hmap.aS();});};HPlace.prototype.cq=function(){var cE=hmap.map.getInfoWindow();if(!cE||cE.isHidden()){var cc="<div class='markerTooltip'>"+"<b>"+hmap.aD(this.G)+"</b>";if(this.bm.length>0){cc+="<br />"+"<img src='"+this.bm+"' alt='' border=0 width=64 height=64 /><br />"+hmap.aD(this.eC);}cc+="</div>";hmap.aG.innerHTML=cc;var t=this.l;var aX=this.bQ;if(t&&aX){var v=t.getIcon();if(v){var fa=hmap.map.getCurrentMapType().getProjection().fromLatLngToPixel(hmap.map.fromDivPixelToLatLng(new GPoint(0,0),true),hmap.map.getZoom());var dR=hmap.map.getCurrentMapType().getProjection().fromLatLngToPixel(aX,hmap.map.getZoom());var dU=v.iconAnchor;var wd=parseInt(v.iconSize.width);var ht=hmap.aG.clientHeight;var x=dR.x-fa.x-dU.x+wd;var y=dR.y-fa.y-dU.y-ht+17;if(this.J==HPAN){y+=79;}var bx=new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(x,y));bx.apply(hmap.aG);hmap.aG.style.visibility="visible";}}}};HMap.prototype.aS=function(){this.aG.style.visibility="hidden";};;HMap.prototype.P=function(){var f="";var ix=0;this.ap=[];for(var i=0;i<this.V.length;i++){var d=this.V[i];if(i>0){f+="<div style='float:left'>";}f+=d.cn();if(i>0){f+="</div>";}if(d.o){f+="<div style='float:left'>";d.k.sort(this.eI);for(var j=0;j<d.k.length;j++){var g=d.k[j];g.bw=this.ap.length;this.ap.push(g);f+=g.de();}f+="</div>";}}hmap.e("indexInnerDiv").innerHTML=f;};HMap.prototype.rowHi=function(a){this.e("r"+a).style.backgroundColor="yellow";var g=this.ap[a];g.cq();};HMap.prototype.rowLo=function(a){this.e("r"+a).style.backgroundColor="white";this.aS();};HMap.prototype.eI=function(p1,p2){var v1=p1.G;var v2=p2.G;var I=((v1<v2)? -1:((v1>v2)?1:0));return I;};HMap.prototype.rowClick=function(a){var g=hmap.ap[a];if(g){var t=g.l;if(t){if(g.J==0){GEvent.trigger(t,"click");}else{g.aI();}}}};HMap.prototype.clickMarkerSelect=function(a){if(a.selectedIndex!=this.panMarkerStyle){this.panMarkerStyle=a.selectedIndex;this.bE();}};HMap.prototype.clickSideSelect=function(a){if(a.selectedIndex!=this.panSidebarStyle){this.panSidebarStyle=a.selectedIndex;this.P();}};HMap.prototype.clickOrderSelect=function(a){if(a.selectedIndex!=this.panOrder){this.panOrder=a.selectedIndex;this.bv();this.refreshClick();}};HMap.prototype.clickCountSelect=function(a){var bq=25;switch(a.selectedIndex){case 0:bq=25;break;case 1:bq=50;break;case 2:bq=100;break;}if(this.panPageSize!=bq){this.panPageSize=bq;this.refreshClick();}};HMap.prototype.prevPage=function(){this.sscStop();this.M--;this.map.setCenter(this.af);this.ag();};HMap.prototype.nextPage=function(){this.sscStop();this.M++;this.map.setCenter(this.af);this.ag();};HMap.prototype.pageClick=function(a){this.sscStop();if(a.selectedIndex!=this.M){this.M=a.selectedIndex;this.map.setCenter(this.af);this.ag();}};HMap.prototype.controlHi=function(a){a.style.color="yellow";};HMap.prototype.controlLo=function(a){a.style.color="white";};;HMap.prototype.slideshowClick=function(a){if(!this.slideshow){this.slideshow=new HSlideshow();}if(a.checked){this.slideshow.fb();this.slideshow.eU();}else{this.slideshow.ez();}};function HSlideshow(a){this.cN=false;this.dk=5;this.cP=0;this.eo=0;this.bF=false;};HSlideshow.prototype.fb=function(){this.cC();setTimeout("hmap.slideshow.play()",1);};HSlideshow.prototype.cC=function(){this.k=[];for(var i=0;i<hmap.ap.length;i++){var g=hmap.ap[i];g.eB=hmap.dz(1000000);this.k[i]=g;}var cg=hmap.slideshow.ed;switch(this.eo){case 1:cg=hmap.slideshow.ey;break;case 2:cg=hmap.slideshow.eT;break;case 3:cg=hmap.slideshow.eV;break;}this.k.sort(cg);this.F= -1;};HSlideshow.prototype.ed=function(p1,p2){var v1=p1.eB;var v2=p2.eB;var I=((v1<v2)? -1:((v1>v2)?1:0));return I;};HSlideshow.prototype.ey=function(p1,p2){var v1=p1.G;var v2=p2.G;var I=((v1<v2)? -1:((v1>v2)?1:0));return I;};HSlideshow.prototype.eT=function(p1,p2){var v1=p1.y;var v2=p2.y;var I=((v1<v2)? -1:((v1>v2)?1:0));return I;};HSlideshow.prototype.eV=function(p1,p2){var v1=p1.x;var v2=p2.x;var I=((v1<v2)? -1:((v1>v2)?1:0));return I;};HSlideshow.prototype.eU=function(){this.cN=true;this.bF=false;this.F= -1;this.cP=0;this.bi();hmap.e("sscDiv").style.display="block";};HSlideshow.prototype.ez=function(){this.cN=false;hmap.e("slideshowBox").checked=false;hmap.e("sscDiv").style.display="none";};HSlideshow.prototype.play=function(){if(this.cN){if(!this.bF){this.cP--;if(this.cP<=0){this.cP=this.dk;this.F++;if(this.F>=this.k.length){this.F=0;}var g=this.k[this.F];if(g){var t=g.l;if(t){if(g.J==0){GEvent.trigger(t,"click");}else{g.aI();}}}}}setTimeout("hmap.slideshow.play()",1000);}};HSlideshow.prototype.bi=function(){if(this.bF){hmap.e("sscStatus").innerHTML="Slide Show Paused &nbsp; <a href='javascript:hmap.sscPrev()' title='Previous'>&lt;&lt;</a> &nbsp; <a href='javascript:hmap.sscNext()' title='Next'>&gt;&gt;</a> ";hmap.e("sscStatus").style.color="darkorange";hmap.e("sscAction").innerHTML="<a href='javascript:hmap.sscPlay()' style='color:green' >Play</a>";}else{hmap.e("sscStatus").innerHTML="Slide Show Playing";hmap.e("sscStatus").style.color="green";hmap.e("sscAction").innerHTML="<a href='javascript:hmap.sscPause()' style='color:darkorange' >Pause</a>";}};HMap.prototype.sscPause=function(){this.slideshow.bF=true;this.slideshow.bi();};HMap.prototype.sscPlay=function(){this.slideshow.bF=false;this.slideshow.bi();};HMap.prototype.sscStop=function(){if(this.slideshow){this.slideshow.ez();}};HMap.prototype.sscNext=function(){var K=this.slideshow;K.F++;if(K.F>=K.k.length){K.F=0;}var g=K.k[K.F];var t=g.l;if(t){if(g.J==0){GEvent.trigger(t,"click");}else{g.aI();}}};HMap.prototype.sscPrev=function(){var K=this.slideshow;K.F--;if(K.F<0){K.F=K.k.length-1;}var g=K.k[K.F];var t=g.l;if(t){if(g.J==0){GEvent.trigger(t,"click");}else{g.aI();}}};HMap.prototype.sscOrderChange=function(a){this.slideshow.eo=a.selectedIndex;this.slideshow.cC();};HMap.prototype.sscIntervalChange=function(a){this.slideshow.dk=a.selectedIndex+1;};;HMap.prototype.streetviewClick=function(a){var n=a.checked;var fc=this.e("streetDiv");if(!this.aE){this.df();}if(n){this.bg=true;this.map.addOverlay(this.aE);if(this.H){this.map.addOverlay(this.H);}}else{this.bg=false;this.map.removeOverlay(this.aE);if(this.H){this.map.removeOverlay(this.H);}}};HMap.prototype.df=function(){this.aE=new GStreetviewOverlay();this.R=new GLatLng(0,0);this.cA=new GStreetviewClient();this.aQ="";GEvent.addListener(this.map,"click",function(fi,aX){if(aX&&hmap.bg){hmap.bT(aX);}});};HMap.prototype.bT=function(bl,fd){hmap.map.closeInfoWindow();if(!this.bg){return;}this.cA.getNearestPanorama(bl,initPanorama2);};function initPanorama2(a){if(a==null){return;}var co=a.location;if(co==null){return;}hmap.R=co.latlng;hmap.aQ=co.description;hmap.ai();hmap.aF();GEvent.addListener(hmap.cj,"yawchanged",function(a){hmap.aC=parseFloat(a);hmap.ai();});GEvent.addListener(hmap.cj,"initialized",function(a){hmap.R=a.latlng;hmap.aQ=a.description;hmap.ai();});};HMap.prototype.aF=function(){var f="<table cellspacing=0 cellpadding=0 style='width:"+this.D+"px'><tr><td style='width:"+this.D+"px'>"+"<div id='svTitleDiv' style='color:dodgerblue;font-weight:bold;width:"+this.D+"px;height:20px'>"+hmap.aQ+"</div>"+"<div id='panDiv' style='width:"+this.D+"px;height:"+this.am+"px' >&nbsp;</div>"+"</td></tr></table>";hmap.H.openInfoWindowHtml(f);var eJ=hmap.e("panDiv");hmap.cj=new GStreetviewPanorama(eJ);hmap.cj.setLocationAndPOV(hmap.R,{"yaw":hmap.aC});};HMap.prototype.ai=function(){if(!this.H){var v=new GIcon();var ck=Math.round(hmap.aC/22.5)%16;var cl="http://maps.google.com/intl/en_us/mapfiles/cb/man_arrow-"+ck+".png";v.image=cl;v.iconSize=new GSize(49,52);v.printImage=v.image;v.mozPrintImage=v.image;v.iconAnchor=new GPoint(25,36);v.infoWindowAnchor=new GPoint(25,6);var t=new GMarker(this.R,{"icon":v,"draggable":true});GEvent.addListener(t,"dragstart",function(){hmap.map.closeInfoWindow();hmap.aS();});GEvent.addListener(t,"dragend",function(){hmap.R=t.getPoint();hmap.bT(hmap.R);});GEvent.addListener(t,"click",function(){hmap.aF();});this.map.addOverlay(t);this.H=t;}else{var cK=hmap.e("svTitleDiv");if(cK){cK.innerHTML=hmap.aQ;}var ck=Math.round(hmap.aC/22.5)%16;var cl="http://maps.google.com/intl/en_us/mapfiles/cb/man_arrow-"+ck+".png";this.H.setImage(cl);this.H.setPoint(this.R);this.map.getInfoWindow().reposition(this.R,new GSize(0,-30));}};;HMap.prototype.trafficClick=function(a){this.trafficLayerOn=a.checked;if(!this.ah){if(!this.trafficLayerOn){return;}else{this.ah=new GTrafficOverlay();this.map.addOverlay(this.ah);}}if(this.trafficLayerOn){this.ah.show();}else{this.ah.hide();}};;HMap.prototype.e=function(id){return document.getElementById(id);};HMap.prototype.ff=function(a){GLog.write(a);};HMap.prototype.dr=function(){if(navigator.userAgent.indexOf("Firefox")!= -1){this.aj=1;}else if(navigator.userAgent.indexOf("MSIE")!= -1){this.aj=2;}else if(navigator.userAgent.indexOf("Safari")!= -1){this.aj=3;}else if(navigator.userAgent.indexOf("Opera")!= -1){this.aj=4;}};HMap.prototype.aD=function(eN){var du="";for(var i=0;i<eN.length;i++){var c=eN.substr(i,1);if(c==' '||c=='+'){du+="&nbsp;";}else if(c=='-'){du+=(this.aj==2?"&nbsp;":"-");}else{du+=c;}}return du;};HMap.prototype.aw=function(pFloat,pDp){var m=Math.pow(10,pDp);return parseInt(pFloat*m,10)/m;};HMap.prototype.aJ=function(ay,bH){var di=bH+"=";if(ay.length>0){var cO=ay.indexOf(bH);if(cO!= -1){cO+=di.length;var et=ay.indexOf("&",cO);if(et== -1){et=ay.length;}return unescape(ay.substring(cO,et));}}return "";};HMap.prototype.dz=function(eQ){var eK=Math.floor(Math.random()*eQ);return eK;};;HMap.prototype.dL=function(){this.au="";this.be="";this.bf="";this.aH="";this.an="";this.aN="";this.aL="";this.aP="";this.bt();};HMap.prototype.bt=function(){hmap.e("currentWeather").innerHTML="...";var by="http://ws.geonames.org/findNearByWeatherJSON?lat="+(this.af.lat())+"&lng="+(this.af.lng())+"&callback=hmap.cbWeather";var ae=new HJS(by);ae.bC();ae.aK();};HMap.prototype.cbWeather=function(a){var A=a.weatherObservation;if(A.temperature&&A.temperature!="n/a"){this.au=A.temperature+" &deg; Celsius";}if(A.clouds&&A.clouds!="n/a"){this.be=A.clouds;}if(A.weatherCondition&&A.weatherCondition!="n/a"){this.eD=A.weatherCondition;}if(A.windSpeed&&A.windSpeed!="n/a"){this.aH=A.windSpeed+" knots";}if(A.windDirection&&A.windDirection!="n/a"){this.an=A.windDirection+" &deg;";}if(A.humidity){this.aN=A.humidity;}if(A.datetime&&A.datetime!="n/a"){this.aL=A.datetime+" (GMT)";}if(A.stationName&&A.stationName!="n/a"){this.aP=A.stationName;}var f="<table>";if(this.au.length>0){f+="<tr><td>Temperature</td><td><b>"+this.au+"</b></td></tr>";}if(this.bf.length>0){f+="<tr><td>Conditions</td><td><b>"+this.bf+"</b></td></tr>";}if(this.be.length>0){f+="<tr><td>Clouds</td><td><b>"+this.be+"</b></td></tr>";}if(this.aH.length>0){f+="<tr><td>Wind Speed</td><td><b>"+this.aH+"</b></td></tr>";}if(this.an.length>0){f+="<tr><td>Wind Direction</td><td><b>"+this.an+"</b></td></tr>";}if(this.aN){f+="<tr><td>Humidity</td><td><b>"+this.aN+"</b></td></tr>";}if(this.aP.length>0){f+="<tr><td>Location</td><td><b>"+this.aP+"</b></td></tr>";}if(this.aL.length>0){f+="<tr><td>Date/Time</td><td><b>"+this.aL+"</b></td></tr>";}f+="</table>";hmap.e("currentWeather").innerHTML=f;hmap.e("weatherDiv").style.display="block";hmap.e("weatherBox").checked="checked";};HMap.prototype.weatherClick=function(){if(hmap.e("weatherBox").checked){hmap.e("weatherDiv").style.display="block";}else{hmap.e("weatherDiv").style.display="none";}};HMap.prototype.weatherClose=function(){hmap.e("weatherDiv").style.display="none";hmap.e("weatherBox").checked=false;};HMap.prototype.weatherUpdate=function(){this.bt();};;HMap.prototype.ew=function(){var d=new HFeed();d.bA=1;d.G="Wikipedia";d.ac="#2f4f4f";d.o=true;d.J=HWIKI;this.bb=d;this.V[1]=this.bb;};HMap.prototype.cI=function(){var el=(hmap.panOrder==0)?"popularity":"upload_date";var sw=this.L.getSouthWest();var ne=this.L.getNorthEast();var d=this.bb;for(var i=0;i<d.k.length;i++){g=d.k[i];this.map.removeOverlay(g.l);delete g;}d.k=[];d.U=[];var bk=this.L.getCenter();this.map.setCenter(bk);var by="http://ws.geonames.org/wikipediaBoundingBoxJSON?north="+ne.lat()+"&south="+sw.lat()+"&east="+ne.lng()+"&west="+sw.lng()+"&lang=en&maxRows=25&alt=json-in-script&callback=hmap.cbWiki";var ae=new HJS(by);ae.aV();ae.aK();};HMap.prototype.cbWiki=function(a){for(var i=0;i<a.geonames.length;i++){var cz=a.geonames[i];var g=new HPlace();g.es(cz);hmap.dy(g);}this.P();};HPlace.prototype.es=function(a){this.J=HWIKI;this.al="wiki"+a.title;this.G=a.title;this.x=a.lng;this.y=a.lat;this.bQ=new GLatLng(this.y,this.x);this.bI="";if(a.thumbnailImg){this.bI+="<div style='padding-left:8px;float:right;width:120px; height:120px'>"+"<img src='"+a.thumbnailImg+"' alt=''  /></div>";}this.eY="http://"+a.wikipediaUrl;this.bI+="<table cellspacing=0 cellpadding=0><tr valign=top><td>"+"<img src='http://mcmarkers.googlepages.com/wikipedia.png' alt='' height='18' width='18' /> &nbsp;"+"<a target='_blank' href='"+this.eY+"' style='color:#2f4f4f;font-size:15px;text-decoration:none' title='View Full Article' >"+this.G+"</a>"+"</td></tr></table><br />"+a.summary+"<div style='font-size:10px; color:green'><br />From <a target='_blank' href='http://www.geonames.org' style='color:green; text-decoration:none' >GeoNames.Org</a> Wikipedia Search</div>";this.o=true;}