jQuery(function(c){var d=c("#slideshow").get(0);d.scrollLeft=d.scrollTop=0;c.localScroll.hash({target:d,axis:"xy",queue:true,duration:1500});var b=c([]);c.localScroll({target:d,axis:"xy",queue:true,duration:1200,hash:false,onBefore:function(h,g,f){this.blur()}});c.scrollTo.defaults.axis="xy";c("div.overlay").scrollTo(0);c.scrollTo(0);var a=c("#overlay");c(".overlay_home").click(function(){a.stop().show(1000).scrollTo("0px",1000)});c("h1 a").click(function(){a.stop().scrollTo("0",1000)});c(".overlay_rest").click(function(){a.stop().show(1000).scrollTo("500px",1000)});c(".overlay_bistro").click(function(){a.stop().show(1000).scrollTo("1000px",1000)});c(".overlay_lounge").click(function(){a.stop().show(1000).scrollTo("1500px",1000)});c(".overlay_contact").click(function(){a.stop().show(1000).scrollTo("2000px",1000)});c(".overlay_reservations").click(function(){a.stop().show(1000).scrollTo("2500px",1000)});c(".overlay_gallery").click(function(){a.stop().hide(1000).scrollTo("3000px",1000)})});$(document).ready(function(){$("a").click(function(){$(this).blur()});$("li").mouseover(function(){$(this).stop().animate({height:"100px"},{queue:false,duration:300,easing:"easeInSine"})});$("li").mouseout(function(){$(this).stop().animate({height:"40px"},{queue:false,duration:300,easing:"easeOutSine"})});$("#logo").mouseout(function(){$(this).stop().animate({height:"100px"},{queue:false,duration:300,easing:"easeOutSine"})})});(function(d){var c=location.href.replace(/#.*/,""),b=d.localScroll=function(e){d("body").localScroll(e)};b.defaults={duration:1000,axis:"y",event:"click",stop:1};b.hash=function(e){e=d.extend({},b.defaults,e);e.hash=0;if(location.hash){setTimeout(function(){a(0,location,e)},0)}};d.fn.localScroll=function(e){e=d.extend({},b.defaults,e);return(e.persistent||e.lazy)?this.bind(e.event,function(h){var g=d([h.target,h.target.parentNode]).filter(f)[0];g&&a(h,g,e)}):this.find("a").filter(f).bind(e.event,function(g){a(g,this,e)}).end().end();function f(){var g=this;return !!g.href&&!!g.hash&&g.href.replace(g.hash,"")==c&&(!e.filter||d(g).is(e.filter))}};function a(j,h,g){var l=h.hash.slice(1),k=document.getElementById(l)||document.getElementsByName(l)[0],i;if(k){j&&j.preventDefault();i=d(g.target||d.scrollTo.window());if(g.lock&&i.is(":animated")||g.onBefore&&g.onBefore.call(h,j,k,i)===!1){return}if(g.stop){i.queue("fx",[]).stop()}i.scrollTo(k,g).trigger("notify.serialScroll",[k]);if(g.hash){i.queue(function(){location=h.hash})}}}})(jQuery);(function(b){var a=b.scrollTo=function(d,f,e){b(window).scrollTo(d,f,e)};a.defaults={axis:"y",duration:1};a.window=function(d){return b(window).scrollable()};b.fn.scrollable=function(){return this.map(function(){var d=this.parentWindow||this.defaultView,h=this.nodeName=="#document"?d.frameElement||d:this,f=h.contentDocument||(h.contentWindow||h).document,e=h.setInterval;return h.nodeName=="IFRAME"||e&&b.browser.safari?f.body:e?f.documentElement:this})};b.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function"){d={onAfter:d}}d=b.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=c(d.offset);d.over=c(d.over);return this.scrollable().each(function(){var h=this,s=b(h),r=f,g,n={},m=s.is("html,body");switch(typeof r){case"number":case"string":if(/^([+-]=)?\d+(px)?$/.test(r)){r=c(r);break}r=b(r,this);case"object":if(r.is||r.style){g=(r=b(r)).offset()}}b.each(d.axis.split(""),function(k,x){var u=x=="x"?"Left":"Top",p=u.toLowerCase(),w="scroll"+u,q=h[w],o=x=="x"?"Width":"Height",l=o.toLowerCase();if(g){n[w]=g[p]+(m?0:q-s.offset()[p]);if(d.margin){n[w]-=parseInt(r.css("margin"+u))||0;n[w]-=parseInt(r.css("border"+u+"Width"))||0}n[w]+=d.offset[p]||0;if(d.over[p]){n[w]+=r[l]()*d.over[p]}}else{n[w]=r[p]}if(/^\d+$/.test(n[w])){n[w]=n[w]<=0?0:Math.min(n[w],i(o))}if(!k&&d.queue){if(q!=n[w]){j(d.onAfterFirst)}delete n[w]}});j(d.onAfter);function j(k){s.animate(n,e,d.easing,k&&function(){k.call(this,f,d)})}function i(k){var o="scroll"+k,l=h.ownerDocument;return m?Math.max(l.documentElement[o],l.body[o]):h[o]}}).end()};function c(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});jQuery.preloadImages=function(){for(var a=0;a<arguments.length;a++){jQuery("<img>").attr("src",arguments[a])}};jQuery.preloadImages("resto.jpg","bistro.jpg","loungeo.jpg");$(document).ready(function(){$("#container").fadeIn(5000);$("#viewbox").fadeIn(5000);$("#iconbar li a").hover(function(){var b=$(this).children("img").attr("src");var a=b.split(".jpg")[0];$(this).children(".rollover").animate({opacity:"show"},"fast");$(this).animate({width:"245px"},{queue:false,duration:"normal"});$(this).children("span").animate({opacity:"hide"},"fast")},function(){var b=$(this).children("img").attr("src");var a=b.split("o.jpg")[0];$(this).children(".rollover").animate({opacity:"hide"},"fast");$(this).animate({width:"245px"},{queue:false,duration:"normal"});$(this).children("span").animate({opacity:"show"},"fast")})});jQuery.fn.codaBubble=function(c){var b=this;c=jQuery.extend({distances:[5],leftShifts:[30],bubbleTimes:[400],hideDelays:[0],bubbleWidths:[200],bubbleImagesPath:"",msieFix:true,msiePop:true},c||{});function a(d){return'<table class="popup" style="opacity: 0; top: -120px; left: -33px; display: none;"><tr><td class="corner topleft"/><td class="top"/><td class="corner topright"/></tr><tr><td class="left"/><td class="bubble_content">'+d+'</td><td class="right"/></tr><tr><td class="corner bottomleft"/><td class="bottom"><img style="display:block;" width="30" height="29" alt="" /></td><td class="corner bottomright"/></tr></table>'}return jQuery(b).each(function(k){var m=jQuery(".bubble_html",this).html();jQuery(".bubble_html",this).hide().after(a(m));jQuery(".popup td.bottom img",this).attr("src",c.bubbleImagesPath+"/bubble-tail2.png");if(c.msieFix){if($.browser.msie){jQuery(".popup td.topleft").css("background-image","url("+c.bubbleImagesPath+"/bubble-1.gif)");jQuery(".popup td.top").css("background-image","url("+c.bubbleImagesPath+"/bubble-2.gif)");jQuery(".popup td.topright").css("background-image","url("+c.bubbleImagesPath+"/bubble-3.gif)");jQuery(".popup td.left").css("background-image","url("+c.bubbleImagesPath+"/bubble-4.gif)");jQuery(".popup td.right").css("background-image","url("+c.bubbleImagesPath+"/bubble-5.gif)");jQuery(".popup td.bottomleft").css("background-image","url("+c.bubbleImagesPath+"/bubble-6.gif)");jQuery(".popup td.bottom").css("background-image","url("+c.bubbleImagesPath+"/bubble-7.gif)");jQuery(".popup td.bottomright").css("background-image","url("+c.bubbleImagesPath+"/bubble-8.gif)");jQuery(".popup td.bottom img").attr("src",c.bubbleImagesPath+"/bubble-tail2.gif")}}var e=c.distances[k];var h=c.bubbleTimes[k];var l=c.hideDelays[k];var j=null;var f=false;var n=false;var g=jQuery(".trigger",this);var d=jQuery(".popup",this).css("opacity",0);jQuery([g.get(0),d.get(0)]).mouseover(function(){jQuery(d).css("width",c.bubbleWidths[k]+"px");var i=jQuery(g.get(0)).css("width");if(j){clearTimeout(j)}if(f||n){return}else{f=true;d.css({top:-40,left:c.leftShifts[k],display:"block"}).animate({top:"-="+e+"px",opacity:1},h,"swing",function(){f=false;n=true})}}).mouseout(function(){if(j){clearTimeout(j)}j=setTimeout(function(){j=null;d.animate({top:"-="+e+"px",opacity:0},h,"swing",function(){n=false;d.css("display","none")})},l)});if(!c.msiePop&&$.browser.msie){jQuery(d).remove()}})};
