function createCookie(n,t,i){var r,u,f;return i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="",f=n+"="+t+u+"; path=/",document.cookie=f,f}function forceSRToReadValidErrMessages(n){n=n||".validation-summary-errors li";var t=$(n);t.length&&forceSRToReadAriaLive(t.text())}function forceSRToReadText(n){n.length&&forceSRToReadAriaLive(n)}function forceSRToReadAriaLive(n){var t=$("#ccl-srAriaLive"),i;t.length<=0&&(i=window.parent.document.body.querySelector("#ccl-srAriaLive"),t=$(i));t.text(n)}function setFocusModalIFrame(n,t,i,r,u,f,e,o,s){function v(){var n=window.parent.document.body.querySelector(o||".modalOpenElement");a=$(n);a.length&&a.focus()}function p(n){var u=n.keyCode?n.keyCode:n.which;u===9&&(n.shiftKey?document.activeElement==c&&(n.preventDefault?n.preventDefault():n.returnValue=!1,l.focus()):document.activeElement==l&&(n.preventDefault?n.preventDefault():n.returnValue=!1,c.focus()));u===27&&(v(),typeof t!="undefined"?$(document).find(t).click():e==undefined||e==!1?($(parent.document).find(i).remove(),$(parent.document).find(r).remove()):($(parent.document).find(i).hide(),$(parent.document).find(r).hide()))}var y=document.getElementById(n),h,c,l,a;return y.addEventListener("keydown",p),h=y.querySelectorAll('a[href]:not([style*="display:none"]), area[href]:not([style*="display:none"]),     input:not([disabled]):not([style*="display:none"]):not([type*=hidden]), select:not([disabled]):not([style*="display:none"]),     textarea:not([disabled]):not([style*="display:none"]), button:not([disabled]):not([style*="display:none"]),     iframe:not([style*="display:none"]), object:not([style*="display:none"]), embed:not([style*="display:none"]),     *[tabindex]:not([style*="display:none"]), *[contenteditable]:not([style*="display:none"])'),h=Array.prototype.slice.call(h),c=document.getElementById(u)||h[0],l=document.getElementById(f)||h[h.length-1],c.focus(),$(t).focus(function(){$(parent.document).find(".close").css("outline","3px solid #00b5cb");$(parent.document).find(".close").css("outline-offset","0");$(parent.document).find(".close").css("box-shadow","inset 0 0 2px #fff!important")}),$(t).focusout(function(){$(parent.document).find(".close").css("outline","");$(parent.document).find(".close").css("outline-offset","");$(parent.document).find(".close").css("box-shadow","")}),$(t).click(function(){if(s!=undefined)s(),v();else return $(parent.document).find(i).remove(),v(),$(parent.document).find(r).remove(),!1}),"done"}function setFocusModal(n,t,i,r,u,f){function c(n){var r=n.keyCode?n.keyCode:n.which;r===9&&(n.shiftKey?document.activeElement==o&&(n.preventDefault(),f!=undefined&&f?t():s.focus()):document.activeElement==s&&(n.preventDefault(),f!=undefined&&f?i():(n.preventDefault(),o.focus())));r===27&&t()}var h=document.getElementById(n),e,o,s;h.addEventListener("keydown",c);e=h.querySelectorAll('a[href]:not([style*="display:none"]), area[href]:not([style*="display:none"]),     input:not([disabled]):not([style*="display:none"]):not([type*=hidden]), select:not([disabled]):not([style*="display:none"]),     textarea:not([disabled]):not([style*="display:none"]), button:not([disabled]):not([style*="display:none"]),     iframe:not([style*="display:none"]), object:not([style*="display:none"]), embed:not([style*="display:none"]),     *[tabindex]:not([style*="display:none"]), *[contenteditable]:not([style*="display:none"])');e=Array.prototype.slice.call(e);o=document.getElementById(r)||e[0];s=document.getElementById(u)||e[e.length-1];setTimeout(function(){o.focus()},100)}function AddhandlerKeypressClick(n,t){try{n.on("keydown",".keypresstoclick",function(n){var i=n.keyCode?n.keyCode:n.which;i===t&&$(this).trigger("click")})}catch(i){console.log(i.message)}}window.Modernizr=function(n,t,i){function c(n,t){var r=n.charAt(0).toUpperCase()+n.substr(1),f,u;n:{r=(n+" "+v.join(r+" ")+r).split(" ");for(u in r)if(l[r[u]]!==i&&(!t||t(r[u],e))){f=!0;break n}}return!!f}var r={},u=t.documentElement,e,l,v,a,o,s,y,h;t.head||t.getElementsByTagName("head");e=t.createElement("modernizr");l=e.style;t.createElement("input");" -webkit- -moz- -o- -ms- -khtml- ".split(" ");v="Webkit Moz O ms Khtml".split(" ");n={};a=[],function(){var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(r,u){u=u||t.createElement(n[r]||"div");r="on"+r;var f=r in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(r,""),f=typeof u[r]=="function",typeof u[r]===i||(u[r]=i),u.removeAttribute(r))),f}}();s={}.hasOwnProperty;y=typeof s!==i&&typeof s.call!==i?function(n,t){return s.call(n,t)}:function(n,t){return t in n&&typeof n.constructor.prototype[t]===i};n.borderradius=function(){return c("borderRadius","",function(n){return(""+n).indexOf("orderRadius")!==-1})};n.boxshadow=function(){return c("boxShadow")};n.textshadow=function(){return t.createElement("div").style.textShadow===""};n.csstransitions=function(){return c("transitionProperty")};for(h in n)y(n,h)&&(o=h.toLowerCase(),r[o]=n[h](),a.push((r[o]?"":"no-")+o));return r.crosswindowmessaging=r.postmessage,r.historymanagement=r.history,r.addTest=function(n,t){return n=n.toLowerCase(),r[n]?void 0:(t=!!t(),u.className+=" "+(t?"":"no-")+n,r[n]=t,r)},l.cssText="",e=f=null,r._enableHTML5=!0,r._version="1.6",u.className=u.className.replace(/\bno-js\b/,"")+" js",u.className+=" "+a.join(" "),r}(this,this.document),function(n){var r={swipeTolerance:40},i=function(t,i){this.target=n(t);this.touch=i;this.startX=this.currentX=i.screenX;this.startY=this.currentY=i.screenY;this.eventType=null},t;i.options={};i.latestTap=null;i.prototype.move=function(n){this.currentX=n.screenX;this.currentY=n.screenY};i.prototype.process=function(){var n=this.currentX-this.startX,t=this.currentY-this.startY;n==0&&t==0?this.checkForDoubleTap():Math.abs(t)>i.options.swipeTolerance&&Math.abs(t)>Math.abs(n)?(this.eventType=t>0?"swipedown":"swipeup",this.target.trigger("swipe",[this])):Math.abs(n)>i.options.swipeTolerance&&(this.eventType=n>0?"swiperight":"swipeleft",this.target.trigger("swipe",[this]));this.eventType&&this.target.trigger(this.eventType,[this]);this.target.trigger("touch",[this])};i.prototype.checkForDoubleTap=function(){i.latestTap&&new Date-i.latestTap<400&&(this.eventType="doubletap");this.eventType||(this.eventType="tap");i.latestTap=new Date};t=function(t,u){i.options=n.extend(r,u);t.bind("touchstart",this.touchStart);t.bind("touchmove",this.touchMove);t.bind("touchcancel",this.touchCancel);t.bind("touchend",this.touchEnd)};t.prototype.touchStart=function(n){var r=this;t.eachTouch(n,function(n){t.touches[n.identifier]=new i(r,n)})};t.prototype.touchMove=function(n){t.eachTouch(n,function(n){var i=t.touches[n.identifier];i&&i.move(n)})};t.prototype.touchCancel=function(n){t.eachTouch(n,function(n){t.purge(n,!0)})};t.prototype.touchEnd=function(n){t.eachTouch(n,function(n){t.purge(n)})};t.touches={};t.purge=function(n,i){if(!i){var r=t.touches[n.identifier];r&&r.process()}delete t.touches[n.identifier]};t.eachTouch=function(n,t){for(var n=n.originalEvent,r=n.changedTouches.length,i=0;i<r;i++)t(n.changedTouches[i])};n.fn.addSwipeEvents=function(n,i){return!i&&jQuery.isFunction(n)&&(i=n,n=null),new t(this,n),i&&this.bind("touch",i),this}}(jQuery),function(n,t){function r(t){var r=n(t);return r.hasClass("hover")?r.data("mouseleave")(!0):(i.navTooltips("close"),i.initSubscribe("close"),r.data("mouseenter")(t)),!1}function u(n){return f(n)}function f(n){var t=/[^-A-Za-z0-9+&@#/%?=~_|!:,.;\(\)\*']/gi,r=function(n){n=n||"";try{return n!==decodeURI(n)}catch(t){return!1}},i=function(n,t){return t.replace(n,"")};return n?r(n)?(n=decodeURI(n),n=i(t,n),encodeURI(n)):i(t,n):""}t||(t={});t.Header2013||(t.Header2013={});var i={};i.$el=n("#ccl-refresh-header");i.$searchForm=n(".search-wrapper form");i.$searchFormInput=n("#ccl_header_site-search");i.searchURL=u(n("#hSearchUrl").val());i.animationTime=300;i.closeTime=500;i.currentFlyoutTimer;i.transitions=Modernizr.csstransitions;i.placeholder=function(){var n=document.createElement("input");return"placeholder"in n}();i.touch=Modernizr.touch;i.shadow=Modernizr.boxshadow;i.init=function(){i.headerAlert();i.initSubscribe();i.navTooltips();i.initFlyouts();i.iconHover();i.initNoClick();i.supportPlaceholder();i.initSearch();i.initTagging();t.Header2013&&t.Header2013.CCLHeader2013Personalizer&&t.Header2013.CCLHeader2013Personalizer.personlizeMangeTab&&t.Header2013.CCLHeader2013Personalizer.personlizeMangeTab();i.hightLightActiveTab()};i.initForgot=function(){};i.initSubscribe=function(t){var u=i.$el.find(".header-subscribe"),r=i.$el.find("#subscribeLink"),e=u.find(".close"),o,f;if(e.attr("id","btn-close-header-subscribe"),t=="close")return u.slideUp("fast"),!1;o=function(){u.slideUp("fast");r.focus()};f=function(){u.slideUp("fast");r.attr("aria-expanded","false");r.focus()};r.focus(function(){var t=i.$el.find(".nav-tooltip-trigger");t.each(function(){n(this).data("mouseleave")(!0)})});r.click(function(){return r.attr("aria-expanded",r.attr("aria-expanded")=="true"?"false":"true"),i.closeAll(),i.navTooltips("close"),u.slideToggle("fast"),setFocusModal("EmailSubscribeContainer",o,f,null,"btn-close-header-subscribe",!0),!1});e.click(function(){return f(),!1})};i.initTagging=function(){if(!(window.s_gi&&window.s_account))return!1;var t=i.$el.find("#ccl_header_locale_options a"),r=i.$el.find(".popular-box a"),u=i.$el.find("#ccl_header_site-search-submit");t.click(function(){var t=s_gi(s_account);t.linkTrackVars="s.prop8";t.prop8=n(this).text().trim();t.tl(this,"o",t.pageName+": Country Selector")});r.click(function(){var t=s_gi(s_account);t.linkTrackVars="s.prop15";t.prop15=n(this).text();t.tl(this,"o",t.pageName+": Popular Searches")});u.click(function(){var r=n("#ccl_header_site-search"),i=n.trim(r.val()),t=null;i.length&&i.toLowerCase()!=r.attr("placeholder").toLowerCase()&&(t=s_gi(s_account),t.linkTrackVars="s.prop15",t.prop15=i,t.tl(this,"o",t.pageName+": Search"))})};i.supportPlaceholder=function(){if(i.placeholder)return!1;var t=i.$el.find("[placeholder]");t.focus(function(){var t=n(this),i=t.attr("placeholder");t.val()==i&&t.val("").removeClass("placeholder")}).blur(function(){var t=n(this),i=t.attr("placeholder");t.val()===""&&t.val(i).addClass("placeholder")}).trigger("focus").trigger("blur")};i.addSearch=function(){var n=!(t.SiteSearch&&t.SiteSearch.DisableAddSearch&&t.SiteSearch.DisableAddSearch===!0);return{Enabled:function(){return i.$searchForm&&i.$searchForm.length>0&&i.$searchFormInput&&i.$searchFormInput.length>0&&n}}};i.initSearch=function(){function o(n){return n||(n=""),n=n.replace(">",""),n.replace("<","")}var t=n("#ccl_header_site-search"),r=n("#ccl_header_site-search-submit"),f=n("#glass_search"),e=i.$el.find(".popular-box li > a"),u;n("#ccl_header_site-search").attr("aria-label","Type what you are looking for on carnival.com");u=i.addSearch();u.Enabled()&&(i.$searchForm.attr("method","get"),i.$searchForm.attr("action","search"),i.$searchFormInput.attr("name","addsearch"));t.bind("keydown",function(n){if(n.keyCode==13&&(r.click(),n.stopPropagation(),n.preventDefault()),n.keyCode==27){var t=i.$el.find(".initialized");i.closeAll();t.focus()}});e.each(function(){n(this).on("blur",function(){i.$el.find(".popular-box:focus-within").length===0&&i.closeAll()})});r.bind("keydown",function(n){if(n.keyCode==27){var t=i.$el.find(".initialized");i.closeAll();t.focus()}});r.click(function(){var r=o(n.trim(t.val()));u.Enabled()||(r.toLowerCase()!=t.attr("placeholder").toLowerCase()?(n(document).trigger("internal-site-search-trigger"),location.href=i.searchURL+encodeURIComponent(r)):location.href=i.searchURL)});f.attr("href",i.searchURL)};i.iconHover=function(){function r(n){var t=new Image;t.src=n}var t=i.$el.find(".flyout > ul > li > a");t.each(function(t,i){var f=n(i).find(".img img"),u=f.data("hover");u&&r(u)});t.data("mouseenter",function(t){var i=n(t).find(".img img"),u=i.data("default"),r=i.data("hover");n(t).addClass("hover");u&&r&&i.attr("src",r)}).bind("mouseenter",function(){n(this).data("mouseenter")(this)});t.data("mouseleave",function(t){var i=n(t).find(".img img"),r=i.data("default"),u=i.data("hover");n(t).removeClass("hover");r&&u&&i.attr("src",r)}).bind("mouseleave",function(){n(this).data("mouseleave")(this)});i.touch&&t.unbind("mouseenter mouseleave").bind("click",function(){var t=n(this);t.hasClass("hover")?t.data("mouseleave")(t):t.data("mouseenter")(t)})};i.clearCloseTimout=function(n){i[n]&&(clearTimeout(i[n]),i[n]=null)};i.exposeFlyouts=function(n){var t=i.$el.find(".header-flyouts");i.closeAll(n);i.transitions?t.hasClass("exposed")?(n.addClass("active"),clearTimeout(i.currentFlyoutTimer),i.currentFlyoutTimer=setTimeout(function(){n.addClass("showUL")},100)):(n.addClass("active"),t.addClass("exposed"),t.show(),clearTimeout(i.currentFlyoutTimer),i.currentFlyoutTimer=setTimeout(function(){n.addClass("active showUL")},i.animationTime)):t.hasClass("exposed")?n.addClass("active showUL"):(n.addClass("active showUL"),t.addClass("exposed"),t.show())};i.closeAll=function(n){var r=i.$el.find(".header-flyouts"),t=r.find(".flyout"),u=r.find("input:visible");n?(t=t.not(n),t.removeClass("showUL active")):(r.removeClass("exposed"),r.hide(),i.$el.find(".canHover.hover").removeClass("hover"),i.transitions?setTimeout(function(){t.removeClass("showUL active")},i.animationTime):t.removeClass("showUL active"))};i.headerAlert=function(){i.$el.find(".header-alert-close").click(function(){return n(this).parents(".header-alert").slideUp("fast"),!1})};i.navTooltips=function(t){var r=i.$el.find(".nav-tooltip-trigger"),f=i.$el.find(".header-branding"),u=null,e;if(t=="close")return r.each(function(){n(this).data("mouseleave")(!0)}),!1;e=i.$el.find(".nav-tooltip");e.find("a").bind("keydown",function(t){if(t.keyCode==27){var r=i.$el.find(".hover");return r=r.find(".nav-tooltip-trigger"),r.data("mouseleave")(!0),r.focus(),!1}t.shiftKey&&t.keyCode==9&&n(this).addClass("preventClose")});e.find("a").bind("blur",function(){var r,u,f,t;if(n(this).attr("class"))n(this).attr("class").indexOf("preventClose")>-1&&n(this).removeClass("preventClose");else{for(r=n(this).parent();!r.attr("data-id");)r=r.parent();if(u=r.attr("id"),$nextTabbable=n(this).next(":tabbable").length?n(this).next(":tabbable"):n(this).parent().next().find(":tabbable"),$nextTabbable.length>0){while(!$nextTabbable.attr("data-id"))$nextTabbable=$nextTabbable.parent();f=$nextTabbable.attr("id");u!=f&&(t=i.$el.find(".hover"),t=t.find(".nav-tooltip-trigger"),t.data("mouseleave")(!0))}else t=i.$el.find(".hover"),t=t.find(".nav-tooltip-trigger"),t.data("mouseleave")(!0)}});r.bind("focus",function(){r.each(function(){n(this).data("mouseleave")(!0)})});r.each(function(){var t=n(this),s=t.data("id"),o=i.$el.find(".nav-tooltip[data-id='"+s+"']"),e=null;t.add(o).data("mouseenter",function(){e&&clearTimeout(e);u&&clearTimeout(u);t.attr("aria-expanded","true");t.parent().addClass("hover");f.addClass("increaseZ");r.not(t).each(function(){n(this).parent().removeClass("hover")})});t.add(o).data("clearTimeouts",function(){e&&clearTimeout(e);u&&clearTimeout(u)}).bind("mouseenter",function(){n(this).data("clearTimeouts")()});t.add(o).data("mouseleave",function(n){n===!0?(t.parent().removeClass("hover"),f.removeClass("increaseZ"),t.attr("aria-expanded","false")):(e=setTimeout(function(){t.parent().removeClass("hover");t.attr("aria-expanded","false")},i.closeTime),u=setTimeout(function(){f.removeClass("increaseZ");t.attr("aria-expanded","false")},i.closeTime))}).bind("mouseleave",function(){n(this).data("mouseleave")()});t.bind("click",function(){var n=t,r=n.parent();return r.hasClass("hover")?n.data("mouseleave")(!0):(i.initSubscribe("close"),i.closeAll(),n.data("mouseenter")()),!1})})};i.initNoClick=function(){var n=i.$el.find("a[data-link-disabled='true']");n.bind("click",function(){return!1})};i.initFlyouts=function(){n(".header-flyouts").each(function(){n(this).hide()});var u=n("a[data-ccl-flyout-click='true']").addClass("canHover"),t=i.$el.find("a[data-ccl-flyout]").not("[data-flyout-disabled='true']").not(u).addClass("canHover"),f=i.$el.find(".flyout");t.bind("focus",function(){n(this).hasClass("hover")||i.closeAll()});f.each(function(){var t=n(this).find(">ul"),i=t.find(">li").length;t.addClass("children-"+i)});f.find("a").bind("keydown",function(n){if(n.keyCode==27){var t=i.$el.find(".initialized");i.closeAll();t.focus()}});f.find("input, .flyout-btn").on("focus",function(){var t=n(this).closest(".flyout");t.trigger("mouseenter")});i.transitions&&t.each(function(){var t=n(this).find("span").addClass("org"),i=n('<span class="top">'+t.html()+"<\/span>"),r=n('<span class="btm">'+t.html()+"<\/span>");n(this).append(i,r)});i.shadow||t.each(function(){n(this).append('<span class="arr"><\/span>')});t.add(u).data("mouseenter",function(r){i.initSubscribe("close");var f=n(r),s=f.data("cclFlyout"),e=f.data("flyout"),o;f.hasClass("canHover")&&(t.add(u).not(f).removeClass("hover"),f.addClass("hover initialized"));e||(e=i.$el.find(".flyout[data-ccl-flyout='"+s+"']"),f.data("flyout",e));o=e.find("input, .flyout-btn");o.each(function(t,i){n(i).attr("id")!="ccl_header_site-search"&&n(i).attr("tabindex",t+1)});i.exposeFlyouts(e);i.clearCloseTimout("closeTimeout")}).bind("mouseenter",function(){i.navTooltips("close");n(this).data("mouseenter")(this)});t.add(f).add(u).data("mouseleave",function(t,r){var u=n(r),o=u.find("input:focus"),f=u.hasClass("flyout")?u:u.data("flyout"),e=f.find("input, .flyout-btn"),s=f.find("button");t===!0?(i.closeAll(),e.each(function(t,i){n(i).removeAttr("tabindex")})):i.closeTimeout=setTimeout(function(){i.closeAll();e.each(function(t,i){n(i).removeAttr("tabindex")})},i.closeTime)}).bind("mouseleave",function(){n(this).data("mouseleave")(!1,this)});u.unbind("mouseenter mouseleave").bind("click",function(){var t=n(this);return t.hasClass("hover")?t.data("mouseleave")(!0):(i.touch&&(i.navTooltips("close"),i.initSubscribe("close")),t.data("mouseenter")(this)),!1});f.data("mouseenter",function(){i.clearCloseTimout("closeTimeout")}).bind("mouseenter",function(){n(this).data("mouseenter")()});i.touch&&t.unbind("mouseenter mouseleave").bind("click",function(){return r(this)})};i.hightLightActiveTab=function(){var t=i.$el.find("a[data-highlightPattern]");t.removeClass("active");t.each(function(){var t=n(this),r=window.document.location.pathname.toLowerCase(),i;if(t.attr("data-highlightPattern")&&t.attr("data-highlightPattern").length>0&&(i=new RegExp("\\b"+t.attr("data-highlightPattern").toLowerCase()+"\\b"),i.test(r))){t.addClass("active");return}})};t.Header2013=n.extend(i,t.Header2013);window.Carnival=t;n(function(){t.Header2013.$el.length&&(t.Header2013.init(),n(".nav-tooltip-trigger").focus(function(){i.closeAll()}),n(".log a").focus(function(){i.closeAll()}))})}(jQuery,window.Carnival),function(n){var r={swipeTolerance:40},i=function(t,i){this.target=n(t);this.touch=i;this.startX=this.currentX=i.screenX;this.startY=this.currentY=i.screenY;this.eventType=null},t;i.options={};i.latestTap=null;i.prototype.move=function(n){this.currentX=n.screenX;this.currentY=n.screenY};i.prototype.process=function(){var n=this.currentX-this.startX,t=this.currentY-this.startY;n==0&&t==0?this.checkForDoubleTap():Math.abs(t)>i.options.swipeTolerance&&Math.abs(t)>Math.abs(n)?(this.eventType=t>0?"swipedown":"swipeup",this.target.trigger("swipe",[this])):Math.abs(n)>i.options.swipeTolerance&&(this.eventType=n>0?"swiperight":"swipeleft",this.target.trigger("swipe",[this]));this.eventType&&this.target.trigger(this.eventType,[this]);this.target.trigger("touch",[this])};i.prototype.checkForDoubleTap=function(){i.latestTap&&new Date-i.latestTap<400&&(this.eventType="doubletap");this.eventType||(this.eventType="tap");i.latestTap=new Date};t=function(t,u){i.options=n.extend(r,u);t.bind("touchstart",this.touchStart);t.bind("touchmove",this.touchMove);t.bind("touchcancel",this.touchCancel);t.bind("touchend",this.touchEnd)};t.prototype.touchStart=function(n){var r=this;t.eachTouch(n,function(n){t.touches[n.identifier]=new i(r,n)})};t.prototype.touchMove=function(n){t.eachTouch(n,function(n){var i=t.touches[n.identifier];i&&i.move(n)})};t.prototype.touchCancel=function(n){t.eachTouch(n,function(n){t.purge(n,!0)})};t.prototype.touchEnd=function(n){t.eachTouch(n,function(n){t.purge(n)})};t.touches={};t.purge=function(n,i){if(!i){var r=t.touches[n.identifier];r&&r.process()}delete t.touches[n.identifier]};t.eachTouch=function(n,t){for(var n=n.originalEvent,r=n.changedTouches.length,i=0;i<r;i++)t(n.changedTouches[i])};n.fn.addSwipeEvents=function(n,i){return!i&&jQuery.isFunction(n)&&(i=n,n=null),new t(this,n),i&&this.bind("touch",i),this}}(jQuery);var header_helper={detectIE:function(){var n=window.navigator.userAgent,i=n.indexOf("MSIE "),u,r,t;return i>0?parseInt(n.substring(i+5,n.indexOf(".",i)),10):(u=n.indexOf("Trident/"),u>0)?(r=n.indexOf("rv:"),parseInt(n.substring(r+3,n.indexOf(".",r)),10)):(t=n.indexOf("Edge/"),t>0)?parseInt(n.substring(t+5,n.indexOf(".",t)),10):!1}},ccl_header2013={flyoutClosing:!1,showFlyout:function(n){var f=$("#ccl_header"),r=f.find(".navigation"),o=n.parent(),s=f.find(".navigation li").not(o),h=n[0].id,t=f.find(".flyout-wrapper"),i=t.find(".flyout."+h),c=t.find(".flyout").not(i),u=$("#ccl_homepage .homepage-content"),e;s.removeClass("active");c.hide();o.addClass("active");i.show();ccl_header2013.unPIE(r);t.hasClass("expanded")?(e=0,i.each(function(){var n=$(this).height();e+=n+90}),ccl_header2013.unPIE(r),ccl_header2013.PIE(r),ccl_header2013.equalizeSectionHeights(i),t.animate({height:e+"px"},150,"linear")):u.length?(u.find(".banner-rotator .slideshow").cycle("pause"),u.delay(80).animate({"margin-top":"0"},60,function(){}),t.stop(!1,!0).slideDown("fast","linear",function(){t.addClass("expanded").css("height",t.height()+"px");ccl_header2013.PIE(r);ccl_header2013.equalizeSectionHeights(i);u.find(".banner-rotator .slideshow").cycle("resume")})):t.stop(!1,!0).slideDown("fast","linear",function(){t.addClass("expanded").css("height",t.height()+"px");ccl_header2013.PIE(r);ccl_header2013.equalizeSectionHeights(i)})},hideFlyouts:function(){var r=$("#ccl_header"),i=r.find(".navigation"),u=i.find("li"),t=r.find(".flyout-wrapper"),f=t.find(".flyout"),n=$("#ccl_homepage .homepage-content");ccl_header2013.unPIE(i);t.hasClass("expanded")&&!ccl_header2013.flyoutClosing?(u.removeClass("active"),ccl_header2013.flyoutClosing=!0,n.length&&(n.find(".banner-rotator .slideshow").cycle("pause"),n.animate({"margin-top":"-62px"},50,"linear")),t.stop(!1,!0).slideUp("fast","linear",function(){f.hide();t.removeClass("expanded").removeAttr("style");ccl_header2013.flyoutClosing=!1;ccl_header2013.PIE(i);ccl_header2013.adjustHeight(25);n.length&&n.find(".banner-rotator .slideshow").cycle("resume")})):(u.removeClass("active"),f.hide(),t.stop().removeClass("expanded").hide().removeAttr("style"),ccl_header2013.flyoutClosing=!1,n.length&&n.stop(!0,!1).css("margin-top","-62px"),ccl_header2013.PIE(i),ccl_header2013.adjustHeight(25))},initPIE:function(){window.PIE&&$("#ccl_header .header-top, #ccl_header ul.navigation, #ccl_header ul.navigation li.first-child, #ccl_header .site-search, #ccl_homepage #ccl_header .trans-wrap").each(function(){PIE.attach(this)})},PIE:function(n){window.PIE&&PIE.attach(n[0])},unPIE:function(n){window.PIE&&PIE.detach(n[0])},originalHeight:0,adjustHeight:function(n){var i=header_helper.detectIE(),r,t;i&&i<8&&(r=$(document).height(),t=$("#ccl_header .top-section"),r>ccl_header2013.originalHeight+n&&(t.css("margin-bottom","1px"),setTimeout(function(){t.css("margin-bottom","0")},50)))},supportPH:function(){var n="placeholder"in document.createElement("input");$("#ccl_header *[placeholder][type!=password]").each(function(){var n=$(this),t=n.attr("placeholder");n.val(t).focus(function(){n.val()==t&&n.val("")}).blur(function(){n.val()==""&&n.val(t)}).removeAttr("placeholder")});$("#ccl_header input[type=password]").each(function(){if($(this).parent().is(".pw-wrap")){var t=$(this),r=t.attr("placeholder"),u=t.attr("id"),i=$('<label for="'+u+'">'+r+"<\/label>");t.hasClass("error")&&t.parent().addClass("error");n&&t.removeAttr("placeholder");t.before(i).focus(function(){i.hide()}).blur(function(){t.val()==""&&i.show()});t.val()==""?i.show():i.hide()}})},equalizeSectionHeights:function(n){n.each(function(){var t=$(this),i,n;t.hasClass("equalized")||(i=t.find(".section"),n=0,i.each(function(){$(this).height()>n&&(n=$(this).height())}),i.css("height",n+"px"),t.addClass("equalized"))})},handleLoggedStates:function(){!1&&$("#ccl_header").addClass("logged-in")},getCookieDomain:function(){var n=document.domain;return n=="localhost"?"":n.indexOf(".com")>0?(n.indexOf(".")<n.indexOf(".com")&&(n=n.substr(n.indexOf(".")+1)),n):""},setReturnerCookie:function(){if(typeof returnerCookieExpirationDays!="undefined"){var n=$.cookie("CCL_IsReturner"),t=$.cookie("CCL_ExistingSession"),i=ccl_header2013.getCookieDomain();(n==undefined||n=="false")&&(n=t==undefined&&n=="false");t||$.cookie("CCL_ExistingSession","true",{secure:!0,path:"/",domain:i});$.cookie("CCL_IsReturner",n,{secure:!0,path:"/",expires:returnerCookieExpirationDays,domain:i})}},dropEmailCookie:function(){var t=window.location.search.slice(1),n=$.cookie("mk_email_seg"),r=JSON.parse(decodeURIComponent($.cookie("cclSession")||"{}")).IsAuthenticated||$.cookie("MSCSAuth"),i=ccl_header2013.getCookieDomain();r||(t.indexOf("offid=EmH_Booked_Guest_EM")!==-1&&(n==null||n!="BK")&&$.cookie("mk_email_seg","BK",{path:"/",domain:i,expires:7300}),t.indexOf("cid=Em_PG")!==-1&&(n==null||n!="PG")&&$.cookie("mk_email_seg","PG",{path:"/",domain:i,expires:7300}))}};$(function(){ccl_header2013.handleLoggedStates();var n=$("#ccl_header"),t=n.find(".flyout-wrapper");n.find("a.flyout").bind("click",function(){return $(this).parent().hasClass("active")?ccl_header2013.hideFlyouts():ccl_header2013.showFlyout($(this)),!1});n.find(".flyout-close").click(function(){return ccl_header2013.hideFlyouts(),!1});n.find(".navigation li a").not(".flyout").bind("mouseenter",function(){ccl_header2013.hideFlyouts()});n.find(".message-bar-close").click(function(){return n.find(".message-bar").slideUp("fast"),!1});ccl_header2013.supportPH();ccl_header2013.initPIE();$(window).on("load",function(){ccl_header2013.originalHeight=$(document).height()});setTimeout(function(){ccl_header2013.setReturnerCookie()},1e3);ccl_header2013.dropEmailCookie();$("#tooltip-clickme").attr("aria-label","See more details about available discounts").attr("role","button");$(".ca-popover-help-content-container").attr("role","alert").attr("aria-live","polite");$("#tooltip-clickme").css("margin-left","2px").css("padding-left","0");$("#tooltip-clickme").keyup(function(n){n.keyCode==27&&$(".ca-popover-help-content-container").hide()});$("#help-icon-mobile").click(function(){$("#ccl-srAriaLive").text($(".popover.fade").text())})}),function(n,t){t||(t={});t.Footer||(t.Footer={});var i={};i.$el=n("#ccl-refresh-footer");i.init=function(){i.initFooterADA();i.lazyLoadFBLike()};i.initFooterADA=function(){n("div.link-lists ul li").each(function(){var i=n(this).find(".icon-link-ext"),t;i.length&&(t="indicates external site which may or may not meet accessibility guidelines",n(this).find("a").attr("aria-label",n(this).find("a").text()+t))})};i.lazyLoadFBLike=function(){var t=i.$el.find("#lazy_like");n(window).bind("scroll.lazyLoadFBLike",function(){i.checkVisibility(i.$el)&&(n(window).unbind("scroll.lazyLoadFBLike"),t.attr("src",t.data("src")))}).trigger("scroll.lazyLoadFBLike")};i.checkVisibility=function(t){var r=t.offset().top,u=n(window).height(),f=n(window).scrollTop(),i=!1;return f+u>=r&&(i=!0),i};t.Footer=n.extend(i,t.Footer);window.Carnival=t;n(function(){t.Footer.$el.length&&t.Footer.init()})}(jQuery,window.Carnival),function(n){n(document).ready(function(){n(window).keydown(function(t){var i=t.keyCode?t.keyCode:t.which;i==9&&n("body").addClass("ccl-ada-focus")})})}(jQuery),function(n){n(document).ready(function(){var t=["#ccl-mainContainer","#main",".mainContainer"];n.each(t,function(i,r){if(n(r).length)return r.indexOf(".")>-1&&(r=n(r).attr("id").toString()),r=r.replace("#",""),n(".ccl-stickSkipBar").css("display","block"),n(".ccl-skipToMainContentLink").attr("href","#"+r),n(".ccl-skipToMainContentLink").attr("aria-hidden","true"),n(".ccl-skipToMainContentLink").css("cursor","default"),n(".ccl-skipToMainContentLink").removeAttr("tabindex"),n(".ccl-skipToMainContentLink").blur(function(){n(".ccl-stickSkipBar").removeClass("showSkip");n(this).attr("aria-hidden","true");n(this).css("cursor","default")}).focus(function(){n(".ccl-stickSkipBar").addClass("showSkip");n(this).removeAttr("aria-hidden");n(this).css("cursor","")}),n(".ccl-skipToMainContentLink").keydown(function(t){var i=t.keyCode?t.keyCode:t.which;i==13&&n("#"+r).focus()}),n(".ccl-stickSkipBar").removeClass("showSkip"),!1;i==t.length-1&&n(".ccl-stickSkipBar").remove()})})}(jQuery)