define(["jquery","sandbox","eventemitter","common-responsive"],function(b,c,a){return(function(o,p,t,g){var l={},d=true,m={},j=t("html"),h=t("#wrap"),e=[],r=false,i=false,k=false,q={},f,n={mobilePortrait:"only screen and (max-width: 479px)",mobileLandscape:"only screen and (min-width: 480px) and (max-width: 767px)",tabletPortrait:"only screen and (min-width: 768px) and (max-width: 999px)",lessThanDesktop:"only screen and (max-width: 999px)",tabletLandscape:"only screen and (min-width: 769px) and (max-width: 999px)",desktop:"only screen and (min-width: 1000px)",largeScreen:"only screen and (min-width: 767px)",smallScreen:"only screen and (max-width: 767px)"};
t.noConflict();j.removeClass("no-js");o.legacyEvents=a;q.infoTooltip=function(v){var u;
return{options:{trigger:"[data-tooltiptrigger]",content:"[data-tooltipcontent]",hideClass:"hide"},init:function(){u=this;
t(u.options.trigger).on({mouseenter:u.showTooltip,mouseleave:u.hideTooltip});},showTooltip:function(x){var w=t(u.options.content,x.currentTarget);
u.hideTooltip();w.removeClass(u.options.hideClass).css("top",u.verticallyAlign(w));
u.listenForClickOutsideTooltip();},hideTooltip:function(){t(u.options.content).addClass(u.options.hideClass);
},verticallyAlign:function(w){var y=w.outerHeight(),x=-y/2+6;return x;},listenForClickOutsideTooltip:function(){v.listen({"body-click":u.hideTooltip});
}};};q.polling=function(x,v){var w=x.getContainer();function u(){var y=x.find(".inactiveOverlay",w)[0];
if(!y){y=x.create_element("div",{"class":"inactiveOverlay"});w.appendChild(y);}return y;
}return{updateContainer:function(y){w=y;},listen:function(y){if(y.id!==w.id){if(typeof y.type==="string"){v.library.polling[y.type]();
}}},start:function(){x.addClass(w,"polling");u().style.display="block";t(".polling input[type=radio]").not(":disabled").attr("disabled",true).addClass("disabledWhilePolling");
},end:function(){x.removeClass(w,"polling");u().style.display="none";t("input[type=radio].disabledWhilePolling").removeAttr("disabled",true).removeClass("disabledWhilePolling");
},notify:function(y){x.notify({type:"polling",data:{type:y,id:w.id}});},destroy:function(){w=null;
delete u;}};};q.moveModule=function(x,v){var v,u,w={};return{init:function(){v=this;
u=x.getContainer();},to:function(z,B){var A,y=t(z);if(y.length===1){A=t(u).detach();
y.append(A);u=A.get();if(B){B();}}}};};q.showHide=function(y,w){var w,u,x={targetClassName:"hide",seeMoreClassNames:["no-doc-flow","show"],sourceClassName:false,sourceElementIcon:false,callback:false,seeLessLength:130,thresholdHeight:30},v=[];
return{isExpansionRequired:true,init:function(A){w=this;u=y.getContainer();var z=t('[data-action="showHide"]',u);
w.parameters=t.extend({},x,A);z.each(function(){$trigger=t(this);if($trigger.data("seemore")===true){$target=t("."+$trigger.data("target"),u);
if(($target.height()>w.parameters.thresholdHeight)||$target.data("seemore-initialised")){w.initSeeMore($target);
$trigger.on("click tap",w.toggleSeeMore);w.refreshSeeMore();}else{$trigger.hide();
}}else{$trigger.on("click tap",w.toggleTargetClass);}});},initSeeMore:function(C){if(C.data("seemore-initialised")){return;
}var D=t("p",C),B=t("
",{"class":"showHide-moreText no-doc-flow"}),G=t("",{"class":"showHide-lessText show"}),F,A,E,z;
v.push(C);if(D.length===0){D=t("").html(C.html());C.empty();}F=t.trim(D.html());
A=t("").html(F.substr(0,F.substr(0,w.parameters.seeLessLength).lastIndexOf(" ")));
D.appendTo(B);A.appendTo(G);G.css({visibility:"hidden"});C.append(B).append(G);z=C.find(".show").height();
C.height(z);C.addClass("show-hide-container").data("seemore-initialised","true");
this.isExpansionRequired=true;},refreshSeeMore:function(){t(v).each(function(){$target=this;
$target.css({height:"auto"});$target.height($target.find(".show").height());});},toggleSeeMore:function(E){var B=t(this),D=B.data("target"),A=t("."+D,u),z=A.find(".showHide-lessText"),C;
E.preventDefault();E.stopPropagation();C=w.toggleElementClass(A.find(".showHide-moreText"),w.parameters.seeMoreClassNames);
w.toggleElementClass(z,w.parameters.seeMoreClassNames);t('[data-target="'+D+'"]',u).each(function(){w.toggleTriggerClass(this);
});if(B.data("close-complete")&&C!=="show"){A.height(0);}else{A.height("auto");}if(typeof w.parameters.callback==="function"){w.parameters.callback.call(this,C);
}},getSeeLessHeight:function(C){var B=t(C),D=B.data("target"),A=t("."+D,u),z=A.find(".showHide-lessText");
return z.height();},toggleTargetClass:function(D){var A=t(this),C=A.data("target"),z=t("."+C,u),B=false;
D.preventDefault();B=w.toggleElementClass(z,w.parameters.targetClassName);t('[data-target="'+C+'"]',u).each(function(){w.toggleTriggerClass(this);
});if(typeof w.parameters.callback==="function"){w.parameters.callback.call(this,B);
}},toggleTriggerClass:function(z){var A;if(w.parameters.sourceClassName){A=(w.parameters.sourceElementIcon)?t(w.parameters.sourceElementIcon,z):t(z);
w.toggleElementClass(A,w.parameters.sourceClassName);}},toggleElementClass:function(A,C){var z=t(A),B=false;
if(C instanceof Array){if(z.hasClass(C[0])){z.removeClass(C[0]).addClass(C[1]);B=C[1];
}else{z.removeClass(C[1]).addClass(C[0]);B=C[0];}}else{z.toggleClass(C);B=z.hasClass(C);
}return B;},destroy:function(){targetClassName=sourceClassName=u=callback=w=null;
return true;}};};q.lightBox=function(z,u){var x=false,w=false,v=false,y=0;return{init:function(D,B){var C=this,A=z.find("[data-action=lightboxOpen]",D);
B=B||{};if(typeof A!=="undefined"&&A.length>0){if(A.length==1){this.initOpenLink(A[0]);
}else{t.each(A,function(){C.initOpenLink(this);});}}w=this.getLightboxElement();this.isLightboxOpenOnLoad();
return C;},isLightboxOpenOnLoad:function(){var A=this;if(z.hasClass(w,"lightBoxLoad")){A.open.call(A,w.id);
}},getLightboxElement:function(A){var B=false;if(typeof A!=="undefined"){B=A;}else{if(z.getContainer().getAttribute("id")){B=z.getContainer().id;
}}if(B){return p.getElementById(B);}else{return false;}},initOpenLink:function(A){var B=this;
z.addEvent(A,"click",function(D){var C=D.currentTarget.getAttribute("data-target");
D.preventDefault();B.open.call(B,C);});},initCloseLink:function(){var A=z.find(".close",w),B=this;
if(A){z.addEvent(A,"click",function(C){C.preventDefault();B.close.call(B);});}},open:function(B){var A=t("body"),C;
w=this.getLightboxElement(B);if(!A.hasClass("lightboxIsOpen")){A.addClass("lightboxIsOpen");
}if(t(".lightBoxBG",w).length===0){C=t("",{"class":"lightBoxBG"});t(w).append(C);
}this.disableExternalFormInputs();this.initCloseLink();this.addIframeWrapper();z.addClass(w,"show");
z.removeClass(w,"hide");this.positionLightBox();},addIframeWrapper:function(){var A=t(w).find(".body iframe").parent().attr("class");
if(A!=="iframe-wrapper"){t(w).find(".body iframe").wrap('');
}},positionLightBox:function(D){var C,I,A,F,H,B=t(o).scrollTop(),G=t(w).find(".lightBoxContent"),E=0;
C=G[0];if(typeof C=="undefined"){return false;}A=t(o).height();F=(t(C).height()+10);
H=t("#wrap").offset().top;if(typeof D!=="undefined"){F+=D;}if(A>F){E=parseInt(A/2,10)-parseInt(F/2,10)-H;
}else{if(G.position().top+F>B+A){y++;G.parent().css("margin-bottom",y+"px");}else{if(G.position().top<=B&&v===true){return false;
}else{E=2-H;}}}E=E+B;C.style.top=E+"px";v=true;return true;},bindElements:function(C){var A;
for(A in C){var D=C[A],B=z.find(A,w);if(D.hasOwnProperty("event")&&D.hasOwnProperty("callback")&&B.length!==0){z.addEvent(B.pop(),D.event,D.callback);
}}},resize:function(C,A){var B=t(w).find(".lightBoxContent");if(typeof C!=="undefined"){B.width(C);
}if(typeof A!=="undefined"){B.height(A);}if(typeof C==="undefined"&&typeof A==="undefined"){B.css("margin-bottom","1px");
}},fillContent:function(B){var A;if(!(B.hasOwnProperty("templateId")||B.hasOwnProperty("template"))||!B.hasOwnProperty("strings")){return false;
}else{A=B.hasOwnProperty("templateId")?t(B.templateId).html():B.template;if(A.length===0){return false;
}}lightBoxContentHTML=Handlebars.compile(A);t(" .body",w).html(lightBoxContentHTML(B.strings));
if(B.hasOwnProperty("bindings")){this.bindElements(B.bindings);}return true;},close:function(){var A=t(".lightBoxBG",w);
if(t(".lightBoxContainer.show").length===1){A.remove();}this.enableExternalFormInputs();
z.removeClass(w,"show");z.addClass(w,"hide");t("body").removeClass("lightboxIsOpen");
v=false;},enableExternalFormInputs:function(){var A=t("input.disabledOutsideLightbox");
A.prop("disabled",false).removeClass("disabledOutsideLightbox");},disableExternalFormInputs:function(){var A=t("input:not(.lightBoxContent *):not([disabled])");
A.prop("disabled",true).addClass("disabledOutsideLightbox");},destroy:function(){x=lightboxElementId=CONTAINER=null;
}};};q.checkoutTooltip=function(v){var u;return{options:{trigger:"[data-tooltiptrigger]",content:"[data-tooltipcontent]",closeBtn:"[data-tooltipclose]",hideClass:"hide"},init:function(){u=this;
t(u.options.trigger).on({click:u.showTooltip});t(u.options.closeBtn).on({click:u.hideTooltip});
},showTooltip:function(x){var w=t(u.options.content,x.currentTarget);x.stopPropagation();
u.hideTooltip(x);w.removeClass(u.options.hideClass);u.listenForClickOutsideTooltip();
},hideTooltip:function(w){if(!t(w.target).hasClass("jsNoUnloadWarning")&&typeof w.stopPropagation!=="undefined"){w.stopPropagation();
}t(u.options.content).addClass(u.options.hideClass);},listenForClickOutsideTooltip:function(){v.listen({"body-click":u.hideTooltip});
}};};q.inputPlaceholderText=function(w,u){var v;return{el:{textInput:false,clearButton:false},options:{placeholderText:false,placeholderTextClass:"placeholder-text"},init:function(x){v=this;
v.bindElements(x);if(typeof v.el.textInput==="undefined"||v.el.textInput.length===0){return false;
}v.checkForPlaceholderText();v.el.textInput.each(function(y){var z=t(this);v.bindEvents(z,y+1);
});},checkForPlaceholderText:function(){if(v.el.textInput[0].placeholder===g){v.options.placeholderText=settings.personalisedTickets.ATTENDEE_DEFAULT||"";
v.view.togglePlaceholderText(v.el.textInput,true);}},bindElements:function(x){v.el.textInput=t("[data-inputtextbox]",x);
v.el.clearButton=t("[data-inputclearbutton]",x);},bindEvents:function(z,x){var y=t('[data-inputclearbutton="'+x+'"]');
w.addEvent(y,"click",function(A){v.clearTextInput(z);});w.addEvent(z,"keyup",v.handleTextInputKeyPress);
w.addEvent(z,"focus",function(A){v.handlePlaceholderText(A,z);});w.addEvent(z,"blur",function(A){v.handlePlaceholderText(A,z);
});},clearTextInput:function(x){v.view.setInputValue(x,"");v.view.togglePlaceholderText(x,true);
v.view.toggleClearInputButton(x,false);},handlePlaceholderText:function(y,x){if(y.type=="focus"&&y.target.value==v.options.placeholderText){v.view.togglePlaceholderText(x,false);
}if(y.type=="blur"&&v.view.getInputValue(y.target)==0){v.view.togglePlaceholderText(x,true);
}},handleTextInputKeyPress:function(z){var y=t(z.target),x=v.view.getInputValue(z.target);
if(x.length>0){v.view.toggleClearInputButton(y,true);}else{v.view.toggleClearInputButton(y,false);
}},view:{getInputValue:function(y){var x;if(typeof y==="undefined"){x="";}else{x=y.value;
}if(x===v.options.placeholderText){x="";}return x;},setInputValue:function(y,x){if(typeof y!=="undefined"){y.val(x);
}},toggleClearInputButton:function(A,x){var y=A.data("inputtextbox"),z=t('[data-inputclearbutton="'+y+'"]');
if(x){w.removeClass(z,"hide");}else{w.addClass(z,"hide");}return x;},togglePlaceholderText:function(y,x){if(v.options.placeholderText===false){return false;
}if(x){v.view.setInputValue(y,v.options.placeholderText);w.addClass(y,v.options.placeholderTextClass);
}else{v.view.setInputValue(y,"");w.removeClass(y,v.options.placeholderTextClass);
}return x;}}};};q.tooltip=function(A,v){var y="[data-tooltip]",x="tooltiptitle",w="tooltiptext",u=[],z={offsets:{top:0,left:0},appendTo:"body",messageBox:false,buttons:["Okay"],callback:null,getPosition:function(B){return B.offset();
},openTooltipCallback:null,closeTooltipCallback:null};return{init:function(D,C){var B=this;
D=D||A.getContainer();u=t(y,D).get();if(u.length===0){return;}this.container=D;C=C||{};
this.settings=t.extend({},z,C);if(this.settings.messageBox){this.settings.buttons=this.createButtons(this.settings.buttons);
}this.$displayedTooltip=null;this.prepareTooltips(u);this.events(u);},addTooltipTrigger:function(B){u.push(B);
this.prepareTooltips(B);this.init_trigger(B);},createButtons:function(B){var C=t.map(B,function(E,D){var F=decodeURIComponent(E);
var G=(D===0)?"yes":"no";return'';
}).join("");return['',C,"
"].join("");},template:function(H,G,D,F,C){var E="";
if(this.settings.messageBox||D!==null){E=D;}var I='";
var B='";return B;},tooltipEvent:function(){var B=this,C=this.$displayedTooltip;
C.on("click tap",function(E){var D=t(E.target);if(D.hasClass("close")){B.removeTooltip();
}return false;});C.find("input").on("click tap",function(D){B.removeTooltip();if(typeof B.settings.callback==="function"){B.settings.callback.call(B,t(this).val(),this,B.activeTrigger);
}});},init_trigger:function(B){t(B).on("tap",function(C){C.preventDefault();});},showTooltip:function(C){var B=this;
B.removeTooltip(function(){B.updateView(t(C,this.container));});},events:function(){var B=this;
this.init_trigger(u);t("#wrap").on("click tap",function(D){var C=t(D.target);if(t.inArray(C[0],u)!==-1){if(!C.data("manual")){B.showTooltip(C);
}return false;}else{B.removeTooltip();}});},removeTooltip:function(B){var C=this;
if(typeof this.settings.closeTooltipCallback==="function"){this.settings.closeTooltipCallback("tooltipClosed");
}if(this.$displayedTooltip===null||this.$displayedTooltip.length===0){if(B){B();}return;
}C.$displayedTooltip.off("click").remove();C.$displayedTooltip=null;if(B){B();}},refreshTooltip:function(){if(this.$displayedTooltip&&this.$displayedTooltip.length){this.showTooltip(this.activeTrigger);
}},updateView:function(F){var D,H,C="",G="",I="",B;if(F instanceof t){D=F;}else{D=t(F);
}H=D.data("tooltipbuttons");if(H){G=this.createButtons(H.split(","));}this.activeTrigger=D[0];
if(D.data("pointer")){I=(D.data("pointer")=="down"||D.data("pointer")=="true")?"tt-pointer":"tt-pointer-up";
}var E=D.data("breakdown");C=this.template(D.data(x)||"",D.data(w)||"",G,I,E);B=this.positionInPage(D,C);
this.tooltipEvent();if(typeof this.settings.openTooltipCallback==="function"){this.settings.openTooltipCallback(B,this.activeTrigger);
}},prepareTooltips:function(B){t.each(B,function(){var E=t(this).data("tooltiptext"),C=/src='(.[^']+)'/i,D=E.match(C);
if(D){t("
")[0].src=D[1];}});},positionInPage:function(B,C){if(B.data("pointer")){this.dynamicPositionInpage(B,C);
}else{this.legacyPositionInPage(B,C);}return"auto";},appendTooltip:function(B,C){var D;
if(t.isFunction(this.settings.appendTo)){D=this.settings.appendTo(B);}else{D=this.settings.appendTo;
}t(D).append(C);this.$displayedTooltip=t(".tooltip");},dynamicPositionInpage:function(K,M){this.appendTooltip(K,M);
var J=this.$displayedTooltip;J.addClass("fixed-width");var C=K.position();var B={width:K.outerWidth(true),height:K.outerHeight()};
var I=t(J).outerWidth();var E={width:26,height:16,leftOffset:12};var O=8;var N=10;
var D=t(".scrollable")?t(".scrollable").scrollTop:0;var G=t(".tooltip .tt-pointer");
var F=null;var H=K.offset().left>=I;if(K.data("tooltipposition")==="left"&&H){F=Math.round(C.left+(B.width/2)+(E.width/2)+E.leftOffset+O-I);
G.addClass("tt-pointer-up-right");}else{F=Math.round(C.left+(B.width/2)-(E.width/2)-E.leftOffset-O);
}var L=Math.round(C.top+B.height+E.height);if(t(o).width()<768&&K.data("pointer")&&G){G.css({left:Math.round(C.left+B.width/2-E.width/2-N-O)});
}this.$displayedTooltip.css({top:L+"px",left:F+"px"});this.$displayedTooltip.show();
},legacyPositionInPage:function(G,J){var B,H,E=this.settings.getPosition(G),F=G[0].getAttribute("data-tooltipoffset");
this.appendTooltip(G,J);if(G.data("pointer")=="true"||G.data("pointer")=="down"){H=E.top+(Math.abs(this.$displayedTooltip.outerHeight()+20)*-1);
B=E.left+-229;}else{if(G.data("pointer")=="up"){H=E.top+41;B=E.left+-228;}else{if(F){var C=F.split(",");
H=E.top+parseInt(C[0],10);B=E.left+parseInt(C[1],10);}else{H=E.top+this.settings.offsets.top;
B=E.left+this.settings.offsets.left;}}}var D=t(".tooltip .tt-pointer");var I=26;var L=8;
var K=10;if(t(o).width()<768&&G.data("pointer")&&D){D.css({left:Math.round(G.position().left-G.outerWidth(true)/2-I/2-K-L)});
}this.$displayedTooltip.css({top:H+"px",left:B+"px"});this.$displayedTooltip.show();
},destroy:function(){y=x=w=that=null;return true;}};};f={debug:function(u){d=u?true:false;
return d;},create_module:function(w,v){if(typeof w==="string"&&typeof v==="function"){if(p.getElementById(w)){var u=v(c.create(this,w));
if(u.init&&typeof u.init==="function"&&u.destroy&&typeof u.destroy==="function"){u=null;
l[w]={create:v,instance:null,sandbox:null};}}else{if(typeof o.__karma__!=="undefined"){l[w]={create:v,instance:null,sandbox:null};
}}}else{console.log("Module '"+w+"' Registration : FAILED : one or more arguments are of incorrect type. id:"+typeof w+" Element:"+(p.getElementById(w))+" creator:"+typeof v);
}},test:{getModule:function(w){var v=l[w],u=new c.create(f,w);v.instance=v.create(u);
v.sandbox=u;return v;},loadScript:function(v){if(!v){return;}var u=p.createElement("script");
u.src=v;p.getElementsByTagName("head")[0].appendChild(u);},createContainer:function(y,A,w,x){if(!y.length&&!A.length){return;
}var v;try{v=p.createElement(y);v.id=A;for(var u in w){v.setAttribute(u,w[u]);}if(typeof x==="function"){x(v);
}p.body.appendChild(v);}catch(z){this.log("Test: Creating a container for "+A+" failed:",z);
}return v;},isAllModulesStarted:function(){return r;}},start:function(w,v){var x,y=this,u=l[w];
if(typeof u==="object"&&u.hasOwnProperty("instance")){x=function(z,A,B){A.instance=A.create(c.create(z,B));
A.instance.init(v,g);y.tracking.omniture.init(A,B);};x(y,u,w);return u;}return false;
},start_all:function(v){var u;for(u in l){if(l.hasOwnProperty(u)){if(typeof v==="object"){this.start(u,v);
}else{this.start(u);}}}this.bindHtmlClickEvent("html-click-event");r=true;this.triggerEvent();
this.browser.beforeUnload(v);this.dynamicLoginLinks.init();},stop:function(u){var v;
if(v==l[moduleId]&&v.instance){v.instance.destroy();v.instance=null;}else{this.log("Stop Module '"+u+"': FAILED : module does not exist or has not been started");
}},stop_all:function(){var u;for(u in l){if(l.hasOwnProperty(u)){this.stop(u);}}},bindHtmlClickEvent:function(u){j.on("click",function(v){f.triggerEvent({data:v,type:u});
});},registerEvents:function(u,v){if(typeof u["view-resized"]!=="undefined"&&i===false){f.checkWindowResizeView();
}if(typeof u["body-click"]!=="undefined"&&k===false){f.checkBodyClick();}if(this.is_obj(u)&&v){if(l[v]){l[v].events=u;
}else{this.log("");}}else{this.log("");}},library:function(x,w){var y=[],v=0,u=0;
if(typeof q==="object"){if(!f.is_array(x.name)){y[0]=x.name;}else{y=x.name;}u=y.length;
for(v,u;v0){this.triggerEvent(e.pop());}if(this.is_obj(u)){var v;
for(v in l){if(l.hasOwnProperty(v)){v=l[v];if(v.events&&v.events[u.type]){v.events[u.type](u.data);
}}}o.legacyEvents.emit(u.type,{data:u.data});}},askQuestion:function(u){var v,w;for(v in l){if(l.hasOwnProperty(v)){v=l[v];
if(v.questions&&v.questions[u.type]){w=v.questions[u.type]();u.parseFc(w);}}}},registerModuleOrder:function(u,v){if((typeof u==="number")&&v){if(l[v]){l[v].order=u;
}else{this.log("registerModuleOrdermodu: moduleData");}}else{this.log("registerModuleOrderset: ModuleOrder error : "+v+", "+u);
}},moduleOrder:function(){var u;var v={modules:{},length:null};var w=0;for(u in l){if(l[u].hasOwnProperty("order")){v.modules[u]={};
v.modules[u].order=l[u].order;++v.length;}}return v;},registerQuestions:function(v,u,w){if(this.is_obj(v)&&u){if(l[u]){l[u].questions=v;
}else{this.log("");}}else{this.log("");}},removeEvents:function(u,v){if(this.is_obj(u)&&v&&l[v].hasOwnProperty("events")){delete l[v].events;
}},log:function(v,u){if(d){if(typeof console=="undefined"){}else{console.log(v);}}else{}},fixPopupOverlay:function(){if(t(".termsPop:visible").length>0){t("#wrap .col_1_m").css("zIndex","550");
}else{t("#wrap .col_1_m").css("zIndex","500");}},dom:{query:function(v,x){var w={},y=this,u;
if(x&&x.find){u=x.find(v);}else{u=t(v);}w=u.get();w.length=u.length;w.query=function(z){return y.query(z,u);
};return w;},find:function(u,v){return t(v).find(u).get();},filter:function(u,v){return t(v).filter(u);
},on:function(u,v,w){if(u&&v){if(typeof v==="function"){w=v;v="click";}t(u).on(v,w);
}else{}},live:function(u,v,w){if(u&&v){if(typeof v==="function"){w=v;v="click";}t(p).on(v,u,w);
}else{}},off:function(u,v,w){t(u).off(v,w);},isOldieBrowser:function(){return j.hasClass("oldie")||j.hasClass("ie9");
},isIE7:function(){return j.hasClass("ie7");},getDocumentClassName:function(u){return j.hasClass(u);
},setCSS:function(u,v){return t(u).css(v);},trigger:function(v,u,w){if(v&&u){t(v).trigger(u,w);
}else{}},click:function(u){return t(u).click();},create:function(u){return p.createElement(u);
},replace_with:function(u,v){t(u).replaceWith(v);},apply_attrs:function(v,u){t(v).attr(u);
},remove_attr:function(v,u){t(v).removeAttr(u);},add_class:function(v,u){t(v).addClass(u);
},remove_class:function(v,u){t(v).removeClass(u);},has_class:function(v,u){return t(v).hasClass(u);
},is:function(u,v){return t(u).is(v);},closest:function(u,v){return t(v).closest(u).get();
},parent:function(u){return t(u).parent().get();},parents:function(v,u){return t(v).parents(u);
},position:function(u){return t(u).position();},height:function(u,v){if(typeof v==="undefined"){return t(u).height();
}else{return t(u).height(v);}},outerHeight:function(u,v){if(typeof v==="undefined"){return t(u).outerHeight();
}else{return t(u).outerHeight(v);}},width:function(u,v){if(typeof v==="undefined"){return t(u).width();
}else{return t(u).width(v);}},outerWidth:function(u,v){if(typeof v==="undefined"){return t(u).outerWidth();
}else{return t(u).outerWidth(v);}},trim:function(u){return t.trim(u);},index:function(u){return t(u).index();
},animateScroll:function(w,u,v){t(w).stop(true).animate({marginTop:u+"px"},500,"swing",v);
},animateFlashBgColor:function(v,w,u){t(v).stop(true).css("backgroundColor",w).animate({backgroundColor:w},500).animate({backgroundColor:u},500);
},scrollTop:function(v,u){if(typeof u=="number"){t(v).scrollTop(u);}else{return t(v).scrollTop();
}},scroll:function(u){return t(o).scroll(u);},resize:function(u){return t(o).resize(u);
},remove:function(w,u,v){t(w).remove(u,v);},val:function(u,v){return(v)?t(u).val(v):t(u).val();
},isVisible:function(u){return t(u).is(":visible");}},parseJSON:function(u){return t.parseJSON(u);
},getJSON:function(u,v){return t.getJSON(u,v);},when:function(){return t.when.apply(this,arguments);
},remove_array:function(u,x,w){var v=u.slice((w||x)+1||u.length);u.length=x<0?u.length+x:x;
return u.push.apply(u,v);},is_array:function(u){return t.isArray(u);},is_obj:function(u){return t.isPlainObject(u);
},in_array:function(v,u){return t.inArray(v,u);},effect:{show:function(u,v,x,w){if(typeof v===g){v="500";
}if(typeof w!==g){t(u).show(v,x,w);}t(u).show(v,w);},hide:function(u,v,x,w){if(typeof v===g){v="500";
}if(typeof w!==g){t(u).hide(v,x,w);}t(u).hide(v,w);},fadeIn:function(u,v,w){if(u){if(typeof v==="undefined"){v="500";
}t(u).fadeIn(v,w);}else{f.log("Fade: FAILED: No element provided");}},fadeOut:function(u,v,w){if(u){if(typeof v==="undefined"){v="500";
}t(u).fadeOut(v,w);}else{f.log("Fade: FAILED: No element provided");}},slideDown:function(u,v,w){if(u){if(typeof v==="undefined"){v="600";
}t(u).slideDown(v,w);}else{f.log("Fade: FAILED: No element provided");}},slideUp:function(u,v,w){if(u){if(typeof v==="undefined"){v="600";
}t(u).slideUp(v,w);}else{f.log("Fade: FAILED: No element provided");}},slideToggle:function(u,v){if(u){if(typeof v==="undefined"){v="600";
}t(u).slideToggle(v);}else{f.log("Fade: FAILED: No element provided");}},isTabAnimated:function(u){return t(u).is(":animated");
},animate:function(v,x,u,w){return t(v).animate(x,u,w);}},offset:function(u,v){if(typeof v!=="undefined"){return t(u).offset(v);
}else{return t(u).offset();}},animateScrollTo:function(u,w,v){t("html,body").animate({scrollTop:u},w,"swing",v);
},draggable:function(u,v,x,w){return t(u).draggable({containment:v,scroll:x,handle:w});
},ajax:function(u){if(!u.timeout){u.timeout=settings.ajax.timeOutMilliSeconds;}if(typeof u.error!=="function"){u.error=this.errorAjaxRequest;
}var v=u.success;u.success=function(z,B,A){var w=(typeof v==="object")?v.handler:v;
var y=(typeof v.isHandleError==="boolean")?v.isHandleError:false;if(typeof z==="object"){var x=(typeof z.error==="object")?true:false;
if(x&&(!y)){f.errorAjaxRequest(z,B,A);}else{w(z,B,A);}}else{if(typeof u.dataType!=="undefined"&&u.dataType==="html"){w(z,B,A);
}else{f.log("AJAX WARNING: No data");}}};return t.ajax(u);},ajaxSettings:function(){return t.ajaxSettings;
},get:function(u,v){return t.get(u,v);},getScript:function(v,w,u){return t.ajax({type:"GET",url:v,success:w,dataType:"script",cache:u});
},errorAjaxRequest:function(v,x,w){var u=settings.ajax.errorUrl;if(typeof v.error==="object"){if(typeof v.error.errorUrl==="string"){u=v.error.errorUrl;
}}o.onbeforeunload=null;o.location.replace(u);},cookie:function(u,v){return t.cookie(u,v);
},checkMatchMedia:function(u){var v=this.dom.getDocumentClassName("oldie");if(v||this.dom.has_class("body","nonResponsive")||typeof matchMedia==="undefined"){if(u=="desktop"){return true;
}else{return false;}}if(typeof n[u]!=="undefined"){return matchMedia(n[u]).matches;
}},checkWindowResizeView:function(){if(this.dom.has_class("body","nonResponsive")){return false;
}var u=this.getCurrentView(),v=this,y,w,x=this.dom.getDocumentClassName("oldie");
if(i===false&&!x){i=true;t(o).resize(function(){y=v.getCurrentView();if(y!=u){w={type:"view-resized",data:{currentView:y,previousView:u}};
v.triggerEvent(w);u=y;}});}},checkBodyClick:function(){if(k===false){k=true;h.on("click",function(u){notifyObj={type:"body-click",data:{elementClicked:u.target}};
s.triggerEvent(notifyObj);h.off("click",u);k=false;});}},getCurrentView:function(){var u;
if(this.checkMatchMedia("mobilePortrait")){u="mobilePortrait";}else{if(this.checkMatchMedia("mobileLandscape")){u="mobileLandscape";
}else{if(this.checkMatchMedia("tabletPortrait")){u="tabletPortrait";}else{if(this.checkMatchMedia("tabletLandscape")){u="tabletLandscape";
}else{if(this.checkMatchMedia("desktop")){u="desktop";}}}}}return u;},showInInitialView:function(u){var u=t(u);
if(u.length==0){return;}if(this.checkMatchMedia("largeScreen")){this.dom.add_class(u," largeScreenOnly");
}else{if(this.checkMatchMedia("smallScreen")){this.dom.add_class(u,"smallScreenOnly");
}}},loadCSS:function(u,v){if(typeof u!=="undefined"){t("").appendTo(t("head")).attr({type:"text/css",rel:"stylesheet"}).attr("href",u);
}if(v&&typeof(v)==="function"){setTimeout(function(){v();},800);}},browser:{beforeUnload:function(u){if(typeof u.browser==="object"){if(u.browser.isBeforeUnloadWarning){o.onbeforeunload=function(w){var v=(typeof u.browser.warning==="string")?u.browser.warning:"";
w=w||o.event;if(u.browser.isBeforeUnloadWarning){if(w){w.returnValue=v;}return v;
}};f.dom.live(".jsNoUnloadWarning","click",function(v){u.browser.isBeforeUnloadWarning=false;
});}}}},tracking:{omniture:{init:function(v,w){var u=(typeof v.instance.tracking==="boolean")?v.instance.tracking:true;
if(u){f.tracking.omniture.live("#"+w+" .tm_omniture","click");}},live:function(v,u){if(!u===g){f.dom.live(u,v,f.tracking.omniture.send);
}else{f.dom.live(v,f.tracking.omniture.send);}},send:function(z){if(o.settings.tracking){if(!(o.settings.tracking.omniture==g)&&(o.settings.tracking.omniture.isEnabled)){if(!(o.tm_omn===g)&&(typeof o.tm_omn.tl==="function")){var y=settings.tracking.omniture.prefix;
var w=z.currentTarget;var x=w.getAttribute("data-omniture");if(!x){x=w.getAttribute("omniture");
}if(typeof x==="string"){var u=y+": "+x;o.tm_omn.linkTrackVars="prop14,eVar14";o.tm_omn.prop14=u;
var v=w.getAttribute("href");var A=(v!==null&&(v.substring(0,1)==="#"||v.lenghth===0))?true:w;
o.tm_omn.tl(A,"o",u);}}}}}}},dynamicLoginLinks:{init:function(){f.dom.live(".jsLoginLink","click",f.dynamicLoginLinks.toggleLayer);
},toggleLayer:function(v){var u;if(!f.dom.has_class(v.target,"jsLoginLink")){u=v.target.parentNode;
}else{u=v.target;}if(f.dom.has_class(u,"active")){f.dom.remove_class(u,"active");
f.triggerEvent({data:u,type:"closeLoginLayer"});}else{f.dom.add_class(u,"active");
f.triggerEvent({data:u,type:"openLoginLayer"});}v.preventDefault();},clearAllActive:function(){f.dom.remove_class(".jsLoginLink","active");
}}};var s=f;return f;}(window,document,b));});