var currentSlide;var browserWidth;var browserHeight;var currentMenuClass;var horsScrollContent;var horsApi;var appsScrollContent;var appsApi;var soupsScrollContent;var soupsApi;var courseScrollContent;var courseApi;var mainScrollContent;var mainApi;var riceScrollContent;var riceApi;var setScrollContent;var setApi;var dessertsScrollContent;var dessertsApi;var redWineScrollContent;var redWineApi;var whiteWineScrollContent;var whiteWineApi;var roseWineScrollContent;var roseWineApi;var champScrollContent;var champApi;var desWineScrollContent;var desWineApi;var japWineScrollContent;var japWineApi;var botScrollContent;var botApi;var aperScrollContent;var aperApi;var spiritScrollContent;var spiritApi;var whiskScrollContent;var whiskApi;var brandyScrollContent;var brandyApi;var liqScrollContent;var liqApi;var portScrollContent;var portApi;var sherryScrollContent;var sherryApi;var minScrollContent;var minApi;var funcScrollContent;var funcApi;var wedScrollContent;var wedApi;var corpScrollContent;var corpApi;var bdayScrollContent;var bdayApi;var karaScrollContent;var karaApi;jQuery(function(){jQuery("body").queryLoader2({backgroundColor:"#000000",barHeight:"5",barColor:"#ba252f",onComplete:calculateDimensions});if(jQuery("body.home").length){jQuery("#navigation ul li:nth-child(1)").addClass("current_page_item")}jQuery("#news article:nth-child(1)").addClass("sticky");if(jQuery.browser.msie&&jQuery.browser.version==7){jQuery("#navigation ul li").css({height:"auto",margin:"0 0 5px 0"});jQuery("#page .left_col ul li.cat-item").css({height:"auto",margin:"0 0 8px 0"})}if(jQuery.browser.msie&&jQuery.browser.version==8){}if(jQuery.browser.msie&&jQuery.browser.version==9){jQuery("#page .left_col ul li.cat-item").css({margin:"0 0 3px 0"})}if(jQuery.browser.mozilla){jQuery("#navigation ul li").css({margin:"0 0 5px 0"});jQuery("#page .left_col ul li.cat-item").css({margin:"0 0 5px 0"})}if(jQuery("body.page-template-findus-php").length){jQuery("body").height("100%");jQuery("html").height("100%");initialize()}var a=jQuery("#page article .right_col").outerHeight();jQuery("#page").height(a);jQuery("#page article .left_col").height(a);jQuery("#page .left_col ul li.cat-item a").wrapInner("<span>");jQuery("#page .left_col ul li:nth-child(1)").addClass("active");jQuery("#page .left_col ul li a").addClass("caroufredsel");if(jQuery("body.page-template-menupage-php").length){callFoodMenu()}if(jQuery("body.page-template-drinkspage-php").length){callDrinksMenu()}if(jQuery("body.page-template-parties-php").length){callFunctionsMenu()}if(jQuery("body.page-template-booking-php").length){jQuery("#field_bookingdate").datePicker({clickInput:true,renderCallback:function(f,b,e,d){var c=b.getDayOfYear();if(c==44){f.addClass("disabled")}}}).dpSetOffset(20,0)}if(jQuery("body.single-post").length){jQuery("#page .right_col .entry-content").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"})}});jQuery(window).resize(function(){jQuery("#backgrounds").trigger("destroy");calculateDimensions()});function callFunctionsMenu(){jQuery("#functions_carousel section").each(function(b){var c=jQuery(this).attr("id");var a=b+1;jQuery("#page .left_col ul li.cat-item:nth-child("+a+") a").attr("href","#"+c);jQuery("#page .left_col ul li.cat-item:nth-child("+a+") a").addClass(c)});activateFunctionsScrollBars();jQuery("#functions_carousel").carouFredSel({width:439,items:1,auto:false,direction:"down",scroll:{duration:800,duration:1200,easing:"easeInOutQuint",onBefore:function(d,a,b){var e=a.attr("id");jQuery("#page .left_col ul li.cat-item a."+e).parent().addClass("active");var c=d.attr("id");jQuery("#page .left_col ul li.cat-item a."+c).parent().removeClass("active");funcApi.scrollToY(0);wedApi.scrollToY(0);corpApi.scrollToY(0);bdayApi.scrollToY(0);karaApi.scrollToY(0)}},align:false})}function activateFunctionsScrollBars(){funcScrollContent=jQuery("#page .right_col .entry-content #functions_carousel #functions_function").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});funcApi=funcScrollContent.data("jsp");wedScrollContent=jQuery("#page .right_col .entry-content #functions_carousel #functions_wedding").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});wedApi=wedScrollContent.data("jsp");corpScrollContent=jQuery("#page .right_col .entry-content #functions_carousel #functions_corp").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});corpApi=corpScrollContent.data("jsp");bdayScrollContent=jQuery("#page .right_col .entry-content #functions_carousel #functions_bday").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});bdayApi=bdayScrollContent.data("jsp");karaScrollContent=jQuery("#page .right_col .entry-content #functions_carousel #functions_kara").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});karaApi=karaScrollContent.data("jsp")}function callDrinksMenu(){jQuery("#drink_carousel section").each(function(b){var c=jQuery(this).attr("id");var a=b+1;jQuery("#page .left_col ul li.cat-item:nth-child("+a+") a").attr("href","#"+c);jQuery("#page .left_col ul li.cat-item:nth-child("+a+") a").addClass(c)});activateDrinkScrollBars();jQuery("#drink_carousel").carouFredSel({width:439,items:1,auto:false,direction:"down",scroll:{duration:800,duration:1200,easing:"easeInOutQuint",onBefore:function(d,a,b){var e=a.attr("id");jQuery("#page .left_col ul li.cat-item a."+e).parent().addClass("active");var c=d.attr("id");jQuery("#page .left_col ul li.cat-item a."+c).parent().removeClass("active");redWineApi.scrollToY(0);whiteWineApi.scrollToY(0);roseWineApi.scrollToY(0);champApi.scrollToY(0);desWineApi.scrollToY(0);japWineApi.scrollToY(0);botApi.scrollToY(0);aperApi.scrollToY(0);spiritApi.scrollToY(0);whiskApi.scrollToY(0);brandyApi.scrollToY(0);liqApi.scrollToY(0);portApi.scrollToY(0);sherryApi.scrollToY(0);minApi.scrollToY(0)}},align:false})}function activateDrinkScrollBars(){redWineScrollContent=jQuery("#page .right_col .entry-content #drink_carousel #drink_redwine").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});redWineApi=redWineScrollContent.data("jsp");whiteWineScrollContent=jQuery("#page .right_col .entry-content #drink_carousel #drink_whitewine").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});whiteWineApi=whiteWineScrollContent.data("jsp");roseWineScrollContent=jQuery("#page .right_col .entry-content #drink_carousel #drink_rosewine").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});roseWineApi=roseWineScrollContent.data("jsp");champScrollContent=jQuery("#page .right_col .entry-content #drink_carousel #drink_champagne").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});champApi=champScrollContent.data("jsp");desScrollContent=jQuery("#page .right_col .entry-content #drink_carousel #drink_dessert").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});desWineApi=desScrollContent.data("jsp");japWineScrollContent=jQuery("#page .right_col .entry-content #drink_carousel #drink_japanese").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});japWineApi=japWineScrollContent.data("jsp");botScrollContent=jQuery("#page .right_col .entry-content #drink_carousel #drink_bottled").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});botApi=botScrollContent.data("jsp");aperScrollContent=jQuery("#page .right_col .entry-content #drink_carousel #drink_apertifs").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});aperApi=aperScrollContent.data("jsp");spiritScrollContent=jQuery("#page .right_col .entry-content #drink_carousel #drink_spirits").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});spiritApi=spiritScrollContent.data("jsp");whiskScrollContent=jQuery("#page .right_col .entry-content #drink_carousel #drink_whiskey").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});whiskApi=whiskScrollContent.data("jsp");brandyScrollContent=jQuery("#page .right_col .entry-content #drink_carousel #drink_brandy").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});brandyApi=brandyScrollContent.data("jsp");liqScrollContent=jQuery("#page .right_col .entry-content #drink_carousel #drink_liqueurs").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});liqApi=liqScrollContent.data("jsp");portScrollContent=jQuery("#page .right_col .entry-content #drink_carousel #drink_port").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});portApi=portScrollContent.data("jsp");sherryScrollContent=jQuery("#page .right_col .entry-content #drink_carousel #drink_sherry").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});sherryApi=sherryScrollContent.data("jsp");minScrollContent=jQuery("#page .right_col .entry-content #drink_carousel #drink_minerals").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});minApi=minScrollContent.data("jsp")}function callFoodMenu(){jQuery("#menu_carousel section").each(function(b){var c=jQuery(this).attr("id");var a=b+1;jQuery("#page .left_col ul li.cat-item:nth-child("+a+") a").attr("href","#"+c);jQuery("#page .left_col ul li.cat-item:nth-child("+a+") a").addClass(c)});activateFoodScrollBars();jQuery("#menu_carousel").carouFredSel({width:439,items:1,auto:false,direction:"down",scroll:{duration:800,duration:1200,easing:"easeInOutQuint",onBefore:function(d,a,b){var e=a.attr("id");jQuery("#page .left_col ul li.cat-item a."+e).parent().addClass("active");var c=d.attr("id");jQuery("#page .left_col ul li.cat-item a."+c).parent().removeClass("active");horsApi.scrollToY(0);appsApi.scrollToY(0);soupsApi.scrollToY(0);courseApi.scrollToY(0);mainApi.scrollToY(0);riceApi.scrollToY(0);setApi.scrollToY(0);dessertsApi.scrollToY(0)}},align:false})}function activateFoodScrollBars(){horsScrollContent=jQuery("#page .right_col .entry-content #menu_carousel #menu_hors").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});horsApi=horsScrollContent.data("jsp");appsScrollContent=jQuery("#page .right_col .entry-content #menu_carousel #menu_apps").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});appsApi=appsScrollContent.data("jsp");soupsScrollContent=jQuery("#page .right_col .entry-content #menu_carousel #menu_soups").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});soupsApi=soupsScrollContent.data("jsp");courseScrollContent=jQuery("#page .right_col .entry-content #menu_carousel #menu_course").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});courseApi=courseScrollContent.data("jsp");mainScrollContent=jQuery("#page .right_col .entry-content #menu_carousel #menu_mains").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});mainApi=mainScrollContent.data("jsp");riceScrollContent=jQuery("#page .right_col .entry-content #menu_carousel #menu_rice").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});riceApi=riceScrollContent.data("jsp");setScrollContent=jQuery("#page .right_col .entry-content #menu_carousel #menu_set").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});setApi=setScrollContent.data("jsp");dessertsScrollContent=jQuery("#page .right_col .entry-content #menu_carousel #menu_desserts").jScrollPane({animateScroll:true,animateDuration:300,animateEase:"easeInOutQuint"});dessertsApi=dessertsScrollContent.data("jsp")}function calculateDimensions(){var a=1050/1680;browserWidth=jQuery(window).width();browserHeight=jQuery(window).height();if((navigator.userAgent.match(/iPad/i))){if(window.innerHeight<window.innerWidth){browserWidth=1024;browserHeight=768}}if((navigator.userAgent.match(/iPhone/i))){if(window.innerHeight<window.innerWidth){browserWidth=960;browserHeight=640}}if((browserHeight/browserWidth)>a){jQuery("#backgrounds img").height(browserHeight);jQuery("#backgrounds img").width(browserHeight/a)}else{jQuery("#backgrounds img").width(browserWidth);jQuery("#backgrounds img").height(browserWidth*a)}jQuery("#backgrounds img").css("margin-top",(browserHeight-jQuery("#backgrounds img").height())/2);jQuery("#backgrounds").animate({opacity:1},{duration:800,easing:"easeInOutQuint"});callCarousel()}function callCarousel(){jQuery("#backgrounds").carouFredSel({items:1,width:browserWidth,height:browserHeight,auto:{play:true},scroll:{fx:"crossfade",duration:1200,easing:"easeInOutQuint"},next:{button:"#next_background",fx:"cover"},align:false})};
