var slides;var imageCounter=0;onSlideshowBefore=function(a,e,d){if(slides&&slides.length>0&&slides.length>imageCounter){var c=slides[imageCounter];var b=new Image();b.src=c.Path;b.alt=c.Alt;if(d.addSlide){d.addSlide(b);imageCounter++}}};$j(function(){if(window.SlideShows){$j.each(window.SlideShows,function(b,a){slides=a.Items})}});$j(document).ready(function(){$j.each($j("a"),function(b,c){var a=$j(this).attr("href");if(a&&(a.indexOf("/Images/")>0)){$j(this).bind("click",function(){return hs.expand(this)})}});$j("#quickform-search").bind("click",function(){var b=$j("#quickform-mail").val();var d=$j("#quickform-surname").val();var a="?Email="+b+"&LastName="+d;var c=$j("#quickform-search").attr("href");window.location.href=c+a;return false});if(((location.href).indexOf("/de/preise-angebote/winterpreise.aspx")>=0)||((location.href).indexOf("/it/prezzi-offerte/prezzi-invernali.aspx")>=0)||((location.href).indexOf("/en/prices-offers/winter-prices.aspx")>=0)||((location.href).indexOf("/nl/prijzen-aanbiedingen/prijslijst-winter.aspx")>=0)||((location.href).indexOf("/pl/ceny-oferty/cennik-zimowy.aspx")>=0)||((location.href).indexOf("/cz/ceny-nabidky/zimni-cenik.aspx")>=0)||((location.href).indexOf("/hr/cijene-posebne-ponude/zimski-cjenik.aspx")>=0)){$j(".menu-prices a").addClass("sc-active")}if((location.href=="http://www.hotel-brunnerhof.it/de/")||(location.href=="http://www.hotel-brunnerhof.it/it/")||(location.href=="http://www.hotel-brunnerhof.it/en/")||(location.href=="http://www.hotel-brunnerhof.it/pl/")||(location.href=="http://www.hotel-brunnerhof.it/nl/")||(location.href=="http://www.hotel-brunnerhof.it/cz/")||(location.href=="http://www.hotel-brunnerhof.it/hr/")){$j(".menu-welcome a").addClass("sc-active")}if(((location.href).indexOf("/de/anfrage")>=0)||((location.href).indexOf("/it/richiesta")>=0)||((location.href).indexOf("/en/request")>=0)||((location.href).indexOf("/nl/aanvragen")>=0)||((location.href).indexOf("/pl/zapytania")>=0)||((location.href).indexOf("/cz/poptavky")>=0)||((location.href).indexOf("/hr/upit")>=0)){$j("#I1").attr("src",$j("#I1").attr("src")+window.location.search)}$j(".sc-pager-first").text("");$j(".sc-pager-prev").text("");$j(".sc-pager-next").text("");$j(".sc-pager-last").text("")});
