function getX(a){return(a.offsetParent==null?a.offsetLeft:a.offsetLeft+getX(a.offsetParent))}function getY(a){return(a.offsetParent==null?a.offsetTop:a.offsetTop+getY(a.offsetParent))}function DisplayTip(current,text,shiftx,shifty){tooltip=document.getElementById("SymbolToolTip");if(tooltip){if(tooltip.style.visibility!="visible"){tooltip.style.left=eval(getX(current)+shiftx)+"px";tooltip.style.top=eval(getY(current)+shifty)+"px";tooltip.innerHTML="<table width='100%' border=0 cellpadding=3 cellspacing=0><tr><td class=text-10px bgcolor=#FDFFE6>"+text+"</td></tr></table>";tooltip.style.visibility="visible"}}}function ShowTip(a,b){DisplayTip(a,b,0,26)}function ButtonTip(a,b){DisplayTip(a,b,0,16)}function IconTip(a,b){DisplayTip(a,b,78,-3)}function ShowMapTip(a){tooltip=document.getElementById("MapToolTip");current=document.getElementById("MapAnchor");if(tooltip){if(current){if(tooltip.style.visibility!="visible"){tooltip.style.left=getX(current)-175;tooltip.style.top=getY(current)+54;tooltip.innerHTML="<table width='100%' border=0 cellpadding=3 cellspacing=0><tr><td class=text-10px bgcolor=#FDFFE6>"+a+"</td></tr></table>";tooltip.style.visibility="visible"}}}}function HideMapTip(){tooltip=document.getElementById("MapToolTip");if(tooltip){tooltip.style.visibility="hidden"}}function HideTip(){tooltip=document.getElementById("SymbolToolTip");if(tooltip){tooltip.style.visibility="hidden"}}PropertyID=0;Membership=0;PageCode="";OptionalParams="";function DL(b,a,e,d,f,c){PageCode=f;SL(b,a,e,d)}function SL(b,a,f,d){PropertyID=b;OptionalParams=a;Membership=d;document.write('<table width="100%" border=0 cellspacing=0 cellpadding=0>');document.write('<TR><td rowspan=3 width=85 valign="top">&nbsp;');WriteListingAHref();var c;var e="width=73 height=73";if(d==5){e="width=100 height=100"}if(f=="NOPHOTO"){c="/photo/album/tiny/0"}else{if(d==5){c="/inns/iotm/"+f}else{c="/inns/tiny/"+f}}document.write('<img src="'+c+'.jpg" onmouseover="IconTip(this,\'Click here to view property\\\'s BedandBreakfast.com listing\')" onmouseout="HideTip()" border=0 '+e+">");FinishHomeAHref();document.write('</td><td valign="top" class="text-10px">')}function WriteListingAHref(){ListingAHref(PageCode,PropertyID)}function ListingAHref(b,a){if(PropertyID!="0"){if(b.length>0){document.write('<a href="/'+b+'.html">')}else{document.write('<a href="/ppf/inn/'+a+'/Listing.aspx">')}}}function WriteHomeAHref(b,a){if(PropertyID!="0"&&Membership>1){if(OptionalParams!="HIDDEN"){document.write('<a href="'+a+'" onClick="SaveClickThru(\'PROP='+PropertyID+OptionalParams+"');\" target=_blank>")}if(b==1){BtnHomePage1()}if(b==2){BtnHomePage2()}if(b==3){document.write("Home Page")}if(OptionalParams!="HIDDEN"){document.write("</a>")}}}function FinishHomeAHref(){if(PropertyID!="0"){document.write("</a>")}}function FL(a,h,g,e,b,d,c,f){document.write("</td></tr>");document.write("<TR><td valign=bottom>");if(b!=""){document.write('<table width="100%" border=0 cellpadding=0 cellspacing=0><tr><td valign=bottom>')}BuildIcons(g);if(b!=""){document.write('</td><td align="right" width="1%">');document.write('<a class="bookitButton" href="'+b+'">');document.write('<img id="bkt'+e+'" src="/img/btnBookNormal.gif" border=0 width="71" height="19" onMouseOver="MM_swapImage(this.id,\'\',\'/img/btnBookOver.gif\',1)" onMouseOut="MM_swapImgRestore()"></a>');document.write("</td></tr></table>")}document.write("</td></tr>");if(a>=0){document.write('<TR><td class=text-10px height=16><table width="100%" border=0 cellpadding=0 cellspacing=0><tr><td class=text-10px width="1%" nowrap><strong>Rooms:</strong> '+a+'</td><td align="right" class=text-10px>');if(h.indexOf("available")>0){document.write("<strong>"+h+"</strong>")}else{document.write("<strong>Rates Per Night:</strong> "+h)}document.write("</td></tr></table></td></tr>")}else{document.write("<TR><td class=text-10px height=16><strong>Innkeeper(s):</strong> "+h+"</td></tr>")}DisabledLink="javascript:link();";Disable=(g.indexOf("X")>=0);document.write("<TR><td colspan=2 valign=bottom>");document.write('<table width="100%" border=0 cellpadding=0 cellspacing=0><tr>');if(d!=""){document.write('<td width="1%" valign="middle" nowrap>'+d+"</td>")}document.write("<td class=text-10px nowrap>&nbsp;");WriteHomeAHref(3,c);document.write("&nbsp;&nbsp;");if(g.indexOf("A")>=0){Link=Disable?DisabledLink:""+f+" onClick=\"SaveClickThru('PROP="+PropertyID+'&CMD=AC\');" target="_blank"';document.write('<a class="ac" href="'+Link+">Availability Calendar");document.write("</a>")}document.write("</td>");document.write("</td></tr></table>");document.write("</td></tr></table>")}function BtnViewListing(){document.write('<img align="absBottom" src="/Img/btnViewListing.gif" onmouseover="ButtonTip(this,\'Click here to view property\\\'s BedandBreakfast.com listing\')" onmouseout="HideTip()" width=81 height=14 border=0>')}function BtnBookOnline(){document.write('<img src="/Img/btnBookOnline.gif" onmouseover="ButtonTip(this,\'Click here to book and confirm a reservation online\')" onmouseout="HideTip()" width=81 height=14 border=0>')}function BtnCheckAvailability(){document.write('<img align="absBottom" src="/Img/btnCheckAvailability.gif" onmouseover="ButtonTip(this,\'Click here to check guest room availability\')" onmouseout="HideTip()" width=112 height=14 border=0>')}function BtnVote(){document.write('<img src="/Img/btnVote.gif" onmouseover="ButtonTip(this,\'Click here to vote for your favorite B&B\')" onmouseout="HideTip()" width=39 height=14 border=0>')}function BtnHomePage1(){document.write('<img align="absBottom" vspace="1" src="/Img/btnHomePageShort.gif" onmouseover="DisplayTip(this,\'Click here to view property\\\'s website\',-32,16)" onmouseout="HideTip()" border=0 width=77 height=14>')}function BtnHomePage2(){document.write('<img src="/Img/btnHomePage.gif" onmouseover="DisplayTip(this,\'View property\\\'s website\',-56,26)" onmouseout="HideTip()" border=0 width=54 height=25>')}function BtnComments(){document.write('<img src="/Img/btnGuestReviews.gif" onmouseover="DisplayTip(this,\'Click here to view property\\\'s guest comments\',-56,15)" onmouseout="HideTip()" border=0 width=81 height=14>')}function WriteMore(){Link="/ppf/inn/"+PropertyID+"/Listing.aspx";if(PageCode.length>0){Link="/"+PageCode+".html"}document.write(' <a href="'+Link+'">more</a>')}function BuildIcons(a){if(a.indexOf("G")>=0){AddIcon("icon-GC","BedandBreakfast.com Gift Certificates and Gift Cards are welcome here. Click the gift box to order!")}else{AddIcon("icon-GC-no","BedandBreakfast.com Gift Cards are not accepted here")}if(a.indexOf("C")>=0){AddIcon("icon-children","Children welcome")}else{AddIcon("icon-children-no","No children allowed")}if(a.indexOf("R")>=0){AddIcon("icon-pet","Pets accepted")}else{AddIcon("icon-pet-no","No pets allowed")}if(a.indexOf("Y")>=0){AddIcon("icon-smoking","Smoking allowed in some areas")}else{AddIcon("icon-smoking-no","No smoking")}if(a.indexOf("W")>=0){AddIcon("icon-wedding","Wedding facilities on site")}if(a.indexOf("S")>=0){AddIcon("icon-parking","Parking is available")}if(a.indexOf("I")>=0){AddIcon("icon-wifi","Wifi is available")}if(a.indexOf("F")>=0){AddIcon("icon-fireplace","Some guest rooms and/or common areas have fireplaces")}if(a.indexOf("D")>=0){AddIcon("icon-hotdeal","Hot Deal Available: Minimum 20% Discount")}if(a.indexOf("S")>=0){AddIcon("icon-specials","Special &amp; Packages")}}function AddIcon(a,b){if(a=="icon-GC"){document.write('<a href="/GiftCertificates.aspx?ctx=li">')}document.write('<img class="listingIcon" src="/Img/icons/'+a+'.gif" border=0 onmouseover="ShowTip(this,\''+b+'\')" onmouseout="HideTip()">');if(a=="icon-GC"){document.write("</a>")}}timerID=null;function ScrollUp(a){if(document.getElementById){if(parseInt(txt.style.top)<0){txt.style.top=parseInt(txt.style.top)+a+"px"}timerID=setTimeout("ScrollUp("+a+")",30)}}function ScrollDown(a){if(document.getElementById){if(parseInt(txt.style.top)>cnt.offsetHeight-txt.offsetHeight){txt.style.top=parseInt(txt.style.top)-a+"px"}timerID=setTimeout("ScrollDown("+a+")",30)}}function ScrollStop(){if(document.getElementById){clearTimeout(timerID)}}function ScrollInit(){if(document.getElementById){cnt=document.getElementById("cont");txt=document.getElementById("text");txt.style.top=0}}function Find(a){return(document.getElementById)?document.getElementById(a):((document.all)?document.all[a]:null)}function L1(c){var b="";var a="";if(c==5){b="<div class='diamond-collection'>"}document.write(b+'<table class="listing-item" cellspacing="0" cellpadding="0" border="0" width="504px"><tbody><tr class="container-header container-height"><td height="7" align="left" width="7" valign="top"><img src="/img/Listing/round-corner-left-top.gif"/></td><td height="7" width="490px" class="container-top"><img height="7" border="0" src="/img/blank.gif"/></td><td height="7" align="right" width="7" valign="top"><img src="/img/Listing/round-corner-right-top.gif"/></td></tr><tr class="container-secondary-header"><td colspan="3" class="section-container"><div class="listingHdr"><table border="0" cellpadding="0" cellspacing="0" width="492px"><tr><td valign="bottom" style="padding-bottom:4px">')}function L2(h,a,g,i,d,j,f,k,c){var l="width=73 height=73";var e="255";var b="79";if(i==5){l="width=100 height=100";e="230";b="104"}if(g==""){g="/photos/album/tiny/0.jpg"}else{if(i==5){g="/inns/iotm/"+g+".jpg"}else{g="/inns/tiny/"+g+".jpg"}}if(j!=""){document.write('</td><td width="100" align="right" valign="top">');document.write('<a class="bookitButton" href="'+j+'">');document.write('<img id="bkt'+h+'" src="/img/Listing/book-it-city-listing-off.png"  alt="'+k+'" border="0" width="71" height="19" onMouseOver="MM_swapImage(this.id,\'\',\'/img/Listing/book-it-city-listing-on.png\',1)" onMouseOut="MM_swapImgRestore()"></a>')}document.write("</td></tr></table></div>");document.write('<div class="Listing-Body"><table cellpadding="0" cellspacing="0" border="0" width="490px"><tr>');document.write('<td align="left" valign="top" width="'+b+'"><div class="listingPic">');if(h!="0"){if(c.length>0){document.write('<a href="'+c+'">')}else{document.write('<a href="/ppf/inn/'+h+'/Listing.aspx">')}}document.write('<img src="'+g+' " onmouseover="IconTip(this,\'Click here to view property\\\'s BedandBreakfast.com listing\')" onmouseout="HideTip()" border=0 '+l+">");if(h!="0"){document.write("</a>")}document.write('</div></td><td valign="top" width="'+e+'" style="line-height:12pt; padding: 0px 3px 0px 5px;">')}function L3(m,h,p,d,n,i,k,e,j,q,c,b,o,g){Link="/ppf/inn/"+m+"/Listing.aspx";if(g.length>0){Link=g}document.write(' <a href="'+Link+'">more</a><table border="0" cellspacing="0" cellpadding="0" style="padding-top:3px;"><tr><td>');BuildIcons(k);document.write("</td></tr></table>");document.write('</td><td valign="top" width="143"><table border="0" cellpadding="0" cellspacing="0"><tr><td valign="top" width="3"><img src="/img/vr1.gif"></td><td valign="top"><table border="0" cellpadding="2" cellspacing="0">');if(c!=""){document.write('<tr><td class="greyText"><b>Rating:</b></td><td class="greyText" nowrap valign="bottom">'+c+"</td></tr>")}if(q!=""){document.write('<tr><td class="greyText"><b>Reviews:</b></td><td class="greyText" nowrap>'+q+"</td></tr>")}if(n>=0){document.write('<tr><td width="50" class="greyText"><b>Rooms:</b></td><td class="greyText">'+n+"</td></tr>");document.write('<tr><td class="greyText" valign="top"><b>Rates:</b></td><td class="greyText">'+i+"</td></tr>")}document.write('</table></td></tr></table></td></tr><tr><td colspan="3" align="left" valign="top"><table cellpadding="0" cellspacing="0" width="478px"><tr><td align="left">');if((m!="0"&&p>1)||(p==1&&o!="")){if(d!="HIDDEN"){document.write('<a href="'+b+'" onClick="SaveClickThru(\'PROP='+m+d+"');\" target=_blank>")}document.write("Visit Website");if(d!="HIDDEN"){document.write("</a>")}if(k.indexOf("A")>=0){document.write("&nbsp;&nbsp;|&nbsp;&nbsp;")}}if(k.indexOf("A")>=0){DisabledLink="javascript:link();";Disable=(k.indexOf("X")>=0);Link=Disable?DisabledLink:o+' target="_blank"';var l=Disable?"":"onClick=\"SaveClickThru('PROP="+m+"&CMD=AC');\"";document.write('<a class="ac" href='+Link+" "+l+">Availability Calendar");document.write("</a>")}document.write('</td><td class="detaillevel" align="right">');if(k.indexOf("E")>=0){document.write("Diamond")}if(k.indexOf("P")>=0){document.write("Platinum")}else{if(k.indexOf("H")>=0){document.write("Gold")}else{if(k.indexOf("M")>=0){document.write("Silver")}else{if(k.indexOf("L")>=0){document.write("Bronze")}}}}var f="";var a=" member";if(p==5){f="</div>";a=" collection"}document.write(a+'</td></tr></table></td></tr></table></div></div></td></tr><tr class="container-height"><td height="7" align="left" width="7" valign="bottom"><img src="/img/Listing/round-corner-left-bottom.gif"></td><td height="7" width="1000px" class="container-footer"><img height="7" border="0" src="/img/blank.gif"/></td><td height="7" align="right" width="7" valign="bottom"><img src="/img/Listing/round-corner-right-bottom.gif"/></td></tr></tbody></table>'+f)};