﻿var g_scriptXml="";var g_isIE=false;var map=null;var mapPoint=null;var mapView=0;var mapZoom=2;var g_sidePanelMode=0;var mmp_titleImage="";var g_hexTable=[];var g_placeLookup=[];var g_placeList=[];var g_visibleList=[];var g_windowWidth;var g_windowHeight;var g_searchChannel;var g_animationIndex=0;var g_animationPlay=false;var g_searchPlaceList=[];var g_searchChannel=0;var g_resultChannel=0;var g_originMarker=null;var g_originPoint=null;var g_originMarkerSet=false;var g_searchTaskID=null;var g_resultUnits=0;var g_resultSortOrder;var g_searchThreadsTotal=0;var g_searchThreadsCompleted=0;var g_baseLayerShow=false;function e(id){return document.getElementById(id);};function g_mlog(a){};function T_JSONscriptRequest(fullUrl){this.ea=fullUrl;this.es='&noCacheIE='+(new Date()).getTime();this.cJ=document.getElementsByTagName("head").item(0);this.eu='JscriptId'+T_JSONscriptRequest.er++;};T_JSONscriptRequest.er=1;T_JSONscriptRequest.prototype.cL=function(){this.be=document.createElement("script");this.be.setAttribute("type","text/javascript");this.be.setAttribute("charset","utf-8");this.be.setAttribute("src",this.ea+this.es);this.be.setAttribute("id",this.eu);};T_JSONscriptRequest.prototype.eH=function(){this.cJ.removeChild(this.be);};T_JSONscriptRequest.prototype.cO=function(){this.cJ.appendChild(this.be);};var mmp_control=new T_MM_DisplaySettings();function T_MM_DisplaySettings(){this.mapName="";this.displayWidth=720;this.displaySideWidth=320;this.displayHeight=400;this.displayMapType=0;this.mapComplexity=2;this.bounds=[];this.bn=true;this.navControl=1;this.typeControl=1;this.scaleControl=1;this.shadow=1;this.mapCursor=1;this.trafficLayer=0;this.headColor="midnightblue";this.headBackColor="whitesmoke";this.backColor="white";this.textColor="black";this.highlightColor="green";this.highlightBackColor="ivory";this.textFont="arial";this.titleFont="sans-serif";this.textHeight="13px";this.titleHeight="15px";this.subHeight="11px";this.overviewMap=true;this.scrollWheelZoom=false;this.doubleClickZoom=true;this.infoWidth=0;this.infoHeight=0;this.infoWindowType=0;this.continuousZoom=false;this.fixedView=false;this.mapCentreX=0;this.mapCentreY=0;this.displayZoomLevel=0;this.showSidebar=1;this.showHeader=1;this.initialDetail=2;this.sortOrder=1;this.infoRecentre=0;this.changeDetail=1;this.changeViewAll=1;this.changeFullScreen=1;this.enableChannels=1;this.channelPlacefinder=1;this.channelWikipedia=1;this.channelEvents=0;this.channelHotels=0;this.channelLocal=0;this.showAnimation=0;this.showIntro=0;};function g_getWindowSize(){g_isIE=true;if(typeof(window.innerHeight)=='number'){g_isIE=false;}if(g_isIE){g_windowWidth=parseInt(document.documentElement.clientWidth);g_windowHeight=parseInt(document.documentElement.clientHeight);g_windowHeight-=18;}else{g_windowWidth=parseInt(window.innerWidth);g_windowHeight=parseInt(window.innerHeight);}};var g_fullScreen=false;function g_resizePage(){g_getWindowSize();mmp_control.displayWidth=g_windowWidth;mmp_control.displayHeight=g_windowHeight;if(e("fsDiv")){g_fullScreen=true;mmp_control.displayHeight-=1;}var ah=mmp_control.displayHeight;if(mmp_control.showHeader){if(g_fullScreen){ah-=(g_isIE?26:26);}else{ah-=(g_isIE?25:25);}}if(g_isIE){ah+=g_fullScreen?19:17;}var cz=ah-41;var bd=e('viewDiv');var aH=e('mapDiv');var J=e('sideDiv');var dr=e('sideHeadDiv');var T=e('descDiv');var L=e('searchDiv');var aa=e('resultDiv');var bj=e('resultHeaderDiv');var bu=e('resultProgressDiv');var dv=e('resultListDiv');if(bd){bd.style.width=mmp_control.displayWidth+"px";bd.style.height=mmp_control.displayHeight+"px";}if(aH){var az=mmp_control.displayWidth-10;var bV=mmp_control.displayHeight;if(g_fullScreen){if(g_isIE){bV+=2;}else{bV+=2;}}if(g_isIE){bV+=16;}if(mmp_control.showSidebar>0){az-=(mmp_control.displaySideWidth);}aH.style.width=az+"px";aH.style.height=bV+"px";}if(J){J.style.width=mmp_control.displaySideWidth+"px";J.style.height=ah+"px";}if(T){T.style.width=mmp_control.displaySideWidth+"px";T.style.height=ah+"px";}if(dr){dr.style.width=mmp_control.displaySideWidth+"px";}if(L){L.style.width=mmp_control.displaySideWidth+"px";L.style.height=ah+"px";}if(aa){aa.style.width=mmp_control.displaySideWidth+"px";aa.style.height=cz+"px";}if(bj){bj.style.width=mmp_control.displaySideWidth+"px";bj.style.height="40px";}if(bu){bu.style.width=(mmp_control.displaySideWidth-20)+"px";}if(dv){dv.style.width=(mmp_control.displaySideWidth-20)+"px";}var ca=e("encDiv");if(ca){ca.style.width=mmp_control.displayWidth+"px";var aW=mmp_control.displayHeight;if(g_isIE){aW+=18;}ca.style.height=aW+"px";}};function resizePage(){g_resizePage();};function initPage(){if(typeof GMap2=="undefined"){e("viewDiv").innerHTML="<table style='width:100%'><tr valign='middle' style='height:"+mmp_control.displayHeight+"px'><td style='width:100%' align='center'>"+"<b>Error</b><br /><br />Unable to load the Google Maps API"+"</td></tr></table>";return;}if(!GBrowserIsCompatible()){e("viewDiv").innerHTML="<table style='width:100%'><tr valign='middle' style='height:"+mmp_control.displayHeight+"px'><td style='width:100%' align='center'>"+"<b>Error</b> : Your browser is incompatible with Google Maps<br /><br /><br />"+"Visit <a target='_blank' href='http://maps.google.com/' title='Google Maps' >Google Maps</a> for further Information"+"</td></tr></table>";return;}g_initHexTable();g_isIE=true;if(typeof(window.innerHeight)=='number'){g_isIE=false;}if(typeof prepMMP!="undefined"){prepMMP();}if(e("fsDiv")!=null){if(mmp_control.displaySideWidth<300){mmp_control.displaySideWidth=300;}mmp_control.enableChannels=1;mmp_control.infoWindowType=0;mmp_control.navControl=2;mmp_control.typeControl=1;mmp_control.scaleControl=1;mmp_control.shadow=1;mmp_control.mapCursor=1;mmp_control.overviewMap=true;mmp_control.scrollWheelZoom=true;mmp_control.doubleClickZoom=true;mmp_control.continuousZoom=true;}g_getWindowSize();mmp_control.displayWidth=g_windowWidth;mmp_control.displayHeight=g_windowHeight;var az=mmp_control.displayWidth;var bd=e('viewDiv');if(bd){var ah=mmp_control.displayHeight;if(mmp_control.showHeader){ah-=(g_isIE?26:26);}var cz=ah-40;var ai=mmp_control.displaySideWidth;var cW="";if(mmp_control.showSidebar==0){cW="style='display:none' ";}else{az=mmp_control.displayWidth-(mmp_control.displaySideWidth+10);}var dz=mmp_control.showSidebar>0?"rarrow":"larrow";var cg="<table cellspacing=0 cellpadding=0 style='width:100%'><tr valign='top'><td>\r\n"+"<div id='mapDiv' style='background-color:white;width:"+az+"px;height:"+mmp_control.displayHeight+"px'></div>"+"<div id='noteDiv' style='display:none'></div>"+"</td><td id='sizeCol' onmouseover='sizeCursor()' style='width:10px;background-color:white' valign='middle' align='center' onclick='switchSidebar();'>\r\n"+"<img src='http://www.mymapsplus.com/images/"+dz+".png' alt='' />"+"</td><td  style='border-left:solid 1px gray'>\r\n"+"<div id='outerSideDiv' "+cW+">"+"<table cellspacing=0 cellpadding=0 style='width:100%'>";if(mmp_control.showHeader){cg+="<tr valign='middle' style='height:25px;background-color:"+mmp_control.headBackColor+";'><td>\r\n"+"<div id='sideHeadDiv'></div>\r\n"+"</td></tr><tr style='height:1px;background-color:"+mmp_control.textColor+"'><td>\r\n"+"</td></tr>";}cg+="<tr><td>\r\n"+"<table cellspacing=0 cellpadding=0><tr><td>\r\n"+"<div id='sideDiv' style='width:"+ai+"px;height:"+ah+"px; overflow-y:scroll; background-color:"+mmp_control.backColor+";font-size:"+mmp_control.textHeight+"'></div>\r\n"+"<div id='descDiv' style='display:none;width:"+ai+"px;height:"+ah+"px; overflow-y:scroll; background-color:"+mmp_control.backColor+";font-size:"+mmp_control.textHeight+"'></div>\r\n"+"<div id='searchDiv' style='display:none;color:black;width:"+ai+"px;height:"+ah+"px;overflow-y:scroll'></div>"+"<div id='resultHeaderDiv' style='height:40px;width:"+ai+"px;background-color:white;color:black;font-size:12px;font-family:sans-serif;border-bottom:solid 1px black;display:none'></div>"+"<div id='resultDiv' style='display:none;width:"+ai+"px;height:"+cz+"px;overflow-y:scroll;background-color:whitesmoke; color:black'>"+"<div id='resultProgressDiv' style='display:none;width:"+ai+"px;'></div>"+"<div id='resultListDiv' style='display:none'></div>"+"</div>\r\n"+"</td></tr></table>"+"</td></tr></table>"+"</div>"+"</td></tr></table>";var dG="font-family:"+mmp_control.textFont;bd.innerHTML="<div id='encDiv' style='display:block;overflow:hidden;text-decoration:none;background-color:"+mmp_control.backColor+";color:"+mmp_control.textColor+";"+dG+"'>"+cg+"</div>";g_resizePage();g_initMap();}g_resizePage();};function closePage(){GUnload();};function viewClick(a){mmp_control.initialDetail=a;e("ld1").checked=(a==1);e("ld2").checked=(a==2);e("ld3").checked=(a==3);};function switchSidebar(){mmp_control.showSidebar=(mmp_control.showSidebar==0)?1:0;var ec=e("outerSideDiv");ec.style.display=(mmp_control.showSidebar>0)?"block":"none";var ds=e("sizeCol");var aH=e("mapDiv");var az=mmp_control.displayWidth;if(mmp_control.showSidebar>0){ds.innerHTML="<img src='http://www.mymapsplus.com/images/rarrow.png' alt='' />";az-=(mmp_control.displaySideWidth+10);}else{ds.innerHTML="<img src='http://www.mymapsplus.com/images/larrow.png' alt='' />";az-=10;}aH.style.width=az+"px";map.checkResize();};function sizeCursor(){e("sizeCol").style.cursor=g_isIE?"hand":"pointer";};function myMapInfo(){if(mmp_control.showSidebar==0){switchSidebar();}var by=e("aboutDiv");var bx=e("linkDiv");var f="";if(bx){f+=bx.innerHTML+"<br />";}if(by){f+=by.innerHTML;}var J=e("sideDiv");var T=e("descDiv");var L=e("searchDiv");var aa=e("resultDiv");if(L){L.style.display="none";aa.style.display="none";}if(T&&f.length>0){var co="Map Information</td><td align='right' valign='top'>"+"<a href='javascript:descClose();' title='Close' ><img src='http://www.mymapsplus.com/images/ic_close.gif' alt='Close' border='0' /></a>";var bC=mmp_control.displaySideWidth-16;T.innerHTML="<table cellpadding=2 cellspacing=0 style='width:"+bC+"px;border-bottom:solid 2px "+mmp_control.textColor+"' ><tr valign='middle'><td>"+co+"</td></tr></table>"+"<table cellpadding=2 cellspacing=0 style='width:"+bC+"px' ><tr valign='top'><td>"+f+"</td></tr></table>";J.style.display="none";T.style.display="block";}};function g_initHexTable(){for(var i=0;i<10;i++){var c=i.toString();g_hexTable[c]=i;}g_hexTable["A"]=10;g_hexTable["B"]=11;g_hexTable["C"]=12;g_hexTable["D"]=13;g_hexTable["E"]=14;g_hexTable["F"]=15;};function g_initAnimationPanel(dO){if(dO){e("sideHeadDiv").innerHTML="<table style='width:100%;color:black;'><tr><td>"+"<div style='width:100%;height:18px;padding-top:2px;font-size:14px;font-family:Arial;background-color:forestgreen;color:white' title='Click to Pause SlideShow' >"+"&nbsp;&nbsp; Slideshow Playing </div>"+"</td><td align=right style=width:20px>"+"<a href='javascript:animClose()' title='Stop Slideshow'><img src='../images/ic_close.gif' alt='Close' /></a>"+"</td></tr></table>";}else{g_initSidePanel();}};function animClick(){g_animationPlay= !g_animationPlay;g_initAnimationPanel(g_animationPlay);};function animClose(){map.closeInfoWindow();g_animationPlay=false;g_initHeaderPanel()};function animResume(){map.closeInfoWindow();g_animationPlay=true;g_initAnimationPanel(true);};function g_getChannelIconsHtml(){var f="";if(mmp_control.enableChannels){}return f;};function g_initHeaderPanel(){var ag="<table cellspacing='0' style='width:100%;color:black'><tr><td>";var dq="";if(mmp_control.enableChannels){dq=g_getChannelIconsHtml();}ag+=dq;ag+="</td><td>";ag+="</td><td align=right>";if(mmp_control.showAnimation>0){ag+="<a href='javascript:animResume()'><img src='../images/ic_slideshow.png' title='Play Slideshow' alt='' border='0' /></a> ";}if(mmp_control.changeViewAll>0){if(mmp_control.bn){ag+="<a href='javascript:mmp_viewSome();' ><img src='../images/ic_viewall.png' title='list all places' alt='' border='0' /></a> ";}else{ag+="<a href='javascript:mmp_viewAll();' ><img src='../images/ic_viewsome.png' title='list only visible places' alt='' border='0' /></a> ";}}if(mmp_control.changeDetail>0){if(mmp_control.initialDetail==1){ag+="<a href='javascript:detailClick()'><img src='../images/ic_detail1.png' title='Listing Detail : Name Only' alt='' border='0' /></a>&nbsp;";}else if(mmp_control.initialDetail==2){ag+="<a href='javascript:detailClick()'><img src='../images/ic_detail2.png' title='Listing Detail : Name & Marker' alt='' border='0' /></a>&nbsp;";}else if(mmp_control.initialDetail==3){ag+="<a href='javascript:detailClick()'><img src='../images/ic_detail3.png' title='Listing Detail : Full' alt='' border='0' /></a>&nbsp;";}}ag+="<a href='javascript:myMapInfo()' title='Map Information'><img src='http://www.mymapsplus.com/images/ic_about.png' alt='' /></a>&nbsp;";if(mmp_control.changeFullScreen>0){if(e("fsDiv")==null){ag+="<a target='_blank' href='embed.aspx?map="+mmp_control.mapName+"&fs=1' title='Full Page Map'><img src='../images/ic_zoom.png' alt='' /></a>&nbsp;";}else{ag+="<a target='_blank' href='../mm_view.aspx?map="+mmp_control.mapName+"' title='Normal Size Map'><img src='../images/ic_zoom.png' alt='' /></a>&nbsp;";}}ag+="</td></tr></table>\r\n";e("sideHeadDiv").innerHTML=ag;};function g_initSidePanel(){if(g_sidePanelMode!=0){return;}g_calcVisibleList();var dC=e("sideHeadDiv");if(dC){var eI="";if(g_animationPlay>0){g_initAnimationPanel(true);}else{g_initHeaderPanel();}}var ai=mmp_control.displaySideWidth-20;var J=e('sideDiv');if(J){var f="";for(var i=0;i<g_visibleList.length;i++){var j=g_visibleList[i];var cu=j.eb(i);cu="<table cellspacing=0 cellpadding=0 style='width:"+ai+"px'><tr><td align='left' style='width:"+ai+"px'>"+cu+"</td></tr></table>";f+=cu;}J.innerHTML=f;}};function detailClick(){mmp_control.initialDetail+=1;if(mmp_control.initialDetail>3){mmp_control.initialDetail=1;}mmp_sidePanel(0);};function g_initMap(){mapPoint=new GLatLng(0,0);var ez=[G_NORMAL_MAP,G_SATELLITE_MAP,G_HYBRID_MAP];var aH=e('mapDiv');if(mmp_control.mapCursor==1){var cj={};cj.showOnLoad=false;cj.adsOptions={client:"partner-pub-5408854154696215",channel:"1242653575"};var dj={draggableCursor:'crosshair',draggingCursor:'move'};dj.googleBarOptions=cj;map=new GMap2(aH,dj);}else{map=new GMap2(aH);}if(mmp_control.scaleControl>0){map.addControl(new GScaleControl());}if(mmp_control.typeControl){map.addControl(new GMapTypeControl());}if(mmp_control.navControl==1){map.addControl(new GSmallZoomControl3D());}else if(mmp_control.navControl==2){map.addControl(new GLargeMapControl3D());}if(mmp_control.overviewMap){map.enableGoogleBar();}if(mmp_control.scrollWheelZoom){map.enableScrollWheelZoom();}if(mmp_control.doubleClickZoom){map.enableDoubleClickZoom();}if(mmp_control.continuousZoom){map.enableContinuousZoom();}if(mmp_control.fixedView){map.disableDragging();}var dF={style:'adunit',channel:"7434171462",maxAdsOnMap:1};var dy=new GAdsManager(map,"pub-5408854154696215",dF);dy.enable();if(map){if(mmp_control.showAnimation>0&&mmp_control.showIntro>0){g_animationPlay=true;}map.setCenter(mapPoint,mapZoom);map.checkResize();map.setMapType(ez[mmp_control.displayMapType]);GEvent.addListener(map,"moveend",function(){map.checkResize();mapPoint=map.getCenter();if(g_searchChannel==0&&mmp_control.bn==0){g_initSidePanel();}if(g_originMarker!=null&&g_resultChannel==0){g_originPoint=map.getCenter();g_originMarker.setPoint(g_originPoint);}});GEvent.addListener(map,"click",function(eP,eN){if(mmp_control.infoWindowType>0){var ao=e("noteDiv");if(ao){ao.style.display="none";}}});if(typeof initMMP!="undefined"){initMMP();}g_initSidePanel();if(mmp_control.showAnimation>0){animStart();}}};function animStart(){g_animationIndex=0;if(mmp_control.showIntro>0){g_animationPlay=true;}setTimeout("animProc();",1);};function animProc(){if(g_animationPlay){var j=g_placeList[g_animationIndex];g_animationIndex++;if(g_animationIndex>=g_placeList.length){g_animationIndex=0;}j.V();}var dA=100000/mmp_control.showAnimation;setTimeout("animProc();",dA);};function T_MM_Place(){this.bg=0;this.o=null;this.bY=0;this.k="";this.ae="";this.aB="";this.bW="";this.eJ="";this.aY="";this.H=null;this.ey="black";this.cQ="black";this.eK=0.0;};T_MM_Place.prototype.eb=function(aq){var f="";var bb=0;if(mmp_control.initialDetail==1){f="<table cellpadding=0 cellspacing=0 onclick='clickMarker("+this.bg+");' id='placerow"+aq+"' onmouseover='rowShow("+aq+","+bb+", 1)' onmouseout='rowShow("+aq+","+bb+",0)' style='width:100%;text-align:left'>"+"<tr><td style='width:100%;font-size:"+mmp_control.subHeight+"' align='left'>&nbsp;&#8226; <b>"+this.k+"</b></td></tr></table>";}else if(mmp_control.initialDetail==2){f="<table cellpadding=0 onclick='clickMarker("+this.bg+");'  id='placerow"+aq+"' onmouseover='rowShow("+aq+","+bb+", 1)' onmouseout='rowShow("+aq+","+bb+",0)'  style='width:100%;text-align:left'>"+"<tr valign='top'><td style='width:36px' align='center'>"+this.aY+"</td><td valign='middle' align='left'><b>"+this.k+"</b></td></tr></table>";}else if(mmp_control.initialDetail==3){var cT="";if(this.ae.length>0){cT="<tr><td colspan=2>"+this.ae+"<br /><br /></td></tr>";}f="<table cellpadding=0 onclick='clickMarker("+this.bg+");'  id='placerow"+aq+"' onmouseover='rowShow("+aq+","+bb+", 1)' onmouseout='rowShow("+aq+","+bb+",0)'  style='width:100%; text-align:left'>"+"<tr valign='top'><td  style='width:36px' align='center'>"+this.aY+"</td><td valign='middle' align='left' style='font-family:"+mmp_control.titleFont+";font-size:"+mmp_control.titleHeight+"'><b>"+this.k+"</b></td></tr>"+cT+"</table>";}return f;};T_MM_Place.prototype.dY=function(){var f="";if(mmp_control.infoWindowType==2){f="<div style='font-size:"+mmp_control.titleHeight+"font-family:"+mmp_control.titleFont+";color:black'>"+"<b>"+this.k+"</b>"+"</div>";}else{var G=mmp_control.infoWidth>0?"width:"+mmp_control.infoWidth+"px;":"";var aW=mmp_control.infoHeight>0?"height:"+mmp_control.infoHeight+"px;":"";f="<div style="+G+aW+"  >"+"<table cellspacing=0 cellpadding=0 style='"+";color:black;text-align:left;font-weight:bold' >"+"<tr><td style='font-family:"+mmp_control.titleFont+";font-size:"+mmp_control.titleHeight+"'>"+this.k+"</td></tr>"+"<tr style='font-size:"+mmp_control.subHeight+"'><td>"+this.ae+"<br /><br />"+"</td></tr></table>"+"</div>";}return f;};var g_recentreLatLong;function recentreOnClose(){map.panTo(g_recentreLatLong);};var g_notePlace;function compactDesc(){var aW=100;if(mmp_control.infoHeight>0){aW=mmp_control.infoHeight;}e("noteDesc").innerHTML="<div style='padding:2px'><div style='height:"+aW+"px;overflow:auto'>"+g_notePlace.ae+"</div></div>";e("compactIcon").innerHTML="";};T_MM_Place.prototype.V=function(cq){var t=this.H;var j=this;var f=this.dY();if(mmp_control.infoWindowType==1){var ao=e("noteDiv");ao.style.position="absolute";ao.style.top="4px";ao.style.left="4px";var G=parseInt(e("mapDiv").style.width)-8;ao.style.width=G+"px";ao.style.backgroundColor="white";ao.style.border="solid 1px black";var bR="<table style='width:100%'><tr valign='top'><td style='width:32px'>"+this.aY+"</td><td valign='middle' align='left' style='font-size:14px;font-weight:bold'>&nbsp;"+this.k+"</td><td>"+"</td><td align='right' style='width:20px'>";if(this.ae.length>0){g_notePlace=this;bR+="<div id='compactIcon'>"+"<a href='javascript:compactDesc()' title='More'><img src='../images/ic_down2.png' alt='' /></a>"+"</div></td><td align='right' style='width:20px'>";}if(mmp_control.changeFullScreen>0){bR+="<a target='_blank' href='embed.aspx?map="+mmp_control.mapName+"&fs=1' title='Full Page Map'><img src='../images/ic_zoom.png' alt='' /></a>&nbsp;"+"</td><td align='right' style='width:20px'>";}bR+=" <a href='javascript:noteClose()' title='Close' ><img src='../images/ic_close.gif' /></a> &nbsp;"+"</div></td></tr></table><div id='noteDesc'></div>";ao.innerHTML=bR;ao.style.display="block";return;}if(j.bY==1){t.openInfoWindowHtml(f);}else{if(cq==null){cq=j.o;}map.openInfoWindowHtml(cq,f);}if(mmp_control.infoWindowType==2){var J=e("sideDiv");var T=e("descDiv");var L=e("searchDiv");var aa=e("resultDiv");var co=j.aY+"</td><td align='left' valign='middle'>"+"<b>"+this.k+"</b>"+"</td><td>"+"</td><td align='right' valign='top' style='width:32px'>"+"<a href='javascript:descClose();' title='Close' ><img src='../images/ic_close.gif' alt='Close' border='0' /></a>";var dV="<br />"+this.ae;var bC=mmp_control.displaySideWidth-16;T.innerHTML="<table cellpadding=0 cellspacing=4 style='width:"+bC+"px;font-family:"+mmp_control.titleFont+";font-size:"+mmp_control.titleSize+"' ><tr valign='middle'><td>"+co+"</td></tr></table>"+"<table cellpadding=0 cellspacing=4 style='width:"+bC+"px' ><tr valign='top'><td>"+dV+"</td></tr></table>";if(L){L.style.display="none";aa.style.display="none";}J.style.display="none";T.style.display="block";}g_recentreLatLong=j.o;GEvent.addListener(map.getInfoWindow(),'closeclick',function(){if(g_searchChannel==0){descClose();if(mmp_control.infoRecentre){setTimeout("recentreOnClose();",0);}}});};function noteClose(){e("noteDiv").style.display="none";};function descClose(){var J=e("sideDiv");var T=e("descDiv");T.style.display="none";J.style.display="block";map.closeInfoWindow();};function rowShow(aq,eO,cP){var bN=e("placerow"+aq);if(bN){bN.style.backgroundColor=cP?mmp_control.highlightBackColor:mmp_control.backColor;bN.style.color=cP?mmp_control.highlightColor:mmp_control.textColor;bN.style.cursor="default";}};function mmp_line(Q,aw,bG,am,dB,aV){var j=new T_MM_Place();j.bg=Q;j.k=aw;j.ae=bG;j.bY=2;j.cQ=am;var cD=parseInt(aV.length/2);var ak=[];for(var i=0;i<cD;i++){var x=aV[i*2];var y=aV[i*2+1];var cH=new GLatLng(y,x);ak[i]=cH;}var G=parseInt(dB);var bA="#"+am.substr(7,2)+am.substr(5,2)+am.substr(3,2);var aZ=0.0;var aE=am.substr(1,2);var c0=aE.substr(0,1);var c1=aE.substr(1,1);aj=g_hexTable[c0]*16+g_hexTable[c1];aZ=parseFloat(aj/255);var aj="";if(g_isIE){aj="";}else{var bq=parseInt(aZ*100)/100;aj="opacity:"+bq;}j.aY="<table style='width:24px;height:24px'><tr valign='middle'><td style='width:24px'>"+"<div style='width:24px;height:4px;"+aj+";background-color:"+bA+"'></div>"+"</td></tr></table>";j.o=ak[0];g_placeList.push(j);g_placeLookup[Q]=j;var cw=new GPolyline(ak,bA,G,aZ);map.addOverlay(cw);j.H=cw;GEvent.addListener(cw,'click',function(){var db=j.V(null);});var cG=0.0;for(var i=1;i<ak.length;i++){var el=ak[i-1].distanceFrom(ak[i]);cG+=el;}var cF=parseInt(cG/100+0.5);cF=parseFloat(cF)/10;var cv=parseInt(cG/160.9+0.5);cv=parseFloat(cv)/10;j.ae+="<br /><br />Distance : "+cv+" miles ("+cF+" km)";};function mmp_poly(Q,aw,bG,am,dP,bv,dN,dH,aV){var j=new T_MM_Place();j.bg=Q;j.k=aw;j.ae=bG;j.bY=3;j.ey=am;j.cQ=bv;var cD=parseInt(aV.length/2);var ak=[];for(var i=0;i<cD;i++){var x=aV[i*2];var y=aV[i*2+1];var cH=new GLatLng(y,x);ak[i]=cH;}var aZ=0.0;if(dN>0){var aE=am.substr(1,2);var c0=aE.substr(0,1);var c1=aE.substr(1,1);aj=g_hexTable[c0]*16+g_hexTable[c1];aZ=parseFloat(aj/255);}var aT=0.0;if(dH>0){try{var aE=bv.substr(1,2);var c0=aE.substr(0,1);var c1=aE.substr(1,1);aj=g_hexTable[c0]*16+g_hexTable[c1];aT=parseFloat(aj/255);}catch(err){aT=0.3;}}var bA="#"+am.substr(7,2)+am.substr(5,2)+am.substr(3,2);var dk="#"+bv.substr(7,2)+bv.substr(5,2)+bv.substr(3,2);if(typeof(aT)!="number"){aT="0.3";}var bH=new GPolygon(ak,bA,dP,aZ,dk,aT);var aj="";if(g_isIE){var eG=aT*100.0;var bq=parseInt(eG);aj=";filter:alpha(opacity="+bq+")";}else{var bq=parseInt(aT*100)/100;aj=";opacity:"+bq;}j.aY="<div style='width:24px;height:24px;border:solid 2px "+bA+aj+";background-color:"+dk+"'></div>";var x=0;var y=0;var l=ak.length;for(var i=0;i<l;i++){x+=ak[i].lng();y+=ak[i].lat();}if(l>1){x/=l;y/=l;}j.o=new GLatLng(y,x);g_placeList.push(j);g_placeLookup[Q]=j;if(bH){GEvent.addListener(bH,'click',function(){var db=j.V(null);});map.addOverlay(bH);j.H=bH;}};function mmp_mkr(Q,aw,bG,aP,x,y,z){var j=new T_MM_Place();j.bg=Q;j.bY=1;j.k=aw;j.ae=bG;j.aB=aP;j.o=new GLatLng(y,x);j.aY="<img src='"+j.aB+"' alt='' border='0' /> ";var de=j.aB.indexOf("-dot.png");var df=j.aB.indexOf("-pushpin.png");var eC=j.aB.indexOf("mm_20_");var ac=16;var U=16;var ad=32;var af=32;var C=16;var D=0;if(de>0){U=31;}else if(df>0){ac=5;U=31;}else if(eC>0){ac=6;U=20;ad=12;af=20;C=6;D=0;}var ab="";if(mmp_control.shadow>0){if(de>0||df>0){ab="http://maps.google.com/mapfiles/ms/icons/msmarker.shadow.png";}else if(aP.length>4){ab=aP.substr(0,aP.length-3)+"shadow.png";}}var g=new GIcon();g.image=aP;g.iconSize=new GSize(ad,af);if(mmp_control.shadow>0){g.shadow=ab;g.shadowSize=new GSize(59,32);}g.printImage=aP;g.mozPrintImage=aP;g.iconAnchor=new GPoint(ac,U);g.infoWindowAnchor=new GPoint(C,D);g.infoShadowAnchor=new GPoint(C,D);var v=j.k;var t=new GMarker(j.o,{title:v,icon:g});j.H=t;g_placeList.push(j);g_placeLookup[Q]=j;map.addOverlay(t);GEvent.addListener(t,'click',function(){var db=j.V(null);});};function centreMap(){var O=new GLatLngBounds();if(mmp_control.displayZoomLevel>0){var aM=mmp_control.mapY;var aL=mmp_control.mapX;var bD=new GLatLng(aM,aL);map.setCenter(bD,mmp_control.displayZoomLevel);}else if(mmp_control.bounds.length>3){var P=mmp_control.bounds;var bc=new GLatLng(P[1],P[0]);var bi=new GLatLng(P[3],P[2]);var O=new GLatLngBounds(bc,bi);var aQ=map.getBoundsZoomLevel(O);if(aQ>15){aQ=15;}var aM=(P[1]+P[3])/2;var aL=(P[0]+P[2])/2;var bD=new GLatLng(aM,aL);map.setCenter(bD,aQ);}};function clickMarker(Q){var j=g_placeLookup[Q];j.V(null);};function g_mmSortAZ(p1,p2){var v1=p1.k;var v2=p2.k;var r=((v1<v2)? -1:((v1>v2)?1:0));return r;};function g_calcVisibleList(){g_visibleList=[];var O=map.getBounds();var ew=g_placeList.length;for(var i=0;i<ew;i++){var j=g_placeList[i];if(j!=null){if(mmp_control.bn||O.contains(j.o)){if(j){g_visibleList.push(j);}}}}if(mmp_control.sortOrder==1){g_visibleList.sort(g_mmSortAZ);}};function mmp_sidePanel(Q){if(mmp_control.mapComplexity==1){return;}descClose();g_sidePanelMode=Q;var J=e("sideDiv");if(Q==0){g_initSidePanel();}else if(Q==1){var by=e("aboutDiv");if(by){var ai=mmp_control.displaySideWidth-20;var f="<table style='width:"+ai+"'><tr><td align='left'>"+by.innerHTML+"</td></tr></table>";J.innerHTML=f;}}else if(Q==2){var bx=e("linkDiv");if(bx){var ai=mmp_control.displaySideWidth-20;var f="<table style='width:"+ai+"'><tr><td align='left'>"+bx.innerHTML+"</td></tr></table>";J.innerHTML=f;}}};function mmp_viewAll(){mmp_control.bn=true;centreMap();mmp_sidePanel(0);};function mmp_viewSome(){mmp_control.bn=false;mmp_sidePanel(0);};function mmp_kml(dT){var dD=new GGeoXml(dT);map.addOverlay(dD);if(mmp_control.bounds.length>3){var P=mmp_control.bounds;var bc=new GLatLng(P[1],P[0]);var bi=new GLatLng(P[3],P[2]);var O=new GLatLngBounds(bc,bi);var aQ=map.getBoundsZoomLevel(O);if(aQ>15){aQ=15;}var aM=(P[1]+P[3])/2;var aL=(P[0]+P[2])/2;var bD=new GLatLng(aM,aL);map.setCenter(bD,aQ);}}
