(function(a){a(function(){a("span.mapson").live("mouseover",function(){var b=title="";if(a(".liam",this).length>0){a(".liam span",this).remove();b=a(".liam",this).text();a(".liam",this).remove();title=a(this).html()}else{a("span",this).remove();title=b=a(this).text()}b=b.replace(/ ?(|&#173;|&shy;|&#x00AD;) ?/g,"");a(this).replaceWith('<a href="mailto:'+b+'">'+title+"</a>")})})})(jQuery);
$(document).ready(function(){$("#gallery_box .left-arrow").click(function(){var a=$("#gallery_box .slider"),c=parseInt(a.css("left"));c<0&&a.animate({left:c+179},"slow");return false});$("#gallery_box .right-arrow").click(function(){var a=$("#gallery_box .slider"),c=parseInt(a.css("left")),b=($(".item",a).length-1)*179;Math.abs(c)<b&&a.animate({left:c-179},"slow");return false});initRstFunctions()});function initRstFunctions(){initRstClickFunction();initRstImageChange();initOpenNewWindow()}
function initOpenNewWindow(){$("#reservation_box a, .rst-bottom .map, #reservation").click(function(){var a=$(this).attr("href"),c="",b="";if(!$(this).is(".map")){c="_blank";b="height=350,width=300,location=no,resizeable=no"}a!=""&&window.open(a,c,b);return false})}
function initRstImageChange(){$("a.rst-link.images").click(function(){var a=$(this),c=a.attr("rel"),b=new Image;$bigImageName=$(".bigImage img").attr("src").match(/imageresize\/[c]+[0-9]+[w]__[c]+[0-9]+[h]__(.*)/)[1];a.attr("rel",$bigImageName);$(b).attr("src","imageresize/c161w__c84h__"+$bigImageName);$("img",a).fadeOut("slow",function(){$(this).remove()});a.prepend(b);$(b).fadeIn("slow");a=new Image;b=$('<div class="justify"></div>');$(a).attr("src","imageresize/c402w__c274h__"+c);$(".bigImage div").fadeOut("slow",
function(){$(this).remove()});$(b).append(a);$(".bigImage").prepend(b);$(b).fadeIn("slow");return false})}function initRstClickFunction(){$(".rst-slider .rst:not(.init) a.arrow").click(rstClickFunction).parents(".rst").addClass("init")}
function rstClickFunction(){var a=$(this),c=a.attr("rev"),b=$("img",a).attr("alt"),d=$("#tray #rst"+c);if(c!=""&&d.length>0)handleRstAjax(d,b);else if(c!=""){a=a.attr("href");$("body *").css("cursor","wait");$.get(a,{},function(e){$("body").find("*").css("cursor","auto").end().find("a").css("cursor","pointer");handleRstAjax($(e).find(".rst"),b,initRstFunctions)})}return false}
function handleRstAjax(a,c,b){var d=$("#article .rst-slider");if(c=="next")d.css("left",0).find(".rst").css("left",0).end().append(a).animate({left:-582},"slow",function(){$("#tray").append($(".rst:first-child",this));$(this).css("left",0).find(".rst.ajax",this).removeClass("ajax")});else c=="prev"&&d.css("left",-582).find(".rst").css("left",582).end().prepend(a).animate({left:0},"slow",function(){$("#tray").append($(".rst:last-child",this));$(".rst.ajax",this).removeClass("ajax")});typeof b=="function"&&
b()};

