
function showForecast(id){var marker=mapApp.markers[id];var title=marker.dom.getElementsByTagName("name")[0].firstChild.nodeValue;window.open('/weather/fragments/forecast_sideways.jsp?vertical=true&id='+marker.point.lat()+','+marker.point.lng()+'&title='+escape(title),'_new','width=300,height=400,resizeable=1,scrollbars=1')}
function showReservations(id){var marker=mapApp.markers[id];var title=marker.dom.getElementsByTagName("name")[0].firstChild.nodeValue;window.open('/camping/reservationRedirect.jsp?id='+id)}
function CampingMap(){}
CampingMap.prototype=new GenericMap();var tabpage2dom;var tabpage3dom;function fixtabs(){if(document.all)return;tabpage2dom.innerHTML=tabpage2dom.innerHTML+" ";tabpage3dom.innerHTML=tabpage3dom.innerHTML+" ";}
CampingMap.prototype.openInfoWindow=function(id){var marker=this.markers[id];try{this.map.removeOverlay(marker.rollover);}catch(e){}
var location=marker.dom;var popups=location.getElementsByTagName("popup");if(popups.length==1){try{var html1=popups[0].firstChild.nodeValue;var html2='<script type="text/javascript">setTimeout("fixtabs()",1000);</script>  <iframe id="feedbackframe" src="/user/feedback_popup.jsp?_className=camping.points.CampgroundPoint&_id='+id+'" width="400" height="250" frameborder="0" ></iframe>';var html3='<script type="text/javascript">setTimeout("fixtabs()",1000);</script>  <iframe id="availabilityframe" src="/camping/fragments/availabilityCalendar.jsp?&id='+id+'" width="400" height="250" frameborder="0" ></iframe>';var dom1=document.createElement("div");dom1.innerHTML=html1;var dom2=document.createElement("div");dom2.innerHTML=html2;tabpage2dom=dom2;var dom3=document.createElement("div");dom3.innerHTML=html3;tabpage3dom=dom3;var infoTabs=[new GInfoWindowTab("Info",dom1),new GInfoWindowTab("Reviews",dom2),new GInfoWindowTab("Availability",dom3)];marker.openInfoWindowTabs(infoTabs);}catch(e){alert(e)}}}