var fmTimer=null;var fmbg=false;var num=3;var cnt=0;function fminit(A){target_id=A;if(!document.getElementById){return }if(cnt++>num){cnt=0;return }fmb1=230;fmb2=237;fmb3=246;fmb4=197;fmb5=212;fmb6=233;if(!fmbg){fmtemp=fmb1;fmb1=fmb4;fmb4=fmtemp;fmtemp=fmb2;fmb2=fmb5;fmb5=fmtemp;fmtemp=fmb3;fmb3=fmb6;fmb6=fmtemp}fmbg=!fmbg;fmFade(target_id)}function fmToHex(D){var C="0123456789ABCDEF";if(D===0){return"00"}var B;var A="";while(D!==0){B=D%16;D=(D-B)/16;A=C.charAt(B)+A}if(A.length<2){A="0"+A}return A}function fmFade(A){var C,B;C=document.getElementById(A).style;if(document.getElementById("bookNow2")){B=document.getElementById("bookNow2").style}fmbackcolor="#"+fmToHex(fmb1)+fmToHex(fmb2)+fmToHex(fmb3);C.backgroundColor=fmbackcolor;if(B){B.backgroundColor=fmbackcolor}if(fmb1!=fmb4){if(fmb4>fmb1){fmb1++}else{fmb1--}}if(fmb2!=fmb5){if(fmb5>fmb2){fmb2++}else{fmb2--}}if(fmb3!=fmb6){if(fmb6>fmb3){fmb3++}else{fmb3--}}if((fmb1==fmb4)&&(fmb2==fmb5)&&(fmb3==fmb6)){window.clearTimeout(fmTimer);fminit(A)}else{fmTimer=window.setTimeout("fmFade(target_id)",10)}}$(document).ready(function(){$("div#gallery div.smallImgArea a").click(function(){var A=$(this).attr("href");$("div#gallery #imgwin img").attr("src",A);return false});$("div#gallery div.smallImgArea a.rollover").mouseover(function(){var A=$(this).attr("href");$("div#gallery #imgwin img").attr("src",A);return false})});function popup_gallery(C){var E=$(C).children("#photo_container").css("background-image");strToStrip="url("+window.location.protocol;var B=$.inArray(E.replace(/\'|\"|\)/g,"").replace(strToStrip,""),slideshow_photos);if(B==-1){B=0}var A=bigger_photos_gallery.length;var D=getVertScroll()+30;$("body").append("<div id='bigger_photos_gallery' style='width:650px;background-color:#000;overflow:hidden;position:absolute;top:"+D+"px;left:50%;margin-left:-325px;z-index:100;-moz-border-radius:10px;-webkit-border-radius:10px;'><div><a href='' class='bigger_photos_close' style='float:right;margin:5px 10px;color:#fff;font-weight:normal;'>"+transl_close+"</a><div class='bigger_photos_counter' style='color:#fff;text-align:center;padding-top:10px;'>"+(B+1)+" / "+A+"</div></div><div style='clear:both;width:650px;'><div style='float:left;display:block;width:50px;margin-top:25px;'><a href='#' class='bigger_photos_prev' style='display:block;background:url(/static/img/experiments/arrow_l.gif) no-repeat 100% 50%;height:40px;text-indent:-9999px;outline:none;'>"+transl_previous+"</a><br />&nbsp;</div><div class='bigger_photos_container' style='text-align:center;padding:20px;float:left;width:510px;'><img src="+bigger_photos_gallery[B]+" style='border:5px solid #fff;' /></div><div style='float:right;width:50px;margin-top:25px;'><a href='#' class='bigger_photos_next' style='background:url(/static/img/experiments/arrow_r.gif) no-repeat 0 50%;height:40px;text-indent:-9999px;display:block;outline:none;'>"+transl_next+"</a><br />&nbsp;</div></div></div>");if(islteIE6){$("#bigger_photos_gallery").after("<iframe src='javascript:false;' style='position:absolute;width:650px;left:50%;top:0;margin-left:-325px;z-index:49;top:"+D+"px;border-width:0;' frameborder='0' id='bpg_if_mask'></iframe>")}checkPos(B,A);$(".bigger_photos_close").click(function(){$("#bigger_photos_gallery, #bpg_if_mask").remove();return false});$(".bigger_photos_next").click(function(){B++;$("#bigger_photos_gallery .bigger_photos_container img").attr("src",bigger_photos_gallery[B]);$(".bigger_photos_counter").html((B+1)+" / "+A);checkPos(B,A);return false});$(".bigger_photos_prev").click(function(){B--;$("#bigger_photos_gallery .bigger_photos_container img").attr("src",bigger_photos_gallery[B]);$(".bigger_photos_counter").html((B+1)+" / "+A);checkPos(B,A);return false})}function checkPos(B,A){if((B+1)==A){$(".bigger_photos_next").hide()}else{if(B==0){$(".bigger_photos_prev").hide()}else{$(".bigger_photos_prev, .bigger_photos_next").css("display","block")}}if(islteIE6){$("#bpg_if_mask").css("height",document.getElementById("bigger_photos_gallery").offsetHeight+"px")}}function closeGallery(){$("#bigger_photos_gallery, #bpg_if_mask").remove()}function getVertScroll(){var A=0;if(typeof (window.pageYOffset)=="number"){A=window.pageYOffset}else{if(document.body&&document.body.scrollTop){A=document.body.scrollTop}else{if(document.documentElement&&document.documentElement.scrollTop){A=document.documentElement.scrollTop}}}return A}$(document).ready(function(){if(booking.env.b_action==="hotel"){$("td.roomType div a.jqrt").click(function(){$theId="#blocktoggleRD"+$(this).parent("div").attr("id");if($(this).hasClass("toggla_hide")){$($theId).hide();$(this).parents("td").eq(0).find("a.jqrt").removeClass("toggla_hide");if(typeof booking.env.b_site_experiment_clicktale!="undefined"&&booking.env.b_site_experiment_clicktale&&typeof ClickTale=="function"){ClickTaleExec('$("td.roomType div a.jqrt:eq('+$("td.roomType div a.jqrt").index(this)+')").trigger("click")')}}else{$($theId).show();$(this).parents("td").eq(0).find("a.jqrt").addClass("toggla_hide");if(typeof booking.env.b_site_experiment_clicktale!="undefined"&&booking.env.b_site_experiment_clicktale&&typeof ClickTale=="function"){ClickTaleExec('$("td.roomType div a.jqrt:eq('+$("td.roomType div a.jqrt").index(this)+')").trigger("click")')}}this.blur();return false})}});$(document).ready(function(){$(".tab_content").hide();$("ul.tabs li:first").addClass("active").show();$(".tab_content:first").show();$("ul.tabs li").click(function(){$("ul.tabs li").removeClass("active");$(this).addClass("active");$(".tab_content").hide();var A=$(this).find("a").attr("href");console.log(A);$("#"+A).fadeIn();return false})});if(!b25){var b25={}}b25.Reviews={URI:"/reviewlist.html",active:false,runOnce:true,getTransport:function(){if(b25.Reviews.request){return b25.Reviews.request}var C;try{C=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){try{C=new ActiveXObject("Microsoft.XMLHTTP")}catch(A){C=null}}if(!C&&(typeof (XMLHttpRequest)!="undefined")){C=new XMLHttpRequest()}b25.Reviews.request=C;return C},update:function(B,A){if(!b25.Reviews.active){b25.Reviews.active=true;$.get(b25.Reviews.URI+"hotel_id="+B+";type="+A,function(C){if(C){var D=document.getElementById("guest_reviews");D.innerHTML=C;window.scrollTo(0,0)}b25.Reviews.active=false});return }},getRawPage:function(C,B,A){if(!b25.Reviews.active){b25.Reviews.active=true;$("#guest_reviews").load(C+";b_lang="+booking.env.b_lang);if(A){}else{window.scrollTo(0,0)}b25.Reviews.active=false;return }},updateOnce:function(B,A,C){if(b25.Reviews.runOnce){b25.Reviews.runOnce=false;b25.Reviews.update(B,A)}},responseHandler:function(){if(b25.Reviews.request.readyState==4){if(b25.Reviews.request.status==200){var A=document.getElementById("guest_reviews");A.innerHTML=b25.Reviews.request.responseText;window.scrollTo(0,0)}delete b25.Reviews.request.onreadystatechange;delete b25.Reviews.request;b25.Reviews.active=false}}};booking.translate={hasInnerText:false,targetObj:null,targetLang:null,origLang:null,doTranslation:function(){if(!self.google){booking.google.AjaxApiLoader.load("booking.translate.doTranslation")}else{if(!google.language){google.load("language","1",{callback:booking.translate.doTranslation})}else{var B=booking.translate.targetObj;if(!booking.translate.hasInnerText){var A=$(B).siblings("span.origcomment")[0].textContent}else{var A=$(B).siblings("span.origcomment")[0].innerText}google.language.translate(A,booking.translate.origLang,booking.translate.targetLang,function(C){if(!C.error){$(B).hide().siblings("span.origcomment").hide();$(B).next().show();$(B).siblings("span.newtranslation").html(C.translation).show()}else{$(B).siblings("span.newtranslation").html("! - Error translating this item ").show()}})}}},init:function(){booking.translate.hasInnerText=(document.getElementsByTagName("body")[0].innerText!=undefined)?true:false;$("#guest_reviews p.comments_good[lang], #guest_reviews p.comments_bad[lang]").wrapInner('<span class="origcomment"></span>').append('<span class="newtranslation" style="display:none;background:#ff9;"></span>&nbsp;<a href="#" class="do">'+transl_translate+'</a><a href="#" class="undo" style="display:none;">'+transl_undo+"</a>");$("#guest_reviews p.comments_good a.do, #guest_reviews p.comments_bad a.do").click(function(){booking.translate.targetObj=this;booking.translate.targetLang=$("html").attr("lang");booking.translate.origLang=$(this).parent().attr("lang");booking.translate.doTranslation();return false});$("#guest_reviews p.comments_good a.undo, #guest_reviews p.comments_bad a.undo").click(function(){$(this).hide().siblings("span.newtranslation").hide();$(this).prev().show().siblings("span.origcomment").show();return false})}};$(document).ready(function(){$(".hotelchars .reviews_pager, #gr_profile_chooser").show();if(typeof booking.env.b_site_experiment_sort_reviews!="undefined"&&booking.env.b_site_experiment_sort_reviews==2){booking.translate.init()}});$(document).ready(function(){$("#gr_profile_chooser ul").click(function(){if(typeof booking.env.b_site_experiment_sort_reviews!="undefined"&&booking.env.b_site_experiment_sort_reviews){$("ul#review_sort li").removeClass("current up down");$("ul#review_sort li.lang").addClass("current");$("#comments_table").fadeTo("slow",0.33);var G=$("#gr_profile_chooser ul").attr("class");var A="type_global";if(G=="group"){A="type_group"}else{if(G=="solo_traveller"){A="type_solo"}else{if(G=="family_with_young_children"){A="type_youngchildren"}else{if(G=="mature_couple"){A="type_maturecouple"}else{if(G=="family_with_older_children"){A="type_oldchildren"}else{if(G=="with_friends"){A="type_withfriends"}else{if(G=="young_couple"){A="type_youngcouple"}}}}}}}var D=$("li."+A).text().replace(/\D/g,"");$("#orderbywhich").html(booking.env.order_by+'<span class="sort_type">'+$("li."+A).attr("title")+" ("+D+") ");$("div.loading_reviews").show();setTimeout(function(){b25.Reviews.getRawPage(booking.env.langdefault+";type="+$("#gr_profile_chooser ul").attr("class")+";offset=0",function(){},true);$("div.loading_reviews").hide()},4000)}var B=$("#rsc_hotel_staff").text();var C=$("#rsc_hotel_services").text();var E=$("#rsc_hotel_clean").text();var F=$("#rsc_hotel_comfort").text();var H=$("#rsc_hotel_value").text();$("img#rbar_hotel_staff").css("background-position","0px");$("img#rbar_hotel_staff").css("background-position","+"+(B*11)+"px");$("img#rbar_hotel_services").css("background-position","0px");$("img#rbar_hotel_services").css("background-position","+"+(C*11)+"px");$("img#rbar_hotel_clean").css("background-position","0px");$("img#rbar_hotel_clean").css("background-position","+"+(E*11)+"px");$("img#rbar_hotel_comfort").css("background-position","0px");$("img#rbar_hotel_comfort").css("background-position","+"+(F*11)+"px");$("img#rbar_hotel_value").css("background-position","0px");$("img#rbar_hotel_value").css("background-position","+"+(H*11)+"px");return false});$("li.lang a").click(function(){if($(this).parent("li").hasClass("current")){return false}$("#comments_table").fadeTo("slow",0.33);$("div.loading_reviews").show();var C=$("#gr_profile_chooser ul").attr("class");var A="type_global";if(C=="group"){A="type_group"}else{if(C=="solo_traveller"){A="type_solo"}else{if(C=="family_with_young_children"){A="type_youngchildren"}else{if(C=="mature_couple"){A="type_maturecouple"}else{if(C=="family_with_older_children"){A="type_oldchildren"}else{if(C=="with_friends"){A="type_withfriends"}else{if(C=="young_couple"){A="type_youngcouple"}}}}}}}var B=$("li."+A).text().replace(/\D/g,"");$("#orderbywhich").html(booking.env.order_by+'<span class="sort_type">'+$("li."+A).attr("title")+" ("+B+') <span class="amp">'+booking.env.and+"</span>"+$(this).text()+"</span>");setTimeout(function(){b25.Reviews.getRawPage(booking.env.langdefault+";type="+$("#gr_profile_chooser ul").attr("class")+";offset=0",function(){},true);$("div.loading_reviews").hide()},4000);$($(this).parents("li")).addClass("current").siblings().removeClass("current");return false});$("li.date a").click(function(){if($(this).parent().hasClass("down")){$(this).parent().removeClass("down").addClass("up");$("#comments_table").fadeTo("slow",0.33);$("div.loading_reviews").show();var C=$("#gr_profile_chooser ul").attr("class");var A="type_global";if(C=="group"){A="type_group"}else{if(C=="solo_traveller"){A="type_solo"}else{if(C=="family_with_young_children"){A="type_youngchildren"}else{if(C=="mature_couple"){A="type_maturecouple"}else{if(C=="family_with_older_children"){A="type_oldchildren"}else{if(C=="with_friends"){A="type_withfriends"}else{if(C=="young_couple"){A="type_youngcouple"}}}}}}}var B=$("li."+A).text().replace(/\D/g,"");$("#orderbywhich").html(booking.env.order_by+'<span class="sort_type">'+$("li."+A).attr("title")+" ("+B+') <span class="amp">'+booking.env.and+"</span>"+$(this).text().replace(/\s{1,}$/g,"")+" ("+booking.env.least_recent+")</span>");setTimeout(function(){b25.Reviews.getRawPage(booking.env.datereversed+";type="+$("#gr_profile_chooser ul").attr("class")+";offset=0",function(){},true);$("div.loading_reviews").hide()},4000)}else{$(this).parent().removeClass("up").addClass("down");$("#comments_table").fadeTo("slow",0.33);$("div.loading_reviews").show();var C=$("#gr_profile_chooser ul").attr("class");var A="type_global";if(C=="group"){A="type_group"}else{if(C=="solo_traveller"){A="type_solo"}else{if(C=="family_with_young_children"){A="type_youngchildren"}else{if(C=="mature_couple"){A="type_maturecouple"}else{if(C=="family_with_older_children"){A="type_oldchildren"}else{if(C=="with_friends"){A="type_withfriends"}else{if(C=="young_couple"){A="type_youngcouple"}}}}}}}var B=$("li."+A).text().replace(/\D/g,"");$("#orderbywhich").html(booking.env.order_by+'<span class="sort_type">'+$("li."+A).attr("title")+" ("+B+') <span class="amp">'+booking.env.and+"</span>"+$(this).text().replace(/\s{1,}$/g,"")+" ("+booking.env.most_recent+")</span>");setTimeout(function(){b25.Reviews.getRawPage(booking.env.datedefault+";type="+$("#gr_profile_chooser ul").attr("class")+";offset=0",function(){},true);$("div.loading_reviews").hide()},4000)}$($(this).parents("li")).addClass("current").siblings().removeClass("current");return false});$("li.review a").click(function(){if($(this).parent().hasClass("down")){$(this).parent().removeClass("down").addClass("up");$("#comments_table").fadeTo("slow",0.33);$("div.loading_reviews").show();var C=$("#gr_profile_chooser ul").attr("class");var A="type_global";if(C=="group"){A="type_group"}else{if(C=="solo_traveller"){A="type_solo"}else{if(C=="family_with_young_children"){A="type_youngchildren"}else{if(C=="mature_couple"){A="type_maturecouple"}else{if(C=="family_with_older_children"){A="type_oldchildren"}else{if(C=="with_friends"){A="type_withfriends"}else{if(C=="young_couple"){A="type_youngcouple"}}}}}}}var B=$("li."+A).text().replace(/\D/g,"");$("#orderbywhich").html(booking.env.order_by+'<span class="sort_type">'+$("li."+A).attr("title")+" ("+B+') <span class="amp">'+booking.env.and+"</span>"+$(this).text().replace(/\s{1,}$/g,"")+" ("+booking.env.lowest_score+")</span>");setTimeout(function(){b25.Reviews.getRawPage(booking.env.scorereversed+";type="+$("#gr_profile_chooser ul").attr("class")+";offset=0",function(){},true);$("div.loading_reviews").hide()},4000)}else{$(this).parent().removeClass("up").addClass("down");$("#comments_table").fadeTo("slow",0.33);$("div.loading_reviews").show();var C=$("#gr_profile_chooser ul").attr("class");var A="type_global";if(C=="group"){A="type_group"}else{if(C=="solo_traveller"){A="type_solo"}else{if(C=="family_with_young_children"){A="type_youngchildren"}else{if(C=="mature_couple"){A="type_maturecouple"}else{if(C=="family_with_older_children"){A="type_oldchildren"}else{if(C=="with_friends"){A="type_withfriends"}else{if(C=="young_couple"){A="type_youngcouple"}}}}}}}var B=$("li."+A).text().replace(/\D/g,"");$("#orderbywhich").html(booking.env.order_by+'<span class="sort_type">'+$("li."+A).attr("title")+" ("+B+') <span class="amp">'+booking.env.and+"</span>"+$(this).text().replace(/\s{1,}$/g,"")+" ("+booking.env.highest_score+")</span>");setTimeout(function(){b25.Reviews.getRawPage(booking.env.scoredefault+";type="+$("#gr_profile_chooser ul").attr("class")+";offset=0",function(){},true);$("div.loading_reviews").hide()},4000)}$($(this).parents("li")).addClass("current").siblings().removeClass("current");return false})});$(document).ready(function(){if($("#available_rooms_header1").length){var A=window.location.href.match(/show_room=(.*)/);if(A){A=A[1].replace(/#.*/,"");$("a[name="+A+"]").parent().find("a.togglelink").click()}}});var currentPhotoIndex=1;var speed=8000;var firsttime=true;$(document).ready(function(){if(typeof slideshow_photos!="undefined"&&slideshow_photos.length>1){loadNext()}var A=true;if(typeof booking.env.b_site_experiment_nophototab_andtooltips!="undefined"&&booking.env.b_site_experiment_nophototab_andtooltips>1){A=false}if(A){$("div.slideshow #photo_wrapper, a#more_photos-link").css("cursor","pointer").hover(function(){$(this).append('<div class="bpg_click2open" style="font-size:90%;padding:4px 6px;-moz-border-radius:10px;-webkit-border-radius:10px;border-width:0;opacity:0.8;background-color:#fff;position:absolute;top:163px;left:10px;z-index:5;height:auto !important;width:auto !important;"><b style="">+ </b>'+transl_click_to_enlarge+"</div>")},function(){$(".bpg_click2open").remove()}).click(function(){popup_gallery($("div.slideshow #photo_wrapper"));return false})}});function loadNext(){if(currentPhotoIndex>=slideshow_photos.length){currentPhotoIndex=0}if(currentPhotoIndex<=slideshow_photos.length){$('<div id="photo_holding"></div>').insertAfter("#photo_container");$("#photo_holding").css("background-image","url("+slideshow_photos[currentPhotoIndex]+")");currentPhotoIndex++;setTimeout(transition,speed)}}function transition(){$("#photo_container").fadeOut(2000,function(){$(this).remove();$("#photo_holding").attr("id","photo_container");setTimeout(loadNext,"100")})};
