function loadFooterAsync(n){loaded||($("#language-chooser .content").html($("#lazyloadfootertextarea").text()),loaded=!0,n&&n())}function ToUpper(n){var t=n.value;n.value=t.toUpperCase()}function ToLower(n){var t=n.value;n.value=t.toLowerCase()}function DisplayNewEmailAddress(){return $("#ctl00_Content_mButtonChange").addClass("displayNone"),$("#mDivNewEmail").removeClass("displayNone"),$("#ctl00_Content_mPanelEv").css("height","430px"),!1}function setStyles(n){var t=document.createElement("link");t.setAttribute("rel","stylesheet");t.setAttribute("type","text/css");t.setAttribute("href",n);document.getElementsByTagName("head")[0].appendChild(t)}function FastClick(n){"use strict";var i,t=this;if(this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=10,this.layer=n,!n||!n.nodeType)throw new TypeError("Layer must be a document node");(this.onClick=function(){return FastClick.prototype.onClick.apply(t,arguments)},this.onMouse=function(){return FastClick.prototype.onMouse.apply(t,arguments)},this.onTouchStart=function(){return FastClick.prototype.onTouchStart.apply(t,arguments)},this.onTouchMove=function(){return FastClick.prototype.onTouchMove.apply(t,arguments)},this.onTouchEnd=function(){return FastClick.prototype.onTouchEnd.apply(t,arguments)},this.onTouchCancel=function(){return FastClick.prototype.onTouchCancel.apply(t,arguments)},FastClick.notNeeded(n))||(this.deviceIsAndroid&&(n.addEventListener("mouseover",this.onMouse,!0),n.addEventListener("mousedown",this.onMouse,!0),n.addEventListener("mouseup",this.onMouse,!0)),n.addEventListener("click",this.onClick,!0),n.addEventListener("touchstart",this.onTouchStart,!1),n.addEventListener("touchmove",this.onTouchMove,!1),n.addEventListener("touchend",this.onTouchEnd,!1),n.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(n.removeEventListener=function(t,i,r){var u=Node.prototype.removeEventListener;t==="click"?u.call(n,t,i.hijacked||i,r):u.call(n,t,i,r)},n.addEventListener=function(t,i,r){var u=Node.prototype.addEventListener;t==="click"?u.call(n,t,i.hijacked||(i.hijacked=function(n){n.propagationStopped||i(n)}),r):u.call(n,t,i,r)}),typeof n.onclick=="function"&&(i=n.onclick,n.addEventListener("click",function(n){i(n)},!1),n.onclick=null))}function onTemplateLoad(n){player=brightcove.api.getExperience(n);APIModules=brightcove.api.modules.APIModules;mediaEvent=brightcove.api.events.MediaEvent;videoPlayer=player.getModule(APIModules.VIDEO_PLAYER)}function onTemplateReady(){videoPlayer.addEventListener(brightcove.api.events.MediaEvent.PLAY,function(n){onMediaEventFired(n)})}function onTemplateError(n){console.log("type: "+n.type);console.log("errorType: "+n.errorType);console.log("code: "+n.code);console.log("info: "+n.info)}function onMediaEventFired(n){n.type==="mediaComplete"}function getAutoSignInUrl(){targetIndex=window.location.href.toString().toLowerCase().indexOf("target=");typeof AutoSigInUrl!="undefined"&&(targetIndex>=0?$("#autoSiginLink").attr("href",AutoSigInUrl+"?flag=false&"+window.location.href.toString().substring(targetIndex,window.location.href.toString().length)):$("#autoSiginLink").attr("href",AutoSigInUrl+"?flag=false"))}function showModalPopup(){$("#popupbackground").removeClass("hidden")}function hideModalPopup(){$("#popupbackground").addClass("hidden")}function EmailUpdateComplete(){showEdit=$("#hdnFlag").val();showEdit=="EmailInvalid"&&$("#EmailSectionDiv").find("button.edit").trigger("click")}function UserNameUpdateComplete(){isModelValid=="False"&&$("#UserNameSectionDiv").find("button.edit").trigger("click")}function UserInfoUpdateComplete(){isModelValid=="False"&&$("#BasicInformationDiv").find("button.edit").trigger("click")}function bindEventsListeners(){$("button.edit").off("click");$("button.cancel").off("click");$("#EmailSectionDiv, #BasicInformationDiv, #UserNameSectionDiv").on("click","button.edit",function(n){n.preventDefault();$(this).parent().children(".update").toggleClass("hidden");$(this).parent().children(".readonly").toggleClass("hidden");$(this).parent().children("button.cancel").toggleClass("hidden");$(this).parent().children("input[type=submit]").toggleClass("hidden");$(this).toggleClass("hidden")});$("#EmailSectionDiv, #BasicInformationDiv, #UserNameSectionDiv").on("click","button.cancel",function(n){n.preventDefault();$(this).parent().children(".update").toggleClass("hidden");$(this).parent().children(".readonly").toggleClass("hidden");$(this).parent().children("button.edit").toggleClass("hidden");$(this).parent().children("input[type=submit]").toggleClass("hidden");$(this).parent().children("button.cancel").toggleClass("hidden")})}function reloadPage(){return}function onFailure(){return}function triggerFileUpload(n){var t=document.getElementById(n);return t.click(),!1}function getFileValue(n,t){var f=document.getElementById(n).value,r,u,i;if(f.indexOf("\\")<0){for(r=document.getElementById(n).files,u="",i=0;i<r.length;i++)u+=r[i].name+"; ";document.getElementById(t).value=u}else if(f.indexOf("fakepath")<0)document.getElementById(t).value=document.getElementById(n).value;else{for(r=document.getElementById(n).files,u="",i=0;i<r.length;i++)u+=r[i].name+"; ";document.getElementById(t).value=u}}var Placeholder,player,APIModules,mediaEvent,videoPlayer,intel,showEdit,onSuccess;$(function(){function f(n){Object.keys(n).forEach(function(t){n[t].forEach(function(i,r){var u=$("<span>").html(userMessages.PasswordPolicy).find("li[data-mapitem="+i+"]").parent().map(function(){return this.previousSibling.nodeValue})[0],f=$("<span>").html(userMessages.PasswordPolicy).find("li[data-mapitem="+i+"]").text();u="";f="";n[t][r]={key:i,prefix:u||"",msg:f||""}})})}function i(i){var u=$(i.target),o=$(u).attr("name"),h=$(u).val(),f=!1,s=r[o],e;return s&&(s.forEach(function(t){var i=$(u).parent().find(".help-block ul li .glyphicon."+t.key);console.log("fieldName is "+o);$("#passwordPolicy").find("li[data-mapitem="+t.key+"]").css({"list-style-image":"none"});n[t.key](h)==!1?(e||(e=t),f=!0,t.key=="noRepeatedChars"||t.key=="nonEnglishDisallowed"||t.key=="noLeadingSpace"?$("#passwordPolicy").find("#"+t.key).removeClass("hidden").addClass("broken"):$("#passwordPolicy").find("#"+t.key).removeClass("confirmed")):t.key=="noRepeatedChars"||t.key=="nonEnglishDisallowed"||t.key=="noLeadingSpace"?$("#passwordPolicy").find("#"+t.key).addClass("hidden"):$("#passwordPolicy").find("#"+t.key).addClass("confirmed")}),e?($(t).rules("remove","isnewpwdvalid"),$(t).rules("add",{isnewpwdvalid:!0,messages:{isnewpwdvalid:""}}),$(u).addClass("asterik-icon")):$(u).removeClass("asterik-icon"),f?$(t).addClass("invalid"):($(t).removeClass("invalid"),$("#passwordPolicy").addClass("displayNone"))),!f}if($("form").length!=0&&document.location.pathname.substring(1,15).match(/PasswordChange|PasswordUpdate/i)){$.validator.addMethod("isnewpwdvalid",function(n,t){var i=$(t).hasClass("asterik-icon");return Object.getOwnPropertyNames(this.submitted).length==0&&$(t).val().length<8&&(i=!1),!i},"");$.validator.unobtrusive.adapters.addBool("isnewpwdvalid");var t="#NewPassword",u="#LoginId",r={},n={};$(t).attr("data-val-isnewpwdvalid","");$(".btn-primary").on("click",function(){if($(t).hasClass("invalid"))return!1});$("form").validateDelegate(t,"keyup paste focus",function(n){$("#passwordPolicy").removeClass("displayNone");n.type=="paste"?setTimeout(function(){i(n)},100):i(n)});$("form").validateDelegate(t,"focusout",function(n){i(n)});r.NewPassword=["8to15Chars","atLeastOneLetter","atLeastOneNumber","atLeastOneSpecialChar","nonEnglishDisallowed","noLoginIdInPassword","noRepeatedChars","noLeadingSpace"];f(r);n.allowedSpecialChars=function(n){return!n.match(/[^\w\.\-@]+/)};n.noEmailInPassword=function(n){var t="";return($("#email").length>0&&(t=$("#email").val()),t==="")?!0:n.toLowerCase().search(t.toLowerCase())===-1};n["8to15Chars"]=function(n){return n.length>=8&&n.length<=15};n.atLeastOneLetter=function(n){return!!n.match(/[a-zA-Z]+/)};n.atLeastOneNumber=function(n){return!!n.match(/[\d]+/)};n.atLeastOneSpecialChar=function(n){return!!n.match(/[-!$%^&*()_+|~=`@\\#{}\[\]:";'<>?,.\/]/)};n.nonEnglishDisallowed=function(n){return!n.match(/[^\x00-\x7F]+/)};n.noLeadingSpace=function(n){return!n.match(/(^\s)/)};n.noLoginIdInPassword=function(n){var t=$(u).val();return t===""?!0:n.toLowerCase().search(t.toLowerCase())===-1};n.noRepeatedChars=function(n){return!n.toLowerCase().match(/(.)\1{2,}/)};$("form input").on("focus",function(n){n.target.type!=="submit";$(t).val()===$(u).val()&&$(t).val().length>0&&i(n)})}});var isResponsive=function(){return $(window).width()>767},someItemsHidden=isResponsive(),geoNavFunction=function(){$("#language-chooser ul > li.category").toggleClass("showLangCategory",!0);$("#language-chooser ul > li.category").click(function(){if(!isResponsive()){var n=$(this).parent(),t=$("#language-chooser ul > li.category.showLangCategory").length;$("#language-chooser ul > li").toggleClass("showLangCategory",!1);2>=t?$("#language-chooser ul > li.category").toggleClass("showLangCategory",!0):n.find("li").toggleClass("showLangCategory",!0)}});$(window).on("resize",function(){var n=$(this).width();n<767?someItemsHidden=!0:someItemsHidden&&($("#language-chooser ul > li").attr("style",""),someItemsHidden=!1)})},loaded=!1;$(function(){var n,t;this.console&&console.log("working");n=document.createElement("script");n.type="text/javascript";n.async=!0;n.src="/script/homepage.languageselector.min.js";t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(n,t);this.console&&console.log("workingvv")});Placeholder=function(n,t){var i=n(t),r=function(){i.find("input:text").each(function(){var t=n(this);t.css({color:"#888"}).val(t.attr("placeholder"))})},u=function(){var t=n(this),i=t.attr("placeholder");if(t.val()===i){t.css({color:"#000"}).val("");return}t.val()===""&&t.css({color:"#888"}).val(i)},f=function(){if(!Modernizr.input.placeholder){r();i.on("focus blur","input:text",u)}},e=function(){f()};return{init:e}}(jQuery,document);Placeholder.init();$(document).ready(function(){function n(){var n=!0;return $(".fieldcontainer input[type=text]").removeClass("err-state"),$(".fieldcontainer input[type=text]").parent().find("span.err-show").addClass("displayNone"),$(".fieldcontainer input[type=password]").removeClass("err-state"),$(".fieldcontainer input[type=password]").parent().find("span.err-show").addClass("displayNone"),$(".fieldcontainer input[type=text]").val()==""&&($(".fieldcontainer input[type=text]").addClass("err-state"),$(".fieldcontainer input[type=text]").parent().find("span.err-show").removeClass("displayNone"),n=!1),$(".fieldcontainer input[type=password]").val()==""&&($(".fieldcontainer input[type=password]").addClass("err-state"),$(".fieldcontainer input[type=password]").parent().find("span.err-show").removeClass("displayNone"),n=!1),n}$("#mButtonChange").on("click",function(){return $("#mButtonChange").addClass("displayNone"),$("#mDivNewEmail").removeClass("displayNone"),!1});$("#autoSignInCheckBox").on("click",function(){$(this).prop("checked")?(targetIndex=window.location.href.toString().toLowerCase().indexOf("target="),targetIndex>=0?$("#autoSiginLink").attr("href",AutoSigInUrl+"?flag=true&"+window.location.href.toString().substring(targetIndex,window.location.href.toString().length)):$("#autoSiginLink").attr("href",AutoSigInUrl+"?flag=true")):targetIndex>=0?$("#autoSiginLink").attr("href",AutoSigInUrl+"?flag=false&"+window.location.href.toString().substring(targetIndex,window.location.href.toString().length)):$("#autoSiginLink").attr("href",AutoSigInUrl+"?flag=false")});window.location.href.toLowerCase().indexOf("passwordupdate")>-1&&$("li.language").show();$("#language-chooser .close-button").on("click",function(n){n.preventDefault();$(".language").trigger("click")});$(".language").on("click",function(n){n.preventDefault();$("#language-chooser").slideToggle(600,function(){$("#language-chooser").toggleClass("hidden");$(".language").toggleClass("selected")})});$(".blue-btn btn-style").on("click",function(){return n()});$(".helpDiv").each(function(){$(this).qtip({content:{title:{text:$(this).attr("title"),button:!0},text:function(){return $(this).attr("qtip-content")}},position:{target:!1,adjust:{method:"flip none",mouse:!0,y:-10}},style:{classes:"ui-tooltip-cluetip",widget:!1,tip:{corner:"left top",mimic:!1,width:35,height:45,border:!0,offset:0}},show:{event:"click",solo:!0},hide:{event:!1}})});$(".btn-style").on("mousedown",function(){$(".btn-style").data("mouseDown",!0)});$(".btn-style").on("mouseup",function(){$(".btn-style").data("mouseDown",!1)});$(".links").on("mousedown",function(){$(".links").data("mouseDown",!0)});$(".links").on("mouseup",function(){$(".links").data("mouseDown",!1)});$(".helpDiv").on("mousedown",function(){$(".helpDiv").data("mouseDown",!0)});$(".helpDiv").on("mouseup",function(){$(".helpDiv").data("mouseDown",!1)});var t=navigator.userAgent.toLowerCase().indexOf("iphone");if(t>-1){$(document).on("focus","input,textArea",function(){$("#header").css("position","relative");$("#legal").css("position","relative");$("footer").css("position","relative");$(".backbutton").css("padding","0")});$(document).on("blur","input,textArea",function(){$("#header").css("position","fixed");$("footer").css("position","fixed");$("#legal").show();$(".backbutton").css("padding","71px 0px 10px 0px")})}jQuery.validator.addMethod("enforcetrue",function(n,t){return t.checked});jQuery.validator.unobtrusive.adapters.addBool("enforcetrue")});+function(n){"use strict";var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$window=n(window).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=null;this.checkPosition()},i;t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i;if(this.$element.is(":visible")){var s=n(document).height(),e=this.$window.scrollTop(),o=this.$element.offset(),r=this.options.offset,f=r.top,u=r.bottom;(typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top()),typeof u=="function"&&(u=r.bottom()),i=this.unpin!=null&&e+this.unpin<=o.top?!1:u!=null&&o.top+this.$element.height()>=s-u?"bottom":f!=null&&e<=f?"top":!1,this.affixed!==i)&&(this.unpin&&this.$element.css("top",""),this.affixed=i,this.unpin=i=="bottom"?o.top-e:null,this.$element.removeClass(t.RESET).addClass("affix"+(i?"-"+i:"")),i=="bottom"&&this.$element.offset({top:document.body.offsetHeight-u-this.$element.height()}))}};i=n.fn.affix;n.fn.affix=function(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&&i;r||u.data("bs.affix",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=i,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var i=n(this),t=i.data();t.offset=t.offset||{};t.offsetBottom&&(t.offset.bottom=t.offsetBottom);t.offsetTop&&(t.offset.top=t.offsetTop);i.affix(t)})})}(jQuery);+function(n){"use strict";var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.prototype.close=function(t){function f(){i.trigger("closed.bs.alert").remove()}var u=n(this),r=u.attr("data-target"),i;(r||(r=u.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=n(r),t&&t.preventDefault(),i.length||(i=u.hasClass("alert")?u:u.parent()),i.trigger(t=n.Event("close.bs.alert")),t.isDefaultPrevented())||(i.removeClass("in"),n.support.transition&&i.hasClass("fade")?i.one(n.support.transition.end,f).emulateTransitionEnd(150):f())};r=n.fn.alert;n.fn.alert=function(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));typeof i=="string"&&u[i].call(r)})};n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function r(){n(e).remove();n(i).each(function(t){var i=u(n(this));i.hasClass("open")&&((i.trigger(t=n.Event("hide.bs.dropdown")),t.isDefaultPrevented())||i.removeClass("open").trigger("hidden.bs.dropdown"))})}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}var e=".dropdown-backdrop",i="[data-toggle=dropdown]",t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.prototype.toggle=function(t){var f=n(this),i,e;if(!f.is(".disabled, :disabled")){if(i=u(f),e=i.hasClass("open"),r(),!e){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length)n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r);if(i.trigger(t=n.Event("show.bs.dropdown")),t.isDefaultPrevented())return;i.toggleClass("open").trigger("shown.bs.dropdown");f.focus()}return!1}};t.prototype.keydown=function(t){var e,o,s,f,r;if(/(38|40|27)/.test(t.keyCode)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s||s&&t.keyCode==27)return t.which==27&&o.find(i).focus(),e.click();(f=n("[role=menu] li:not(.divider):visible a",o),f.length)&&(r=f.index(f.filter(":focus")),t.keyCode==38&&r>0&&r--,t.keyCode==40&&r<f.length-1&&r++,~r||(r=0),f.eq(r).focus())}};f=n.fn.dropdown;n.fn.dropdown=function(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));typeof i=="string"&&u[i].call(r)})};n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i+", [role=menu]",t.prototype.keydown)}(jQuery);+function(n){"use strict";var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focus";s=u=="hover"?"mouseleave":"blur";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)};t.prototype.show=function(){var o=n.Event("show.bs."+this.type),i,l;if(this.hasContent()&&this.enabled){if(this.$element.trigger(o),o.isDefaultPrevented())return;i=this.tip();this.setContent();this.options.animation&&i.addClass("fade");var t=typeof this.options.placement=="function"?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,h=s.test(t);h&&(t=t.replace(s,"")||"top");i.detach().css({top:0,left:0,display:"block"}).addClass(t);this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);var r=this.getPosition(),u=i[0].offsetWidth,f=i[0].offsetHeight;if(h){var e=this.$element.parent(),a=t,c=document.documentElement.scrollTop||document.body.scrollTop,v=this.options.container=="body"?window.innerWidth:e.outerWidth(),y=this.options.container=="body"?window.innerHeight:e.outerHeight(),p=this.options.container=="body"?0:e.offset().left;t=t=="bottom"&&r.top+r.height+f-c>y?"top":t=="top"&&r.top-c-f<0?"bottom":t=="right"&&r.right+u>v?"left":t=="left"&&r.left-u<p?"right":t;i.removeClass(a).addClass(t)}l=this.getCalculatedOffset(t,r,u,f);this.applyPlacement(l,t);this.$element.trigger("shown.bs."+this.type)}};t.prototype.applyPlacement=function(n,t){var h,i=this.tip(),c=i[0].offsetWidth,f=i[0].offsetHeight,e=parseInt(i.css("margin-top"),10),o=parseInt(i.css("margin-left"),10),u,r,s;isNaN(e)&&(e=0);isNaN(o)&&(o=0);n.top=n.top+e;n.left=n.left+o;i.offset(n).addClass("in");u=i[0].offsetWidth;r=i[0].offsetHeight;t=="top"&&r!=f&&(h=!0,n.top=n.top+f-r);/bottom|top/.test(t)?(s=0,n.left<0&&(s=n.left*-2,n.left=0,i.offset(n),u=i[0].offsetWidth,r=i[0].offsetHeight),this.replaceArrow(s-c+u,u,"left")):this.replaceArrow(r-f,r,"top");h&&i.offset(n)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i,n?50*(1-n/t)+"%":"")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(){function r(){u.hoverState!="in"&&t.detach()}var u=this,t=this.tip(),i=n.Event("hide.bs."+this.type);if(this.$element.trigger(i),!i.isDefaultPrevented())return t.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?t.one(n.support.transition.end,r).emulateTransitionEnd(150):r(),this.$element.trigger("hidden.bs."+this.type),this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(){var t=this.$element[0];return n.extend({},typeof t.getBoundingClientRect=="function"?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())};t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=t?n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};i=n.fn.tooltip;n.fn.tooltip=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;r||u.data("bs.tooltip",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";var t=function(t,i){this.options=i;this.$element=n(t);this.$backdrop=this.isShown=null;this.options.remote&&this.$element.load(this.options.remote)},i;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this[this.isShown?"hide":"show"](n)};t.prototype.show=function(t){var i=this,r=n.Event("show.bs.modal",{relatedTarget:t});if(this.$element.trigger(r),!this.isShown&&!r.isDefaultPrevented()){this.isShown=!0;this.escape();this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.backdrop(function(){var u=n.support.transition&&i.$element.hasClass("fade"),r;i.$element.parent().length||i.$element.appendTo(document.body);i.$element.show();u&&i.$element[0].offsetWidth;i.$element.addClass("in").attr("aria-hidden",!1);i.enforceFocus();r=n.Event("shown.bs.modal",{relatedTarget:t});u?i.$element.find(".modal-dialog").one(n.support.transition.end,function(){i.$element.focus().trigger(r)}).emulateTransitionEnd(300):i.$element.focus().trigger(r)})}};t.prototype.hide=function(t){(t&&t.preventDefault(),t=n.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented())&&(this.isShown=!1,this.escape(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one(n.support.transition.end,n.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.focus()},this))};t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keyup.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keyup.dismiss.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.removeBackdrop();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(t){var u=this,r=this.$element.hasClass("fade")?"fade":"",i;if(this.isShown&&this.options.backdrop){i=n.support.transition&&r;this.$backdrop=n('<div class="modal-backdrop '+r+'" />').appendTo(document.body);this.$element.on("click.dismiss.modal",n.proxy(function(n){n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this));if(i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};i=n.fn.modal;n.fn.modal=function(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e));typeof i=="string"?u[i](r):e.show&&u.show(r)})};n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=i,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var i=n(this),r=i.attr("href"),u=n(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),f=u.data("modal")?"toggle":n.extend({remote:!/#/.test(r)&&r},u.data(),i.data());t.preventDefault();u.modal(f,this).one("hide",function(){i.is(":visible")&&i.focus()})});n(document).on("show.bs.modal",".modal",function(){n(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){n(document.body).removeClass("modal-open")})}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(i.style[n]!==undefined)return{end:t[n]}}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one(n.support.transition.end,function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t()})}(jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r)},i;t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(n){var i="disabled",t=this.$element,r=t.is("input")?"val":"html",u=t.data();n=n+"Text";u.resetText||t.data("resetText",t[r]());t[r](u[n]||this.options[n]);setTimeout(function(){n=="loadingText"?t.addClass(i).attr(i,i):t.removeClass(i).removeAttr(i)},0)};t.prototype.toggle=function(){var i=this.$element.closest('[data-toggle="buttons"]'),t=!0,n;i.length&&(n=this.$element.find("input"),n.prop("type")==="radio"&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change"));t&&this.$element.toggleClass("active")};i=n.fn.button;n.fn.button=function(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f));i=="toggle"?r.toggle():i&&r.setState(i)})};n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=i,this};n(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var i=n(t.target);i.hasClass("btn")||(i=i.closest(".btn"));i.button("toggle");t.preventDefault()})}(jQuery);+function(n){"use strict";var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle(),i=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](t);n.find(".popover-content")[this.options.html?"html":"text"](i);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=function(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f=typeof i=="object"&&i;r||u.data("bs.popover",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;this.options.pause=="hover"&&this.$element.on("mouseenter",n.proxy(this.pause,this)).on("mouseleave",n.proxy(this.cycle,this))},i;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)};t.prototype.to=function(t){var r=this,i=this.getActiveIndex();if(!(t>this.$items.length-1)&&!(t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){r.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",n(this.$items[t]))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition.end&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(t,i){var u=this.$element.find(".item.active"),r=i||u[t](),s=this.interval,f=t=="next"?"left":"right",h=t=="next"?"first":"last",o=this,e;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[h]()}if(this.sliding=!0,s&&this.pause(),e=n.Event("slide.bs.carousel",{relatedTarget:r[0],direction:f}),!r.hasClass("active")){if(this.$indicators.length){this.$indicators.find(".active").removeClass("active");this.$element.one("slid.bs.carousel",function(){var t=n(o.$indicators.children()[o.getActiveIndex()]);t&&t.addClass("active")})}if(n.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(e),e.isDefaultPrevented())return;r.addClass(t);r[0].offsetWidth;u.addClass(f);r.addClass(f);u.one(n.support.transition.end,function(){r.removeClass([t,f].join(" ")).addClass("active");u.removeClass(["active",f].join(" "));o.sliding=!1;setTimeout(function(){o.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(e),e.isDefaultPrevented())return;u.removeClass("active");r.addClass("active");this.sliding=!1;this.$element.trigger("slid.bs.carousel")}return s&&this.cycle(),this}};i=n.fn.carousel;n.fn.carousel=function(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),e=typeof i=="string"?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));typeof i=="number"?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})};n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=i,this};n(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var i=n(this),f,r=n(i.attr("data-target")||(f=i.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")),e=n.extend({},r.data(),i.data()),u=i.attr("data-slide-to");u&&(e.interval=!1);r.carousel(e);(u=i.attr("data-slide-to"))&&r.data("bs.carousel").to(u);t.preventDefault()});n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);t.carousel(t.data())})})}(jQuery);+function(n){"use strict";function t(i,r){var u,f=n.proxy(this.process,this);this.$element=n(i).is("body")?n(window):n(i);this.$body=n("body");this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||(u=n(i).attr("href"))&&u.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a";this.offsets=n([]);this.targets=n([]);this.activeTarget=null;this.refresh();this.process()}t.DEFAULTS={offset:10};t.prototype.refresh=function(){var i=this.$element[0]==window?"offset":"position",t,r;this.offsets=n([]);this.targets=n([]);t=this;r=this.$body.find(this.selector).map(function(){var f=n(this),r=f.data("target")||f.attr("href"),u=/^#\w/.test(r)&&n(r);return u&&u.length&&[[u[i]().top+(!n.isWindow(t.$scrollElement.get(0))&&t.$scrollElement.scrollTop()),r]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,f=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,e=f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(i>=e)return u!=(n=r.last()[0])&&this.activate(n);for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(!t[n+1]||i<=t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;n(this.selector).parents(".active").removeClass("active");var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};var i=n.fn.scrollspy;n.fn.scrollspy=function(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f=typeof i=="object"&&i;r||u.data("bs.scrollspy",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=i,this};n(window).on("load",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);t.scrollspy(t.data())})})}(jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.transitioning=null;this.options.parent&&(this.$parent=n(this.options.parent));this.options.toggle&&this.toggle()},i;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var u,t,r,i,f,e;if(!this.transitioning&&!this.$element.hasClass("in")&&(u=n.Event("show.bs.collapse"),this.$element.trigger(u),!u.isDefaultPrevented())){if(t=this.$parent&&this.$parent.find("> .panel > .in"),t&&t.length){if(r=t.data("bs.collapse"),r&&r.transitioning)return;t.collapse("hide");r||t.data("bs.collapse",null)}if(i=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[i](0),this.transitioning=1,f=function(){this.$element.removeClass("collapsing").addClass("in")[i]("auto");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return f.call(this);e=n.camelCase(["scroll",i].join("-"));this.$element.one(n.support.transition.end,n.proxy(f,this)).emulateTransitionEnd(350)[i](this.$element[0][e])}};t.prototype.hide=function(){var i,t,r;if(!this.transitioning&&this.$element.hasClass("in")&&(i=n.Event("hide.bs.collapse"),this.$element.trigger(i),!i.isDefaultPrevented())){if(t=this.dimension(),this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1,r=function(){this.transitioning=0;this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")},!n.support.transition)return r.call(this);this.$element[t](0).one(n.support.transition.end,n.proxy(r,this)).emulateTransitionEnd(350)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};i=n.fn.collapse;n.fn.collapse=function(i){return this.each(function(){var r=n(this),u=r.data("bs.collapse"),f=n.extend({},t.DEFAULTS,r.data(),typeof i=="object"&&i);u||r.data("bs.collapse",u=new t(this,f));typeof i=="string"&&u[i]()})};n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=i,this};n(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var i=n(this),e,s=i.attr("data-target")||t.preventDefault()||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),r=n(s),u=r.data("bs.collapse"),h=u?"toggle":i.data(),f=i.attr("data-parent"),o=f&&n(f);u&&u.transitioning||(o&&o.find('[data-toggle=collapse][data-parent="'+f+'"]').not(i).addClass("collapsed"),i[r.hasClass("in")?"addClass":"removeClass"]("collapsed"));r.collapse(h)})}(jQuery);+function(n){"use strict";var t=function(t){this.element=n(t)},i;t.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),r,u,f;(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),t.parent("li").hasClass("active"))||(r=e.find(".active:last a")[0],u=n.Event("show.bs.tab",{relatedTarget:r}),t.trigger(u),u.isDefaultPrevented())||(f=n(i),this.activate(t.parent("li"),e),this.activate(f,f.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:r})}))};t.prototype.activate=function(t,i,r){function e(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");t.addClass("active");f?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade");t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active");r&&r()}var u=i.find("> .active"),f=r&&n.support.transition&&u.hasClass("fade");f?u.one(n.support.transition.end,e).emulateTransitionEnd(150):e();u.removeClass("in")};i=n.fn.tab;n.fn.tab=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));typeof i=="string"&&r[i]()})};n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=i,this};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault();n(this).tab("show")})}(jQuery);FastClick.prototype.deviceIsAndroid=navigator.userAgent.indexOf("Android")>0;FastClick.prototype.deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent);FastClick.prototype.deviceIsIOS4=FastClick.prototype.deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent);FastClick.prototype.deviceIsIOSWithBadTarget=FastClick.prototype.deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent);FastClick.prototype.needsClick=function(n){"use strict";switch(n.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(n.disabled)return!0;break;case"input":if(this.deviceIsIOS&&n.type==="file"||n.disabled)return!0;break;case"label":case"video":return!0}return/\bneedsclick\b/.test(n.className)};FastClick.prototype.needsFocus=function(n){"use strict";switch(n.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!this.deviceIsAndroid;case"input":switch(n.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!n.disabled&&!n.readOnly;default:return/\bneedsfocus\b/.test(n.className)}};FastClick.prototype.sendClick=function(n,t){"use strict";var r,i;document.activeElement&&document.activeElement!==n&&document.activeElement.blur();i=t.changedTouches[0];r=document.createEvent("MouseEvents");r.initMouseEvent(this.determineEventType(n),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null);r.forwardedTouchEvent=!0;n.dispatchEvent(r)};FastClick.prototype.determineEventType=function(n){"use strict";return this.deviceIsAndroid&&n.tagName.toLowerCase()==="select"?"mousedown":"click"};FastClick.prototype.focus=function(n){"use strict";var t;this.deviceIsIOS&&n.setSelectionRange&&n.type.indexOf("date")!==0&&n.type!=="time"?(t=n.value.length,n.setSelectionRange(t,t)):n.focus()};FastClick.prototype.updateScrollParent=function(n){"use strict";var i,t;if(i=n.fastClickScrollParent,!i||!i.contains(n)){t=n;do{if(t.scrollHeight>t.offsetHeight){i=t;n.fastClickScrollParent=t;break}t=t.parentElement}while(t)}i&&(i.fastClickLastScrollTop=i.scrollTop)};FastClick.prototype.getTargetElementFromEventTarget=function(n){"use strict";return n.nodeType===Node.TEXT_NODE?n.parentNode:n};FastClick.prototype.onTouchStart=function(n){"use strict";var i,t,r;if(n.targetTouches.length>1)return!0;if(i=this.getTargetElementFromEventTarget(n.target),t=n.targetTouches[0],this.deviceIsIOS){if(r=window.getSelection(),r.rangeCount&&!r.isCollapsed)return!0;if(!this.deviceIsIOS4){if(t.identifier===this.lastTouchIdentifier)return n.preventDefault(),!1;this.lastTouchIdentifier=t.identifier;this.updateScrollParent(i)}}return this.trackingClick=!0,this.trackingClickStart=n.timeStamp,this.targetElement=i,this.touchStartX=t.pageX,this.touchStartY=t.pageY,n.timeStamp-this.lastClickTime<200&&n.preventDefault(),!0};FastClick.prototype.touchHasMoved=function(n){"use strict";var t=n.changedTouches[0],i=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>i||Math.abs(t.pageY-this.touchStartY)>i?!0:!1};FastClick.prototype.onTouchMove=function(n){"use strict";return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(n.target)||this.touchHasMoved(n))&&(this.trackingClick=!1,this.targetElement=null),!0):!0};FastClick.prototype.findControl=function(n){"use strict";return n.control!==undefined?n.control:n.htmlFor?document.getElementById(n.htmlFor):n.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")};FastClick.prototype.onTouchEnd=function(n){"use strict";var u,e,i,r,f,t=this.targetElement;if(!this.trackingClick)return!0;if(n.timeStamp-this.lastClickTime<200)return this.cancelNextClick=!0,!0;if(this.cancelNextClick=!1,this.lastClickTime=n.timeStamp,e=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,this.deviceIsIOSWithBadTarget&&(f=n.changedTouches[0],t=document.elementFromPoint(f.pageX-window.pageXOffset,f.pageY-window.pageYOffset)||t,t.fastClickScrollParent=this.targetElement.fastClickScrollParent),i=t.tagName.toLowerCase(),i==="label"){if(u=this.findControl(t),u){if(this.focus(t),this.deviceIsAndroid)return!1;t=u}}else if(this.needsFocus(t))return n.timeStamp-e>100||this.deviceIsIOS&&window.top!==window&&i==="input"?(this.targetElement=null,!1):(this.focus(t),this.sendClick(t,n),this.deviceIsIOS4&&i==="select"||(this.targetElement=null,n.preventDefault()),!1);return this.deviceIsIOS&&!this.deviceIsIOS4&&(r=t.fastClickScrollParent,r&&r.fastClickLastScrollTop!==r.scrollTop)?!0:(this.needsClick(t)||(n.preventDefault(),this.sendClick(t,n)),!1)};FastClick.prototype.onTouchCancel=function(){"use strict";this.trackingClick=!1;this.targetElement=null};FastClick.prototype.onMouse=function(n){"use strict";return this.targetElement?n.forwardedTouchEvent?!0:n.cancelable?!this.needsClick(this.targetElement)||this.cancelNextClick?(n.stopImmediatePropagation?n.stopImmediatePropagation():n.propagationStopped=!0,n.stopPropagation(),n.preventDefault(),!1):!0:!0:!0};FastClick.prototype.onClick=function(n){"use strict";var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):n.target.type==="submit"&&n.detail===0?!0:(t=this.onMouse(n),t||(this.targetElement=null),t)};FastClick.prototype.destroy=function(){"use strict";var n=this.layer;this.deviceIsAndroid&&(n.removeEventListener("mouseover",this.onMouse,!0),n.removeEventListener("mousedown",this.onMouse,!0),n.removeEventListener("mouseup",this.onMouse,!0));n.removeEventListener("click",this.onClick,!0);n.removeEventListener("touchstart",this.onTouchStart,!1);n.removeEventListener("touchmove",this.onTouchMove,!1);n.removeEventListener("touchend",this.onTouchEnd,!1);n.removeEventListener("touchcancel",this.onTouchCancel,!1)};FastClick.notNeeded=function(n){"use strict";var t,i;if(typeof ontouchstart=="undefined")return!0;if(i=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],i)if(FastClick.prototype.deviceIsAndroid){if(t=document.querySelector("meta[name=viewport]"),t&&(t.content.indexOf("user-scalable=no")!==-1||i>31&&window.innerWidth<=window.screen.width))return!0}else return!0;return n.style.msTouchAction==="none"?!0:!1};FastClick.attach=function(n){"use strict";return new FastClick(n)};typeof define!="undefined"&&define.amd?define(function(){"use strict";return FastClick}):typeof module!="undefined"&&module.exports?(module.exports=FastClick.attach,module.exports.FastClick=FastClick):window.FastClick=FastClick,function(n){typeof define=="function"&&define.amd&&define.amd.jQuery?define(["jquery"],n):n(jQuery)}(function(n){"use strict";function ut(t){return t&&t.allowPageScroll===undefined&&(t.swipe!==undefined||t.swipeStatus!==undefined)&&(t.allowPageScroll=y),t.click!==undefined&&t.tap===undefined&&(t.tap=t.click),t||(t={}),t=n.extend({},n.fn.swipe.defaults,t),this.each(function(){var r=n(this),i=r.data(s);i||(i=new ft(this,t),r.data(s,i))})}function ft(ut,ft){function bi(t){if(!vu()&&!(n(t.target).closest(ft.excludedElements,ot).length>0)){var r=t.originalEvent?t.originalEvent:t,f,u=r.touches,e=u?u[0]:r;return(st=rt,u?ct=u.length:ft.preventDefaultEvents!==!1&&t.preventDefault(),at=0,vt=null,bt=null,lt=0,gt=0,ni=0,pt=1,wt=0,vi=wu(),gr(),si(0,e),!u||ct===ft.fingers||ft.fingers===c||ri()?(or=dt(),ct==2&&(si(1,u[1]),gt=ni=ur(ht[0].start,ht[1].start)),(ft.swipeStatus||ft.pinchStatus)&&(f=yt(r,st))):f=!1,f===!1)?(st=i,yt(r,st),f):(ft.hold&&(hr=setTimeout(n.proxy(function(){ot.trigger("hold",[r.target]);ft.hold&&(f=ft.hold.call(ot,r,r.target))},this),ft.longTapThreshold)),oi(!0),null)}}function ki(n){var u=n.originalEvent?n.originalEvent:n,e,s;if(st!==t&&st!==i&&!ei()){var h,r=u.touches,l=r?r[0]:u,f=nu(l);yi=dt();r&&(ct=r.length);ft.hold&&clearTimeout(hr);st=o;ct==2&&(gt==0?(si(1,r[1]),gt=ni=ur(ht[0].start,ht[1].start)):(nu(r[1]),ni=ur(ht[0].end,ht[1].end),bt=ku(ht[0].end,ht[1].end)),pt=bu(gt,ni),wt=Math.abs(gt-ni));ct===ft.fingers||ft.fingers===c||!r||ri()?(vt=nf(f.start,f.end),uu(n,vt),at=du(f.start,f.end),lt=iu(),pu(vt,at),(ft.swipeStatus||ft.pinchStatus)&&(h=yt(u,st)),(!ft.triggerOnTouchEnd||ft.triggerOnTouchLeave)&&(e=!0,ft.triggerOnTouchLeave&&(s=tf(this),e=rf(f.end,s)),!ft.triggerOnTouchEnd&&e?st=nr(o):ft.triggerOnTouchLeave&&!e&&(st=nr(t)),(st==i||st==t)&&yt(u,st))):(st=i,yt(u,st));h===!1&&(st=i,yt(u,st))}}function di(n){var r=n.originalEvent?n.originalEvent:n,u=r.touches;if(u){if(u.length&&!ei())return au(),!0;if(u.length&&ei())return!0}return ei()&&(ct=sr),yi=dt(),lt=iu(),ir()||!tr()?(st=i,yt(r,st)):ft.triggerOnTouchEnd||ft.triggerOnTouchEnd==!1&&st===o?(ft.preventDefaultEvents!==!1&&n.preventDefault(),st=t,yt(r,st)):!ft.triggerOnTouchEnd&&kr()?(st=t,kt(r,st,b)):st===o&&(st=i,yt(r,st)),oi(!1),null}function ii(){ct=0;yi=0;or=0;gt=0;ni=0;pt=1;gr();oi(!1)}function gi(n){var i=n.originalEvent?n.originalEvent:n;ft.triggerOnTouchLeave&&(st=nr(t),yt(i,st))}function cr(){ot.unbind(li,bi);ot.unbind(ai,ii);ot.unbind(fr,ki);ot.unbind(er,di);ui&&ot.unbind(ui,gi);oi(!1)}function nr(n){var r=n,f=lr(),u=tr(),e=ir();return!f||e?r=i:u&&n==o&&(!ft.triggerOnTouchEnd||ft.triggerOnTouchLeave)?r=t:!u&&n==t&&ft.triggerOnTouchLeave&&(r=i),r}function yt(n,r){var u,f=n.touches;return pr()&&fi()||vr()&&ri()?(pr()&&fi()&&(u=kt(n,r,p)),vr()&&ri()&&u!==!1&&(u=kt(n,r,w))):cu()&&u!==!1?u=kt(n,r,tt):lu()&&u!==!1?u=kt(n,r,it):hu()&&u!==!1&&(u=kt(n,r,b)),r===i&&(fi()&&(u=kt(n,r,p)),ri()&&(u=kt(n,r,w)),ii(n)),r===t&&(f?f.length||ii(n):ii(n)),u}function kt(o,s,h){var c;if(h==p){if(ot.trigger("swipeStatus",[s,vt||null,at||0,lt||0,ct,ht]),ft.swipeStatus&&(c=ft.swipeStatus.call(ot,o,s,vt||null,at||0,lt||0,ct,ht),c===!1))return!1;if(s==t&&yr()){if(ot.trigger("swipe",[vt,at,lt,ct,ht]),ft.swipe&&(c=ft.swipe.call(ot,o,vt,at,lt,ct,ht),c===!1))return!1;switch(vt){case r:ot.trigger("swipeLeft",[vt,at,lt,ct,ht]);ft.swipeLeft&&(c=ft.swipeLeft.call(ot,o,vt,at,lt,ct,ht));break;case u:ot.trigger("swipeRight",[vt,at,lt,ct,ht]);ft.swipeRight&&(c=ft.swipeRight.call(ot,o,vt,at,lt,ct,ht));break;case f:ot.trigger("swipeUp",[vt,at,lt,ct,ht]);ft.swipeUp&&(c=ft.swipeUp.call(ot,o,vt,at,lt,ct,ht));break;case e:ot.trigger("swipeDown",[vt,at,lt,ct,ht]);ft.swipeDown&&(c=ft.swipeDown.call(ot,o,vt,at,lt,ct,ht))}}}if(h==w){if(ot.trigger("pinchStatus",[s,bt||null,wt||0,lt||0,ct,pt,ht]),ft.pinchStatus&&(c=ft.pinchStatus.call(ot,o,s,bt||null,wt||0,lt||0,ct,pt,ht),c===!1))return!1;if(s==t&&ar())switch(bt){case a:ot.trigger("pinchIn",[bt||null,wt||0,lt||0,ct,pt,ht]);ft.pinchIn&&(c=ft.pinchIn.call(ot,o,bt||null,wt||0,lt||0,ct,pt,ht));break;case v:ot.trigger("pinchOut",[bt||null,wt||0,lt||0,ct,pt,ht]);ft.pinchOut&&(c=ft.pinchOut.call(ot,o,bt||null,wt||0,lt||0,ct,pt,ht))}}return h==b?(s===i||s===t)&&(clearTimeout(wi),clearTimeout(hr),rr()&&!eu()?(ti=dt(),wi=setTimeout(n.proxy(function(){ti=null;ot.trigger("tap",[o.target]);ft.tap&&(c=ft.tap.call(ot,o,o.target))},this),ft.doubleTapThreshold)):(ti=null,ot.trigger("tap",[o.target]),ft.tap&&(c=ft.tap.call(ot,o,o.target)))):h==tt?(s===i||s===t)&&(clearTimeout(wi),ti=null,ot.trigger("doubletap",[o.target]),ft.doubleTap&&(c=ft.doubleTap.call(ot,o,o.target))):h==it&&(s===i||s===t)&&(clearTimeout(wi),ti=null,ot.trigger("longtap",[o.target]),ft.longTap&&(c=ft.longTap.call(ot,o,o.target))),c}function tr(){var n=!0;return ft.threshold!==null&&(n=at>=ft.threshold),n}function ir(){var n=!1;return ft.cancelThreshold!==null&&vt!==null&&(n=tu(vt)-at>=ft.cancelThreshold),n}function ru(){return ft.pinchThreshold!==null?wt>=ft.pinchThreshold:!0}function lr(){return ft.maxTimeThreshold?lt>=ft.maxTimeThreshold?!1:!0:!0}function uu(n,t){if(ft.preventDefaultEvents!==!1)if(ft.allowPageScroll===y)n.preventDefault();else{var i=ft.allowPageScroll===nt;switch(t){case r:(ft.swipeLeft&&i||!i&&ft.allowPageScroll!=k)&&n.preventDefault();break;case u:(ft.swipeRight&&i||!i&&ft.allowPageScroll!=k)&&n.preventDefault();break;case f:(ft.swipeUp&&i||!i&&ft.allowPageScroll!=d)&&n.preventDefault();break;case e:(ft.swipeDown&&i||!i&&ft.allowPageScroll!=d)&&n.preventDefault()}}}function ar(){var n=wr(),t=br(),i=ru();return n&&t&&i}function ri(){return!!(ft.pinchStatus||ft.pinchIn||ft.pinchOut)}function vr(){return!!(ar()&&ri())}function yr(){var n=lr(),t=tr(),i=wr(),r=br(),u=ir();return!u&&r&&i&&t&&n}function fi(){return!!(ft.swipe||ft.swipeStatus||ft.swipeLeft||ft.swipeRight||ft.swipeUp||ft.swipeDown)}function pr(){return!!(yr()&&fi())}function wr(){return ct===ft.fingers||ft.fingers===c||!g}function br(){return ht[0].end.x!==0}function kr(){return!!ft.tap}function rr(){return!!ft.doubleTap}function fu(){return!!ft.longTap}function dr(){if(ti==null)return!1;var n=dt();return rr()&&n-ti<=ft.doubleTapThreshold}function eu(){return dr()}function ou(){return(ct===1||!g)&&(isNaN(at)||at<ft.threshold)}function su(){return lt>ft.longTapThreshold&&at<et}function hu(){return!!(ou()&&kr())}function cu(){return!!(dr()&&rr())}function lu(){return!!(su()&&fu())}function au(){pi=dt();sr=event.touches.length+1}function gr(){pi=0;sr=0}function ei(){var n=!1,t;return pi&&(t=dt()-pi,t<=ft.fingerReleaseThreshold&&(n=!0)),n}function vu(){return!!(ot.data(s+"_intouch")===!0)}function oi(n){n===!0?(ot.bind(fr,ki),ot.bind(er,di),ui&&ot.bind(ui,gi)):(ot.unbind(fr,ki,!1),ot.unbind(er,di,!1),ui&&ot.unbind(ui,gi,!1));ot.data(s+"_intouch",n===!0)}function si(n,t){var i={start:{x:0,y:0},end:{x:0,y:0}};return i.start.x=i.end.x=t.pageX||t.clientX,i.start.y=i.end.y=t.pageY||t.clientY,ht[n]=i,i}function nu(n){var i=n.identifier!==undefined?n.identifier:0,t=yu(i);return t===null&&(t=si(i,n)),t.end.x=n.pageX||n.clientX,t.end.y=n.pageY||n.clientY,t}function yu(n){return ht[n]||null}function pu(n,t){t=Math.max(t,tu(n));vi[n].distance=t}function tu(n){return vi[n]?vi[n].distance:undefined}function wu(){var n={};return n[r]=hi(r),n[u]=hi(u),n[f]=hi(f),n[e]=hi(e),n}function hi(n){return{direction:n,distance:0}}function iu(){return yi-or}function ur(n,t){var i=Math.abs(n.x-t.x),r=Math.abs(n.y-t.y);return Math.round(Math.sqrt(i*i+r*r))}function bu(n,t){var i=t/n*1;return i.toFixed(2)}function ku(){return pt<1?v:a}function du(n,t){return Math.round(Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)))}function gu(n,t){var r=n.x-t.x,u=t.y-n.y,f=Math.atan2(u,r),i=Math.round(f*180/Math.PI);return i<0&&(i=360-Math.abs(i)),i}function nf(n,t){var i=gu(n,t);return i<=45&&i>=0?r:i<=360&&i>=315?r:i>=135&&i<=225?u:i>45&&i<135?e:f}function dt(){var n=new Date;return n.getTime()}function tf(t){t=n(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function rf(n,t){return n.x>t.left&&n.x<t.right&&n.y>t.top&&n.y<t.bottom}var ft=n.extend({},ft),ci=g||h||!ft.fallbackToMouseEvents,li=ci?h?l?"MSPointerDown":"pointerdown":"touchstart":"mousedown",fr=ci?h?l?"MSPointerMove":"pointermove":"touchmove":"mousemove",er=ci?h?l?"MSPointerUp":"pointerup":"touchend":"mouseup",ui=ci?null:"mouseleave",ai=h?l?"MSPointerCancel":"pointercancel":"touchcancel",at=0,vt=null,lt=0,gt=0,ni=0,pt=1,wt=0,bt=0,vi=null,ot=n(ut),st="start",ct=0,ht={},or=0,yi=0,pi=0,sr=0,ti=0,wi=null,hr=null;try{ot.bind(li,bi);ot.bind(ai,ii)}catch(uf){n.error("events not supported "+li+","+ai+" on jQuery.swipe")}this.enable=function(){return ot.bind(li,bi),ot.bind(ai,ii),ot};this.disable=function(){return cr(),ot};this.destroy=function(){cr();ot.data(s,null);ot=null};this.option=function(t,i){if(typeof t=="object")ft=n.extend(ft,t);else if(ft[t]!==undefined){if(i===undefined)return ft[t];ft[t]=i}else if(t)n.error("Option "+t+" does not exist on jQuery.swipe.options");else return ft;return null}}var r="left",u="right",f="up",e="down",a="in",v="out",y="none",nt="auto",p="swipe",w="pinch",b="tap",tt="doubletap",it="longtap",k="horizontal",d="vertical",c="all",et=10,rt="start",o="move",t="end",i="cancel",g="ontouchstart"in window,l=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,h=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,s="TouchSwipe";n.fn.swipe=function(t){var r=n(this),i=r.data(s);if(i&&typeof t=="string"){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));n.error("Method "+t+" does not exist on jQuery.swipe")}else if(i&&typeof t=="object")i.option.apply(this,arguments);else if(!i&&(typeof t=="object"||!t))return ut.apply(this,arguments);return r};n.fn.swipe.version="1.6.12";n.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:!0};n.fn.swipe.phases={PHASE_START:rt,PHASE_MOVE:o,PHASE_END:t,PHASE_CANCEL:i};n.fn.swipe.directions={LEFT:r,RIGHT:u,UP:f,DOWN:e,IN:a,OUT:v};n.fn.swipe.pageScroll={NONE:y,HORIZONTAL:k,VERTICAL:d,AUTO:nt};n.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:c}}),function(n,t,i){function u(n,i){this.wrapper=typeof n=="string"?t.querySelector(n):n;this.scroller=this.wrapper.children[0];this.scrollerStyle=this.scroller.style;this.options={startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0};for(var u in i)this.options[u]=i[u];this.translateZ=this.options.HWCompositing&&r.hasPerspective?" translateZ(0)":"";this.options.useTransition=r.hasTransition&&this.options.useTransition;this.options.useTransform=r.hasTransform&&this.options.useTransform;this.options.eventPassthrough=this.options.eventPassthrough===!0?"vertical":this.options.eventPassthrough;this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault;this.options.scrollY=this.options.eventPassthrough=="vertical"?!1:this.options.scrollY;this.options.scrollX=this.options.eventPassthrough=="horizontal"?!1:this.options.scrollX;this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough;this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold;this.options.bounceEasing=typeof this.options.bounceEasing=="string"?r.ease[this.options.bounceEasing]||r.ease.circular:this.options.bounceEasing;this.options.resizePolling=this.options.resizePolling===undefined?60:this.options.resizePolling;this.options.tap===!0&&(this.options.tap="tap");this.x=0;this.y=0;this.directionX=0;this.directionY=0;this._events={};this._init();this.refresh();this.scrollTo(this.options.startX,this.options.startY);this.enable()}var f=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||n.msRequestAnimationFrame||function(t){n.setTimeout(t,1e3/60)},r=function(){function u(n){return e===!1?!1:e===""?n:e+n.charAt(0).toUpperCase()+n.substr(1)}var r={},f=t.createElement("div").style,e=function(){for(var t=["t","webkitT","MozT","msT","OT"],i,n=0,r=t.length;n<r;n++)if(i=t[n]+"ransform",i in f)return t[n].substr(0,t[n].length-1);return!1}(),o;return r.getTime=Date.now||function(){return(new Date).getTime()},r.extend=function(n,t){for(var i in t)n[i]=t[i]},r.addEvent=function(n,t,i,r){n.addEventListener(t,i,!!r)},r.removeEvent=function(n,t,i,r){n.removeEventListener(t,i,!!r)},r.prefixPointerEvent=function(t){return n.MSPointerEvent?"MSPointer"+t.charAt(9).toUpperCase()+t.substr(10):t},r.momentum=function(n,t,r,u,f,e){var h=n-t,s=i.abs(h)/r,o,c;return e=e===undefined?.0006:e,o=n+s*s/(2*e)*(h<0?-1:1),c=s/e,o<u?(o=f?u-f/2.5*(s/8):u,h=i.abs(o-n),c=h/s):o>0&&(o=f?f/2.5*(s/8):0,h=i.abs(n)+o,c=h/s),{destination:i.round(o),duration:c}},o=u("transform"),r.extend(r,{hasTransform:o!==!1,hasPerspective:u("perspective")in f,hasTouch:"ontouchstart"in n,hasPointer:n.PointerEvent||n.MSPointerEvent,hasTransition:u("transition")in f}),r.isBadAndroid=/Android /.test(n.navigator.appVersion)&&!/Chrome\/\d/.test(n.navigator.appVersion),r.extend(r.style={},{transform:o,transitionTimingFunction:u("transitionTimingFunction"),transitionDuration:u("transitionDuration"),transitionDelay:u("transitionDelay"),transformOrigin:u("transformOrigin")}),r.hasClass=function(n,t){var i=new RegExp("(^|\\s)"+t+"(\\s|$)");return i.test(n.className)},r.addClass=function(n,t){if(!r.hasClass(n,t)){var i=n.className.split(" ");i.push(t);n.className=i.join(" ")}},r.removeClass=function(n,t){if(r.hasClass(n,t)){var i=new RegExp("(^|\\s)"+t+"(\\s|$)","g");n.className=n.className.replace(i," ")}},r.offset=function(n){for(var t=-n.offsetLeft,i=-n.offsetTop;n=n.offsetParent;)t-=n.offsetLeft,i-=n.offsetTop;return{left:t,top:i}},r.preventDefaultException=function(n,t){for(var i in t)if(t[i].test(n[i]))return!0;return!1},r.extend(r.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),r.extend(r.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(n){return n*(2-n)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(n){return i.sqrt(1- --n*n)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(n){var t=4;return(n=n-1)*n*((t+1)*n+t)+1}},bounce:{style:"",fn:function(n){return(n/=1)<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}},elastic:{style:"",fn:function(n){var t=.22;return n===0?0:n==1?1:.4*i.pow(2,-10*n)*i.sin((n-t/4)*2*i.PI/t)+1}}}),r.tap=function(n,i){var r=t.createEvent("Event");r.initEvent(i,!0,!0);r.pageX=n.pageX;r.pageY=n.pageY;n.target.dispatchEvent(r)},r.click=function(n){var i=n.target,r;/(SELECT|INPUT|TEXTAREA)/i.test(i.tagName)||(r=t.createEvent("MouseEvents"),r.initMouseEvent("click",!0,!0,n.view,1,i.screenX,i.screenY,i.clientX,i.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,0,null),r._constructed=!0,i.dispatchEvent(r))},r}();u.prototype={version:"5.1.3",_init:function(){this._initEvents()},destroy:function(){this._initEvents(!0);this._execEvent("destroy")},_transitionEnd:function(n){n.target==this.scroller&&this.isInTransition&&(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd")))},_start:function(n){if((r.eventType[n.type]==1||n.button===0)&&this.enabled&&(!this.initiated||r.eventType[n.type]===this.initiated)){!this.options.preventDefault||r.isBadAndroid||r.preventDefaultException(n.target,this.options.preventDefaultException)||n.preventDefault();var u=n.touches?n.touches[0]:n,t;this.initiated=r.eventType[n.type];this.moved=!1;this.distX=0;this.distY=0;this.directionX=0;this.directionY=0;this.directionLocked=0;this._transitionTime();this.startTime=r.getTime();this.options.useTransition&&this.isInTransition?(this.isInTransition=!1,t=this.getComputedPosition(),this._translate(i.round(t.x),i.round(t.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,this._execEvent("scrollEnd"));this.startX=this.x;this.startY=this.y;this.absStartX=this.x;this.absStartY=this.y;this.pointX=u.pageX;this.pointY=u.pageY;this._execEvent("beforeScrollStart")}},_move:function(n){if(this.enabled&&r.eventType[n.type]===this.initiated){this.options.preventDefault&&n.preventDefault();var o=n.touches?n.touches[0]:n,t=o.pageX-this.pointX,u=o.pageY-this.pointY,c=r.getTime(),f,e,s,h;if(this.pointX=o.pageX,this.pointY=o.pageY,this.distX+=t,this.distY+=u,s=i.abs(this.distX),h=i.abs(this.distY),!(c-this.endTime>300)||!(s<10)||!(h<10)){if(this.directionLocked||this.options.freeScroll||(this.directionLocked=s>h+this.options.directionLockThreshold?"h":h>=s+this.options.directionLockThreshold?"v":"n"),this.directionLocked=="h"){if(this.options.eventPassthrough=="vertical")n.preventDefault();else if(this.options.eventPassthrough=="horizontal"){this.initiated=!1;return}u=0}else if(this.directionLocked=="v"){if(this.options.eventPassthrough=="horizontal")n.preventDefault();else if(this.options.eventPassthrough=="vertical"){this.initiated=!1;return}t=0}t=this.hasHorizontalScroll?t:0;u=this.hasVerticalScroll?u:0;f=this.x+t;e=this.y+u;(f>0||f<this.maxScrollX)&&(f=this.options.bounce?this.x+t/3:f>0?0:this.maxScrollX);(e>0||e<this.maxScrollY)&&(e=this.options.bounce?this.y+u/3:e>0?0:this.maxScrollY);this.directionX=t>0?-1:t<0?1:0;this.directionY=u>0?-1:u<0?1:0;this.moved||this._execEvent("scrollStart");this.moved=!0;this._translate(f,e);c-this.startTime>300&&(this.startTime=c,this.startX=this.x,this.startY=this.y)}}},_end:function(n){if(this.enabled&&r.eventType[n.type]===this.initiated){this.options.preventDefault&&!r.preventDefaultException(n.target,this.options.preventDefaultException)&&n.preventDefault();var a=n.changedTouches?n.changedTouches[0]:n,e,o,f=r.getTime()-this.startTime,t=i.round(this.x),u=i.round(this.y),c=i.abs(t-this.startX),l=i.abs(u-this.startY),s=0,h="";if(this.isInTransition=0,this.initiated=0,this.endTime=r.getTime(),!this.resetPosition(this.options.bounceTime)){if(this.scrollTo(t,u),!this.moved){this.options.tap&&r.tap(n,this.options.tap);this.options.click&&r.click(n);this._execEvent("scrollCancel");return}if(this._events.flick&&f<200&&c<100&&l<100){this._execEvent("flick");return}if(this.options.momentum&&f<300&&(e=this.hasHorizontalScroll?r.momentum(this.x,this.startX,f,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:t,duration:0},o=this.hasVerticalScroll?r.momentum(this.y,this.startY,f,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:u,duration:0},t=e.destination,u=o.destination,s=i.max(e.duration,o.duration),this.isInTransition=1),t!=this.x||u!=this.y){(t>0||t<this.maxScrollX||u>0||u<this.maxScrollY)&&(h=r.ease.quadratic);this.scrollTo(t,u,s,h);return}this._execEvent("scrollEnd")}}},_resize:function(){var n=this;clearTimeout(this.resizeTimeout);this.resizeTimeout=setTimeout(function(){n.refresh()},this.options.resizePolling)},resetPosition:function(n){var t=this.x,i=this.y;return(n=n||0,!this.hasHorizontalScroll||this.x>0?t=0:this.x<this.maxScrollX&&(t=this.maxScrollX),!this.hasVerticalScroll||this.y>0?i=0:this.y<this.maxScrollY&&(i=this.maxScrollY),t==this.x&&i==this.y)?!1:(this.scrollTo(t,i,n,this.options.bounceEasing),!0)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},refresh:function(){var n=this.wrapper.offsetHeight;this.wrapperWidth=this.wrapper.clientWidth;this.wrapperHeight=this.wrapper.clientHeight;this.scrollerWidth=this.scroller.offsetWidth;this.scrollerHeight=this.scroller.offsetHeight;this.maxScrollX=this.wrapperWidth-this.scrollerWidth;this.maxScrollY=this.wrapperHeight-this.scrollerHeight;this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<0;this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<0;this.hasHorizontalScroll||(this.maxScrollX=0,this.scrollerWidth=this.wrapperWidth);this.hasVerticalScroll||(this.maxScrollY=0,this.scrollerHeight=this.wrapperHeight);this.endTime=0;this.directionX=0;this.directionY=0;this.wrapperOffset=r.offset(this.wrapper);this._execEvent("refresh");this.resetPosition()},on:function(n,t){this._events[n]||(this._events[n]=[]);this._events[n].push(t)},off:function(n,t){if(this._events[n]){var i=this._events[n].indexOf(t);i>-1&&this._events[n].splice(i,1)}},_execEvent:function(n){if(this._events[n]){var t=0,i=this._events[n].length;if(i)for(;t<i;t++)this._events[n][t].apply(this,[].slice.call(arguments,1))}},scrollBy:function(n,t,i,r){n=this.x+n;t=this.y+t;i=i||0;this.scrollTo(n,t,i,r)},scrollTo:function(n,t,i,u){u=u||r.ease.circular;this.isInTransition=this.options.useTransition&&i>0;!i||this.options.useTransition&&u.style?(this._transitionTimingFunction(u.style),this._transitionTime(i),this._translate(n,t)):this._animate(n,t,i,u.fn)},scrollToElement:function(n,t,u,f,e){if(n=n.nodeType?n:this.scroller.querySelector(n),n){var o=r.offset(n);o.left-=this.wrapperOffset.left;o.top-=this.wrapperOffset.top;u===!0&&(u=i.round(n.offsetWidth/2-this.wrapper.offsetWidth/2));f===!0&&(f=i.round(n.offsetHeight/2-this.wrapper.offsetHeight/2));o.left-=u||0;o.top-=f||0;o.left=o.left>0?0:o.left<this.maxScrollX?this.maxScrollX:o.left;o.top=o.top>0?0:o.top<this.maxScrollY?this.maxScrollY:o.top;t=t===undefined||t===null||t==="auto"?i.max(i.abs(this.x-o.left),i.abs(this.y-o.top)):t;this.scrollTo(o.left,o.top,t,e)}},_transitionTime:function(n){n=n||0;this.scrollerStyle[r.style.transitionDuration]=n+"ms";!n&&r.isBadAndroid&&(this.scrollerStyle[r.style.transitionDuration]="0.001s")},_transitionTimingFunction:function(n){this.scrollerStyle[r.style.transitionTimingFunction]=n},_translate:function(n,t){this.options.useTransform?this.scrollerStyle[r.style.transform]="translate("+n+"px,"+t+"px)"+this.translateZ:(n=i.round(n),t=i.round(t),this.scrollerStyle.left=n+"px",this.scrollerStyle.top=t+"px");this.x=n;this.y=t},_initEvents:function(t){var i=t?r.removeEvent:r.addEvent,u=this.options.bindToWrapper?this.wrapper:n;i(n,"orientationchange",this);i(n,"resize",this);this.options.click&&i(this.wrapper,"click",this,!0);this.options.disableMouse||(i(this.wrapper,"mousedown",this),i(u,"mousemove",this),i(u,"mousecancel",this),i(u,"mouseup",this));r.hasPointer&&!this.options.disablePointer&&(i(this.wrapper,r.prefixPointerEvent("pointerdown"),this),i(u,r.prefixPointerEvent("pointermove"),this),i(u,r.prefixPointerEvent("pointercancel"),this),i(u,r.prefixPointerEvent("pointerup"),this));r.hasTouch&&!this.options.disableTouch&&(i(this.wrapper,"touchstart",this),i(u,"touchmove",this),i(u,"touchcancel",this),i(u,"touchend",this));i(this.scroller,"transitionend",this);i(this.scroller,"webkitTransitionEnd",this);i(this.scroller,"oTransitionEnd",this);i(this.scroller,"MSTransitionEnd",this)},getComputedPosition:function(){var t=n.getComputedStyle(this.scroller,null),i,u;return this.options.useTransform?(t=t[r.style.transform].split(")")[0].split(", "),i=+(t[12]||t[4]),u=+(t[13]||t[5])):(i=+t.left.replace(/[^-\d.]/g,""),u=+t.top.replace(/[^-\d.]/g,"")),{x:i,y:u}},_animate:function(n,t,i,u){function o(){var a=r.getTime(),y,p,v;if(a>=l){e.isAnimating=!1;e._translate(n,t);e.resetPosition(e.options.bounceTime)||e._execEvent("scrollEnd");return}a=(a-c)/i;v=u(a);y=(n-s)*v+s;p=(t-h)*v+h;e._translate(y,p);e.isAnimating&&f(o)}var e=this,s=this.x,h=this.y,c=r.getTime(),l=c+i;this.isAnimating=!0;o()},handleEvent:function(n){switch(n.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(n);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(n);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(n);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(n);break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._wheel(n);break;case"keydown":this._key(n);break;case"click":n._constructed||(n.preventDefault(),n.stopPropagation())}}};u.utils=r;typeof module!="undefined"&&module.exports?module.exports=u:n.IScroll=u}(window,document,Math),function(n){function i(){}function t(n){function u(t){t.prototype.option||(t.prototype.option=function(t){n.isPlainObject(t)&&(this.options=n.extend(!0,this.options,t))})}function f(i,u){n.fn[i]=function(f){var h,e,o;if("string"==typeof f){for(var c=r.call(arguments,1),s=0,l=this.length;l>s;s++)if(h=this[s],e=n.data(h,i),e)if(n.isFunction(e[f])&&"_"!==f.charAt(0)){if(o=e[f].apply(e,c),void 0!==o)return o}else t("no such method '"+f+"' for "+i+" instance");else t("cannot call methods on "+i+" prior to initialization; attempted to call '"+f+"'");return this}return this.each(function(){var t=n.data(this,i);t?(t.option(f),t._init()):(t=new u(this,f),n.data(this,i,t))})}}if(n){var t="undefined"==typeof console?i:function(n){console.error(n)};return n.bridget=function(n,t){u(t);f(n,t)},n.bridget}}var r=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],t):t(n.jQuery)}(window),function(n){var t=document.documentElement,r=function(){},i,u;t.addEventListener?r=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(r=function(t,i,r){t[i+r]=r.handleEvent?function(){var t=n.event;t.target=t.target||t.srcElement;r.handleEvent.call(r,t)}:function(){var i=n.event;i.target=i.target||i.srcElement;r.call(t,i)};t.attachEvent("on"+i,t[i+r])});i=function(){};t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=void 0}});u={bind:r,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",u):n.eventie=u}(this),function(n){function t(n){"function"==typeof n&&(t.isReady?n():u.push(n))}function i(n){var o="readystatechange"===n.type&&"complete"!==r.readyState,i,f,e;if(!t.isReady&&!o)for(t.isReady=!0,i=0,f=u.length;f>i;i++)e=u[i],e()}function f(u){return u.bind(r,"DOMContentLoaded",i),u.bind(r,"readystatechange",i),u.bind(n,"load",i),t}var r=n.document,u=[];t.isReady=!1;"function"==typeof define&&define.amd?(t.isReady="function"==typeof requirejs,define("doc-ready/doc-ready",["eventie/eventie"],f)):n.docReady=f(n.eventie)}(this),function(){function i(){}function r(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function t(n){return function(){return this[n].apply(this,arguments)}}var n=i.prototype;n.getListeners=function(n){var r,t,i=this._getEvents();if("object"==typeof n){r={};for(t in i)i.hasOwnProperty(t)&&n.test(t)&&(r[t]=i[t])}else r=i[n]||(i[n]=[]);return r};n.flattenListeners=function(n){for(var i=[],t=0;n.length>t;t+=1)i.push(n[t].listener);return i};n.getListenersAsObject=function(n){var t,i=this.getListeners(n);return i instanceof Array&&(t={},t[n]=i),t||i};n.addListener=function(n,t){var i,u=this.getListenersAsObject(n),f="object"==typeof t;for(i in u)u.hasOwnProperty(i)&&-1===r(u[i],t)&&u[i].push(f?t:{listener:t,once:!1});return this};n.on=t("addListener");n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})};n.once=t("addOnceListener");n.defineEvent=function(n){return this.getListeners(n),this};n.defineEvents=function(n){for(var t=0;n.length>t;t+=1)this.defineEvent(n[t]);return this};n.removeListener=function(n,t){var f,i,u=this.getListenersAsObject(n);for(i in u)u.hasOwnProperty(i)&&(f=r(u[i],t),-1!==f&&u[i].splice(f,1));return this};n.off=t("removeListener");n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)};n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)};n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&("function"==typeof u?f.call(this,r,u):e.call(this,r,u));return this};n.removeEvent=function(n){var t,r=typeof n,i=this._getEvents();if("string"===r)delete i[n];else if("object"===r)for(t in i)i.hasOwnProperty(t)&&n.test(t)&&delete i[t];else delete this._events;return this};n.removeAllListeners=t("removeEvent");n.emitEvent=function(n,t){var i,f,r,e,u=this.getListenersAsObject(n);for(r in u)if(u.hasOwnProperty(r))for(f=u[r].length;f--;)i=u[r][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this};n.trigger=t("emitEvent");n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)};n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this};n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0};n._getEvents=function(){return this._events||(this._events={})};"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return i}):"object"==typeof module&&module.exports?module.exports=i:this.EventEmitter=i}.call(this),function(n){function t(n){if(n){if("string"==typeof r[n])return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var t,u=0,f=i.length;f>u;u++)if(t=i[u]+n,"string"==typeof r[t])return t}}var i="Webkit Moz ms Ms O".split(" "),r=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return t}):n.getStyleProperty=t}(window),function(n){function i(n){var t=parseFloat(n),i=-1===n.indexOf("%")&&!isNaN(t);return i&&t}function o(){for(var i,r={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0,u=t.length;u>n;n++)i=t[n],r[i]=0;return r}function u(n){function s(n){var s,f,l,c,a,v;if("string"==typeof n&&(n=document.querySelector(n)),n&&"object"==typeof n&&n.nodeType){if(s=e(n),"none"===s.display)return o();f={};f.width=n.offsetWidth;f.height=n.offsetHeight;for(var nt=f.isBorderBox=!(!r||!s[r]||"border-box"!==s[r]),y=0,tt=t.length;tt>y;y++)l=t[y],c=s[l],c=h(n,c),a=parseFloat(c),f[l]=isNaN(a)?0:a;var p=f.paddingLeft+f.paddingRight,w=f.paddingTop+f.paddingBottom,it=f.marginLeft+f.marginRight,rt=f.marginTop+f.marginBottom,b=f.borderLeftWidth+f.borderRightWidth,k=f.borderTopWidth+f.borderBottomWidth,d=nt&&u,g=i(s.width);return g!==!1&&(f.width=g+(d?0:p+b)),v=i(s.height),v!==!1&&(f.height=v+(d?0:w+k)),f.innerWidth=f.width-(p+b),f.innerHeight=f.height-(w+k),f.outerWidth=f.width+it,f.outerHeight=f.height+rt,f}}function h(n,t){if(f||-1===t.indexOf("%"))return t;var i=n.style,e=i.left,r=n.runtimeStyle,u=r&&r.left;return u&&(r.left=n.currentStyle.left),i.left=t,t=i.pixelLeft,i.left=e,u&&(r.left=u),t}var u,r=n("boxSizing");return function(){var n,t,f;r&&(n=document.createElement("div"),n.style.width="200px",n.style.padding="1px 2px 3px 4px",n.style.borderStyle="solid",n.style.borderWidth="1px 2px 3px 4px",n.style[r]="border-box",t=document.body||document.documentElement,t.appendChild(n),f=e(n),u=200===i(f.width),t.removeChild(n))}(),s}var r=document.defaultView,f=r&&r.getComputedStyle,e=f?function(n){return r.getComputedStyle(n,null)}:function(n){return n.currentStyle},t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],u):n.getSize=u(n.getStyleProperty)}(window),function(n,t){function r(n,t){return n[f](t)}function u(n){if(!n.parentNode){var t=document.createDocumentFragment();t.appendChild(n)}}function s(n,t){u(n);for(var r=n.parentNode.querySelectorAll(t),i=0,f=r.length;f>i;i++)if(r[i]===n)return!0;return!1}function h(n,t){return u(n),r(n,t)}var i,f=function(){var r,n;if(t.matchesSelector)return"matchesSelector";for(var u=["webkit","moz","ms","o"],i=0,f=u.length;f>i;i++)if(r=u[i],n=r+"MatchesSelector",t[n])return n}(),e,o;f?(e=document.createElement("div"),o=r(e,"div"),i=o?r:h):i=s;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return i}):window.matchesSelector=i}(this,Element.prototype),function(n){function r(n,t){for(var i in t)n[i]=t[i];return n}function u(n){for(var t in n)return!1;return t=null,!0}function f(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}function i(n,t,i){function o(n,t){n&&(this.element=n,this.layout=t,this.position={x:0,y:0},this._create())}var s=i("transition"),h=i("transform"),w=s&&h,b=!!i("perspective"),c={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[s],l=["transform","transition","transitionDuration","transitionProperty"],k=function(){for(var n,t,u={},r=0,f=l.length;f>r;r++)n=l[r],t=i(n),t&&t!==n&&(u[n]=t);return u}(),a,v,y,p;return r(o.prototype,n.prototype),o.prototype._create=function(){this._transition={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},o.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},o.prototype.getSize=function(){this.size=t(this.element)},o.prototype.css=function(n){var r=this.element.style,t,i;for(t in n)i=k[t]||t,r[i]=n[t]},o.prototype.getPosition=function(){var r=e(this.element),u=this.layout.options,f=u.isOriginLeft,o=u.isOriginTop,n=parseInt(r[f?"left":"right"],10),t=parseInt(r[o?"top":"bottom"],10),i;n=isNaN(n)?0:n;t=isNaN(t)?0:t;i=this.layout.size;n-=f?i.paddingLeft:i.paddingRight;t-=o?i.paddingTop:i.paddingBottom;this.position.x=n;this.position.y=t},o.prototype.layoutPosition=function(){var t=this.layout.size,i=this.layout.options,n={};i.isOriginLeft?(n.left=this.position.x+t.paddingLeft+"px",n.right=""):(n.right=this.position.x+t.paddingRight+"px",n.left="");i.isOriginTop?(n.top=this.position.y+t.paddingTop+"px",n.bottom=""):(n.bottom=this.position.y+t.paddingBottom+"px",n.top="");this.css(n);this.emitEvent("layout",[this])},a=b?function(n,t){return"translate3d("+n+"px, "+t+"px, 0)"}:function(n,t){return"translate("+n+"px, "+t+"px)"},o.prototype._transitionTo=function(n,t){this.getPosition();var e=this.position.x,o=this.position.y,s=parseInt(n,10),h=parseInt(t,10),c=s===this.position.x&&h===this.position.y;if(this.setPosition(n,t),c&&!this.isTransitioning)return this.layoutPosition(),void 0;var i=n-e,r=t-o,u={},f=this.layout.options;i=f.isOriginLeft?i:-i;r=f.isOriginTop?r:-r;u.transform=a(i,r);this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},o.prototype.goTo=function(n,t){this.setPosition(n,t);this.layoutPosition()},o.prototype.moveTo=w?o.prototype._transitionTo:o.prototype.goTo,o.prototype.setPosition=function(n,t){this.position.x=parseInt(n,10);this.position.y=parseInt(t,10)},o.prototype._nonTransition=function(n){this.css(n.to);n.isCleaning&&this._removeStyles(n.to);for(var t in n.onTransitionEnd)n.onTransitionEnd[t].call(this)},o.prototype._transition=function(n){var i,t,r;if(!parseFloat(this.layout.options.transitionDuration))return this._nonTransition(n),void 0;i=this._transition;for(t in n.onTransitionEnd)i.onEnd[t]=n.onTransitionEnd[t];for(t in n.to)i.ingProperties[t]=!0,n.isCleaning&&(i.clean[t]=!0);n.from&&(this.css(n.from),r=this.element.offsetHeight,r=null);this.enableTransition(n.to);this.css(n.to);this.isTransitioning=!0},v=h&&f(h)+",opacity",o.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:v,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(c,this,!1))},o.prototype.transition=o.prototype[s?"_transition":"_nonTransition"],o.prototype.onwebkitTransitionEnd=function(n){this.ontransitionend(n)},o.prototype.onotransitionend=function(n){this.ontransitionend(n)},y={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"},o.prototype.ontransitionend=function(n){var t,i,r;n.target===this.element&&(t=this._transition,i=y[n.propertyName]||n.propertyName,(delete t.ingProperties[i],u(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[n.propertyName]="",delete t.clean[i]),i in t.onEnd)&&(r=t.onEnd[i],r.call(this),delete t.onEnd[i]),this.emitEvent("transitionEnd",[this]))},o.prototype.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(c,this,!1);this.isTransitioning=!1},o.prototype._removeStyles=function(n){var t={},i;for(i in n)t[i]="";this.css(t)},p={transitionProperty:"",transitionDuration:""},o.prototype.removeTransitionStyles=function(){this.css(p)},o.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element);this.emitEvent("remove",[this])},o.prototype.remove=function(){if(!s||!parseFloat(this.layout.options.transitionDuration))return this.removeElem(),void 0;var n=this;this.on("transitionEnd",function(){return n.removeElem(),!0});this.hide()},o.prototype.reveal=function(){delete this.isHidden;this.css({display:""});var n=this.layout.options;this.transition({from:n.hiddenStyle,to:n.visibleStyle,isCleaning:!0})},o.prototype.hide=function(){this.isHidden=!0;this.css({display:""});var n=this.layout.options;this.transition({from:n.visibleStyle,to:n.hiddenStyle,isCleaning:!0,onTransitionEnd:{opacity:function(){this.isHidden&&this.css({display:"none"})}}})},o.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},o}var t=document.defaultView,e=t&&t.getComputedStyle?function(n){return t.getComputedStyle(n,null)}:function(n){return n.currentStyle};"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property"],i):(n.Outlayer={},n.Outlayer.Item=i(n.EventEmitter,n.getSize,n.getStyleProperty))}(window),function(n){function t(n,t){for(var i in t)n[i]=t[i];return n}function c(n){return"[object Array]"===a.call(n)}function u(n){var t=[],i,r;if(c(n))t=n;else if(n&&"number"==typeof n.length)for(i=0,r=n.length;r>i;i++)t.push(n[i]);else t.push(n);return t}function e(n,t){var i=v(t,n);-1!==i&&t.splice(i,1)}function l(n){return n.replace(/(.)([A-Z])/g,function(n,t,i){return t+"-"+i}).toLowerCase()}function o(o,c,a,v,y,p){function w(n,i){if("string"==typeof n&&(n=s.querySelector(n)),!n||!f(n))return r&&r.error("Bad "+this.settings.namespace+" element: "+n),void 0;this.element=n;this.options=t({},this.options);this.option(i);var u=++d;this.element.outlayerGUID=u;k[u]=this;this._create();this.options.isInitLayout&&this.layout()}function b(n,i){n.prototype[i]=t({},w.prototype[i])}var d=0,k={};return w.prototype.settings={namespace:"outlayer",item:p},w.prototype.options={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},t(w.prototype,a.prototype),w.prototype.option=function(n){t(this.options,n)},w.prototype._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);t(this.element.style,this.options.containerStyle);this.options.isResizeBound&&this.bindResize()},w.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},w.prototype._itemize=function(n){for(var i,r,u=this._filterFindItemElements(n),e=this.settings.item,f=[],t=0,o=u.length;o>t;t++)i=u[t],r=new e(i,this),f.push(r);return f},w.prototype._filterFindItemElements=function(n){var t;n=u(n);for(var r=this.options.itemSelector,i=[],e=0,h=n.length;h>e;e++)if(t=n[e],f(t))if(r){y(t,r)&&i.push(t);for(var s=t.querySelectorAll(r),o=0,c=s.length;c>o;o++)i.push(s[o])}else i.push(t);return i},w.prototype.getItemElements=function(){for(var t=[],n=0,i=this.items.length;i>n;n++)t.push(this.items[n].element);return t},w.prototype.layout=function(){this._resetLayout();this._manageStamps();var n=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,n);this._isLayoutInited=!0},w.prototype._init=w.prototype.layout,w.prototype._resetLayout=function(){this.getSize()},w.prototype.getSize=function(){this.size=v(this.element)},w.prototype._getMeasurement=function(n,t){var r,i=this.options[n];i?("string"==typeof i?r=this.element.querySelector(i):f(i)&&(r=i),this[n]=r?v(r)[t]:i):this[n]=0},w.prototype.layoutItems=function(n,t){n=this._getItemsForLayout(n);this._layoutItems(n,t);this._postLayout()},w.prototype._getItemsForLayout=function(n){for(var t,r=[],i=0,u=n.length;u>i;i++)t=n[i],t.isIgnored||r.push(t);return r},w.prototype._layoutItems=function(n,t){var r,i;if(!n||!n.length)return this.emitEvent("layoutComplete",[this,n]),void 0;this._itemsOn(n,"layout",function(){this.emitEvent("layoutComplete",[this,n])});for(var f=[],u=0,e=n.length;e>u;u++)r=n[u],i=this._getItemLayoutPosition(r),i.item=r,i.isInstant=t,f.push(i);this._processLayoutQueue(f)},w.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},w.prototype._processLayoutQueue=function(n){for(var t,i=0,r=n.length;r>i;i++)t=n[i],this._positionItem(t.item,t.x,t.y,t.isInstant)},w.prototype._positionItem=function(n,t,i,r){r?n.goTo(t,i):n.moveTo(t,i)},w.prototype._postLayout=function(){var n=this._getContainerSize();n&&(this._setContainerMeasure(n.width,!0),this._setContainerMeasure(n.height,!1))},w.prototype._getContainerSize=h,w.prototype._setContainerMeasure=function(n,t){if(void 0!==n){var i=this.size;i.isBorderBox&&(n+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth);n=Math.max(n,0);this.element.style[t?"width":"height"]=n+"px"}},w.prototype._itemsOn=function(n,t,i){function e(){return f++,f===o&&i.call(s),!0}for(var u,f=0,o=n.length,s=this,r=0,h=n.length;h>r;r++){u=n[r];u.on(t,e)}},w.prototype.ignore=function(n){var t=this.getItem(n);t&&(t.isIgnored=!0)},w.prototype.unignore=function(n){var t=this.getItem(n);t&&delete t.isIgnored},w.prototype.stamp=function(n){var t,i,r;if(n=this._find(n))for(this.stamps=this.stamps.concat(n),t=0,i=n.length;i>t;t++)r=n[t],this.ignore(r)},w.prototype.unstamp=function(n){var t,r,i;if(n=this._find(n))for(t=0,r=n.length;r>t;t++)i=n[t],e(i,this.stamps),this.unignore(i)},w.prototype._find=function(n){if(n)return"string"==typeof n&&(n=this.element.querySelectorAll(n)),n=u(n)},w.prototype._manageStamps=function(){var n,t,i;if(this.stamps&&this.stamps.length)for(this._getBoundingRect(),n=0,t=this.stamps.length;t>n;n++)i=this.stamps[n],this._manageStamp(i)},w.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),n=this.size;this._boundingRect={left:t.left+n.paddingLeft+n.borderLeftWidth,top:t.top+n.paddingTop+n.borderTopWidth,right:t.right-(n.paddingRight+n.borderRightWidth),bottom:t.bottom-(n.paddingBottom+n.borderBottomWidth)}},w.prototype._manageStamp=h,w.prototype._getElementOffset=function(n){var t=n.getBoundingClientRect(),i=this._boundingRect,r=v(n);return{left:t.left-i.left-r.marginLeft,top:t.top-i.top-r.marginTop,right:i.right-t.right-r.marginRight,bottom:i.bottom-t.bottom-r.marginBottom}},w.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},w.prototype.bindResize=function(){this.isResizeBound||(o.bind(n,"resize",this),this.isResizeBound=!0)},w.prototype.unbindResize=function(){o.unbind(n,"resize",this);this.isResizeBound=!1},w.prototype.onresize=function(){function t(){n.resize();delete n.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var n=this;this.resizeTimeout=setTimeout(t,100)},w.prototype.resize=function(){var n=v(this.element),t=this.size&&n;t&&n.innerWidth===this.size.innerWidth||this.layout()},w.prototype.addItems=function(n){var t=this._itemize(n);return t.length&&(this.items=this.items.concat(t)),t},w.prototype.appended=function(n){var t=this.addItems(n);t.length&&(this.layoutItems(t,!0),this.reveal(t))},w.prototype.prepended=function(n){var t=this._itemize(n),i;t.length&&(i=this.items.slice(0),this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i))},w.prototype.reveal=function(n){var t,i,r;if(n&&n.length)for(t=0,i=n.length;i>t;t++)r=n[t],r.reveal()},w.prototype.hide=function(n){var t,i,r;if(n&&n.length)for(t=0,i=n.length;i>t;t++)r=n[t],r.hide()},w.prototype.getItem=function(n){for(var t,i=0,r=this.items.length;r>i;i++)if(t=this.items[i],t.element===n)return t},w.prototype.getItems=function(n){var r,t;if(n&&n.length){for(var u=[],i=0,f=n.length;f>i;i++)r=n[i],t=this.getItem(r),t&&u.push(t);return u}},w.prototype.remove=function(n){var t,i,f,r;if(n=u(n),t=this.getItems(n),t&&t.length)for(this._itemsOn(t,"remove",function(){this.emitEvent("removeComplete",[this,t])}),i=0,f=t.length;f>i;i++)r=t[i],r.remove(),e(r,this.items)},w.prototype.destroy=function(){var t=this.element.style,n,r,u;for(t.height="",t.position="",t.width="",n=0,r=this.items.length;r>n;n++)u=this.items[n],u.destroy();this.unbindResize();delete this.element.outlayerGUID;i&&i.removeData(this.element,this.settings.namespace)},w.data=function(n){var t=n&&n.outlayerGUID;return t&&k[t]},w.create=function(n,u){function f(){w.apply(this,arguments)}return t(f.prototype,w.prototype),b(f,"options"),b(f,"settings"),t(f.prototype.options,u),f.prototype.settings.namespace=n,f.data=w.data,f.Item=function(){p.apply(this,arguments)},f.Item.prototype=new p,f.prototype.settings.item=f.Item,c(function(){for(var o,t,u,h,c=l(n),a=s.querySelectorAll(".js-"+c),v="data-"+c+"-options",e=0,y=a.length;y>e;e++){t=a[e];u=t.getAttribute(v);try{o=u&&JSON.parse(u)}catch(p){r&&r.error("Error parsing "+v+" on "+t.nodeName.toLowerCase()+(t.id?"#"+t.id:"")+": "+p);continue}h=new f(t,o);i&&i.data(t,n,h)}}),i&&i.bridget&&i.bridget(n,f),f},w.Item=p,w}var s=n.document,r=n.console,i=n.jQuery,h=function(){},a=Object.prototype.toString,f="object"==typeof HTMLElement?function(n){return n instanceof HTMLElement}:function(n){return n&&"object"==typeof n&&1===n.nodeType&&"string"==typeof n.nodeName},v=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1};"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","doc-ready/doc-ready","eventEmitter/EventEmitter","get-size/get-size","matches-selector/matches-selector","./item"],o):n.Outlayer=o(n.eventie,n.docReady,n.EventEmitter,n.getSize,n.matchesSelector,n.Outlayer.Item)}(window),function(n){function t(n,t){var r=n.create("masonry");return r.prototype._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();var n=this.cols;for(this.colYs=[];n--;)this.colYs.push(0);this.maxY=0},r.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var n=this.items[0],i=n&&n.element;this.columnWidth=i&&t(i).outerWidth||this.containerWidth}this.columnWidth+=this.gutter;this.cols=Math.floor((this.containerWidth+this.gutter)/this.columnWidth);this.cols=Math.max(this.cols,1)},r.prototype.getContainerWidth=function(){var i=this.options.isFitWidth?this.element.parentNode:this.element,n=t(i);this.containerWidth=n&&n.innerWidth},r.prototype._getItemLayoutPosition=function(n){n.getSize();var e=n.size.outerWidth%this.columnWidth,s=e&&1>e?"round":"ceil",t=Math[s](n.size.outerWidth/this.columnWidth);t=Math.min(t,this.cols);for(var r=this._getColGroup(t),u=Math.min.apply(Math,r),o=i(r,u),h={x:this.columnWidth*o,y:u},c=u+n.size.outerHeight,l=this.cols+1-r.length,f=0;l>f;f++)this.colYs[o+f]=c;return h},r.prototype._getColGroup=function(n){var i;if(2>n)return this.colYs;for(var r=[],u=this.cols+1-n,t=0;u>t;t++)i=this.colYs.slice(t,t+n),r[t]=Math.max.apply(Math,i);return r},r.prototype._manageStamp=function(n){var e=t(n),r=this._getElementOffset(n),o=this.options.isOriginLeft?r.left:r.right,h=o+e.outerWidth,f=Math.floor(o/this.columnWidth),u,s,i;for(f=Math.max(0,f),u=Math.floor(h/this.columnWidth),u=Math.min(this.cols-1,u),s=(this.options.isOriginTop?r.top:r.bottom)+e.outerHeight,i=f;u>=i;i++)this.colYs[i]=Math.max(s,this.colYs[i])},r.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var n={height:this.maxY};return this.options.isFitWidth&&(n.width=this._getContainerFitWidth()),n},r.prototype._getContainerFitWidth=function(){for(var n=0,t=this.cols;--t&&0===this.colYs[t];)n++;return(this.cols-n)*this.columnWidth-this.gutter},r.prototype.resize=function(){var n=this.containerWidth;this.getContainerWidth();n!==this.containerWidth&&this.layout()},r}var i=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var r,i=0,u=n.length;u>i;i++)if(r=n[i],r===t)return i;return-1};"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],t):n.Masonry=t(n.Outlayer,n.getSize)}(window),function(n){"use strict";n.picturefill=function(){for(var f,e,r,h,s,t,o,u=n.document.getElementsByTagName("span"),i=0,c=u.length;i<c;i++)if(u[i].getAttribute("data-picture")!==null){for(f=u[i].getElementsByTagName("span"),e=[],r=0,h=f.length;r<h;r++)s=f[r].getAttribute("data-media"),(!s||n.matchMedia&&n.matchMedia(s).matches)&&e.push(f[r]);if(t=u[i].getElementsByTagName("img")[0],e.length){if(o=e.pop(),t&&t.parentNode.nodeName!=="NOSCRIPT"){if(o===t.parentNode)continue}else t=n.document.createElement("img"),t.alt=u[i].getAttribute("data-alt");t.src=o.getAttribute("data-src");o.appendChild(t);t.removeAttribute("width");t.removeAttribute("height")}else t&&t.parentNode.removeChild(t)}};n.addEventListener&&n.addEventListener("resize",n.picturefill,!1)}(this),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){function l(t){var i={},r=/^jQuery\d+$/;return n.each(t.attributes,function(n,t){t.specified&&!r.test(t.name)&&(i[t.name]=t.value)}),i}function r(t,i){var u=this,r=n(u);if(u.value==r.attr("placeholder")&&r.hasClass("placeholder"))if(r.data("placeholder-password")){if(r=r.hide().nextAll('input[type="password"]:first').show().attr("id",r.removeAttr("id").data("placeholder-id")),t===!0)return r[0].value=i;r.focus()}else u.value="",r.removeClass("placeholder"),u==o()&&u.select()}function f(){var i,u=this,t=n(u),f=this.id;if(u.value===""){if(u.type==="password"){if(!t.data("placeholder-textinput")){try{i=t.clone().attr({type:"text"})}catch(e){i=n("<input>").attr(n.extend(l(this),{type:"text"}))}i.removeAttr("name").data({"placeholder-password":t,"placeholder-id":f}).bind("focus.placeholder",r);t.data({"placeholder-textinput":i,"placeholder-id":f}).before(i)}t=t.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",f).show()}t.addClass("placeholder");t[0].value=t.attr("placeholder")}else t.removeClass("placeholder")}function o(){try{return document.activeElement}catch(n){}}var s=Object.prototype.toString.call(window.operamini)=="[object OperaMini]",u="placeholder"in document.createElement("input")&&!s,e="placeholder"in document.createElement("textarea")&&!s,h=n.valHooks,c=n.propHooks,i,t;u&&e?(t=n.fn.placeholder=function(){return this},t.input=t.textarea=!0):(t=n.fn.placeholder=function(){var n=this;return n.filter((u?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":r,"blur.placeholder":f}).data("placeholder-enabled",!0).trigger("blur.placeholder"),n},t.input=u,t.textarea=e,i={get:function(t){var i=n(t),r=i.data("placeholder-password");return r?r[0].value:i.data("placeholder-enabled")&&i.hasClass("placeholder")?"":t.value},set:function(t,i){var u=n(t),e=u.data("placeholder-password");return e?e[0].value=i:u.data("placeholder-enabled")?(i===""?(t.value=i,t!=o()&&f.call(t)):u.hasClass("placeholder")?r.call(t,!0,i)||(t.value=i):t.value=i,u):t.value=i}},u||(h.input=i,c.value=i),e||(h.textarea=i,c.value=i),n(function(){n(document).delegate("form","submit.placeholder",function(){var t=n(".placeholder",this).each(r);setTimeout(function(){t.each(f)},10)})}),n(window).bind("beforeunload.placeholder",function(){n(".placeholder").each(function(){this.value=""})}))});intel=intel||{};intel.formPlaceholder=function(n){function t(){n("input, textarea").placeholder()}return{initialize:t}}(jQuery);jQuery(document).ready(intel.formPlaceholder.initialize);window.$FlexPaper=window.getDocViewer=window.$FlexPaper=function(n){var t=n==="undefined"?"":n;return window["FlexPaperViewer_Instance"+t].getApi()};window.FlexPaperViewerEmbedding=window.$f=function(n,t){var i=t.config,r,f,u,e="",o="",s="",h="";_WMode=i.WMode!=null||i.wmmode!=null?i.wmmode||i.WMode:"window";var c=i.DOC!=null?unescape(i.DOC):null,l="FlexPaperViewer_Instance"+(n==="undefined"?"":n),a=i.JSONDataType!=null?i.JSONDataType:"json";c!=null&&(r=FLEXPAPER.translateUrlByFormat(c,"swf"));r=i.SwfFile!=null?i.SwfFile:r;r=i.SWFFile!=null?i.SWFFile:r;f=i.PDFFile!=null?i.PDFFile:f;u=i.IMGFiles!=null?i.IMGFiles:u;u=i.PageImagePattern!=null?i.PageImagePattern:u;e=i.JSONFile!=null?i.JSONFile:e;o=i.jsDirectory!=null?i.jsDirectory:"js/";s=i.cssDirectory!=null?i.cssDirectory:"css/";h=i.localeDirectory!=null?i.localeDirectory:"locale/";r!=null&&r.indexOf("{")==0&&r.indexOf("[*,")>0&&r.indexOf("]")>0&&(r=escape(r));window[l]=flashembed(n,{src:o+"../FlexPaperViewer.swf",version:[10,0],expressInstall:"js/expressinstall.swf",wmode:_WMode},{ElementId:n,SwfFile:r,PdfFile:f,IMGFiles:u,JSONFile:e,useCustomJSONFormat:i.useCustomJSONFormat,JSONPageDataFormat:i.JSONPageDataFormat,JSONDataType:a,Scale:i.Scale!=null?i.Scale:.8,ZoomTransition:i.ZoomTransition!=null?i.ZoomTransition:"easeOut",ZoomTime:i.ZoomTime!=null?i.ZoomTime:.5,ZoomInterval:i.ZoomInterval?i.ZoomInterval:.2,FitPageOnLoad:i.FitPageOnLoad!=null?i.FitPageOnLoad:!1,FitWidthOnLoad:i.FitWidthOnLoad!=null?i.FitWidthOnLoad:!1,FullScreenAsMaxWindow:i.FullScreenAsMaxWindow!=null?i.FullScreenAsMaxWindow:!1,ProgressiveLoading:i.ProgressiveLoading!=null?i.ProgressiveLoading:!1,MinZoomSize:i.MinZoomSize!=null?i.MinZoomSize:.2,MaxZoomSize:i.MaxZoomSize!=null?i.MaxZoomSize:5,SearchMatchAll:i.SearchMatchAll!=null?i.SearchMatchAll:!1,SearchServiceUrl:i.SearchServiceUrl,InitViewMode:i.InitViewMode,BitmapBasedRendering:i.BitmapBasedRendering!=null?i.BitmapBasedRendering:!1,StartAtPage:i.StartAtPage,PrintPaperAsBitmap:i.PrintPaperAsBitmap!=null?i.PrintPaperAsBitmap:!1,AutoAdjustPrintSize:i.AutoAdjustPrintSize!=null?i.AutoAdjustPrintSize:!1,EnableCornerDragging:i.EnableCornerDragging!=null?i.EnableCornerDragging:!0,BackgroundColor:i.BackgroundColor,PanelColor:i.PanelColor,BackgroundAlpha:i.BackgroundAlpha,UIConfig:i.UIConfig,ViewModeToolsVisible:i.ViewModeToolsVisible!=null?i.ViewModeToolsVisible:!0,ZoomToolsVisible:i.ZoomToolsVisible!=null?i.ZoomToolsVisible:!0,NavToolsVisible:i.NavToolsVisible!=null?i.NavToolsVisible:!0,CursorToolsVisible:i.SearchToolsVisible!=null?i.CursorToolsVisible:!0,SearchToolsVisible:i.SearchToolsVisible!=null?i.SearchToolsVisible:!0,StickyTools:i.StickyTools,Toolbar:i.Toolbar,DocSizeQueryService:i.DocSizeQueryService,RenderingOrder:i.RenderingOrder,localeChain:i.localeChain!=null?i.localeChain:"en_US",jsDirectory:o,cssDirectory:s,localeDirectory:h,key:i.key})},function(){window.FLEXPAPER||(window.FLEXPAPER={});FLEXPAPER.getLocationHashParameter=function(n){var t=location.hash.substr(1);return t.indexOf(n+"=")>=0?t.substr(t.indexOf(n+"=")).split("&")[0].split("=")[1]:null};FLEXPAPER.translateUrlByFormat=function(n,t){return n.indexOf("{")==0&&t!="swf"&&(n=n.substring(1,n.lastIndexOf(",")),n=n.replace("[*,0]","{page}")),n!=null&&n.indexOf("{format}")>0?n.replace("{format}",t):null};FLEXPAPER.animateDenyEffect=function(n,t,i,r){window.setTimeout(function(){var e=i/(2*r+1),o=1+60/(r*r),u,f;for($(n).stop(!0,!0),u=0;u<=r;u++){for(f=-1;f<=1;f+=2)$(n).animate({marginLeft:(u!=r)*f*t},{duration:e,queue:!0});t/=o}},500)};FLEXPAPER.initLoginForm=function(n,t){jQuery(document.body).css("background-color","#dedede");var i=new Image;jQuery(i).bind("load",function(){jQuery(document.body).append("<div id='loginForm'><form class='flexpaper_htmldialog' method='POST' style='display:none;top:100px;margin:"+(jQuery(window).height()>500?"50px auto":"0px auto")+"'><div class='flexpaper_publications flexpaper_publication_csstransforms3d' style='overflow-y:hidden;overflow-x:hidden;text-align:center;background: #f7f7f7;margin: -25px -25px 0px;padding: 15px 25px 0px 25px;'><div class='flexpaper_publication flexpaper_publication_csstransforms3d' id='flexpaper_publication1'><img src='"+n.replace("{page}",1)+"' /><\/div><h1 class='flexpaper_htmldialog-title'>password protected publication<\/h1><input type='password' id='txt_flexpaper_password' name='txt_flexpaper_password' class='flexpaper_htmldialog-input' placeholder='Enter password'><input type='submit' value='Submit' class='flexpaper_htmldialog-button'><\/div><\/form><\/div>");var i=t?1e3:0,r=t?i/3:0;jQuery(".flexpaper_htmldialog").css({height:"0px",display:"block"});jQuery(".flexpaper_htmldialog").animate({height:"400px",top:"0px"},{duration:r,complete:function(){jQuery(".flexpaper_htmldialog").css({height:""});jQuery(".flexpaper_publication").animate({opacity:1},{step:function(n){var t=-40,r=t- -7,i=r*n;jQuery(".flexpaper_publication").css({"-webkit-transform":"perspective(300) rotateY("+(t-i)+"deg)","-moz-transform":"rotateY("+(t-i)+"deg)","box-shadow":"5px 5px 20px rgba(51, 51, 51, "+n+")"})},duration:i})}})});i.src=n.replace("{page}",1)}}(),function(){function t(n,t){if(t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n}function f(n,t){var r=[],i;for(i in n)n.hasOwnProperty(i)&&(r[i]=t(n[i]));return r}function e(i,u,f){var e=navigator.userAgent.toLowerCase(),c={version:(e.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(e),opera:/opera/.test(e),msie:/msie/.test(e)&&!/opera/.test(e),mozilla:/mozilla/.test(e)&&!/(compatible|webkit)/.test(e),chrome:/chrome/.test(e)},h,s;if(f.RenderingOrder||f.SwfFile==null||(f.RenderingOrder="flash"),f.RenderingOrder.indexOf("html5")==0){confirm("The FlexPaper GPL version does not support HTML5 rendering. Do you want to navigate to our download page for more details?")&&(location.href="http://flexpaper.devaldi.com/download.jsp?ref=FlexPaper");return}if(f.RenderingOrder.indexOf("html")==0){confirm("The FlexPaper GPL version does not support HTML4 rendering. Do you want to navigate to our download page for more details?")&&(location.href="http://flexpaper.devaldi.com/download.jsp?ref=FlexPaper");return}n.isSupported(u.version)?i.innerHTML=n.getHTML(u,f):u.expressInstall&&n.isSupported([6,65])?i.innerHTML=n.getHTML(t(u,{src:u.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title}):(i.innerHTML.replace(/\s/g,"")||(h=document.location.protocol=="https:"?"https://":"http://",i.innerHTML="<h2>Your browser is not compatible with FlexPaper<\/h2><h3>Upgrade to a newer browser or download Adobe Flash Player 10 or higher.<\/h3><p>Click on the icon below to download the latest version of Adobe Flash<a href='http://www.adobe.com/go/getflashplayer'><img src='"+h+"www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /><\/a>",i.tagName=="A"&&(i.onclick=function(){location.href=o})),u.onFail&&(s=u.onFail.call(this),typeof s=="string"&&(i.innerHTML=s)));r&&(window[u.id]=document.getElementById(u.id));t(this,{getRoot:function(){return i},getOptions:function(){return u},getConf:function(){return f},getApi:function(){return i.firstChild}})}var r=document.all,o="http://www.adobe.com/go/getflashplayer",s=typeof jQuery=="function",h=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,c=function(){try{return"ontouchstart"in document.documentElement}catch(n){return!1}}(),u={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:!0,allowscriptaccess:"always",quality:"high",allowFullScreenInteractive:!0,version:[10,0],onFail:null,expressInstall:null,w3c:!1,cachebusting:!1},n,i;if(window.isTouchScreen=c,window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}}),window.dispatchJQueryEvent=function(n,t,i){jQuery("#"+n).trigger(t,i)},window.flashembed=function(n,i,r){if(typeof n=="string"&&(n=document.getElementById(n.replace("#",""))),n)return n.onclick=function(){return!1},typeof i=="string"&&(i={src:i}),new e(n,t(t({},u),i),r)},n=t(window.flashembed,{conf:u,getVersion:function(){var t,n;try{n=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(i){try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");n=t&&t.GetVariable("$version")}catch(r){try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");n=t&&t.GetVariable("$version")}catch(u){}}}return n=h.exec(n),n?[n[1],n[3]]:[0,0]},asString:function(t){var i,u,r;if(t===null||t===undefined)return null;i=typeof t;i=="object"&&t.push&&(i="array");switch(i){case"string":return t=t.replace(new RegExp('(["\\\\])',"g"),"\\$1"),t=t.replace(/^\s?(\d+\.?\d+)%/,"$1pct"),'"'+t+'"';case"array":return"["+f(t,function(t){return n.asString(t)}).join(",")+"]";case"function":return'"function()"';case"object":u=[];for(r in t)t.hasOwnProperty(r)&&u.push('"'+r+'":'+n.asString(t[r]));return"{"+u.join(",")+"}"}return String(t).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(i,u){var f,s,e,o,h;i=t({},i);i.id=i.id+(" "+Math.random()).slice(9);f='<object width="'+i.width+'" height="'+i.height+'" id="'+i.id+'" name="'+i.id+'"';i.cachebusting&&(i.src+=(i.src.indexOf("?")!=-1?"&":"?")+Math.random());f+=i.w3c||!r?' data="'+i.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';f+=">";(i.w3c||r)&&(f+='<param name="movie" value="'+i.src+'" />');i.width=i.height=i.id=i.w3c=i.src=null;i.onFail=i.version=i.expressInstall=null;for(s in i)i[s]&&(f+='<param name="'+s+'" value="'+i[s]+'" />');if(e="",u){for(o in u)u[o]&&o!="Toolbar"&&(h=u[o],e+=o+"="+(/function|object/.test(typeof h)?n.asString(h):h)+"&");e=e.slice(0,-1);f+='<param name="flashvars" value=\''+e+"' />"}return f+"<\/object>"},isSupported:function(n){return i[0]>n[0]||i[0]==n[0]&&i[1]>=n[1]}}),i=n.getVersion(),s)jQuery.fn.flashembed=function(n,t){return this.each(function(){jQuery(this).data("flashembed",flashembed(this,n,t))})},jQuery.fn.FlexPaperViewer=function(n){this.element=new FlexPaperViewerEmbedding(this.attr("id"),n)};else throw new Error("jQuery missing!");}();jQuery(function(){jQuery("#documentViewer").bind("onExternalLinkClicked",function(n,t){window.open(t,"_flexpaper_exturl")});jQuery("#documentViewer").bind("onProgress",function(){});jQuery("#documentViewer").bind("onDocumentLoading",function(){});jQuery("#documentViewer").bind("onPageLoading",function(){});jQuery("#documentViewer").bind("onCurrentPageChanged",function(n,t){var i,r,u;jQuery(this).data("TrackingNumber")&&(i=window._gaq||[],window._gaq=i,r=jQuery(this).data("TrackingDocument"),u=r.substr(0,r.indexOf(".pdf")+4),i.push(["_setAccount",jQuery(this).data("TrackingNumber")]),i.push(["_trackEvent","PDF Documents","Page View",u+" - page "+t]),function(){var n=document.createElement("script"),t;n.type="text/javascript";n.async=!0;n.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(n,t)}())});jQuery("#documentViewer").bind("onDocumentLoaded",function(){});jQuery("#documentViewer").bind("onPageLoaded",function(){});jQuery("#documentViewer").bind("onErrorLoadingPage",function(){});jQuery("#documentViewer").bind("onDocumentLoadedError",function(){});jQuery("#documentViewer").bind("onDocumentPrinted",function(){})});intel=intel||{};intel.rwdtables=function(n){function s(){i=n(".responsive-table-component table");i.each(function(t,i){if(b(i),h(i),y(i),e(i),n(i).hasClass("sorting"))n(i).on("click","th",a);n(i).on("click",".category",i,o);c(i)});d();n(window).resize(function(){i.each(function(n,i){u(i);t(i)});f!==undefined&&f.refresh()});n(".responsive-table-component .table-responsive").scroll(k)}function h(t){var i=n(t).find("tr").length+1,r=n(t).find(".category");r.find("td").attr("colspan",i)}function c(i){var r=n("<div>",{"class":"dotted-border",height:n(i).height()}).prependTo(n(i).parents(".container")).hide();i.dottedBorder=r;t(i)}function t(t){l(t)?(t.dottedBorder.height(n(t).outerHeight()).show(),n(t).addClass("overflowed")):(t.dottedBorder.hide(),n(t).removeClass("overflowed"))}function e(t){if(n(t).hasClass("sticky")){var i=n(t).clone().css("opacity",0).insertBefore(n(t).parent()).animate({opacity:1},100).addClass("sticky-column").on("click",".category",t,o);i.find("th:not(:first-child),td:not(:first-child)").remove();t.stickyColumn=i}}function r(t){n(t).hasClass("sticky")&&(t.stickyColumn.remove(),e(t),u(t))}function u(){i.each(function(t,i){if(i.stickyColumn&&i.stickyColumn.length){var r=i.stickyColumn.width();n(i).find("th").first().css({minWidth:r,width:r});i.stickyColumn.find("tr").each(function(t){if(n(this).hasClass("collapsed"))return!0;n(this).height(n(i).find("tr:eq("+t+")").height())})}})}function l(t){var i=n(t).parent().width(),r=n(t).width();return i-r>-10?!1:!0}function a(t){var i=n(t.currentTarget),r=i.parents("table")[0],f=i.index(),u=!1;i.hasClass("ascending")?(n(r).find("th").removeClass("ascending descending"),i.addClass("descending"),u=!0):(n(r).find("th").removeClass("ascending descending"),i.addClass("ascending"));v(r,f,u)}function v(t,i,u){var f={categories:[],data:{},result:[]};t.originalRows.each(function(t,i){if(n(i).hasClass("category"))f.categories.push(i);else{var r=n(i).attr("data-category-id")||"general";f.data[r]===undefined&&(f.data[r]=[]);f.data[r].push(i)}});n.each(f.data,function(t,r){var e=r.sort(function(t,r){var u=n(t).find("td:eq("+i+")").html(),f=n(r).find("td:eq("+i+")").html();return u>f?1:u<f?-1:0});u===!0&&e.reverse();f.data[t]=e});n.each(f.categories,function(t,i){var r=n(i).attr("data-category-id");f.result.push(i);f.result=f.result.concat(f.data[r])});f.result=f.result.concat(f.data.general);n(f.result).appendTo(t);w(t);r(t)}function y(t){if(t.originalRows.filter(".category").length>1)return!1;t.showmore=n(t).parents(".responsive-table-component").find(".show-more-container");t.showmore.show();t.originalRows.filter(":gt(4)").toggleClass("collapsed");n(t).addClass("table-collapsed");n(t).parents(".responsive-table-component").on("click",".show-more-items, .show-less-items",function(n){n.preventDefault();p(t)})}function p(i){n(i).hasClass("table-collapsed")?(i.originalRows.removeClass("collapsed"),n(i).removeClass("table-collapsed").parents(".responsive-table-component").addClass("opened")):(i.originalRows.filter(":gt(4)").addClass("collapsed"),n(i).addClass("table-collapsed").parents(".responsive-table-component").removeClass("opened"));t(i);r(i)}function w(t){n(t).hasClass("table-collapsed")&&(t.originalRows.removeClass("collapsed"),n(t).find("tbody tr:gt(4)").addClass("collapsed"))}function b(t){t.originalRows=n(t).find("tbody").children();var i=n(t).find(".category");i.length>1&&(t.activeCategory=i.first().attr("data-category-id"),t.originalRows.each(function(i,r){if(i===0)return n(r).addClass("active"),!0;if(n(r).hasClass("category"))return!0;n(r).attr("data-category-id")===t.activeCategory?n(r).removeClass("collapsed"):n(r).addClass("collapsed")}))}function o(i){var u=i.data,f=n(i.currentTarget).attr("data-category-id"),e=n(i.currentTarget).index();u.originalRows.eq(e).toggleClass("active");u.originalRows.each(function(t,i){if(n(i).hasClass("category"))return!0;n(i).attr("data-category-id")===f&&n(i).toggleClass("collapsed")});r(u);t(u)}function k(){var t=n(this),i=t.find("table"),r=t.scrollLeft(),u=i.outerWidth()-t.outerWidth();r===u?t.parent().addClass("scrolled"):t.parent().removeClass("scrolled")}function d(){n(".table-responsive").length&&Modernizr.appleios===!1&&(f=new IScroll(".table-responsive",{eventPassthrough:!0,scrollX:!0,scrollY:!1,bounce:!1}))}var i,f;return{initialize:s,sizeStickyColumn:u,toggleDottedBorder:t}}(jQuery);jQuery(document).ready(intel.rwdtables.initialize);intel=intel||{};intel.featureTest=function(){function n(){Modernizr.addTest("ipad",function(){return!!navigator.userAgent.match(/iPad/i)});Modernizr.addTest("iphone",function(){return!!navigator.userAgent.match(/iPhone/i)});Modernizr.addTest("ipod",function(){return!!navigator.userAgent.match(/iPod/i)});Modernizr.addTest("appleios",function(){return Modernizr.ipad||Modernizr.ipod||Modernizr.iphone})}return{initialize:n}}(jQuery);jQuery(document).ready(intel.featureTest.initialize);intel=intel||{};intel.breakpoints=function(n){function e(){r=n(window).width();t=o();u=i[t][0];n(window).on("resize",f);n(window).on("orientationchange",f)}function o(){for(var n=0;n<i.length;n++)if(r<i[n][1])return n}function f(){var f,e;for(r=n(window).width(),f=0;f<i.length;f++)if(r<i[f][1])return t===f?!1:(e=f-t,t=f,u=i[f][0],n(window).trigger("changeBreakpoint",{bp:u,direction:e}),u)}function s(){return u}function h(){return t}function c(){return r}var r,t,u,i=[["xs",480],["ms",768],["sm",992],["md",1200],["lg",1650],["xl",999999],];return{initialize:e,getBreakpoint:s,getBreakpointNumber:h,getWindowWidth:c}}(jQuery);jQuery(document).ready(intel.breakpoints.initialize);intel=intel||{};intel.showmore=function(n){function e(){t=n("[data-showmore]");o();s({animationDuration:0});n(window).on("changeBreakpoint",c);window.picturefill()}function o(){t.each(function(t,i){var o,s,e;for(i.bp=[],i.multipleShown=1,i.increaseMultiple=n(i).attr("data-showmore-increase-multiple")-1||1,o=0;o<f.length;o++)i.bp[o]=n(i).attr(f[o]);for(i.bp[0]===undefined&&(i.bp[0]=4),e=0;e<i.bp.length;e++)i.bp[e]!==undefined?s=i.bp[e]=parseInt(i.bp[e],10):i.bp[e]=s;n(i).on("click",".show-more-items",function(){return u(i),!1});n(i).on("click",".show-less-items",function(){return r(i),!1});n(i).on("click",".show-more",function(){n(i).find(".view-all-only").length===0&&h(i)})})}function s(n){t.each(function(t,r){i(r,n)})}function i(t,i){var f=t.bp[intel.breakpoints.getBreakpointNumber()],e=f*t.multipleShown,o=n(t).find(".blade-item"),r=0,s=n.extend({animationDuration:250},i),u=s.animationDuration||250;o.each(function(t,i){t<e?(n(i).find("[data-picture-off]").removeAttr("data-picture-off").attr("data-picture",""),n(i).slideDown(u)):(n(i).slideUp(u).find("[data-picture]").removeAttr("data-picture").attr("data-picture-off",""),r+=1)});r||n(t).hasClass("opened")?n(t).find(".show-more-container").css("display","block"):n(t).find(".show-more-container").css("display","none")}function h(t){n(t).hasClass("opened")?r(t):u(t)}function u(t){n(t).addClass("opened");t.multipleShown+=t.increaseMultiple;i(t);window.picturefill()}function r(t){n(t).removeClass("opened");t.multipleShown=1;i(t)}function c(){t.each(function(n,t){r(t)});window.picturefill()}var t,f=["data-showmore-xs","data-showmore-ms","data-showmore-sm","data-showmore-md","data-showmore-lg","data-showmore-xl"];return{initialize:e}}(jQuery);jQuery(document).ready(intel.showmore.initialize);intel=intel||{};intel.videoDetail=function(n){function u(){n(".video-detail-component").on("click",".show-more-items",t);n(".video-detail-component").on("click",".show-less-items",t);n(".pdf-component").on("click",".show-more-items",i);n(".pdf-component").on("click",".show-less-items",i);n(".image-detail-component").on("click",".show-more-items",r);n(".image-detail-component").on("click",".show-less-items",r)}function t(t){t.preventDefault();n(this).parents(".video-info").toggleClass("opened")}function i(t){t.preventDefault();n(this).parents(".pdf-description").toggleClass("opened")}function r(t){t.preventDefault();n(this).parents(".description").toggleClass("opened")}return{initialize:u}}(jQuery);jQuery(document).ready(intel.videoDetail.initialize);intel=intel||{};intel.menu=function(n){function d(){t.on("click",".navbar-toggle",nt);t.on("click",".drawer-link",v);t.on("click","button.back",y);t.on("click",".search-button",it);t.on("click",".navbar-search .clear",ut);t.on("click",".toggle-menu-items",ht);t.on("click","#language-accordion",lt);f.on("click",function(){h();r()});t.swipe({fallbackToMouseEvents:!1,swipeLeft:r,threshold:40});t.find(".drawer a").swipe({excludedElements:"button, input, select, textarea, .back, .noSwipe",fallbackToMouseEvents:!1,swipeLeft:r,tap:v,threshold:40});FastClick.attach(document.body);n(window).on("resize",l);n(window).on("orientationchange",l);n(window).trigger("resize")}function l(){at=b.outerWidth();g();window.clearTimeout(k);k=window.setTimeout(function(){e(o())},300)}function g(){if(intel.breakpoints.getBreakpointNumber()<2||Modernizr.touch){var i=n(window).height()-parseInt(p.css("marginTop")),u=n(document).height(),e=intel.breakpoints.getBreakpointNumber()<2?2:3,t=intel.breakpoints.getWindowWidth()/e;w.css({height:i,width:t});n(".drawer-level-5").width(t*2);f.height(u)}else w.height("auto"),r()}function nt(){s.is(":visible")?y():t.hasClass("active")?r():(intel.breakpoints.getBreakpointNumber()<2&&(i.length=2),tt())}function r(){if(!t.hasClass("active"))return!1;t.removeClass("active");e(o());f.stop().fadeOut(300)}function tt(){if(t.hasClass("active"))return!1;h();c();t.addClass("active");e(o());f.stop().fadeIn(300)}function it(){t.hasClass("active-search")?h():rt()}function rt(){r();f.stop().fadeIn(300);t.addClass("active-search");t.on("keyup","#mobile-search",ft);t.find("#mobile-search").focus()}function h(){f.stop().fadeOut(300);t.removeClass("active-search");t.off("keyup","#mobile-search");u.removeClass("active-search-results active-search-best-match")}function ut(n){n.preventDefault();t.find("#mobile-search").val("");t.find(".navbar-search .clear").hide();a()}function ft(){var n=t.find("#mobile-search").val();/match/i.exec(n)?(et(),t.find(".navbar-search .clear").show()):n.length?(ot(),t.find(".navbar-search .clear").show()):(a(),t.find(".navbar-search .clear").hide())}function et(){u.removeClass("active-search-results");u.addClass("active-search-best-match")}function ot(){u.removeClass("active-search-best-match");u.addClass("active-search-results")}function a(){u.removeClass("active-search-results active-search-best-match")}function v(t){t.preventDefault();st(n(this));c();e(o())}function st(n){var t=n.attr("id"),r=n.attr("href");n.hasClass("drawer-2-link")?(i[0]="#"+t,i[1]=r,i.length=2):n.hasClass("drawer-3-link")?(i[1]="#"+t,i[2]=r,i.length=3):n.hasClass("drawer-4-link")?(i[1]="#"+t,i[2]=undefined,i[3]=r):n.hasClass("drawer-5-link")?(i[1]="#"+t,i[2]=undefined,i[3]=undefined,i[4]=r):n.hasClass("drawer-embedded-link")&&(i[1]="#drawer-2-audience-embedded",i[2]="#"+t,i[3]=r)}function c(){var r,f,u;for(t.find(".drawer ul").hide(),b.find("ul").show(),t.find("a").removeClass("active"),r=0;r<i.length;r++){for(f=!1,u=r+1;u<i.length;u++)i[u]&&(f=!0);r<i.length+1&&f&&n(i[r]).addClass("active");n(n(i[r]).attr("href")).show()}}function ht(){n(".show-more-toggle, .show-less-toggle, .shortened-mobile-menu").slideToggle(150)}function e(t){for(var r=ct(t),i=1;i<=t.length;i++)n(".drawer-level-"+i).css({left:t[i-1],paddingBottom:r});p.delay(200).animate({top:r},200)}function ct(n){return n[0]<-5&&t.hasClass("active")?(s.delay(200).slideDown(200),s.outerHeight()):(s.delay(200).slideUp(200),0)}function o(){var u=[0,"","","",""],f=0,e,r;if(!t.hasClass("active"))return["","","","",""];for(r=0;r<=i.length;r++)i[r]!==undefined&&(u[r]=f,f=f+n(i[r]).outerWidth());if(e=f-intel.breakpoints.getWindowWidth(),e>0)for(r=0;r<u.length;r++)u[r]!==""&&(u[r]-=e);return u}function y(){i.length=i.length-1;c();e(o())}function lt(t){if(t.preventDefault(),t.stopPropagation(),n(t.target).hasClass("accordion-toggle")){var i=n(t.target).attr("data-target");n(this).find(".accordion-panel").collapse("hide");n(i).collapse("show");n(".accordion-toggle").removeClass("expanded");n(i).parent().find(".accordion-toggle").addClass("expanded")}}var t=n("nav.global-menu"),p=t.find(".navbar-menu"),s=t.find("button.back"),i=["#drawer-1-products","#drawer-2-products-intel-inside",undefined,"#drawer-4-products-intel-inside"],u=n("#search-results-mobile"),w=t.find(".drawer"),b=n(".drawer-level-1"),f=n(".shader"),k,at;return{initialize:d}}(jQuery);jQuery(document).ready(intel.menu.initialize);intel=intel||{};intel.bladegroup=function(n){function i(){if(t=n(".blade-group .blade"),t.length){n(".blade-group").on("click",".blade header",function(){var t=n(this).parents(".blade")[0];r(t)});n(window).on("changeBreakpoint",function(){intel.breakpoints.getBreakpointNumber()>2&&t.each(function(t,i){this.mobileexpanded=!1;n(i).find(".row").removeAttr("style");n(i).removeClass("expanded")})})}}function r(n){if(intel.breakpoints.getBreakpointNumber()>2)return!1;n.mobileexpanded?f(n):u(n)}function u(t){n(t).addClass("expanded");n(t).find(".row").stop().slideDown();t.mobileexpanded=!0;var i=n(t).offset().top-n(".navbar-fixed-top").height()-10;n("html, body").animate({scrollTop:i},500)}function f(t){n(t).removeClass("expanded");n(t).find(".row").not("header").stop().slideUp();t.mobileexpanded=!1}var t;return{initialize:i}}(jQuery);jQuery(document).ready(intel.bladegroup.initialize);intel=intel||{};intel.overview=function(n){function f(){t=n(".overview-component");r=t.filter(".overview-component-1, .overview-component-4").find(".blade-item-0");t.on("click",".blade-item",e);t.on("click",".has-video .blade-image",c);n('a[data-toggle="pill"]').on("shown.bs.tab",i);n(window).on("resize",i);i()}function i(){s(r);h(r)}function e(t){(u(n(this).siblings(".active")),n(this).hasClass("blade-item-0")||intel.breakpoints.getBreakpointNumber()>1)||(n(this).hasClass("active")&&n(t.target).is("h2")?u(n(this)):o(n(this)))}function u(t){t.removeClass("active").find(".blade-image, .description, .cta-item, .link-list, .anchor-links, .disclaimer, form").slideUp(300,function(){n(this).removeAttr("style")})}function o(n){n.addClass("active").find(".blade-image, .description, .cta-item, .link-list, .anchor-links, .disclaimer, form").slideDown(300)}function s(t){t.each(function(t,i){var u=n(i).find(".blade-image").height(),r=n(i).find(".blade-item-content"),f=r.outerHeight(),e=(u-f)/2;r.css("top",e)})}function h(t){t.each(function(){var t=n(this).find(".blade-image"),i=t.find("img"),r=(t.height()-i.height())/2;i.css("top",r)})}function c(){n(this).addClass("activeVideo");n(this).next().css("z-index",400);videoPlayer.canPlayWithoutInteraction()&&videoPlayer.play()}var t,r;return{initialize:f}}(jQuery);jQuery(document).ready(intel.overview.initialize);intel=intel||{};intel.overviewtags=function(n){function o(){t=n(".page-tools");e=n(".mobile-page-tools");u=t.find(".tool-links");f=t.find(".social-links");t.on("click",".more-tags",i);t.on("click",".less-tags",i);t.on("click",".more-social",r);t.on("click",".less-social",r);e.on("click",".more-social",function(t){t.preventDefault();n(this).parent().toggleClass("expanded")})}function i(){u.find(".tag-wrapper-expanded").fadeToggle(350)}function r(){if(n(this).parents(".mobile-page-tools").length)return!0;f.find(".social-links-expanded").fadeToggle(350)}var t,u,f,e;return{initialize:o}}(jQuery);jQuery(document).ready(intel.overviewtags.initialize);intel=intel||{};intel.masthead=function(n){function u(){t=n(".masthead-component");r=n(".has-video");i();t.on("click",".jump-links h3",f);t.on("click",".jump-links a",e);r.on("click",".blade-image",o);n(window).on("changeBreakpoint",function(){i();t.find(".jump-links").removeClass("active")})}function i(){t.each(function(t,i){if(n(i).hasClass("has-image")&&intel.breakpoints.getBreakpointNumber()>1){var u=n(i).find(".masthead-content"),r=n(i).find(".text"),f=(u.height()-r.outerHeight())/2;r.css("top",f+"px")}else n(i).find(".text").removeAttr("style")})}function f(){n(this).parent().toggleClass("active")}function e(t){if(t.preventDefault(),location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var i=n(this.hash);if(i=i.length?i:n("[name="+this.hash.slice(1)+"]"),i.length)return n("html,body").animate({scrollTop:i.offset().top-60},1e3),!1}}function o(){n(this).addClass("activeVideo");n(this).next().css("z-index",400);videoPlayer.canPlayWithoutInteraction()&&videoPlayer.play()}var t,r;return{initialize:u,centerMastheadText:i}}(jQuery);jQuery(document).ready(intel.masthead.initialize);intel=intel||{};intel.storytelling=function(n){function o(){var o=n(".social-share-cta .share-button"),s=n(".social-share-cta .share-options");o.on("click",function(){o.slideUp();s.slideDown()});t=n(".storytelling-component");f=t.find(".social-links");e=f.find(".social-links-expanded");t.on("click",".more-social",u);t.on("click",".less-social",u);n(window).on("resize",function(){r&&window.clearTimeout(r);r=window.setTimeout(function(){i()},300)});n(window).on("orientationchange",function(){i()})}function i(){e.each(function(){var t=n(this);if(t.is(":visible")){var i=t.parents(".social-links").find(".more-social"),r=i.position().left+i.width(),u=r-t.outerWidth(!1);t.css("left",u+"px")}})}function u(t){n(t.delegateTarget).find(".social-links-expanded").fadeToggle(350);i();t.preventDefault()}var t,f,e,r;return{initialize:o}}(jQuery);jQuery(document).ready(intel.storytelling.initialize);intel=intel||{};intel.homepage=function(n){function e(){r=n(".homepage-tile");t=n(".news-items a");n(".homepage-lang-selector").on("click touchend","a",o);r.find(".tile-info").on("touchend",function(){var t=n(this).parent();s.call(t)});t.length>1?h():t.show()}function o(t){n(this).addClass("selected");n(".homepage-lang-selector a").not(this).removeClass("selected");t.preventDefault()}function s(){n(this).toggleClass("active");r.find(".tile-info").not(this).removeClass("active")}function h(){t.eq(0).show();u=setInterval(i,8e3);n(".homepage-ticker").on("click",".previous",function(){clearInterval(u);f()});n(".homepage-ticker").on("click",".next",function(){clearInterval(u);i()});Modernizr.touch&&n(".homepage-ticker").swipe({fallbackToMouseEvents:!1,swipeLeft:i,swipeRight:f,threshold:40})}function i(){t.filter(":visible").fadeOut(300,function(){var i=n(this).next();i.length||(i=t.first());i.fadeIn(300)})}function f(){t.filter(":visible").fadeOut(300,function(){var i=n(this).prev();i.length||(i=t.last());i.fadeIn(300)})}var r,t,u;return{initialize:e}}(jQuery);jQuery(document).ready(intel.homepage.initialize);intel=intel||{};intel.pdf=function(n){function i(){t=n("#flexpaper-container");t.length&&r(t.attr("data-pdf-url"))}function r(t){typeof t=="string"&&n("#flexpaper-container").FlexPaperViewer({config:{SwfFile:"./scripts/flexpaper/FlexPaperViewer.swf",PDFFile:t}})}var t;return{initialize:i}}(jQuery);jQuery(document).ready(intel.pdf.initialize);intel=intel||{};intel.infographic=function(n){function t(){n(".shorten-longer-image").each(function(){i(this)})}function i(t){var i=n(t).find(".image-container img").height();if(i>600){n(t).addClass("has-long-image");n(t).on("click",".expand-collapse-image a",function(){return n(t).toggleClass("long-image-active"),!1})}else n(t).removeClass("has-long-image"),n(t).off("click",".expand-collapse-image a")}return{initialize:t}}(jQuery);jQuery(window).on("load",intel.infographic.initialize).on("changeBreakpoint",intel.infographic.initialize);intel=intel||{};intel.formValidation=function(n){function l(){c=n("form[data-validate]");c.on("submit",p);e=n("input[data-validate]").each(a);e.on("focus keyup",v);(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i))&&w()}function a(t,i){i.validations=n.map(k,function(t,r){return r==="mirror"?t.rules[0].target=n(i).attr("data-validate-mirror"):r==="emailMirror"&&(t.rules[0].target=n(i).attr("data-validate-emailMirror")),n(i).is("[data-validate-"+r+"]")?t:undefined})[0]}function v(){var t=u(this);h(t,this.validationSignature)||(t.reduce(f)&&n(this).removeClass("invalid"),this.validationSignature=t,this.hasOwnProperty("message")&&this.message.remove(),this.message=i(this),this.message.insertAfter(this));r(e);this.message.show()}function u(t){var u,f,e,i,r,o,s;if(t.hasOwnProperty("validations")===!1)return[!0];u=n(t).val();f=[];for(e in t.validations.rules)i=t.validations.rules[e],r=!1,i.mirror||i.emailMirror?(o=u===n("#"+i.target).val(),s=u.length>0,r=o&&s):(r=i.regex.test(u),i.antipattern&&(r=!r)),f.push(r);return f}function i(t){var i=n("<div>",{"class":"validation-messages"}),r,u,f;if(t.hasOwnProperty("validations")===!1)return i;t.validations.hasOwnProperty("instruction")&&i.append(n("<div>",{"class":"instruction",text:t.validations.instruction}));for(r in t.validations.rules)u=t.validations.rules[r],u.antipattern?t.validationSignature[r]||i.append(n("<div>",{"class":"rule broken",text:u.message})):(f=n("<div>",{"class":"rule",text:u.message}),t.validationSignature[r]&&f.addClass("confirmed"),i.append(f));return i}function y(){return n("<div>",{"class":"rule broken",text:"Field input is required"})}function s(){return n("<div>",{"class":"rule broken",text:"Select an option to proceed"})}function r(n){n.each(function(){var n=!0;this.hasOwnProperty("validationSignature")&&(n=this.validationSignature.reduce(f));this.hasOwnProperty("message")&&n&&this.message.hide()})}function f(n,t){return n&&t?!0:!1}function p(){var t=n(this).find("input"),h=n(this).find("select"),l=n(this).find(".group-controls.required"),c=l.filter(function(){return n(this).find("input:checked").length===0}),e=t.filter(function(){var t=n(this).val().length===0,i=n(this).is("[required]");return t&&i}),a=t.filter(function(){var n=u(this),t=n.reduce(f);return!t}),o=h.filter(function(){var t=n(this)[0].options[n(this)[0].selectedIndex].value==="",i=n(this).is("[required]");return t&&i});return t.removeClass("invalid"),h.removeClass("invalid"),n(this).removeClass("onSubmitErrors"),r(t),r(h),r(l),a.length||e.length||o.length||c.length?(n(this).addClass("onSubmitErrors"),a.add(e).addClass("invalid").first().focus(),e.length&&e.each(function(){this.validationSignature=u(this);this.hasOwnProperty("message")&&this.message.remove();this.message=i(this).append(y());this.message.insertAfter(this)}),o.length&&(o.addClass("invalid").first().focus(),o.each(function(){this.message=i(this).append(s());this.message.insertAfter(this)})),c.length&&c.each(function(){this.message=i(this).append(s());this.message.insertAfter(this)}),!1):void 0}function h(n,t){if(!n||!t||n.length!=t.length)return!1;for(var i=0,r=n.length;i<r;i++)if(n[i]instanceof Array&&t[i]instanceof Array){if(!h(n[i],t[i]))return!1}else if(n[i]!=t[i])return!1;return!0}function w(){for(var n=0;o[n];n++)o[n].getAttribute("for")&&(o[n].onclick=b)}function b(){if(t=document.getElementById(this.getAttribute("for")),["radio","checkbox"].indexOf(t.getAttribute("type"))!=-1){var i=!!n(t).prop("checked");n(t).prop("checked",!i)}else t.focus()}var c,e,k={email:{rules:[{message:"Please enter a valid email",regex:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/},{antipattern:!0,message:"Contains spaces",regex:/\s/}]},password:{instruction:"Create your new password",rules:[{message:"8 to 15 characters",regex:/^.{8,15}$/},{message:"At least one letter",regex:/[A-Za-z]/},{message:"At least one number",regex:/[0-9]/},{message:"At least one special character",regex:/[\!\@\#\$\%\^\&\*\(\)\_\+\-\=\œ\∑\´\®\†\¥\¨\ˆ\ø\π\å\ß\∂\ƒ\©\˙\∆\˚\Ω\≈\ç\√\∫\˜\µ\[\]\{\}\≤\≥\,\.\<\>\?]/},{antipattern:!0,message:"Contains spaces",regex:/\s/},{antipattern:!0,message:"Non-english characters",regex:/[^\x00-\x7F]+/},{antipattern:!0,message:"3 repeated characters",regex:/(.)\1{2,}/}]},mirror:{rules:[{mirror:!0,message:"Passwords should match"}]},emailMirror:{rules:[{mirror:!0,message:"Emails should match"}]}},o=document.getElementsByTagName("label"),t;return{initialize:l}}(jQuery);jQuery(document).ready(intel.formValidation.initialize);$(document).ready(function(){getAutoSignInUrl();$("#mButtonExit").on("click",function(){$(".mvcmodalbackground").addClass("hidden")});$(function(){$(".focus").focus()});$(".login-component").keydown(function(n){n.which===27&&hideModalPopup()})});showEdit="";$(function(){bindEventsListeners();showEdit=$("#hdnFlag").val();showEdit=="Email"?$("#EmailSectionDiv").find("#mButtonUpdateEmail").trigger("click"):showEdit=="EmailInvalid"?$("#EmailSectionDiv").find("button.edit").click():showEdit=="Names"?($("#BasicInformationDiv").find("button.edit").click(),$("#BasicInformation_FirstName").valid(),$("#BasicInformation_LastName").valid(),$("#BasicInformation_Country").valid()):showEdit=="UserName"&&$("#UserNameSectionDiv").find("button.edit").click()});onSuccess=function(n){n.url&&(window.location.href=n.url)}