function trace(n){window.console&&console.log(n)}function tracejson(n){window.console&&console.log(JSON.stringify(n))}function freezescreen(){freezescreenscrolltop=$(document).scrollTop();var n=$("html").width();setTimeout(function(){$("html, body").css({overflow:"hidden",position:"fixed",top:-freezescreenscrolltop+"px"});$("html, body").width(n);$("#top-menu-outer-lg").css("top","0px")},160)}function unfreezescreen(){$("html, body").css({overflow:"",position:"",top:""});$("html, body").width("auto");$(document).scrollTop(freezescreenscrolltop)}function share(n){var i=document.location.href,r=document.title,t="";switch(n){case"fb":t="https://www.facebook.com/sharer.php?u="+escape(i);break;case"tw":t="https://twitter.com/share?url="+escape(i);break;case"g+":t="https://plus.google.com/share?url="+escape(i)}t!=""&&window.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600")}function scrollToElement(n){nn5.utils.scrollToElement(n,51)}function scrollToAnchor(n){nn5.utils.scrollToAnchor(n,51)}function isIE8(){var n=navigator.userAgent.toLowerCase(),t=n.indexOf("msie")!=-1?parseInt(n.split("msie")[1]):-1;return t>0&&t<=8?!0:!1}function updateRowTextCentering(){$(".h-by-image").removeClass("cancel-h-by-image");$(".h-by-image").each(function(){var n=$(this).find(".text-inner");$(this).outerHeight()<$(n).height()&&$(this).addClass("cancel-h-by-image")})}function updatefixedlisttop(){var n=$(window).scrollTop(),t=0;$(".c-list-top-fix-replacement").each(function(){var i=$(this).offset().top;if(i<n+t){if($(this).height($(".c-list-top.fixable").height()),$(".c-list-top.fixable").find(".back-to-top").length==0){$(".c-list-top h1").prepend("<span class='back-to-top'><\/span>");$(".c-list-top.fixable h1 .back-to-top").on("click",function(){$("html,body").animate({scrollTop:0},"fast")})}$(".c-list-top.fixable").addClass("fixed")}else $(this).height(0),$(".c-list-top.fixable").removeClass("fixed")})}function updateSlideIn(){$(".slide-in:not(.on), .fade-in:not(.on)").each(function(){isScrolledIntoView($(this))&&$(this).addClass("on")})}function isScrolledIntoView(n){var i=$(window).height(),t=$(n).offset().top,r=$(window).scrollTop(),u=r+i,t=$(n).offset().top,f=t+$(n).outerHeight(!0);return f>r-i&&t<u}function navigatesubmenu(n,t,i,r,u){setTimeout(function(){$("html,body").animate({scrollTop:$(r).offset().top-64},"fast")},100);$(".top-sub-menu").children().removeClass("hilite");$("#sub-menu-item-"+t).addClass("hilite");$(i).css("opacity","0.5");$.ajax({type:"POST",url:n,data:JSON.stringify({itemid:t,lan:nn5.dictionary.languageid}),contentType:"application/json;charset=utf-8",dataType:"json",success:function(f){f.d==""?$(".nonefoundmessage").slideDown(75):($(i).html(f.d.html).css("opacity","1"),setTimeout(function(){nn5.columnlayouts.preparecolumnlayouts();setTimeout(function(){nn5.updateimages($(i).find(".nn5-appearloadimage"));nn5.updateimages($(i).find(".nn5-lazyloadimage"))},50);setTimeout(function(){updateRowTextCentering()},100);setTimeout(function(){updateSlideIn()},200);employeelist!=undefined&&employeelist!=null&&(employeelist.searchlist("",!1),setTimeout(function(){employeelist.autoshortenlist()},300))},1),u==!0&&window.history.pushState({serviceurl:n,itemid:t,targetContainer:i,scrolltargetcontainer:r},"",f.d.url),document.title=f.d.title)},error:function(n,t,i){alert("Error "+i)},complete:function(){}})}function updateprojecttextreadmore(){var n;if($(".project-detail").length!=0&&!$("#main-text").hasClass("user-opened")){$("#main-text").height("auto").css({overflow:"auto"});var t=$("#facts").height(),r=$("#main-text").height(),i=0;r>t&&(n=0,$("#main-text p").each(function(){var r=$(this).position().top+$(this).height();if(r>t){i=n;return}n=r}));i>0?($("#main-text").height(n).css({overflow:"hidden"}),$("#projects-text-readmore-btn").show()):($("#main-text").height("auto").css({overflow:"auto"}),$("#projects-text-readmore-btn").hide())}}function restorepopstate(n){n!=null&&navigatesubmenu(n.serviceurl,n.itemid,n.targetContainer,n.scrolltargetcontainer,!1)}function recalctopimage(){}function dohashevent(n){if(window.location.hash!=null&&window.location.hash!="")switch(n){case"#unsubscribe":unsubscribe();clearhash();break;case"#subscribe":subscribe();clearhash();break;default:scrollToAnchor(n.replace("#",""))}}function clearhash(){window.history.pushState?window.history.pushState({},"",document.location.href.split("#")[0]):window.location.hash="##"}function setlanguage(n,t){var i=document.location.href,f,r,u,e,o;for(i=i.replace("default.aspx",""),f=["da","sv","no","en","de"],r=0;r<f.length;r++)i=i.replace("/-"+f[r]+"/","/");n!=2&&(i.replace("http://","").replace("https://","").replace("/","")==document.location.hostname?(i.slice(-1)!="/"&&(i+="/"),i+="-"+t+"/"):(u=i.match(/\/.\//gi),u!=null&&u.length>0&&(e=u[0],o=i.indexOf("/_")!=-1?"":"_",i=i.replace(e,e+"-"+t+"/"+o))));$.cookie("CFMcurrentlanguage",n,{expires:3650,path:"/"});document.location.href=i}function subscribe(){nn5.modal.show({url:"/subscribenewsmail.aspx?"+nn5.dictionary.getisocode(),scrolltotop:!0})}function unsubscribe(){nn5.modal.show({url:"/unsubscribenewsmail.aspx?"+nn5.dictionary.getisocode(),scrolltotop:!0})}function makeMailLink(n,t,i){var r="ma";r+="il";r+="to:";r+=n+"@";r+=t+".";r+=i;document.location.href=r}var nn5,freezescreenscrolltop,rzinterval,resizeint,lastwidth;(function(n,t){typeof module=="object"&&typeof module.exports=="object"?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)})(typeof window!="undefined"?window:this,function(n,t){function ri(n){var t=n.length,r=i.type(n);return r==="function"||i.isWindow(n)?!1:n.nodeType===1&&t?!0:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in n}function ui(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if(typeof t=="string"){if(ue.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}function hr(n,t){do n=n[t];while(n&&n.nodeType!==1);return n}function oe(n){var t=fi[n]={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function cr(){u.addEventListener?(u.removeEventListener("DOMContentLoaded",a,!1),n.removeEventListener("load",a,!1)):(u.detachEvent("onreadystatechange",a),n.detachEvent("onload",a))}function a(){(u.addEventListener||event.type==="load"||u.readyState==="complete")&&(cr(),i.ready())}function yr(n,t,r){if(r===undefined&&n.nodeType===1){var u="data-"+t.replace(vr,"-$1").toLowerCase();if(r=n.getAttribute(u),typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:ar.test(r)?i.parseJSON(r):r}catch(f){}i.data(n,t,r)}else r=undefined}return r}function ei(n){var t;for(t in n)if((t!=="data"||!i.isEmptyObject(n[t]))&&t!=="toJSON")return!1;return!0}function pr(n,t,r,u){if(i.acceptData(n)){var s,e,h=i.expando,l=n.nodeType,o=l?i.cache:n,f=l?n[h]:n[h]&&h;if(f&&o[f]&&(u||o[f].data)||r!==undefined||typeof t!="string")return f||(f=l?n[h]=c.pop()||i.guid++:h),o[f]||(o[f]=l?{}:{toJSON:i.noop}),(typeof t=="object"||typeof t=="function")&&(u?o[f]=i.extend(o[f],t):o[f].data=i.extend(o[f].data,t)),e=o[f],u||(e.data||(e.data={}),e=e.data),r!==undefined&&(e[i.camelCase(t)]=r),typeof t=="string"?(s=e[t],s==null&&(s=e[i.camelCase(t)])):s=e,s}}function wr(n,t,u){if(i.acceptData(n)){var e,s,h=n.nodeType,f=h?i.cache:n,o=h?n[i.expando]:i.expando;if(f[o]){if(t&&(e=u?f[o]:f[o].data,e)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in e)?t=[t]:(t=i.camelCase(t),t=t in e?[t]:t.split(" ")),s=t.length;s--;)delete e[t[s]];if(u?!ei(e):!i.isEmptyObject(e))return}(u||(delete f[o].data,ei(f[o])))&&(h?i.cleanData([n],!0):r.deleteExpando||f!=f.window?delete f[o]:f[o]=null)}}}function vt(){return!0}function it(){return!1}function dr(){try{return u.activeElement}catch(n){}}function gr(n){var i=nu.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function f(n,t){var e,u,s=0,r=typeof n.getElementsByTagName!==o?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(t||"*"):undefined;if(!r)for(r=[],e=n.childNodes||n;(u=e[s])!=null;s++)!t||i.nodeName(u,t)?r.push(u):i.merge(r,f(u,t));return t===undefined||t&&i.nodeName(n,t)?i.merge([n],r):r}function be(n){oi.test(n.type)&&(n.defaultChecked=n.checked)}function eu(n,t){return i.nodeName(n,"table")&&i.nodeName(t.nodeType!==11?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function ou(n){return n.type=(i.find.attr(n,"type")!==null)+"/"+n.type,n}function su(n){var t=ye.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function li(n,t){for(var u,r=0;(u=n[r])!=null;r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function hu(n,t){if(t.nodeType===1&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;f<o;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function ke(n,t){var u,e,f;if(t.nodeType===1){if(u=t.nodeName.toLowerCase(),!r.noCloneEvent&&t[i.expando]){f=i._data(t);for(e in f.events)i.removeEvent(t,e,f.handle);t.removeAttribute(i.expando)}u==="script"&&t.text!==n.text?(ou(t).text=n.text,su(t)):u==="object"?(t.parentNode&&(t.outerHTML=n.outerHTML),r.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):u==="input"&&oi.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):u==="option"?t.defaultSelected=t.selected=n.defaultSelected:(u==="input"||u==="textarea")&&(t.defaultValue=n.defaultValue)}}function cu(t,r){var u=i(r.createElement(t)).appendTo(r.body),f=n.getDefaultComputedStyle?n.getDefaultComputedStyle(u[0]).display:i.css(u[0],"display");return u.detach(),f}function lu(n){var r=u,t=ai[n];return t||(t=cu(n,r),t!=="none"&&t||(ot=(ot||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=(ot[0].contentWindow||ot[0].contentDocument).document,r.write(),r.close(),t=cu(n,r),ot.detach()),ai[n]=t),t}function vu(n,t){return{get:function(){var i=n();if(i!=null){if(i){delete this.get;return}return(this.get=t).apply(this,arguments)}}}}function wu(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=pu.length;i--;)if(t=pu[i]+r,t in n)return t;return u}function bu(n,t){for(var f,r,o,e=[],u=0,s=n.length;u<s;u++)(r=n[u],r.style)&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||f!=="none"||(r.style.display=""),r.style.display===""&&et(r)&&(e[u]=i._data(r,"olddisplay",lu(r.nodeName)))):e[u]||(o=et(r),(f&&f!=="none"||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;u<s;u++)(r=n[u],r.style)&&(t&&r.style.display!=="none"&&r.style.display!==""||(r.style.display=t?e[u]||"":"none"));return n}function ku(n,t,i){var r=to.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function du(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:t==="width"?1:0,o=0;e<4;e+=2)r==="margin"&&(o+=i.css(n,r+w[e],!0,f)),u?(r==="content"&&(o-=i.css(n,"padding"+w[e],!0,f)),r!=="margin"&&(o-=i.css(n,"border"+w[e]+"Width",!0,f))):(o+=i.css(n,"padding"+w[e],!0,f),r!=="padding"&&(o+=i.css(n,"border"+w[e]+"Width",!0,f)));return o}function gu(n,t,u){var o=!0,f=t==="width"?n.offsetWidth:n.offsetHeight,e=k(n),s=r.boxSizing()&&i.css(n,"boxSizing",!1,e)==="border-box";if(f<=0||f==null){if(f=d(n,t,e),(f<0||f==null)&&(f=n.style[t]),yt.test(f))return f;o=s&&(r.boxSizingReliable()||f===n.style[t]);f=parseFloat(f)||0}return f+du(n,t,u||(s?"border":"content"),o,e)+"px"}function e(n,t,i,r,u){return new e.prototype.init(n,t,i,r,u)}function tf(){return setTimeout(function(){rt=undefined}),rt=i.now()}function bt(n,t){var r,i={height:n},u=0;for(t=t?1:0;u<4;u+=2-t)r=w[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function rf(n,t,i){for(var u,f=(st[t]||[]).concat(st["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function eo(n,t,u){var f,l,p,a,o,b,y,w,c=this,v={},s=n.style,h=n.nodeType&&et(n),e=i._data(n,"fxshow");u.queue||(o=i._queueHooks(n,"fx"),o.unqueued==null&&(o.unqueued=0,b=o.empty.fire,o.empty.fire=function(){o.unqueued||b()}),o.unqueued++,c.always(function(){c.always(function(){o.unqueued--;i.queue(n,"fx").length||o.empty.fire()})}));n.nodeType===1&&("height"in t||"width"in t)&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],y=i.css(n,"display"),w=lu(n.nodeName),y==="none"&&(y=w),y==="inline"&&i.css(n,"float")==="none"&&(r.inlineBlockNeedsLayout&&w!=="inline"?s.zoom=1:s.display="inline-block"));u.overflow&&(s.overflow="hidden",r.shrinkWrapBlocks()||c.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]}));for(f in t)if(l=t[f],uo.exec(l)){if(delete t[f],p=p||l==="toggle",l===(h?"hide":"show"))if(l==="show"&&e&&e[f]!==undefined)h=!0;else continue;v[f]=e&&e[f]||i.style(n,f)}if(!i.isEmptyObject(v)){e?"hidden"in e&&(h=e.hidden):e=i._data(n,"fxshow",{});p&&(e.hidden=!h);h?i(n).show():c.done(function(){i(n).hide()});c.done(function(){var t;i._removeData(n,"fxshow");for(t in v)i.style(n,t,v[t])});for(f in v)a=rf(h?e[f]:0,f,c),f in e||(e[f]=a.start,h&&(a.end=a.start,a.start=f==="width"||f==="height"?1:0))}}function oo(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function uf(n,t,r){var e,o,s=0,l=wt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=rt||tf(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;r<e;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),i<1&&e?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:rt||tf(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),h=u.props;for(oo(h,u.opts.specialEasing);s<l;s++)if(e=wt[s].call(u,n,h,u.opts),e)return e;return i.map(h,rf,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function vf(n){return function(t,r){typeof t!="string"&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])u.charAt(0)==="+"?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function yf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===bi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ki(n,t){var u,r,f=i.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function vo(n,t,i){for(var o,e,u,f,s=n.contents,r=n.dataTypes;r[0]==="*";)r.shift(),e===undefined&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(f in s)if(s[f]&&s[f].test(e)){r.unshift(f);break}if(r[0]in i)u=r[0];else{for(f in i){if(!r[0]||n.converters[f+" "+r[0]]){u=f;break}o||(o=f)}u=u||o}if(u)return u!==r[0]&&r.unshift(u),i[u]}function yo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift(),u)if(u==="*")u=e;else if(e!=="*"&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]],f)){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function di(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||wo.test(n)?u(n,i):di(n+"["+(typeof i=="object"?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(f in t)di(n+"["+f+"]",t[f],r,u)}function wf(){try{return new n.XMLHttpRequest}catch(t){}}function ns(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function bf(n){return i.isWindow(n)?n:n.nodeType===9?n.defaultView||n.parentWindow:!1}var c=[],l=c.slice,ir=c.concat,ti=c.push,rr=c.indexOf,ct={},gf=ct.toString,tt=ct.hasOwnProperty,ii="".trim,r={},ur="1.11.0",i=function(n,t){return new i.fn.init(n,t)},ne=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,te=/^-ms-/,ie=/-([\da-z])/gi,re=function(n,t){return t.toUpperCase()},p,or,sr,h,fi,lt,o,lr,ar,vr,ot,ai,ff,of,sf,dt,gi,ni,nr,tr,kf,df;i.fn=i.prototype={jquery:ur,constructor:i,selector:"",length:0,toArray:function(){return l.call(this)},get:function(n){return n!=null?n<0?this[n+this.length]:this[n]:l.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ti,sort:c.sort,splice:c.splice};i.extend=i.fn.extend=function(){var r,e,t,f,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for(typeof n=="boolean"&&(h=n,n=arguments[u]||{},u++),typeof n=="object"||i.isFunction(n)||(n={}),u===c&&(n=this,u--);u<c;u++)if((o=arguments[u])!=null)for(f in o)(r=n[f],t=o[f],n!==t)&&(h&&t&&(i.isPlainObject(t)||(e=i.isArray(t)))?(e?(e=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):t!==undefined&&(n[f]=t));return n};i.extend({expando:"jQuery"+(ur+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray||function(n){return i.type(n)==="array"},isWindow:function(n){return n!=null&&n==n.window},isNumeric:function(n){return n-parseFloat(n)>=0},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},isPlainObject:function(n){var t;if(!n||i.type(n)!=="object"||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!tt.call(n,"constructor")&&!tt.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(r.ownLast)for(t in n)return tt.call(n,t);for(t in n);return t===undefined||tt.call(n,t)},type:function(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?ct[gf.call(n)]||"object":typeof n},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(te,"ms-").replace(ie,re)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=ri(n);if(i){if(e){for(;r<f;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;r<f;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:ii&&!ii.call("﻿ ")?function(n){return n==null?"":ii.call(n)}:function(n){return n==null?"":(n+"").replace(ne,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(ri(Object(n))?i.merge(r,typeof n=="string"?[n]:n):ti.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(rr)return rr.call(t,n,i);for(r=t.length,i=i?i<0?Math.max(0,r+i):i:0;i<r;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,t){for(var r=+t.length,i=0,u=n.length;i<r;)n[u++]=t[i++];if(r!==r)while(t[i]!==undefined)n[u++]=t[i++];return n.length=u,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=ri(n),f=[];if(o)for(;r<e;r++)u=t(n[r],r,i),u!=null&&f.push(u);else for(r in n)u=t(n[r],r,i),u!=null&&f.push(u);return ir.apply([],f)},guid:1,proxy:function(n,t){var u,r,f;return(typeof t=="string"&&(f=n[t],t=n,n=f),!i.isFunction(n))?undefined:(u=l.call(arguments,2),r=function(){return n.apply(t||this,u.concat(l.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r)},now:function(){return+new Date},support:r});i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ct["[object "+t+"]"]=t.toLowerCase()});p=function(n){function u(n,t,i,u){var w,h,c,v,k,y,d,a,nt,g;if((t?t.ownerDocument||t:s)!==e&&p(t),t=t||e,i=i||[],!n||typeof n!="string")return i;if((v=t.nodeType)!==1&&v!==9)return[];if(l&&!u){if(w=or.exec(n))if(c=w[1]){if(v===9)if(h=t.getElementById(c),h&&h.parentNode){if(h.id===c)return i.push(h),i}else return i;else if(t.ownerDocument&&(h=t.ownerDocument.getElementById(c))&&et(t,h)&&h.id===c)return i.push(h),i}else{if(w[2])return b.apply(i,t.getElementsByTagName(n)),i;if((c=w[3])&&r.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(c)),i}if(r.qsa&&(!o||!o.test(n))){if(a=d=f,nt=t,g=v===9&&n,v===1&&t.nodeName.toLowerCase()!=="object"){for(y=vt(n),(d=t.getAttribute("id"))?a=d.replace(sr,"\\$&"):t.setAttribute("id",a),a="[id='"+a+"'] ",k=y.length;k--;)y[k]=a+yt(y[k]);nt=gt.test(n)&&ii(t.parentNode)||t;g=y.join(",")}if(g)try{return b.apply(i,nt.querySelectorAll(g)),i}catch(tt){}finally{d||t.removeAttribute("id")}}}return vr(n.replace(lt,"$1"),t,i,u)}function ni(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function h(n){return n[f]=!0,n}function c(n){var t=e.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ti(n,i){for(var u=n.split("|"),r=n.length;r--;)t.attrHandle[u[r]]=i}function pi(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||li)-(~n.sourceIndex||li);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function hr(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function cr(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function tt(n){return h(function(t){return t=+t,h(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ii(n){return n&&typeof n.getElementsByTagName!==ut&&n}function wi(){}function vt(n,i){var e,f,s,o,r,h,c,l=hi[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=nr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=tr.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(lt," ")}),r=r.slice(e.length));for(o in t.filter)(f=at[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):hi(n,h).slice(0)}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&r==="parentNode",e=bi++;return t.first?function(t,i,f){while(t=t[r])if(t.nodeType===1||u)return n(t,i,f)}:function(t,i,o){var s,h,c=[a,e];if(o){while(t=t[r])if((t.nodeType===1||u)&&n(t,i,o))return!0}else while(t=t[r])if(t.nodeType===1||u){if(h=t[f]||(t[f]={}),(s=h[r])&&s[0]===a&&s[1]===e)return c[2]=s[2];if(h[r]=c,c[2]=n(t,i,o))return!0}}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function pt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),h(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||ar(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?pt(k,p,n,o,s):k,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=pt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=pt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function ei(n){for(var s,u,r,o=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ri(function(n){return n===s},c,!0),a=ri(function(n){return nt.call(s,n)>-1},c,!0),e=[function(n,t,i){return!h&&(i||t!==ht)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];i<o;i++)if(u=t.relative[n[i].type])e=[ri(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;r<o;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:n[i-2].type===" "?"*":""})).replace(lt,"$1"),u,i<r&&ei(n.slice(i,r)),r<o&&ei(n=n.slice(r)),r<o&&yt(n))}e.push(u)}return ui(e)}function lr(n,i){var r=i.length>0,f=n.length>0,o=function(o,s,h,c,l){var y,d,w,k=0,v="0",g=o&&[],p=[],nt=ht,tt=o||f&&t.find.TAG("*",l),it=a+=nt==null?1:Math.random()||.1,rt=tt.length;for(l&&(ht=s!==e&&s);v!==rt&&(y=tt[v])!=null;v++){if(f&&y){for(d=0;w=n[d++];)if(w(y,s,h)){c.push(y);break}l&&(a=it)}r&&((y=!w&&y)&&k--,o&&g.push(y))}if(k+=v,r&&v!==k){for(d=0;w=i[d++];)w(g,p,s,h);if(o){if(k>0)while(v--)g[v]||p[v]||(p[v]=di.call(c));p=pt(p)}b.apply(c,p);l&&!o&&p.length>0&&k+i.length>1&&u.uniqueSort(c)}return l&&(a=it,ht=nt),g};return r?h(o):o}function ar(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function vr(n,i,u,f){var s,e,o,c,a,h=vt(n);if(!f&&h.length===1){if(e=h[0]=h[0].slice(0),e.length>2&&(o=e[0]).type==="ID"&&r.getById&&i.nodeType===9&&l&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(k,d),i)||[])[0],!i)return u;n=n.slice(e.shift().value.length)}for(s=at.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[c=o.type])break;if((a=t.find[c])&&(f=a(o.matches[0].replace(k,d),gt.test(e[0].type)&&ii(i.parentNode)||i))){if(e.splice(s,1),n=f.length&&yt(e),!n)return b.apply(u,f),u;break}}}return wt(n,h)(f,i,!l,u,gt.test(n)&&ii(i.parentNode)||i),u}var it,r,t,st,oi,wt,ht,y,rt,p,e,v,l,o,g,ct,et,f="sizzle"+-new Date,s=n.document,a=0,bi=0,si=ni(),hi=ni(),ci=ni(),bt=function(n,t){return n===t&&(rt=!0),0},ut=typeof undefined,li=-2147483648,ki={}.hasOwnProperty,w=[],di=w.pop,gi=w.push,b=w.push,ai=w.slice,nt=w.indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(this[t]===n)return t;return-1},kt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",i="[\\x20\\t\\r\\n\\f]",ft="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",vi=ft.replace("w","w#"),yi="\\["+i+"*("+ft+")"+i+"*(?:([*^$|!~]?=)"+i+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+vi+")|)|)"+i+"*\\]",dt=":("+ft+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+yi.replace(3,8)+")*)|.*)\\)|)",lt=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),nr=new RegExp("^"+i+"*,"+i+"*"),tr=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),ir=new RegExp("="+i+"*([^\\]'\"]*?)"+i+"*\\]","g"),rr=new RegExp(dt),ur=new RegExp("^"+vi+"$"),at={ID:new RegExp("^#("+ft+")"),CLASS:new RegExp("^\\.("+ft+")"),TAG:new RegExp("^("+ft.replace("w","w*")+")"),ATTR:new RegExp("^"+yi),PSEUDO:new RegExp("^"+dt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+kt+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},fr=/^(?:input|select|textarea|button)$/i,er=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,or=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,sr=/'|\\/g,k=new RegExp("\\\\([\\da-f]{1,6}"+i+"?|("+i+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)};try{b.apply(w=ai.call(s.childNodes),s.childNodes);w[s.childNodes.length].nodeType}catch(yr){b={apply:w.length?function(n,t){gi.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}r=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};p=u.setDocument=function(n){var a,u=n?n.ownerDocument||n:s,h=u.defaultView;return u===e||u.nodeType!==9||!u.documentElement?e:(e=u,v=u.documentElement,l=!oi(u),h&&h!==h.top&&(h.addEventListener?h.addEventListener("unload",function(){p()},!1):h.attachEvent&&h.attachEvent("onunload",function(){p()})),r.attributes=c(function(n){return n.className="i",!n.getAttribute("className")}),r.getElementsByTagName=c(function(n){return n.appendChild(u.createComment("")),!n.getElementsByTagName("*").length}),r.getElementsByClassName=ot.test(u.getElementsByClassName)&&c(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",n.getElementsByClassName("i").length===2}),r.getById=c(function(n){return v.appendChild(n).id=f,!u.getElementsByName||!u.getElementsByName(f).length}),r.getById?(t.find.ID=function(n,t){if(typeof t.getElementById!==ut&&l){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},t.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==ut&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=r.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!==ut)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},t.find.CLASS=r.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!==ut&&l)return t.getElementsByClassName(n)},g=[],o=[],(r.qsa=ot.test(u.querySelectorAll))&&(c(function(n){n.innerHTML="<select t=''><option selected=''><\/option><\/select>";n.querySelectorAll("[t^='']").length&&o.push("[*^$]="+i+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+i+"*(?:value|"+kt+")");n.querySelectorAll(":checked").length||o.push(":checked")}),c(function(n){var t=u.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+i+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(r.matchesSelector=ot.test(ct=v.webkitMatchesSelector||v.mozMatchesSelector||v.oMatchesSelector||v.msMatchesSelector))&&c(function(n){r.disconnectedMatch=ct.call(n,"div");ct.call(n,"[s!='']:x");g.push("!=",dt)}),o=o.length&&new RegExp(o.join("|")),g=g.length&&new RegExp(g.join("|")),a=ot.test(v.compareDocumentPosition),et=a||ot.test(v.contains)?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},bt=a?function(n,t){if(n===t)return rt=!0,0;var i=!n.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,i&1||!r.sortDetached&&t.compareDocumentPosition(n)===i)?n===u||n.ownerDocument===s&&et(s,n)?-1:t===u||t.ownerDocument===s&&et(s,t)?1:y?nt.call(y,n)-nt.call(y,t):0:i&4?-1:1}:function(n,t){if(n===t)return rt=!0,0;var i,r=0,o=n.parentNode,h=t.parentNode,f=[n],e=[t];if(o&&h){if(o===h)return pi(n,t)}else return n===u?-1:t===u?1:o?-1:h?1:y?nt.call(y,n)-nt.call(y,t):0;for(i=n;i=i.parentNode;)f.unshift(i);for(i=t;i=i.parentNode;)e.unshift(i);while(f[r]===e[r])r++;return r?pi(f[r],e[r]):f[r]===s?-1:e[r]===s?1:0},u)};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==e&&p(n),t=t.replace(ir,"='$1']"),r.matchesSelector&&l&&(!g||!g.test(t))&&(!o||!o.test(t)))try{var i=ct.call(n,t);if(i||r.disconnectedMatch||n.document&&n.document.nodeType!==11)return i}catch(f){}return u(t,e,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==e&&p(n),et(n,t)};u.attr=function(n,i){(n.ownerDocument||n)!==e&&p(n);var f=t.attrHandle[i.toLowerCase()],u=f&&ki.call(t.attrHandle,i.toLowerCase())?f(n,i,!l):undefined;return u!==undefined?u:r.attributes||!l?n.getAttribute(i):(u=n.getAttributeNode(i))&&u.specified?u.value:null};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var u,f=[],t=0,i=0;if(rt=!r.detectDuplicates,y=!r.sortStable&&n.slice(0),n.sort(bt),rt){while(u=n[i++])u===n[i]&&(t=f.push(i));while(t--)n.splice(f[t],1)}return y=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(t===3||t===4)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=u.selectors={cacheLength:50,createPseudo:h,match:at,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,d),n[3]=(n[4]||n[5]||"").replace(k,d),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[5]&&n[2];return at.CHILD.test(n[0])?null:(n[3]&&n[4]!==undefined?n[2]=n[4]:t&&rr.test(t)&&(i=vt(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,d).toLowerCase();return n==="*"?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=si[n+" "];return t||(t=new RegExp("(^|"+i+")"+n+"("+i+"|$)"))&&si(n,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute!==ut&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",o=n.slice(-4)!=="last",e=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var v,k,c,l,y,w,b=s!==o?"nextSibling":"previousSibling",p=t.parentNode,g=e&&t.nodeName.toLowerCase(),d=!h&&!e;if(p){if(s){while(b){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===g:c.nodeType===1)return!1;w=b=n==="only"&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[f]||(p[f]={}),v=k[n]||[],y=v[0]===a&&v[1],l=v[0]===a&&v[2],c=y&&p.childNodes[y];c=++y&&c&&c[b]||(l=y=0)||w.pop();)if(c.nodeType===1&&++l&&c===t){k[n]=[a,y,l];break}}else if(d&&(v=(t[f]||(t[f]={}))[n])&&v[0]===a)l=v[1];else while(c=++y&&c&&c[b]||(l=y=0)||w.pop())if((e?c.nodeName.toLowerCase()===g:c.nodeType===1)&&++l&&(d&&((c[f]||(c[f]={}))[n]=[a,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):r.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?h(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt.call(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,e)}):r}},pseudos:{not:h(function(n){var i=[],r=[],t=wt(n.replace(lt,"$1"));return t[f]?h(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:h(function(n){return function(t){return u(n,t).length>0}}),contains:h(function(n){return function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:h(function(n){return ur.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=l?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===v},focus:function(n){return n===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return er.test(n.nodeName)},input:function(n){return fr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()==="text")},first:tt(function(){return[0]}),last:tt(function(n,t){return[t-1]}),eq:tt(function(n,t,i){return[i<0?i+t:i]}),even:tt(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:tt(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:tt(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:tt(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(it in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[it]=hr(it);for(it in{submit:!0,reset:!0})t.pseudos[it]=cr(it);return wi.prototype=t.filters=t.pseudos,t.setFilters=new wi,wt=u.compile=function(n,t){var r,u=[],e=[],i=ci[n+" "];if(!i){for(t||(t=vt(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=ci(n,lr(e,u))}return i},r.sortStable=f.split("").sort(bt).join("")===f,r.detectDuplicates=!!rt,p(),r.sortDetached=c(function(n){return n.compareDocumentPosition(e.createElement("div"))&1}),c(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild.getAttribute("href")==="#"})||ti("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,t.toLowerCase()==="type"?1:2)}),r.attributes&&c(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ti("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue}),c(function(n){return n.getAttribute("disabled")==null})||ti(kt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=p;i.expr=p.selectors;i.expr[":"]=i.expr.pseudos;i.unique=p.uniqueSort;i.text=p.getText;i.isXMLDoc=p.isXML;i.contains=p.contains;var fr=i.expr.match.needsContext,er=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ue=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),t.length===1&&u.nodeType===1?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if(typeof n!="string")return this.pushStack(i(n).filter(function(){for(t=0;t<f;t++)if(i.contains(u[t],this))return!0}));for(t=0;t<f;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(ui(this,n||[],!1))},not:function(n){return this.pushStack(ui(this,n||[],!0))},is:function(n){return!!ui(this,typeof n=="string"&&fr.test(n)?i(n):n||[],!1).length}});var ft,u=n.document,fe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ee=i.fn.init=function(n,t){var r,f;if(!n)return this;if(typeof n=="string"){if(r=n.charAt(0)==="<"&&n.charAt(n.length-1)===">"&&n.length>=3?[null,n,null]:fe.exec(n),r&&(r[1]||!t)){if(r[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),er.test(r[1])&&i.isPlainObject(t))for(r in t)i.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if(f=u.getElementById(r[2]),f&&f.parentNode){if(f.id!==r[2])return ft.find(n);this.length=1;this[0]=f}return this.context=u,this.selector=n,this}return!t||t.jquery?(t||ft).find(n):this.constructor(t).find(n)}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?typeof ft.ready!="undefined"?ft.ready(n):n(i):(n.selector!==undefined&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};ee.prototype=i.fn;ft=i(u);or=/^(?:parents|prev(?:Until|All))/;sr={children:!0,contents:!0,next:!0,prev:!0};i.extend({dir:function(n,t,r){for(var f=[],u=n[t];u&&u.nodeType!==9&&(r===undefined||u.nodeType!==1||!i(u).is(r));)u.nodeType===1&&f.push(u),u=u[t];return f},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i}});i.fn.extend({has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;t<u;t++)if(i.contains(this,r[t]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=fr.test(n)||typeof n!="string"?i(n,t||this.context):0;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?typeof n=="string"?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.unique(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return hr(n,"nextSibling")},prev:function(n){return hr(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(sr[n]||(f=i.unique(f)),or.test(n)&&(f=f.reverse())),this.pushStack(f)}});h=/\S+/g;fi={};i.Callbacks=function(n){n=typeof n=="string"?fi[n]||oe(n):i.extend({},n);var o,u,h,f,e,c,t=[],r=!n.once&&[],l=function(i){for(u=n.memory&&i,h=!0,e=c||0,c=0,f=t.length,o=!0;t&&e<f;e++)if(t[e].apply(i[0],i[1])===!1&&n.stopOnFalse){u=!1;break}o=!1;t&&(r?r.length&&l(r.shift()):u?t=[]:s.disable())},s={add:function(){if(t){var r=t.length;(function e(r){i.each(r,function(r,u){var f=i.type(u);f==="function"?n.unique&&s.has(u)||t.push(u):u&&u.length&&f!=="string"&&e(u)})})(arguments);o?f=t.length:u&&(c=r,l(u))}return this},remove:function(){return t&&i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),o&&(u<=f&&f--,u<=e&&e--)}),this},has:function(n){return n?i.inArray(n,t)>-1:!!(t&&t.length)},empty:function(){return t=[],f=0,this},disable:function(){return t=r=u=undefined,this},disabled:function(){return!t},lock:function(){return r=undefined,u||s.disable(),this},locked:function(){return!r},fireWith:function(n,i){return t&&(!h||r)&&(i=i||[],i=[n,i.slice?i.slice():i],o?r.push(i):l(i)),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return n!=null?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[n^1][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=r!==1||n&&i.isFunction(n.promise)?r:0,f=e===1?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);t<r;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!u.body)return setTimeout(i.ready);(i.isReady=!0,n!==!0&&--i.readyWait>0)||(lt.resolveWith(u,[i]),i.fn.trigger&&i(u).trigger("ready").off("ready"))}}});i.ready.promise=function(t){if(!lt)if(lt=i.Deferred(),u.readyState==="complete")setTimeout(i.ready);else if(u.addEventListener)u.addEventListener("DOMContentLoaded",a,!1),n.addEventListener("load",a,!1);else{u.attachEvent("onreadystatechange",a);n.attachEvent("onload",a);var r=!1;try{r=n.frameElement==null&&u.documentElement}catch(e){}r&&r.doScroll&&function f(){if(!i.isReady){try{r.doScroll("left")}catch(n){return setTimeout(f,50)}cr();i.ready()}}()}return lt.promise(t)};o=typeof undefined;for(lr in i(r))break;r.ownLast=lr!=="0";r.inlineBlockNeedsLayout=!1;i(function(){var t,n,i=u.getElementsByTagName("body")[0];i&&(t=u.createElement("div"),t.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",n=u.createElement("div"),i.appendChild(t).appendChild(n),typeof n.style.zoom!==o&&(n.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",(r.inlineBlockNeedsLayout=n.offsetWidth===3)&&(i.style.zoom=1)),i.removeChild(t),t=n=null)}),function(){var n=u.createElement("div");if(r.deleteExpando==null){r.deleteExpando=!0;try{delete n.test}catch(t){r.deleteExpando=!1}}n=null}();i.acceptData=function(n){var t=i.noData[(n.nodeName+" ").toLowerCase()],r=+n.nodeType||1;return r!==1&&r!==9?!1:!t||t!==!0&&n.getAttribute("classid")===t};ar=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/;vr=/([A-Z])/g;i.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ei(n)},data:function(n,t,i){return pr(n,t,i)},removeData:function(n,t){return wr(n,t)},_data:function(n,t,i){return pr(n,t,i,!0)},_removeData:function(n,t){return wr(n,t,!0)}});i.fn.extend({data:function(n,t){var f,u,e,r=this[0],o=r&&r.attributes;if(n===undefined){if(this.length&&(e=i.data(r),r.nodeType===1&&!i._data(r,"parsedAttrs"))){for(f=o.length;f--;)u=o[f].name,u.indexOf("data-")===0&&(u=i.camelCase(u.slice(5)),yr(r,u,e[u]));i._data(r,"parsedAttrs",!0)}return e}return typeof n=="object"?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,t)}):r?yr(r,n,i.data(r,n)):undefined},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,t,r){var u;if(n)return t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};u==="inprogress"&&(u=r.shift(),e--);u&&(t==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,t){var r=2;return(typeof n!="string"&&(t=n,n="fx",r--),arguments.length<r)?i.queue(this[0],n):t===undefined?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);n==="fx"&&r[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var r,f=1,e=i.Deferred(),u=this,o=this.length,s=function(){--f||e.resolveWith(u,[u])};for(typeof n!="string"&&(t=n,n=undefined),n=n||"fx";o--;)r=i._data(u[o],n+"queueHooks"),r&&r.empty&&(f++,r.empty.add(s));return s(),e.promise(t)}});var at=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=["Top","Right","Bottom","Left"],et=function(n,t){return n=t||n,i.css(n,"display")==="none"||!i.contains(n.ownerDocument,n)},b=i.access=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=r==null;if(i.type(r)==="object"){f=!0;for(s in r)i.access(n,t,s,r[s],!0,e,o)}else if(u!==undefined&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;s<c;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e},oi=/^(?:checkbox|radio)$/i;(function(){var i=u.createDocumentFragment(),n=u.createElement("div"),t=u.createElement("input");if(n.setAttribute("className","t"),n.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a>",r.leadingWhitespace=n.firstChild.nodeType===3,r.tbody=!n.getElementsByTagName("tbody").length,r.htmlSerialize=!!n.getElementsByTagName("link").length,r.html5Clone=u.createElement("nav").cloneNode(!0).outerHTML!=="<:nav><\/:nav>",t.type="checkbox",t.checked=!0,i.appendChild(t),r.appendChecked=t.checked,n.innerHTML="<textarea>x<\/textarea>",r.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue,i.appendChild(n),n.innerHTML="<input type='radio' checked='checked' name='t'/>",r.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,r.noCloneEvent=!0,n.attachEvent&&(n.attachEvent("onclick",function(){r.noCloneEvent=!1}),n.cloneNode(!0).click()),r.deleteExpando==null){r.deleteExpando=!0;try{delete n.test}catch(f){r.deleteExpando=!1}}i=n=t=null})(),function(){var t,i,f=u.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})i="on"+t,(r[t+"Bubbles"]=i in n)||(f.setAttribute(i,"t"),r[t+"Bubbles"]=f.attributes[i].expando===!1);f=null}();var si=/^(?:input|select|textarea)$/i,se=/^key/,he=/^(?:mouse|contextmenu)|click/,br=/^(?:focusinfocus|focusoutblur)$/,kr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,t,r,u,f){var w,y,b,p,s,c,l,a,e,k,d,v=i._data(n);if(v){for(r.handler&&(p=r,r=p.handler,f=p.selector),r.guid||(r.guid=i.guid++),(y=v.events)||(y=v.events={}),(c=v.handle)||(c=v.handle=function(n){return typeof i!==o&&(!n||i.event.triggered!==n.type)?i.event.dispatch.apply(c.elem,arguments):undefined},c.elem=n),t=(t||"").match(h)||[""],b=t.length;b--;)(w=kr.exec(t[b])||[],e=d=w[1],k=(w[2]||"").split(".").sort(),e)&&(s=i.event.special[e]||{},e=(f?s.delegateType:s.bindType)||e,s=i.event.special[e]||{},l=i.extend({type:e,origType:d,data:u,handler:r,guid:r.guid,selector:f,needsContext:f&&i.expr.match.needsContext.test(f),namespace:k.join(".")},p),(a=y[e])||(a=y[e]=[],a.delegateCount=0,s.setup&&s.setup.call(n,u,k,c)!==!1||(n.addEventListener?n.addEventListener(e,c,!1):n.attachEvent&&n.attachEvent("on"+e,c))),s.add&&(s.add.call(n,l),l.handler.guid||(l.handler.guid=r.guid)),f?a.splice(a.delegateCount++,0,l):a.push(l),i.event.global[e]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,s,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;){if(s=kr.exec(t[p])||[],e=k=s[1],w=(s[2]||"").split(".").sort(),!e){for(e in a)i.event.remove(n,e+t[p],r,u,!0);continue}for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],s=s[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],(f||k===o.origType)&&(!r||r.guid===o.guid)&&(!s||s.test(o.namespace))&&(!u||u===o.selector||u==="**"&&o.selector)&&(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(t,r,f,e){var l,a,o,p,c,h,w,y=[f||u],s=tt.call(t,"type")?t.type:t,v=tt.call(t,"namespace")?t.namespace.split("."):[];if((o=h=f=f||u,f.nodeType!==3&&f.nodeType!==8)&&!br.test(s+i.event.triggered)&&(s.indexOf(".")>=0&&(v=s.split("."),s=v.shift(),v.sort()),a=s.indexOf(":")<0&&"on"+s,t=t[i.expando]?t:new i.Event(s,typeof t=="object"&&t),t.isTrigger=e?2:3,t.namespace=v.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=f),r=r==null?[t]:i.makeArray(r,[t]),c=i.event.special[s]||{},e||!c.trigger||c.trigger.apply(f,r)!==!1)){if(!e&&!c.noBubble&&!i.isWindow(f)){for(p=c.delegateType||s,br.test(p+s)||(o=o.parentNode);o;o=o.parentNode)y.push(o),h=o;h===(f.ownerDocument||u)&&y.push(h.defaultView||h.parentWindow||n)}for(w=0;(o=y[w++])&&!t.isPropagationStopped();)t.type=w>1?p:c.bindType||s,l=(i._data(o,"events")||{})[t.type]&&i._data(o,"handle"),l&&l.apply(o,r),l=a&&o[a],l&&l.apply&&i.acceptData(o)&&(t.result=l.apply(o,r),t.result===!1&&t.preventDefault());if(t.type=s,!e&&!t.isDefaultPrevented()&&(!c._default||c._default.apply(y.pop(),r)===!1)&&i.acceptData(f)&&a&&f[s]&&!i.isWindow(f)){h=f[a];h&&(f[a]=null);i.event.triggered=s;try{f[s]()}catch(b){}i.event.triggered=undefined;h&&(f[a]=h)}return t.result}},dispatch:function(n){n=i.event.fix(n);var e,f,t,r,o,s=[],h=l.call(arguments),c=(i._data(this,"events")||{})[n.type]||[],u=i.event.special[n.type]||{};if(h[0]=n,n.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,n)!==!1){for(s=i.event.handlers.call(this,n,c),e=0;(r=s[e++])&&!n.isPropagationStopped();)for(n.currentTarget=r.elem,o=0;(t=r.handlers[o++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(t.namespace))&&(n.handleObj=t,n.data=t.data,f=((i.event.special[t.origType]||{}).handle||t.handler).apply(r.elem,h),f!==undefined&&(n.result=f)===!1&&(n.preventDefault(),n.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,n),n.result}},handlers:function(n,t){var f,e,u,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&(!n.button||n.type!=="click"))for(;r!=this;r=r.parentNode||this)if(r.nodeType===1&&(r.disabled!==!0||n.type!=="click")){for(u=[],o=0;o<s;o++)e=t[o],f=e.selector+" ",u[f]===undefined&&(u[f]=e.needsContext?i(f,this).index(r)>=0:i.find(f,this,null,[r]).length),u[f]&&u.push(e);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},fix:function(n){if(n[i.expando])return n;var e,o,s,r=n.type,f=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=he.test(r)?this.mouseHooks:se.test(r)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||u),n.target.nodeType===3&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return n.which==null&&(n.which=t.charCode!=null?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var i,e,r,f=t.button,o=t.fromElement;return n.pageX==null&&t.clientX!=null&&(e=n.target.ownerDocument||u,r=e.documentElement,i=e.body,n.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),n.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!n.relatedTarget&&o&&(n.relatedTarget=o===n.target?t.toElement:o),n.which||f===undefined||(n.which=f&1?1:f&2?3:f&4?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==dr()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===dr()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(i.nodeName(this,"input")&&this.type==="checkbox"&&this.click)return this.click(),!1},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==undefined&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=u.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===o&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===undefined&&(n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault())?vt:it):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||i.now();this[i.expando]=!0};i.Event.prototype={isDefaultPrevented:it,isPropagationStopped:it,isImmediatePropagationStopped:it,preventDefault:function(){var n=this.originalEvent;(this.isDefaultPrevented=vt,n)&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;(this.isPropagationStopped=vt,n)&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=vt;this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});r.submitBubbles||(i.event.special.submit={setup:function(){if(i.nodeName(this,"form"))return!1;i.event.add(this,"click._submit keypress._submit",function(n){var r=n.target,t=i.nodeName(r,"input")||i.nodeName(r,"button")?r.form:undefined;t&&!i._data(t,"submitBubbles")&&(i.event.add(t,"submit._submit",function(n){n._submit_bubble=!0}),i._data(t,"submitBubbles",!0))})},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){if(i.nodeName(this,"form"))return!1;i.event.remove(this,"._submit")}});r.changeBubbles||(i.event.special.change={setup:function(){if(si.test(this.nodeName))return(this.type==="checkbox"||this.type==="radio")&&(i.event.add(this,"propertychange._change",function(n){n.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1;i.event.add(this,"beforeactivate._change",function(n){var t=n.target;si.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!si.test(this.nodeName)}});r.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var r=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){var u=this.ownerDocument||this,f=i._data(u,t);f||u.addEventListener(n,r,!0);i._data(u,t,(f||0)+1)},teardown:function(){var u=this.ownerDocument||this,f=i._data(u,t)-1;f?i._data(u,t,f):(u.removeEventListener(n,r,!0),i._removeData(u,t))}}});i.fn.extend({on:function(n,t,r,u,f){var o,e;if(typeof n=="object"){typeof t!="string"&&(r=r||t,t=undefined);for(o in n)this.on(o,t,r,n[o],f);return this}if(r==null&&u==null?(u=t,r=t=undefined):u==null&&(typeof t=="string"?(u=r,r=undefined):(u=r,r=t,t=undefined)),u===!1)u=it;else if(!u)return this;return f===1&&(e=u,u=function(n){return i().off(n),e.apply(this,arguments)},u.guid=e.guid||(e.guid=i.guid++)),this.each(function(){i.event.add(this,n,u,r,t)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if(typeof n=="object"){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||typeof t=="function")&&(r=t,t=undefined),r===!1&&(r=it),this.each(function(){i.event.remove(this,n,r,t)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});var nu="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ce=/ jQuery\d+="(?:null|\d+)"/g,tu=new RegExp("<(?:"+nu+")[\\s/>]","i"),hi=/^\s+/,iu=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ru=/<([\w:]+)/,uu=/<tbody/i,le=/<|&#?\w+;/,ae=/<(?:script|style|link)/i,ve=/checked\s*(?:[^=]|=\s*.checked.)/i,fu=/^$|\/(?:java|ecma)script/i,ye=/^true\/(.*)/,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,s={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:r.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},we=gr(u),ci=we.appendChild(u.createElement("div"));s.optgroup=s.option;s.tbody=s.tfoot=s.colgroup=s.caption=s.thead;s.th=s.td;i.extend({clone:function(n,t,u){var e,c,s,o,h,l=i.contains(n.ownerDocument,n);if(r.html5Clone||i.isXMLDoc(n)||!tu.test("<"+n.nodeName+">")?s=n.cloneNode(!0):(ci.innerHTML=n.outerHTML,ci.removeChild(s=ci.firstChild)),(!r.noCloneEvent||!r.noCloneChecked)&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(e=f(s),h=f(n),o=0;(c=h[o])!=null;++o)e[o]&&ke(c,e[o]);if(t)if(u)for(h=h||f(n),e=e||f(s),o=0;(c=h[o])!=null;o++)hu(c,e[o]);else hu(n,s);return e=f(s,"script"),e.length>0&&li(e,!l&&f(n,"script")),e=h=c=null,s},buildFragment:function(n,t,u,e){for(var c,o,b,h,p,w,a,k=n.length,v=gr(t),l=[],y=0;y<k;y++)if(o=n[y],o||o===0)if(i.type(o)==="object")i.merge(l,o.nodeType?[o]:o);else if(le.test(o)){for(h=h||v.appendChild(t.createElement("div")),p=(ru.exec(o)||["",""])[1].toLowerCase(),a=s[p]||s._default,h.innerHTML=a[1]+o.replace(iu,"<$1><\/$2>")+a[2],c=a[0];c--;)h=h.lastChild;if(!r.leadingWhitespace&&hi.test(o)&&l.push(t.createTextNode(hi.exec(o)[0])),!r.tbody)for(o=p==="table"&&!uu.test(o)?h.firstChild:a[1]==="<table>"&&!uu.test(o)?h:0,c=o&&o.childNodes.length;c--;)i.nodeName(w=o.childNodes[c],"tbody")&&!w.childNodes.length&&o.removeChild(w);for(i.merge(l,h.childNodes),h.textContent="";h.firstChild;)h.removeChild(h.firstChild);h=v.lastChild}else l.push(t.createTextNode(o));for(h&&v.removeChild(h),r.appendChecked||i.grep(f(l,"input"),be),y=0;o=l[y++];)if((!e||i.inArray(o,e)===-1)&&(b=i.contains(o.ownerDocument,o),h=f(v.appendChild(o),"script"),b&&li(h),u))for(c=0;o=h[c++];)fu.test(o.type||"")&&u.push(o);return h=null,v},cleanData:function(n,t){for(var u,s,f,e,a=0,h=i.expando,l=i.cache,v=r.deleteExpando,y=i.event.special;(u=n[a])!=null;a++)if((t||i.acceptData(u))&&(f=u[h],e=f&&l[f],e)){if(e.events)for(s in e.events)y[s]?i.event.remove(u,s):i.removeEvent(u,s,e.handle);l[f]&&(delete l[f],v?delete u[h]:typeof u.removeAttribute!==o?u.removeAttribute(h):u[h]=null,c.push(f))}}});i.fn.extend({text:function(n){return b(this,function(n){return n===undefined?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(n))},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=eu(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=eu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,e=n?i.filter(n,this):this,u=0;(r=e[u])!=null;u++)t||r.nodeType!==1||i.cleanData(f(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&li(f(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;(n=this[t])!=null;t++){for(n.nodeType===1&&i.cleanData(f(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return b(this,function(n){var t=this[0]||{},u=0,e=this.length;if(n===undefined)return t.nodeType===1?t.innerHTML.replace(ce,""):undefined;if(typeof n=="string"&&!ae.test(n)&&(r.htmlSerialize||!tu.test(n))&&(r.leadingWhitespace||!hi.test(n))&&!s[(ru.exec(n)||["",""])[1].toLowerCase()]){n=n.replace(iu,"<$1><\/$2>");try{for(;u<e;u++)t=this[u]||{},t.nodeType===1&&(i.cleanData(f(t,!1)),t.innerHTML=n);t=0}catch(o){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=arguments[0];return this.domManip(arguments,function(t){n=this.parentNode;i.cleanData(f(this));n&&n.replaceChild(t,this)}),n&&(n.length||n.nodeType)?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t){n=ir.apply([],n);var h,u,c,o,v,s,e=0,l=this.length,p=this,w=l-1,a=n[0],y=i.isFunction(a);if(y||l>1&&typeof a=="string"&&!r.checkClone&&ve.test(a))return this.each(function(i){var r=p.eq(i);y&&(n[0]=a.call(this,i,r.html()));r.domManip(n,t)});if(l&&(s=i.buildFragment(n,this[0].ownerDocument,!1,this),h=s.firstChild,s.childNodes.length===1&&(s=h),h)){for(o=i.map(f(s,"script"),ou),c=o.length;e<l;e++)u=s,e!==w&&(u=i.clone(u,!0,!0),c&&i.merge(o,f(u,"script"))),t.call(this[e],u,e);if(c)for(v=o[o.length-1].ownerDocument,i.map(o,su),e=0;e<c;e++)u=o[e],fu.test(u.type||"")&&!i._data(u,"globalEval")&&i.contains(v,u)&&(u.src?i._evalUrl&&i._evalUrl(u.src):i.globalEval((u.text||u.textContent||u.innerHTML||"").replace(pe,"")));s=h=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ti.apply(f,u.get());return this.pushStack(f)}});ai={},function(){var t,i,n=u.createElement("div"),f="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";n.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";t=n.getElementsByTagName("a")[0];t.style.cssText="float:left;opacity:.5";r.opacity=/^0.5/.test(t.style.opacity);r.cssFloat=!!t.style.cssFloat;n.style.backgroundClip="content-box";n.cloneNode(!0).style.backgroundClip="";r.clearCloneStyle=n.style.backgroundClip==="content-box";t=n=null;r.shrinkWrapBlocks=function(){var t,r,n,e;if(i==null){if(t=u.getElementsByTagName("body")[0],!t)return;e="border:0;width:0;height:0;position:absolute;top:0;left:-9999px";r=u.createElement("div");n=u.createElement("div");t.appendChild(r).appendChild(n);i=!1;typeof n.style.zoom!==o&&(n.style.cssText=f+";width:1px;padding:1px;zoom:1",n.innerHTML="<div><\/div>",n.firstChild.style.width="5px",i=n.offsetWidth!==3);t.removeChild(r);t=r=n=null}return i}}();var au=/^margin/,yt=new RegExp("^("+at+")(?!px)[a-z%]+$","i"),k,d,de=/^(top|right|bottom|left)$/;n.getComputedStyle?(k=function(n){return n.ownerDocument.defaultView.getComputedStyle(n,null)},d=function(n,t,r){var e,o,s,u,f=n.style;return r=r||k(n),u=r?r.getPropertyValue(t)||r[t]:undefined,r&&(u!==""||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),yt.test(u)&&au.test(t)&&(e=f.width,o=f.minWidth,s=f.maxWidth,f.minWidth=f.maxWidth=f.width=u,u=r.width,f.width=e,f.minWidth=o,f.maxWidth=s)),u===undefined?u:u+""}):u.documentElement.currentStyle&&(k=function(n){return n.currentStyle},d=function(n,t,i){var o,f,e,r,u=n.style;return i=i||k(n),r=i?i[t]:undefined,r==null&&u&&u[t]&&(r=u[t]),yt.test(r)&&!de.test(t)&&(o=u.left,f=n.runtimeStyle,e=f&&f.left,e&&(f.left=n.currentStyle.left),u.left=t==="fontSize"?"1em":r,r=u.pixelLeft+"px",u.left=o,e&&(f.left=e)),r===undefined?r:r+""||"auto"}),function(){function a(){var f,t,r=u.getElementsByTagName("body")[0];r&&(f=u.createElement("div"),t=u.createElement("div"),f.style.cssText=l,r.appendChild(f).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",i.swap(r,r.style.zoom!=null?{zoom:1}:{},function(){c=t.offsetWidth===4}),o=!0,s=!1,h=!0,n.getComputedStyle&&(s=(n.getComputedStyle(t,null)||{}).top!=="1%",o=(n.getComputedStyle(t,null)||{width:"4px"}).width==="4px"),r.removeChild(f),t=r=null)}var f,e,c,o,s,h,t=u.createElement("div"),l="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",v="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";f=t.getElementsByTagName("a")[0];f.style.cssText="float:left;opacity:.5";r.opacity=/^0.5/.test(f.style.opacity);r.cssFloat=!!f.style.cssFloat;t.style.backgroundClip="content-box";t.cloneNode(!0).style.backgroundClip="";r.clearCloneStyle=t.style.backgroundClip==="content-box";f=t=null;i.extend(r,{reliableHiddenOffsets:function(){if(e!=null)return e;var i,n,f,t=u.createElement("div"),r=u.getElementsByTagName("body")[0];if(r)return t.setAttribute("className","t"),t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",i=u.createElement("div"),i.style.cssText=l,r.appendChild(i).appendChild(t),t.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",n=t.getElementsByTagName("td"),n[0].style.cssText="padding:0;margin:0;border:0;display:none",f=n[0].offsetHeight===0,n[0].style.display="",n[1].style.display="none",e=f&&n[0].offsetHeight===0,r.removeChild(i),t=r=null,e},boxSizing:function(){return c==null&&a(),c},boxSizingReliable:function(){return o==null&&a(),o},pixelPosition:function(){return s==null&&a(),s},reliableMarginRight:function(){var r,f,t,i;if(h==null&&n.getComputedStyle){if(r=u.getElementsByTagName("body")[0],!r)return;f=u.createElement("div");t=u.createElement("div");f.style.cssText=l;r.appendChild(f).appendChild(t);i=t.appendChild(u.createElement("div"));i.style.cssText=t.style.cssText=v;i.style.marginRight=i.style.width="0";t.style.width="1px";h=!parseFloat((n.getComputedStyle(i,null)||{}).marginRight);r.removeChild(f)}return h}})}();i.swap=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};var vi=/alpha\([^)]*\)/i,ge=/opacity\s*=\s*([^)]*)/,no=/^(none|table(?!-c[ea]).+)/,to=new RegExp("^("+at+")(.*)$","i"),io=new RegExp("^([+-])=("+at+")","i"),ro={position:"absolute",visibility:"hidden",display:"block"},yu={letterSpacing:0,fontWeight:400},pu=["Webkit","O","Moz","ms"];i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=d(n,"opacity");return i===""?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:r.cssFloat?"cssFloat":"styleFloat"},style:function(n,t,u,f){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var o,c,e,s=i.camelCase(t),h=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=wu(h,s)),e=i.cssHooks[t]||i.cssHooks[s],u!==undefined){if(c=typeof u,c==="string"&&(o=io.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,t)),c="number"),u==null||u!==u)return;if(c!=="number"||i.cssNumber[s]||(u+="px"),r.clearCloneStyle||u!==""||t.indexOf("background")!==0||(h[t]="inherit"),!e||!("set"in e)||(u=e.set(n,u,f))!==undefined)try{h[t]="";h[t]=u}catch(l){}}else return e&&"get"in e&&(o=e.get(n,!1,f))!==undefined?o:h[t]}},css:function(n,t,r,u){var s,f,e,o=i.camelCase(t);return(t=i.cssProps[o]||(i.cssProps[o]=wu(n.style,o)),e=i.cssHooks[t]||i.cssHooks[o],e&&"get"in e&&(f=e.get(n,!0,r)),f===undefined&&(f=d(n,t,u)),f==="normal"&&t in yu&&(f=yu[t]),r===""||r)?(s=parseFloat(f),r===!0||i.isNumeric(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return n.offsetWidth===0&&no.test(i.css(n,"display"))?i.swap(n,ro,function(){return gu(n,t,u)}):gu(n,t,u)},set:function(n,u,f){var e=f&&k(n);return ku(n,u,f?du(n,t,f,r.boxSizing()&&i.css(n,"boxSizing",!1,e)==="border-box",e):0)}}});r.opacity||(i.cssHooks.opacity={get:function(n,t){return ge.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+t*100+")":"",f=u&&u.filter||r.filter||"";(r.zoom=1,(t>=1||t==="")&&i.trim(f.replace(vi,""))===""&&r.removeAttribute&&(r.removeAttribute("filter"),t===""||u&&!u.filter))||(r.filter=vi.test(f)?f.replace(vi,e):f+" "+e)}});i.cssHooks.marginRight=vu(r.reliableMarginRight,function(n,t){if(t)return i.swap(n,{display:"inline-block"},d,[n,"marginRight"])});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};au.test(n)||(i.cssHooks[n+t].set=ku)});i.fn.extend({css:function(n,t){return b(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=k(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return r!==undefined?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return bu(this,!0)},hide:function(){return bu(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){et(this)?i(this).show():i(this).hide()})}});i.Tween=e;e.prototype={constructor:e,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=e.propHooks[this.prop];return n&&n.get?n.get(this):e.propHooks._default.get(this)},run:function(n){var t,r=e.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):e.propHooks._default.set(this),this}};e.prototype.init.prototype=e.prototype;e.propHooks={_default:{get:function(n){var t;return n.elem[n.prop]!=null&&(!n.elem.style||n.elem.style[n.prop]==null)?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(n.elem.style[i.cssProps[n.prop]]!=null||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};e.propHooks.scrollTop=e.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.fx=e.prototype.init;i.fx.step={};var rt,pt,uo=/^(?:toggle|show|hide)$/,nf=new RegExp("^(?:([+-])=|)("+at+")([a-z%]*)$","i"),fo=/queueHooks$/,wt=[eo],st={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),u=nf.exec(t),e=u&&u[3]||(i.cssNumber[n]?"":"px"),r=(i.cssNumber[n]||e!=="px"&&+s)&&nf.exec(i.css(f.elem,n)),o=1,h=20;if(r&&r[3]!==e){e=e||r[3];u=u||[];r=+s||1;do o=o||".5",r=r/o,i.style(f.elem,n,r+e);while(o!==(o=f.cur()/s)&&o!==1&&--h)}return u&&(r=f.start=+r||+s||0,f.unit=e,f.end=u[1]?r+(u[1]+1)*u[2]:+u[2]),f}]};i.Animation=i.extend(uf,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;u<f;u++)r=n[u],st[r]=st[r]||[],st[r].unshift(t)},prefilter:function(n,t){t?wt.unshift(n):wt.push(n)}});i.speed=function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(et).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=uf(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,t,r){var u=function(n){var t=n.stop;delete n.stop;t(r)};return typeof n!="string"&&(r=t,t=n,n=undefined),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=n!=null&&n+"queueHooks",e=i.timers,f=i._data(this);if(t)f[t]&&f[t].stop&&u(f[t]);else for(t in f)f[t]&&f[t].stop&&fo.test(t)&&u(f[t]);for(t=e.length;t--;)e[t].elem===this&&(n==null||e[t].queue===n)&&(e[t].anim.stop(r),o=!1,e.splice(t,1));(o||!r)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(bt(t,!0),n,i,u)}});i.each({slideDown:bt("show"),slideUp:bt("hide"),slideToggle:bt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=i.timers,t=0;for(rt=i.now();t<n.length;t++)r=n[t],r()||n[t]!==r||n.splice(t--,1);n.length||i.fx.stop();rt=undefined};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){pt||(pt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(pt);pt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},function(){var i,n,f,e,t=u.createElement("div");t.setAttribute("className","t");t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";i=t.getElementsByTagName("a")[0];f=u.createElement("select");e=f.appendChild(u.createElement("option"));n=t.getElementsByTagName("input")[0];i.style.cssText="top:1px";r.getSetAttribute=t.className!=="t";r.style=/top/.test(i.getAttribute("style"));r.hrefNormalized=i.getAttribute("href")==="/a";r.checkOn=!!n.value;r.optSelected=e.selected;r.enctype=!!u.createElement("form").enctype;f.disabled=!0;r.optDisabled=!e.disabled;n=u.createElement("input");n.setAttribute("value","");r.input=n.getAttribute("value")==="";n.value="t";n.setAttribute("type","radio");r.radioValue=n.value==="t";i=n=f=e=t=null}();ff=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;this.nodeType===1&&(u=f?n.call(this,r,i(this).val()):n,u==null?u="":typeof u=="number"?u+="":i.isArray(u)&&(u=i.map(u,function(n){return n==null?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,u,"value")!==undefined||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&(r=t.get(u,"value"))!==undefined)?r:(r=u.value,typeof r=="string"?r.replace(ff,""):r==null?"":r):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return t!=null?t:i.text(n)}},select:{get:function(n){for(var o,t,s=n.options,u=n.selectedIndex,f=n.type==="select-one"||u<0,h=f?null:[],c=f?u+1:s.length,e=u<0?c:f?u:0;e<c;e++)if(t=s[e],(t.selected||e===u)&&(r.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),f)return o;h.push(o)}return h},set:function(n,t){for(var f,r,u=n.options,o=i.makeArray(t),e=u.length;e--;)if(r=u[e],i.inArray(i.valHooks.option.get(r),o)>=0)try{r.selected=f=!0}catch(s){r.scrollHeight}else r.selected=!1;return f||(n.selectedIndex=-1),u}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}};r.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});var ut,ef,v=i.expr.attrHandle,yi=/^(?:checked|selected)$/i,g=r.getSetAttribute,kt=r.input;i.fn.extend({attr:function(n,t){return b(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(n&&e!==3&&e!==8&&e!==2){if(typeof n.getAttribute===o)return i.prop(n,t,r);if(e===1&&i.isXMLDoc(n)||(t=t.toLowerCase(),u=i.attrHooks[t]||(i.expr.match.bool.test(t)?ef:ut)),r!==undefined)if(r===null)i.removeAttr(n,t);else return u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:(n.setAttribute(t,r+""),r);else return u&&"get"in u&&(f=u.get(n,t))!==null?f:(f=i.find.attr(n,t),f==null?undefined:f)}},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(h);if(f&&n.nodeType===1)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?kt&&g||!yi.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(g?r:u)},attrHooks:{type:{set:function(n,t){if(!r.radioValue&&t==="radio"&&i.nodeName(n,"input")){var u=n.value;return n.setAttribute("type",t),u&&(n.value=u),t}}}}});ef={set:function(n,t,r){return t===!1?i.removeAttr(n,r):kt&&g||!yi.test(r)?n.setAttribute(!g&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=v[t]||i.find.attr;v[t]=kt&&g||!yi.test(t)?function(n,t,i){var u,f;return i||(f=v[t],v[t]=u,u=r(n,t,i)!=null?t.toLowerCase():null,v[t]=f),u}:function(n,t,r){if(!r)return n[i.camelCase("default-"+t)]?t.toLowerCase():null}});kt&&g||(i.attrHooks.value={set:function(n,t,r){if(i.nodeName(n,"input"))n.defaultValue=t;else return ut&&ut.set(n,t,r)}});g||(ut={set:function(n,t,i){var r=n.getAttributeNode(i);return r||n.setAttributeNode(r=n.ownerDocument.createAttribute(i)),r.value=t+="",i==="value"||t===n.getAttribute(i)?t:void 0}},v.id=v.name=v.coords=function(n,t,i){var r;if(!i)return(r=n.getAttributeNode(t))&&r.value!==""?r.value:null},i.valHooks.button={get:function(n,t){var i=n.getAttributeNode(t);if(i&&i.specified)return i.value},set:ut.set},i.attrHooks.contenteditable={set:function(n,t,i){ut.set(n,t===""?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]={set:function(n,i){if(i==="")return n.setAttribute(t,"auto"),i}}}));r.style||(i.attrHooks.style={get:function(n){return n.style.cssText||undefined},set:function(n,t){return n.style.cssText=t+""}});of=/^(?:input|select|textarea|button|object)$/i;sf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return b(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=undefined;delete this[n]}catch(t){}})}});i.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(n,t,r){var f,u,o,e=n.nodeType;if(n&&e!==3&&e!==8&&e!==2)return o=e!==1||!i.isXMLDoc(n),o&&(t=i.propFix[t]||t,u=i.propHooks[t]),r!==undefined?u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:n[t]=r:u&&"get"in u&&(f=u.get(n,t))!==null?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):of.test(n.nodeName)||sf.test(n.nodeName)&&n.href?0:-1}}}});r.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});r.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});r.enctype||(i.propFix.enctype="encoding");dt=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,t,r,u,s,f,e=0,c=this.length,l=typeof n=="string"&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(l)for(o=(n||"").match(h)||[];e<c;e++)if(t=this[e],r=t.nodeType===1&&(t.className?(" "+t.className+" ").replace(dt," "):" "),r){for(s=0;u=o[s++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");f=i.trim(r);t.className!==f&&(t.className=f)}return this},removeClass:function(n){var o,t,r,u,s,f,e=0,c=this.length,l=arguments.length===0||typeof n=="string"&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(l)for(o=(n||"").match(h)||[];e<c;e++)if(t=this[e],r=t.nodeType===1&&(t.className?(" "+t.className+" ").replace(dt," "):""),r){for(s=0;u=o[s++];)while(r.indexOf(" "+u+" ")>=0)r=r.replace(" "+u+" "," ");f=n?i.trim(r):"";t.className!==f&&(t.className=f)}return this},toggleClass:function(n,t){var r=typeof n;return typeof t=="boolean"&&r==="string"?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if(r==="string")for(var t,f=0,u=i(this),e=n.match(h)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(r===o||r==="boolean")&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;t<r;t++)if(this[t].nodeType===1&&(" "+this[t].className+" ").replace(dt," ").indexOf(i)>=0)return!0;return!1}});i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)}});var pi=i.now(),wi=/\?/,so=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;i.parseJSON=function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t+"");var f,r=null,u=i.trim(t+"");return u&&!i.trim(u.replace(so,function(n,t,i,u){return(f&&t&&(r=0),r===0)?n:(f=i||t,r+=!u-!i,"")}))?Function("return "+u)():i.error("Invalid JSON: "+t)};i.parseXML=function(t){var r,u;if(!t||typeof t!="string")return null;try{n.DOMParser?(u=new DOMParser,r=u.parseFromString(t,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(t))}catch(f){r=undefined}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var nt,y,ho=/#.*$/,hf=/([?&])_=[^&]*/,co=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,lo=/^(?:GET|HEAD)$/,ao=/^\/\//,cf=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,lf={},bi={},af="*/".concat("*");try{y=location.href}catch(ts){y=u.createElement("a");y.href="";y=y.href}nt=cf.exec(y.toLowerCase())||[];i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:y,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(nt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":af,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ki(ki(n,i.ajaxSettings),t):ki(i.ajaxSettings,n)},ajaxPrefilter:vf(lf),ajaxTransport:vf(bi),ajax:function(n,t){function w(n,t,s,h){var v,it,nt,y,w,c=t;e!==2&&(e=2,k&&clearTimeout(k),l=undefined,b=h||"",u.readyState=n>0?4:0,v=n>=200&&n<300||n===304,s&&(y=vo(r,u,s)),y=yo(r,y,u,v),v?(r.ifModified&&(w=u.getResponseHeader("Last-Modified"),w&&(i.lastModified[f]=w),w=u.getResponseHeader("etag"),w&&(i.etag[f]=w)),n===204||r.type==="HEAD"?c="nocontent":n===304?c="notmodified":(c=y.state,it=y.data,nt=y.error,v=!nt)):(nt=c,(n||!c)&&(c="error",n<0&&(n=0))),u.status=n,u.statusText=(t||c)+"",v?g.resolveWith(o,[it,c,u]):g.rejectWith(o,[u,c,nt]),u.statusCode(p),p=undefined,a&&d.trigger(v?"ajaxSuccess":"ajaxError",[u,r,v?it:nt]),tt.fireWith(o,[u,c]),a&&(d.trigger("ajaxComplete",[u,r]),--i.active||i.event.trigger("ajaxStop")))}typeof n=="object"&&(t=n,n=undefined);t=t||{};var s,c,f,b,k,a,l,v,r=i.ajaxSetup({},t),o=r.context||r,d=r.context&&(o.nodeType||o.jquery)?i(o):i.event,g=i.Deferred(),tt=i.Callbacks("once memory"),p=r.statusCode||{},it={},rt={},e=0,ut="canceled",u={readyState:0,getResponseHeader:function(n){var t;if(e===2){if(!v)for(v={};t=co.exec(b);)v[t[1].toLowerCase()]=t[2];t=v[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return e===2?b:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return e||(n=rt[i]=rt[i]||n,it[n]=t),this},overrideMimeType:function(n){return e||(r.mimeType=n),this},statusCode:function(n){var t;if(n)if(e<2)for(t in n)p[t]=[p[t],n[t]];else u.always(n[u.status]);return this},abort:function(n){var t=n||ut;return l&&l.abort(t),w(0,t),this}};if(g.promise(u).complete=tt.add,u.success=u.done,u.error=u.fail,r.url=((n||r.url||y)+"").replace(ho,"").replace(ao,nt[1]+"//"),r.type=t.method||t.type||r.method||r.type,r.dataTypes=i.trim(r.dataType||"*").toLowerCase().match(h)||[""],r.crossDomain==null&&(s=cf.exec(r.url.toLowerCase()),r.crossDomain=!!(s&&(s[1]!==nt[1]||s[2]!==nt[2]||(s[3]||(s[1]==="http:"?"80":"443"))!==(nt[3]||(nt[1]==="http:"?"80":"443"))))),r.data&&r.processData&&typeof r.data!="string"&&(r.data=i.param(r.data,r.traditional)),yf(lf,r,t,u),e===2)return u;a=r.global;a&&i.active++==0&&i.event.trigger("ajaxStart");r.type=r.type.toUpperCase();r.hasContent=!lo.test(r.type);f=r.url;r.hasContent||(r.data&&(f=r.url+=(wi.test(f)?"&":"?")+r.data,delete r.data),r.cache===!1&&(r.url=hf.test(f)?f.replace(hf,"$1_="+pi++):f+(wi.test(f)?"&":"?")+"_="+pi++));r.ifModified&&(i.lastModified[f]&&u.setRequestHeader("If-Modified-Since",i.lastModified[f]),i.etag[f]&&u.setRequestHeader("If-None-Match",i.etag[f]));(r.data&&r.hasContent&&r.contentType!==!1||t.contentType)&&u.setRequestHeader("Content-Type",r.contentType);u.setRequestHeader("Accept",r.dataTypes[0]&&r.accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+(r.dataTypes[0]!=="*"?", "+af+"; q=0.01":""):r.accepts["*"]);for(c in r.headers)u.setRequestHeader(c,r.headers[c]);if(r.beforeSend&&(r.beforeSend.call(o,u,r)===!1||e===2))return u.abort();ut="abort";for(c in{success:1,error:1,complete:1})u[c](r[c]);if(l=yf(bi,r,t,u),l){u.readyState=1;a&&d.trigger("ajaxSend",[u,r]);r.async&&r.timeout>0&&(k=setTimeout(function(){u.abort("timeout")},r.timeout));try{e=1;l.send(it,w)}catch(ft){if(e<2)w(-1,ft);else throw ft;}}else w(-1,"No Transport");return u},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,undefined,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=undefined),i.ajax({url:n,type:t,dataType:f,data:r,success:u})}});i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&n.firstChild.nodeType===1;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0||!r.reliableHiddenOffsets()&&(n.style&&n.style.display||i.css(n,"display"))==="none"};i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)};var po=/%20/g,wo=/\[\]$/,pf=/\r?\n/g,bo=/^(?:submit|button|image|reset|file)$/i,ko=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():t==null?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(t===undefined&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)di(r,n[r],t,f);return u.join("&").replace(po,"+")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&ko.test(this.nodeName)&&!bo.test(n)&&(this.checked||!oi.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(pf,"\r\n")}}):{name:t.name,value:r.replace(pf,"\r\n")}}).get()}});i.ajaxSettings.xhr=n.ActiveXObject!==undefined?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&wf()||ns()}:wf;var go=0,gt={},ht=i.ajaxSettings.xhr();if(n.ActiveXObject)i(n).on("unload",function(){for(var n in gt)gt[n](undefined,!0)});return r.cors=!!ht&&"withCredentials"in ht,ht=r.ajax=!!ht,ht&&i.ajaxTransport(function(n){if(!n.crossDomain||r.cors){var t;return{send:function(r,u){var e,f=n.xhr(),o=++go;if(f.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(e in n.xhrFields)f[e]=n.xhrFields[e];n.mimeType&&f.overrideMimeType&&f.overrideMimeType(n.mimeType);n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(e in r)r[e]!==undefined&&f.setRequestHeader(e,r[e]+"");f.send(n.hasContent&&n.data||null);t=function(r,e){var s,c,h;if(t&&(e||f.readyState===4))if(delete gt[o],t=undefined,f.onreadystatechange=i.noop,e)f.readyState!==4&&f.abort();else{h={};s=f.status;typeof f.responseText=="string"&&(h.text=f.responseText);try{c=f.statusText}catch(l){c=""}s||!n.isLocal||n.crossDomain?s===1223&&(s=204):s=h.text?200:404}h&&u(s,c,h,f.getAllResponseHeaders())};n.async?f.readyState===4?setTimeout(t):f.onreadystatechange=gt[o]=t:t()},abort:function(){t&&t(undefined,!0)}}}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){n.cache===undefined&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)}),i.ajaxTransport("script",function(n){if(n.crossDomain){var t,r=u.head||i("head")[0]||u.documentElement;return{send:function(i,f){t=u.createElement("script");t.async=!0;n.scriptCharset&&(t.charset=n.scriptCharset);t.src=n.url;t.onload=t.onreadystatechange=function(n,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||f(200,"success"))};r.insertBefore(t,r.firstChild)},abort:function(){if(t)t.onload(undefined,!0)}}}}),gi=[],ni=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=gi.pop()||i.expando+"_"+pi++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,o,e,s=t.jsonp!==!1&&(ni.test(t.url)?"url":typeof t.data=="string"&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ni.test(t.data)&&"data");if(s||t.dataTypes[0]==="jsonp")return f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ni,"$1"+f):t.jsonp!==!1&&(t.url+=(wi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return e||i.error(f+" was not called"),e[0]},t.dataTypes[0]="json",o=n[f],n[f]=function(){e=arguments},u.always(function(){n[f]=o;t[f]&&(t.jsonpCallback=r.jsonpCallback,gi.push(f));e&&i.isFunction(o)&&o(e[0]);e=o=undefined}),"script"}),i.parseHTML=function(n,t,r){if(!n||typeof n!="string")return null;typeof t=="boolean"&&(r=t,t=!1);t=t||u;var f=er.exec(n),e=!r&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&e.length&&i(e).remove(),i.merge([],f.childNodes))},nr=i.fn.load,i.fn.load=function(n,t,r){if(typeof n!="string"&&nr)return nr.apply(this,arguments);var u,o,s,f=this,e=n.indexOf(" ");return e>=0&&(u=n.slice(e,n.length),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=undefined):t&&typeof t=="object"&&(s="POST"),f.length>0&&i.ajax({url:n,type:s,dataType:"html",data:t}).done(function(n){o=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).complete(r&&function(n,t){f.each(r,o||[n.responseText,t,n])}),this},i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},tr=n.document.documentElement,i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};l==="static"&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=(l==="absolute"||l==="fixed")&&i.inArray("auto",[s,c])>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,u));t.top!=null&&(f.top=t.top-u.top+h);t.left!=null&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return n===undefined?this:this.each(function(t){i.offset.setOffset(this,n,t)});var t,f,u={top:0,left:0},r=this[0],e=r&&r.ownerDocument;if(e)return(t=e.documentElement,!i.contains(t,r))?u:(typeof r.getBoundingClientRect!==o&&(u=r.getBoundingClientRect()),f=bf(e),{top:u.top+(f.pageYOffset||t.scrollTop)-(t.clientTop||0),left:u.left+(f.pageXOffset||t.scrollLeft)-(t.clientLeft||0)})},position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return i.css(u,"position")==="fixed"?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||tr;n&&!i.nodeName(n,"html")&&i.css(n,"position")==="static";)n=n.offsetParent;return n||tr})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r=/Y/.test(t);i.fn[n]=function(u){return b(this,function(n,u,f){var e=bf(n);if(f===undefined)return e?t in e?e[t]:e.document.documentElement[u]:n[u];e?e.scrollTo(r?i(e).scrollLeft():f,r?f:i(e).scrollTop()):n[u]=f},n,u,arguments.length,null)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=vu(r.pixelPosition,function(n,r){if(r)return r=d(n,t),yt.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(u,f){var e=arguments.length&&(r||typeof u!="boolean"),o=r||(u===!0||f===!0?"margin":"border");return b(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:t.nodeType===9?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):u===undefined?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:undefined,e,null)}})}),i.fn.size=function(){return this.length},i.fn.andSelf=i.fn.addBack,typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}),kf=n.jQuery,df=n.$,i.noConflict=function(t){return n.$===i&&(n.$=df),t&&n.jQuery===i&&(n.jQuery=kf),i},typeof t===o&&(n.jQuery=n.$=i),i});window.Modernizr=function(n,t,i){function nt(n){p.cssText=n}function u(n,t){return typeof n===t}function ft(n,t){return!!~(""+n).indexOf(t)}function tt(n,t){var u,r;for(u in n)if(r=n[u],!ft(r,"-")&&p[r]!==i)return t=="pfx"?r:!0;return!1}function et(n,t,r){var e,f;for(e in n)if(f=t[n[e]],f!==i)return r===!1?n[e]:u(f,"function")?f.bind(r||t):f;return!1}function h(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),f=(n+" "+k.join(r+" ")+r).split(" ");return u(t,"string")||u(t,"undefined")?tt(f,t):(f=(n+" "+d.join(r+" ")+r).split(" "),et(f,t,i))}var r={},e=t.documentElement,o="modernizr",y=t.createElement(o),p=y.style,it,ot={}.toString,w=" -webkit- -moz- -o- -ms- ".split(" "),b="Webkit Moz O ms",k=b.split(" "),d=b.toLowerCase().split(" "),f={},g=[],l=g.slice,s,rt=function(n,i,r,u){var l,a,c,v,f=t.createElement("div"),h=t.body,s=h||t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:o+(r+1),f.appendChild(c);return l=["&#173;",'<style id="s',o,'">',n,"<\/style>"].join(""),f.id=o,(h?f:s).innerHTML+=l,s.appendChild(f),h||(s.style.background="",s.style.overflow="hidden",v=e.style.overflow,e.style.overflow="hidden",e.appendChild(s)),a=i(f,n),h?f.parentNode.removeChild(f):(s.parentNode.removeChild(s),e.style.overflow=v),!!a},ut=function(){function r(r,f){f=f||t.createElement(n[r]||"div");r="on"+r;var e=r in f;return e||(f.setAttribute||(f=t.createElement("div")),f.setAttribute&&f.removeAttribute&&(f.setAttribute(r,""),e=u(f[r],"function"),u(f[r],"undefined")||(f[r]=i),f.removeAttribute(r))),f=null,e}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),a={}.hasOwnProperty,v,c;v=u(a,"undefined")||u(a.call,"undefined")?function(n,t){return t in n&&u(n.constructor.prototype[t],"undefined")}:function(n,t){return a.call(n,t)};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=l.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(l.call(arguments))),Object(u)===u)?u:e:t.apply(n,i.concat(l.call(arguments)))},r});f.canvas=function(){var n=t.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))};f.canvastext=function(){return!!(r.canvas&&u(t.createElement("canvas").getContext("2d").fillText,"function"))};f.csscolumns=function(){return h("columnCount")};for(c in f)v(f,c)&&(s=c.toLowerCase(),r[s]=f[c](),g.push((r[s]?"":"no-")+s));return r.addTest=function(n,t){if(typeof n=="object")for(var u in n)v(n,u)&&r.addTest(u,n[u]);else{if(n=n.toLowerCase(),r[n]!==i)return r;t=typeof t=="function"?t():t;typeof enableClasses!="undefined"&&enableClasses&&(e.className+=" "+(t?"":"no-")+n);r[n]=t}return r},nt(""),y=it=null,r._version="2.7.2",r._prefixes=w,r._domPrefixes=d,r._cssomPrefixes=k,r.hasEvent=ut,r.testProp=function(n){return tt([n])},r.testAllProps=h,r.testStyles=rt,r.prefixed=function(n,t,i){return t?h(n,t,i):h(n,"pfx")},r}(this,this.document);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),-(o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e))+i)},easeOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),o*Math.pow(2,-10*t)*Math.sin((t*u-f)*2*Math.PI/e)+r+i)},easeInOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u/2)==2?i+r:(e||(e=u*.3*1.5),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),t<1)?-.5*o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)+i:o*Math.pow(2,-10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}}),function(n,t,i,r,u){function nt(t){t=t.split(")");var w=n.trim,l=-1,b=t.length-1,c,a,u,f=d?new Float32Array(6):[],i=d?new Float32Array(6):[],e=d?new Float32Array(6):[1,0,0,1,0,0];for(f[0]=f[3]=e[0]=e[3]=1,f[1]=f[2]=f[4]=f[5]=0;++l<b;){c=t[l].split("(");a=w(c[0]);u=c[1];i[0]=i[3]=1;i[1]=i[2]=i[4]=i[5]=0;switch(a){case s+"X":i[4]=parseInt(u,10);break;case s+"Y":i[5]=parseInt(u,10);break;case s:u=u.split(",");i[4]=parseInt(u[0],10);i[5]=parseInt(u[1]||0,10);break;case v:u=p(u);i[0]=r.cos(u);i[1]=r.sin(u);i[2]=-r.sin(u);i[3]=r.cos(u);break;case o+"X":i[0]=+u;break;case o+"Y":i[3]=u;break;case o:u=u.split(",");i[0]=u[0];i[3]=u.length>1?u[1]:u[0];break;case h+"X":i[2]=r.tan(p(u));break;case h+"Y":i[1]=r.tan(p(u));break;case y:u=u.split(",");i[0]=u[0];i[1]=u[1];i[2]=u[2];i[3]=u[3];i[4]=parseInt(u[4],10);i[5]=parseInt(u[5],10)}e[0]=f[0]*i[0]+f[2]*i[1];e[1]=f[1]*i[0]+f[3]*i[1];e[2]=f[0]*i[2]+f[2]*i[3];e[3]=f[1]*i[2]+f[3]*i[3];e[4]=f[0]*i[4]+f[2]*i[5]+f[4];e[5]=f[1]*i[4]+f[3]*i[5]+f[5];f=[e[0],e[1],e[2],e[3],e[4],e[5]]}return e}function tt(n){var f,l,u,t=n[0],i=n[1],e=n[2],c=n[3];return t*c-i*e?(f=r.sqrt(t*t+i*i),t/=f,i/=f,u=t*e+i*c,e-=t*u,c-=i*u,l=r.sqrt(e*e+c*c),e/=l,c/=l,u/=l,t*c<i*e&&(t=-t,i=-i,u=-u,f=-f)):f=l=u=0,[[s,[+n[4],+n[5]]],[v,r.atan2(i,t)],[h+"X",r.atan(u)],[o,[f,l]]]}function lt(t,i){var r={start:[],end:[]},u=-1,o,f,e,s;if((t=="none"||et(t))&&(t=""),(i=="none"||et(i))&&(i=""),t&&i&&!i.indexOf("matrix")&&it(t).join()==it(i.split(")")[0]).join()&&(r.origin=t,t="",i=i.slice(i.indexOf(")")+1)),t||i){if(t&&i&&ot(t)!=ot(i))r.start=tt(nt(t)),r.end=tt(nt(i));else for(t&&(t=t.split(")"))&&(o=t.length),i&&(i=i.split(")"))&&(o=i.length);++u<o-1;)t[u]&&(f=t[u].split("(")),i[u]&&(e=i[u].split("(")),s=n.trim((f||e)[0]),st(r.start,ft(s,f?f[1]:0)),st(r.end,ft(s,e?e[1]:0));return r}}function ft(n,t){var i=+!n.indexOf(o),r,u=n.replace(/e[XY]/,"e");switch(n){case s+"Y":case o+"Y":t=[i,t?parseFloat(t):i];break;case s+"X":case s:case o+"X":r=1;case o:t=t?(t=t.split(","))&&[parseFloat(t[0]),parseFloat(t.length>1?t[1]:n==o?r||t[0]:i+"")]:[i,i];break;case h+"X":case h+"Y":case v:t=t?p(t):0;break;case y:return tt(t?it(t):[1,0,0,1,0,0])}return[[u,t]]}function et(n){return ct.test(n)}function ot(n){return n.replace(/(?:\([^)]*\))|\s/g,"")}function st(n,t,i){while(i=t.shift())n.push(i)}function p(n){return~n.indexOf("deg")?parseInt(n,10)*(r.PI/180):~n.indexOf("grad")?parseInt(n,10)*(r.PI/200):parseFloat(n)}function it(n){return n=/([^,]*),([^,]*),([^,]*),([^,]*),([^,p]*)(?:px)?,([^)p]*)(?:px)?/.exec(n),[n[1],n[2],n[3],n[4],n[5],n[6]]}for(var ht=i.createElement("div"),rt=ht.style,l="Transform",w=["O"+l,"ms"+l,"Webkit"+l,"Moz"+l],b=w.length,f,k,d=("Float32Array"in t),e,ut,g=/Matrix([^)]*)/,ct=/^\s*matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*(?:,\s*0(?:px)?\s*){2}\)\s*$/,a="transform",c="transformOrigin",s="translate",v="rotate",o="scale",h="skew",y="matrix";b--;)if(w[b]in rt){n.support[a]=f=w[b];n.support[c]=f+"Origin";continue}f||(n.support.matrixFilter=k=rt.filter==="");n.cssNumber[a]=n.cssNumber[c]=!0;f&&f!=a?(n.cssProps[a]=f,n.cssProps[c]=f+"Origin",f=="Moz"+l?e={get:function(t,i){return i?n.css(t,f).split("px").join(""):t.style[f]},set:function(n,t){n.style[f]=/matrix\([^)p]*\)/.test(t)?t.replace(/matrix((?:[^,]*,){4})([^,]*),([^)]*)/,y+"$1$2px,$3px"):t}}:/^1\.[0-5](?:\.|$)/.test(n.fn.jquery)&&(e={get:function(t,i){return i?n.css(t,f.replace(/^ms/,"Ms")):t.style[f]}})):k&&(e={get:function(t,i,r){var e=i&&t.currentStyle?t.currentStyle:t.style,f,o;return e&&g.test(e.filter)?(f=RegExp.$1.split(","),f=[f[0].split("=")[1],f[2].split("=")[1],f[1].split("=")[1],f[3].split("=")[1]]):f=[1,0,0,1],n.cssHooks[c]?(o=n._data(t,"transformTranslate",u),f[4]=o?o[0]:0,f[5]=o?o[1]:0):(f[4]=e?parseInt(e.left,10)||0:0,f[5]=e?parseInt(e.top,10)||0:0),r?f:y+"("+f+")"},set:function(t,i,r){var u=t.style,s,e,f,o;r||(u.zoom=1);i=nt(i);e=["Matrix(M11="+i[0],"M12="+i[2],"M21="+i[1],"M22="+i[3],"SizingMethod='auto expand'"].join();f=(s=t.currentStyle)&&s.filter||u.filter||"";u.filter=g.test(f)?f.replace(g,e):f+" progid:DXImageTransform.Microsoft."+e+")";n.cssHooks[c]?n.cssHooks[c].set(t,i):((o=n.transform.centerOrigin)&&(u[o=="margin"?"marginLeft":"left"]=-(t.offsetWidth/2)+t.clientWidth/2+"px",u[o=="margin"?"marginTop":"top"]=-(t.offsetHeight/2)+t.clientHeight/2+"px"),u.left=i[4]+"px",u.top=i[5]+"px")}});e&&(n.cssHooks[a]=e);ut=e&&e.get||n.css;n.fx.step.transform=function(t){var p=t.elem,u=t.start,y=t.end,d=t.pos,c="",l=1e5,w,i,b,a;for(u&&typeof u!="string"||(u||(u=ut(p,f)),k&&(p.style.zoom=1),y=y.split("+=").join(u),n.extend(t,lt(u,y)),u=t.start,y=t.end),w=u.length;w--;){i=u[w];b=y[w];a=0;switch(i[0]){case s:a="px";case o:a||(a="");c=i[0]+"("+r.round((i[1][0]+(b[1][0]-i[1][0])*d)*l)/l+a+","+r.round((i[1][1]+(b[1][1]-i[1][1])*d)*l)/l+a+")"+c;break;case h+"X":case h+"Y":case v:c=i[0]+"("+r.round((i[1]+(b[1]-i[1])*d)*l)/l+"rad)"+c}}t.origin&&(c=t.origin+c);e&&e.set?e.set(p,c,1):p.style[f]=c};n.transform={centerOrigin:"margin"}}(jQuery,window,document,Math),function(){"use strict";function n(t,r){function h(n,t){return function(){return n.apply(t,arguments)}}var o,f,e,u,s;if(r=r||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=r.touchBoundary||10,this.layer=t,this.tapDelay=r.tapDelay||200,this.tapTimeout=r.tapTimeout||700,!n.notNeeded(t)){for(f=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],e=this,u=0,s=f.length;u<s;u++)e[f[u]]=h(e[f[u]],e);i&&(t.addEventListener("mouseover",this.onMouse,!0),t.addEventListener("mousedown",this.onMouse,!0),t.addEventListener("mouseup",this.onMouse,!0));t.addEventListener("click",this.onClick,!0);t.addEventListener("touchstart",this.onTouchStart,!1);t.addEventListener("touchmove",this.onTouchMove,!1);t.addEventListener("touchend",this.onTouchEnd,!1);t.addEventListener("touchcancel",this.onTouchCancel,!1);Event.prototype.stopImmediatePropagation||(t.removeEventListener=function(n,i,r){var u=Node.prototype.removeEventListener;n==="click"?u.call(t,n,i.hijacked||i,r):u.call(t,n,i,r)},t.addEventListener=function(n,i,r){var u=Node.prototype.addEventListener;n==="click"?u.call(t,n,i.hijacked||(i.hijacked=function(n){n.propagationStopped||i(n)}),r):u.call(t,n,i,r)});typeof t.onclick=="function"&&(o=t.onclick,t.addEventListener("click",function(n){o(n)},!1),t.onclick=null)}}var r=navigator.userAgent.indexOf("Windows Phone")>=0,i=navigator.userAgent.indexOf("Android")>0&&!r,t=/iP(ad|hone|od)/.test(navigator.userAgent)&&!r,u=t&&/OS 4_\d(_\d)?/.test(navigator.userAgent),f=t&&/OS [6-7]_\d/.test(navigator.userAgent),e=navigator.userAgent.indexOf("BB10")>0;n.prototype.needsClick=function(n){switch(n.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(n.disabled)return!0;break;case"input":if(t&&n.type==="file"||n.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(n.className)};n.prototype.needsFocus=function(n){switch(n.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!i;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)}};n.prototype.sendClick=function(n,t){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)};n.prototype.determineEventType=function(n){return i&&n.tagName.toLowerCase()==="select"?"mousedown":"click"};n.prototype.focus=function(n){var i;t&&n.setSelectionRange&&n.type.indexOf("date")!==0&&n.type!=="time"&&n.type!=="month"?(i=n.value.length,n.setSelectionRange(i,i)):n.focus()};n.prototype.updateScrollParent=function(n){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)};n.prototype.getTargetElementFromEventTarget=function(n){return n.nodeType===Node.TEXT_NODE?n.parentNode:n};n.prototype.onTouchStart=function(n){var r,i,f;if(n.targetTouches.length>1)return!0;if(r=this.getTargetElementFromEventTarget(n.target),i=n.targetTouches[0],t){if(f=window.getSelection(),f.rangeCount&&!f.isCollapsed)return!0;if(!u){if(i.identifier&&i.identifier===this.lastTouchIdentifier)return n.preventDefault(),!1;this.lastTouchIdentifier=i.identifier;this.updateScrollParent(r)}}return this.trackingClick=!0,this.trackingClickStart=n.timeStamp,this.targetElement=r,this.touchStartX=i.pageX,this.touchStartY=i.pageY,n.timeStamp-this.lastClickTime<this.tapDelay&&n.preventDefault(),!0};n.prototype.touchHasMoved=function(n){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};n.prototype.onTouchMove=function(n){return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(n.target)||this.touchHasMoved(n))&&(this.trackingClick=!1,this.targetElement=null),!0):!0};n.prototype.findControl=function(n){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")};n.prototype.onTouchEnd=function(n){var s,c,e,o,h,r=this.targetElement;if(!this.trackingClick)return!0;if(n.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(n.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=n.timeStamp,c=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,f&&(h=n.changedTouches[0],r=document.elementFromPoint(h.pageX-window.pageXOffset,h.pageY-window.pageYOffset)||r,r.fastClickScrollParent=this.targetElement.fastClickScrollParent),e=r.tagName.toLowerCase(),e==="label"){if(s=this.findControl(r),s){if(this.focus(r),i)return!1;r=s}}else if(this.needsFocus(r))return n.timeStamp-c>100||t&&window.top!==window&&e==="input"?(this.targetElement=null,!1):(this.focus(r),this.sendClick(r,n),t&&e==="select"||(this.targetElement=null,n.preventDefault()),!1);return t&&!u&&(o=r.fastClickScrollParent,o&&o.fastClickLastScrollTop!==o.scrollTop)?!0:(this.needsClick(r)||(n.preventDefault(),this.sendClick(r,n)),!1)};n.prototype.onTouchCancel=function(){this.trackingClick=!1;this.targetElement=null};n.prototype.onMouse=function(n){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};n.prototype.onClick=function(n){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)};n.prototype.destroy=function(){var n=this.layer;i&&(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)};n.notNeeded=function(n){var t,r,u,f;if(typeof window.ontouchstart=="undefined")return!0;if(r=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],r)if(i){if(t=document.querySelector("meta[name=viewport]"),t&&(t.content.indexOf("user-scalable=no")!==-1||r>31&&document.documentElement.scrollWidth<=window.outerWidth))return!0}else return!0;return e&&(u=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),u[1]>=10&&u[2]>=3&&(t=document.querySelector("meta[name=viewport]"),t&&(t.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))?!0:n.style.msTouchAction==="none"||n.style.touchAction==="manipulation"?!0:(f=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],f>=27&&(t=document.querySelector("meta[name=viewport]"),t&&(t.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))?!0:n.style.touchAction==="none"||n.style.touchAction==="manipulation"?!0:!1};n.attach=function(t,i){return new n(t,i)};typeof define=="function"&&typeof define.amd=="object"&&define.amd?define(function(){return n}):typeof module!="undefined"&&module.exports?(module.exports=n.attach,module.exports.FastClick=n):window.FastClick=n}(),function(n){var t=navigator.userAgent;n.HTMLPictureElement&&/ecko/.test(t)&&t.match(/rv\:(\d+)/)&&RegExp.$1<41&&addEventListener("resize",function(){var r,u=document.createElement("source"),e=function(n){var i,r,t=n.parentNode;t.nodeName.toUpperCase()==="PICTURE"?(i=u.cloneNode(),t.insertBefore(i,t.firstElementChild),setTimeout(function(){t.removeChild(i)})):(!n._pfLastSize||n.offsetWidth>n._pfLastSize)&&(n._pfLastSize=n.offsetWidth,r=n.sizes,n.sizes+=",100vw",setTimeout(function(){n.sizes=r}))},o=function(){for(var t=document.querySelectorAll("picture > img, img[srcset][sizes]"),n=0;n<t.length;n++)e(t[n])},t=function(){clearTimeout(r);r=setTimeout(o,99)},i=n.matchMedia&&matchMedia("(orientation: landscape)"),f=function(){t();i&&i.addListener&&i.addListener(t)};return u.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?f():document.addEventListener("DOMContentLoaded",f),t}())}(window),function(n,t,i){"use strict";function b(n){return n===" "||n==="\t"||n==="\n"||n==="\f"||n==="\r"}function ui(t,i){var r=new n.Image;return r.onerror=function(){e[t]=!1;o()},r.onload=function(){e[t]=r.width===1;o()},r.src=i,"pending"}function fi(){p=!1;a=n.devicePixelRatio;h={};w={};r.DPR=a||1;u.width=Math.max(n.innerWidth||0,f.clientWidth);u.height=Math.max(n.innerHeight||0,f.clientHeight);u.vw=u.width/100;u.vh=u.height/100;v=[u.height,u.width,a].join("-");u.em=r.getEmValue();u.rem=u.em}function ei(n,t,i,r){var f,o,e,u;return y.algorithm==="saveData"?n>2.7?u=i+1:(o=t-i,f=Math.pow(n-.6,1.5),e=o*f,r&&(e+=.1*f),u=n+e):u=i>1?Math.sqrt(n*t):n,u>i}function oi(n){var i,t=r.getSet(n),u=!1;t!=="pending"&&(u=v,t&&(i=r.setRes(t),r.applySetCandidate(i,n)));n[r.ns].evaled=u}function si(n,t){return n.res-t.res}function hi(n,t,i){var u;return!i&&t&&(i=n[r.ns].sets,i=i&&i[i.length-1]),u=yt(t,i),u&&(t=r.makeUrl(t),n[r.ns].curSrc=t,n[r.ns].curCan=u,u.res||ft(u,u.set.sizes)),u}function yt(n,t){var i,f,u;if(n&&t)for(u=r.parseSet(t),n=r.makeUrl(n),i=0;i<u.length;i++)if(n===r.makeUrl(u[i].url)){f=u[i];break}return f}function ci(n,t){for(var i,f,o=n.getElementsByTagName("source"),u=0,e=o.length;u<e;u++)i=o[u],i[r.ns]=!0,f=i.getAttribute("srcset"),f&&t.push({srcset:f,media:i.getAttribute("media"),type:i.getAttribute("type"),sizes:i.getAttribute("sizes")})}function li(n,t){function h(t){var i,r=t.exec(n.substring(e));if(r)return i=r[0],e+=i.length,i}function s(){for(var n=!1,u,r,e,i={},h,v,s,l,y,a=0;a<f.length;a++)h=f[a],v=h[h.length-1],s=h.substring(0,h.length-1),l=parseInt(s,10),y=parseFloat(s),lt.test(s)&&v==="w"?((u||r)&&(n=!0),l===0?n=!0:u=l):ri.test(s)&&v==="x"?((u||r||e)&&(n=!0),y<0?n=!0:r=y):lt.test(s)&&v==="h"?((e||r)&&(n=!0),l===0?n=!0:e=l):n=!0;n||(i.url=o,u&&(i.w=u),r&&(i.d=r),e&&(i.h=e),e||r||u||(i.d=1),i.d===1&&(t.has1x=!0),i.set=t,c.push(i))}function a(){for(h(gt),i="",u="in descriptor";;){if(r=n.charAt(e),u==="in descriptor")if(b(r))i&&(f.push(i),i="",u="after descriptor");else{if(r===","){e+=1;i&&f.push(i);s();return}if(r==="(")i=i+r,u="in parens";else{if(r===""){i&&f.push(i);s();return}i=i+r}}else if(u==="in parens")if(r===")")i=i+r,u="in descriptor";else{if(r===""){f.push(i);s();return}i=i+r}else if(u==="after descriptor"&&!b(r)){if(r===""){s();return}u="in descriptor";e-=1}e+=1}}for(var l=n.length,o,f,i,u,r,e=0,c=[];;){if(h(ni),e>=l)return c;o=h(ti);f=[];o.slice(-1)===","?(o=o.replace(ii,""),s()):a()}}function ai(n){function l(n){function e(){u&&(f.push(u),u="")}function c(){f[0]&&(h.push(f),f=[])}for(var r,u="",f=[],h=[],o=0,t=0,s=!1;;){if(r=n[t],r===i)return e(),c(),h;if(s)if(r==="*"&&n[t+1]==="/"){s=!1;t+=2;e();continue}else{t+=1;continue}else if(b(r))if(n[t-1]&&b(n[t-1])||!u){t+=1;continue}else if(o===0){e();t+=1;continue}else r=" ";else if(r==="(")o+=1;else if(r===")")o-=1;else if(r===","){e();c();t+=1;continue}else if(r==="/"&&n[t+1]==="*"){s=!0;t+=2;continue}u=u+r;t+=1}}function a(n){return h.test(n)&&parseFloat(n)>=0?!0:c.test(n)?!0:n==="0"||n==="-0"||n==="+0"?!0:!1}var h=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,c=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i,u,f,s,t,e,o;for(f=l(n),s=f.length,u=0;u<s;u++){if(t=f[u],e=t[t.length-1],a(e))o=e,t.pop();else continue;if(t.length===0)return o;if(t=t.join(" "),r.matchesMedia(t))return o}return"100vw"}t.createElement("picture");var pt,c,et,v,r={},l=function(){},s=t.createElement("img"),k=s.getAttribute,ot=s.setAttribute,st=s.removeAttribute,f=t.documentElement,e={},y={algorithm:""},d="data-pfsrc",g=d+"set",nt=navigator.userAgent,wt=/rident/.test(nt)||/ecko/.test(nt)&&nt.match(/rv\:(\d+)/)&&RegExp.$1>35,tt="currentSrc",bt=/\s+\+?\d+(e\d+)?w/,kt=/(\([^)]+\))?\s*(.+)/,it=n.picturefillCFG,dt="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",ht="font-size:100%!important;",p=!0,h={},w={},a=n.devicePixelRatio,u={px:1,"in":96},ct=t.createElement("a"),rt=!1,gt=/^[ \t\n\r\u000c]+/,ni=/^[, \t\n\r\u000c]+/,ti=/^[^ \t\n\r\u000c]+/,ii=/[,]+$/,lt=/^\d+$/,ri=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,at=function(n,t,i,r){n.addEventListener?n.addEventListener(t,i,r||!1):n.attachEvent&&n.attachEvent("on"+t,i)},ut=function(n){var t={};return function(i){return i in t||(t[i]=n(i)),t[i]}};var vt=function(){var n=/^([\d\.]+)(em|vw|px)$/,t=function(){for(var n=arguments,t=0,i=n[0];++t in n;)i=i.replace(n[t],n[++t]);return i},i=ut(function(n){return"return "+t((n||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/ig,"")+";"});return function(t,r){var f;if(!(t in h))if(h[t]=!1,r&&(f=t.match(n)))h[t]=f[1]*u[f[2]];else try{h[t]=new Function("e",i(t))(u)}catch(e){}return h[t]}}(),ft=function(n,t){return n.w?(n.cWidth=r.calcListLength(t||"100vw"),n.res=n.w/n.cWidth):n.res=n.d,n},o=function(n){var f,u,e,i=n||{};if(i.elements&&i.elements.nodeType===1&&(i.elements.nodeName.toUpperCase()==="IMG"?i.elements=[i.elements]:(i.context=i.elements,i.elements=null)),f=i.elements||r.qsa(i.context||t,i.reevaluate||i.reselect?r.sel:r.selShort),e=f.length){for(r.setupRun(i),rt=!0,u=0;u<e;u++)r.fillImg(f[u],i);r.teardownRun(i)}};for(pt=n.console&&console.warn?function(n){console.warn(n)}:l,(tt in s)||(tt="src"),e["image/jpeg"]=!0,e["image/gif"]=!0,e["image/png"]=!0,e["image/svg+xml"]=t.implementation.hasFeature("http://wwwindow.w3.org/TR/SVG11/feature#Image","1.1"),r.ns=("pf"+(new Date).getTime()).substr(0,9),r.supSrcset=("srcset"in s),r.supSizes=("sizes"in s),r.selShort="picture>img,img[srcset]",r.sel=r.selShort,r.cfg=y,r.supSrcset&&(r.sel+=",img["+g+"]"),r.DPR=a||1,r.u=u,r.types=e,et=r.supSrcset&&!r.supSizes,r.setSize=l,r.makeUrl=ut(function(n){return ct.href=n,ct.href}),r.qsa=function(n,t){return n.querySelectorAll(t)},r.matchesMedia=function(){return r.matchesMedia=n.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?function(n){return!n||matchMedia(n).matches}:r.mMQ,r.matchesMedia.apply(this,arguments)},r.mMQ=function(n){return n?vt(n):!0},r.calcLength=function(n){var t=vt(n,!0)||!1;return t<0&&(t=!1),t},r.supportsType=function(n){return n?e[n]:!0},r.parseSize=ut(function(n){var t=(n||"").match(kt);return{media:t&&t[1],length:t&&t[2]}}),r.parseSet=function(n){return n.cands||(n.cands=li(n.srcset,n)),n.cands},r.getEmValue=function(){var n;if(!c&&(n=t.body)){var i=t.createElement("div"),r=f.style.cssText,u=n.style.cssText;i.style.cssText=dt;f.style.cssText=ht;n.style.cssText=ht;n.appendChild(i);c=i.offsetWidth;n.removeChild(i);c=parseFloat(c,10);f.style.cssText=r;n.style.cssText=u}return c||16},r.calcListLength=function(n){if(!(n in w)||y.uT){var t=r.calcLength(ai(n));w[n]=t?t:u.width}return w[n]},r.setRes=function(n){var t,i,u;if(n)for(t=r.parseSet(n),i=0,u=t.length;i<u;i++)ft(t[i],n.sizes);return t},r.setRes.res=ft,r.applySetCandidate=function(n,t){if(n.length){var f,e,o,l,i,s,u,y,a,v,h=t[r.ns],c=r.DPR;if(s=h.curSrc||t[tt],u=h.curCan||hi(t,s,n[0].set),u&&u.set===n[0].set&&(v=wt&&!t.complete&&u.res-.1>c,v||(u.cached=!0,u&&y&&u.res>=c&&(i=u))),!i)for(n.sort(si),l=n.length,i=n[l-1],e=0;e<l;e++)if(f=n[e],f.res>=c){o=e-1;i=n[o]&&(v||s!==r.makeUrl(f.url))&&ei(n[o].res,f.res,c,n[o].cached)?n[o]:f;break}i&&(a=r.makeUrl(i.url),h.curSrc=a,h.curCan=i,a!==s&&r.setSrc(t,i),r.setSize(t))}},r.setSrc=function(n,t){var i;n.src=t.url;t.set.type==="image/svg+xml"&&(i=n.style.width,n.style.width=n.offsetWidth+1+"px",n.offsetWidth+1&&(n.style.width=i))},r.getSet=function(n){for(var t,u,f=!1,e=n[r.ns].sets,i=0;i<e.length&&!f;i++)if(t=e[i],t.srcset&&r.matchesMedia(t.media)&&(u=r.supportsType(t.type))){u==="pending"&&(t=u);f=t;break}return f},r.parseSets=function(n,t,u){var o,e,s,h,c=t&&t.nodeName.toUpperCase()==="PICTURE",f=n[r.ns];(f.src===i||u.src)&&(f.src=k.call(n,"src"),f.src?ot.call(n,d,f.src):st.call(n,d));(f.srcset===i||u.srcset||!r.supSrcset||n.srcset)&&(o=k.call(n,"srcset"),f.srcset=o,h=!0);f.sets=[];c&&(f.pic=!0,ci(t,f.sets));f.srcset?(e={srcset:f.srcset,sizes:k.call(n,"sizes")},f.sets.push(e),s=(et||f.src)&&bt.test(f.srcset||""),s||!f.src||yt(f.src,e)||e.has1x||(e.srcset+=", "+f.src,e.cands.push({url:f.src,d:1,set:e}))):f.src&&f.sets.push({srcset:f.src,sizes:null});f.curCan=null;f.curSrc=i;f.supported=!(c||e&&!r.supSrcset||s);h&&r.supSrcset&&!f.supported&&(o?(ot.call(n,g,o),n.srcset=""):st.call(n,g));f.supported&&!f.srcset&&(!f.src&&n.src||n.src!==r.makeUrl(f.src))&&(f.src===null?n.removeAttribute("src"):n.src=f.src);f.parsed=!0},r.fillImg=function(n,t){var i,u=t.reselect||t.reevaluate;(n[r.ns]||(n[r.ns]={}),i=n[r.ns],u||i.evaled!==v)&&((!i.parsed||t.reevaluate)&&r.parseSets(n,n.parentNode,t),i.supported?i.evaled=v:oi(n))},r.setupRun=function(){(!rt||p||a!==n.devicePixelRatio)&&fi()},n.HTMLPictureElement?(o=l,r.fillImg=l):function(){var i,c=n.attachEvent?/d$|^c/:/d$|^c|^i/,o=function(){var n=t.readyState||"";s=setTimeout(o,n==="loading"?200:999);t.body&&(r.fillImgs(),i=i||c.test(n),i&&clearTimeout(s))},s=setTimeout(o,t.body?9:99),l=function(n,t){var i,r,u=function(){var f=new Date-r;f<t?i=setTimeout(u,t-f):(i=null,n())};return function(){r=new Date;i||(i=setTimeout(u,t))}},h=f.clientHeight,a=function(){p=Math.max(n.innerWidth||0,f.clientWidth)!==u.width||f.clientHeight!==h;h=f.clientHeight;p&&r.fillImgs()};at(n,"resize",l(a,99));at(t,"readystatechange",o);e["image/webp"]=ui("image/webp","data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==")}(),r.picturefill=o,r.fillImgs=o,r.teardownRun=l,o._=r,n.picturefillCFG={pf:r,push:function(n){var t=n.shift();typeof r[t]=="function"?r[t].apply(r,n):(y[t]=n[0],rt&&r.fillImgs({reselect:!0}))}};it&&it.length;)n.picturefillCFG.push(it.shift());n.picturefill=o;typeof module=="object"&&typeof module.exports=="object"?module.exports=o:typeof define=="function"&&define.amd&&define("picturefill",function(){return o})}(window,document);nn5=new function(){"use strict";var n=this,t,i,r,e;this.mobilebaseurl;this.webserviceurl;$(document).ready(function(){nn5.lazyloadimages()});t=-1;i=-1;this.lazyloadimages=function(){(clearInterval(i),i=setTimeout(function(){clearInterval(t);t=-1;i=-1},4e3),t==-1)&&(t=setInterval(function(){$(".nn5-lazyloadimage").each(function(n,t){nn5.dolateloadimage(t)})},10))};r=-1;$(window).resize(function(){clearTimeout(e);e=setTimeout(function(){$(".nn5-resizeableimage").addClass("nn5-needsresize");nn5.updateimages()},200)});var o=(new Date).getTime(),u=0,f=!0,s=!1;$(document).ready(function(){nn5.sliders.preparesliders();nn5.imagegroup.prepareimagegroups();nn5.flexlists.prepareflexlists();nn5.columnlayouts.preparecolumnlayouts();setInterval(function(){var n=(new Date).getTime(),t=n-o,i=$(window).scrollTop()-r;r=$(window).scrollTop();u=Math.abs(i/t);u>0&&(f=!0);u===0&&f&&(s||nn5.updateimages(),f=!1)},100)});this.appearloadimages=function(){this.updateimages()};this.is_in_view=function(n,t){var i=t===!0?$(window).height():2*$(window).height(),r=$(window).scrollTop(),f=r+i,u=$(n).offset().top,e=u+$(n).outerHeight(!0);return e>r-i&&u<f};this.is_in_full_view=function(n){var t=$(window).scrollTop(),r=t+$(window).height(),i=$(n).offset().top,u=i+$(n).outerHeight(!0);return i>=t&&u<=r};this.is_mostly_in_view=function(n){var i=$(window).scrollTop(),u=i+$(window).height(),r=$(n).offset().top,t=$(n).outerHeight(!0),f=r+t;return r+.25*t>=i&&f-.25*t<=u};this.lastcheckfortouchdeviceresult=1;this.istouchdevice=function(){return this.lastcheckfortouchdeviceresult===-1&&(this.lastcheckfortouchdeviceresult="ontouchstart"in window?!0:!1),this.lastcheckfortouchdeviceresult};$(document).ready(function(){n.makeautofadetext()});this.makeautofadetext=function(){$(".nn5-autofadetext").each(function(){var t=$(this).parent(),i=$(this).position().top,r=$(t).height(),n;$(this).height(r-i);$(this).html("<div class='nn5-autofadetext-inner'>"+$(this).html()+"<\/div>");n=$(this).find(".nn5-autofadetext-inner");$(this).height()<$(n).height()&&$(this).append("<div class='nn5-autofadetext-fader'><\/div>");$(n).css("overflow","hidden")})};this.getwindowwidth=function(){return $(window).width()};this.getwindowheight=function(){return window.innerHeight?window.innerHeight:$(window).height()};this.gettextsize=function(n,t,i){var r,u;return t=t||[],i===undefined&&(i=!0),r=document.createElement("div"),r.setAttribute("class",t.join(" ")),r.setAttribute("style","position: absolute;visibility: hidden;height: auto;width: auto; white-space: nowrap;"),i?$(r).text(n):r.innerHTML=n,document.body.appendChild(r),u={width:$(r).outerWidth(),height:$(r).outerHeight()},$(r).remove(),u};this.serviceajax=function(t){if(!(t.webservicemethod&&t.success))return alert("Error in serviceajax call: params url and success must be supplied"),!1;if(t.data&&typeof t.data=="string")return alert("Setup error in serviceajax call "+t.webservicemethod+". Data must be object"),!1;var r=!0,i={url:"",type:"POST",contentType:"application/json",data:{},dataType:"json",beforeSend:function(){r&&nn5.showpageloading()},success:[function(t){t.d.sessiontoken||alert("Sorry, unable to get data. Try again in a few minutes [no token error]");n.sessiontoken=t.d.sessiontoken;$.jStorage.set("sessiontoken",n.sessiontoken)}],error:function(i){nn5.hidepageloading();t.errorelement?n.showbuttonmessage({message:"Unable to contact source",time:3500,button:t.errorelement}):alert("Unable to contact source ... "+JSON.stringify(i))},complete:[function(t,r){if(nn5.hidepageloading(),r!="success"){var u={sessiontoken:n.sessiontoken,url:i.url,data:JSON.stringify(i.data),status:r,xhr:JSON.stringify(t)};$.ajax({url:n.webserviceurl+"/errorreport",type:"POST",contentType:"application/json",data:JSON.stringify(u),dataType:"json"})}}]};t.showPageLoadingMsg===!0&&nn5.showpageloading();i.url=n.webserviceurl+t.webservicemethod;i.success.push(t.success);t.complete&&i.complete.push(t.complete);t.error&&(i.error=t.error);t.data&&(i.data=t.data);i.data.sessiontoken=n.sessiontoken;i.data=JSON.stringify(i.data);$.ajax(i)};this.showmoreinlist=function(n,t,i,r){var u=0,f=0,e=$(t).children(i).length;$(t).children(i).each(function(){return $(this).is(":hidden")&&($(this).show(0),u++),f++,f>=e&&$(n).hide(0),u>=r?!1:void 0});nn5.updateimages()};this.enlargemedia=function(n){nn5.mediaviewer.show(n)}};nn5.updateimages=function(n){appearrunning=!0;var t=n===undefined?$(".nn5-appearloadimage"):n;t.each(function(n,t){var r=$(t).is(":hidden")?!1:!0,i=$(t).hasClass("nn5-loadhidden")?!0:!1;(r||i)&&(i||nn5.is_in_view($(t)))&&nn5.dolateloadimage(t)});$(".nn5-needsresize").each(function(n,t){nn5.is_in_view($(t))&&nn5.doreloadimage(t)});appearrunning=!1};nn5.movietypes={none:0,youtube:1,vimeo:2,yumpu:3};nn5.dolateloadimage=function(n){var t=$(n).data("nn5-imageinfo"),s,v,f,e,h,o,a,y,i,p,r,u;if(t!=null){s="A";t!=null&&t.doublesize&&(s=t.doublesize);var c=$(n).parent().hasClass("nn5-imagefloat-container")||t.fit==!0?$(n).parent():$(n),r=$(c)[0].getBoundingClientRect().width,u=$(c)[0].getBoundingClientRect().height,l="";if((isNaN(r)||r==undefined)&&(r=$(c).width(),u=r/t.ratio),t.autosize==!0&&(v=$(c).parent().parent(),u=$(v)[0].getBoundingClientRect().height,u==undefined&&(u=$(v).height())),isNaN(r)||isNaN(u)||r==0&&u==0)return;if(r==t.w&&u==t.h?(f=r,e=u):(t.fit==!0&&(parseInt(t.ratio*100,10)>=parseInt(r/u*100,10)?u=r/t.ratio:(l="width:auto;height:100%",r=u*t.ratio)),f=Math.ceil(r/100)*100,u==0?e=Math.floor(f/t.ratio):r==0?f=Math.floor(e*t.ratio):e=Math.floor(f*(u/r))),t.movieid==undefined){if(h=$(n),t.ext==".mp4")o=this.getimageurl(t,f,e,s),a="loop",(t.movieautoplay==undefined?!1:t.movieautoplay)==!0&&(a+=" autoplay"),a+=" muted",i=$("<video "+a+" style='width:100%;height:100%;object-fit:cover;z-index: -1;'><source src='"+o+"' type='video/mp4' /><\/video>").addClass("nn5-img-responsive nn5-resizeableimage").attr("alt",t.alt).attr("title",t.title).data("nn5-imageinfo",t),t.enlargelink&&i.addClass("nn5-img-clickable").click(function(){nn5.enlargemedia(t.enlargelink)}),h.replaceWith(i);else if(t.ext==".gif"||t.ext==".svg"?(l+="background-image:url('"+this.getimageurl(t,f,e,"N")+"');background-repeat:no-repeat;background-position:center center;background-size:cover",o=this.gettransparentimageurl(f,e)):o=this.getimageurl(t,f,e,s),i=$("<img"+(l!=""?' style="'+l+'"':"")+" />").addClass("nn5-img-responsive nn5-resizeableimage").attr("src",o).attr("alt",t.alt).attr("title",t.title).data("nn5-imageinfo",t),nn5.utils.isIe8)h.replaceWith(i);else{$(h).removeClass("nn5-appearloadimage nn5-lazyloadimage");i.one("load",function(){h.replaceWith(i)})}t.enlargelink?i.addClass("nn5-img-clickable").click(function(){nn5.enlargemedia(t.enlargelink)}):t.downloadlink&&i.addClass("nn5-img-clickable").click(function(){window.open(t.downloadlink)})}else y=!(t.enlargelink||t.link)||t.movieinpagewhenlargerthan&&$(n).width()>=parseInt(t.movieinpagewhenlargerthan,10)?!0:!1,i=$("<div>").addClass("nn5-img-moviewrapper nn5-media-bg-cover").attr("title",t.title).data("nn5-movieinfo",{movieid:t.movieid,movietype:t.movietype,movieautoplay:t.movieautoplay,enlargelink:t.enlargelink}),$(n).parent().hasClass("nn5-imagefloat-container")||i.css("padding-top",$(n)[0].style.paddingTop),p=t.movieautoplay==undefined?!1:t.movieautoplay,t.movietype==nn5.movietypes.yumpu&&(y=!0,p=!0),y?(i.addClass("nn5-img-clickable").click(function(){nn5.playvideoinplace(this,!0)}),p?nn5.playvideoinplace(i,!0):(this.handlevideopreview(t,f,e,s,i),nn5.handleMovieButton($(n).parent().hasClass("nn5-imagefloat-container")?$(n).parent():i,f))):(i.addClass("nn5-img-clickable").click(function(){nn5.enlargemedia(t.enlargelink)}),this.handlevideopreview(t,f,e,s,i),nn5.handleMovieButton($(n).parent().hasClass("nn5-imagefloat-container")?$(n).parent():i,f)),$(n).replaceWith(i).data("nn5-imageinfo",t)}else{var k=$(n).data("nn5-imagetitle")==null?"":$(n).data("nn5-imagetitle"),d=$(n).data("nn5-imagealt")==null?"":$(n).data("nn5-imagealt"),w=$(n).data("nn5-imageurl"),g=w.split(".").pop(),b="",o;g=="gif"?(r=parseInt($(n).data("nn5-imagewidth"),10),u=parseInt($(n).data("nn5-imageheight"),10),b+="background-image:url('"+w+"');background-repeat:no-repeat;background-position:center center;background-size:cover;width:"+r+"px;height:"+u+"px;",o=this.gettransparentimageurl(r,u)):o=w;$(n).replaceWith($("<img src='"+o+"' alt='"+d+"' title='"+k+"' border='0' style=\""+b+'" />'))}};nn5.handlevideopreview=function(n,t,i,r,u){var e,f,s,h,o;switch(r){case"Y":e=2;break;case"N":e=1;break;default:e=1;s=window.devicePixelRatio!==undefined?window.devicePixelRatio:1;s>1.5&&(e=2)}n.movietype==nn5.movietypes.youtube?(h=t*e>480?"maxresdefault":"0",f="https://img.youtube.com/vi/"+n.movieid+"/"+h+".jpg",$(u).css("background-image","url("+f+")"),o=new Image,o.src=f,o.onload=function(){var e=o.width,l=o.height,s=$(u).outerWidth(),h=$(u).outerHeight(),r,t,i,c;f.indexOf("maxresdefault.jpg")>0&&e<=120&&(f=f.replace("maxresdefault.jpg","0.jpg"),$(u).css("background-image","url('"+f+"')"));r=e/l;r==4/3?(t=s/h,i=n.ratio/t*100):(t=s/h,i=t/r*100);i>100&&(c=i.toFixed(4)+"%",$(u).css("background-size",c));o=null}):n.movietype==nn5.movietypes.vimeo?(e=2,f="https://vimeo.com/api/oembed.json?url=https%3A%2F%2Fvimeo.com/"+n.movieid+"&width="+Math.floor(e*t)+"&height="+Math.floor(e*i),$.ajax({url:f,dataType:"jsonp",success:function(n){$(u).css("background-image","url("+n.thumbnail_url+")")},error:function(){}})):n.movietype==nn5.movietypes.yumpu};nn5.doreloadimage=function(n){var t=$(n)[0].getBoundingClientRect().width,i=$(n)[0].getBoundingClientRect().height,u,r,f,e,o;(isNaN(t)||t==undefined)&&(t=$(n).width(),i=$(n).height);var l=$(n).data("nn5-imageinfo"),s=$(n).attr("src"),a,v,y=!1;if(l!=null&&l.autosize==!0)y=!0,$(n).hide(),u=$(n).parent(),i=$(u)[0].getBoundingClientRect().height,i<30&&(u=$(n).parent().parent(),i=$(u)[0].getBoundingClientRect().height),$(n).show();else try{a=parseInt(parseInt(s.match(/-w\d*/g).pop().replace("-w","")));v=parseInt(parseInt(s.match(/-h\d*/g).pop().replace("-h","")))}catch(b){return}if((r=Math.ceil(t/100)*100,f=Math.floor(r*(i/t)),$(n).removeClass("nn5-needsresize"),!isNaN(r)&&!isNaN(f))&&(y||!(r-a<=1)||!(f-v<=1))){var p=parseInt(r),w=parseInt(f),h=s.split("img-"),c=h.pop();for(c=c.replace(/-w\d*/,"-w"+p).replace(/-h\d*/,"-h"+w),e="",o=0;o<h.length;o++)e+=h[o];e+="img-"+c;$(n).attr("src",e)}};nn5.playvideoinplace=function(n,t){var i=$(n).data("nn5-movieinfo"),r;i.movietype==nn5.movietypes.youtube?r="<iframe class='nn5-img-inplacemovieiframe'  src='https://www.youtube.com/embed/"+i.movieid+"?rel=0&showinfo=0&autoplay="+(t==!0?"1":"0")+"'  frameborder='0' allow='autoplay; fullscreen' allowfullscreen seamless><\/iframe>":i.movietype==nn5.movietypes.vimeo?r="<iframe class='nn5-img-inplacemovieiframe'  src='//player.vimeo.com/video/"+i.movieid+"?badge=0&byline=0&portrait=0&title=0&autoplay="+(t==!0?1:0)+"'  frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>":i.movietype==nn5.movietypes.yumpu&&(r='<iframe class="nn5-img-inplacemovieiframe" src="https://www.yumpu.com/da/embed/view/'+i.movieid+'" frameborder="0" allowfullscreen="true" allowtransparency="true"><\/iframe>',i.enlargelink!=undefined&&i.enlargelink!=""&&(r+="<div class='nn5-yumpu-fullscreen-button' onclick=\"nn5.enlargemedia('"+i.enlargelink+"')\"><\/div>"));$(n).html(r)};nn5.gettransparentimageurl=function(n,t){return"/img/img-0-w"+n+"-h"+t+".png"};nn5.getimageurl=function(n,t,i,r){var f,e,u;switch(r){case"Y":f=!0;break;case"N":f=!1;break;default:f=!1;e=window.devicePixelRatio!==undefined?window.devicePixelRatio:1;e>1.5&&(f=!0)}return u=n.type=="A"||n.type=="D"?"/imgintra/":"/img/",u+=n.name!=""?n.name+"-":"",u+="img-"+n.id+"-w"+t+"-h"+i,(n.type=="A"||n.type=="D")&&(u+="-t"+n.type),f==!0&&(u+="-x2"),u+(n.ext!=undefined?n.ext:".jpg")};nn5.handleMovieButton=function(n,t){var i=$("<div class='nn5-img-moviebtncenterer'><div class='"+(t>500?"nn5-img-moviebtn-large":"nn5-img-moviebtn")+"'><\/div><\/div>");$(n).append(i)};nn5.imagegroup=new function(){"use strict";function u(n,u){var e,s,o,l,v,a=$(n).find(".nn5-img-responsive[data-nn5-imageinfo]").first(),f=$(a).data("nn5-imageinfo"),h,c;f.ratio=parseFloat(f.ratio);u.composition=="auto"&&(f.ratio>1.75||$(window).width()<768?(e=100,s=100,o=e/f.ratio,l=18):(u.compositionbreakpoint==null&&(u.compositionbreakpoint=f.ratio>=1?66.6666:50),e=parseFloat(u.compositionbreakpoint),s=e==100?100:100-e,o=e*(100/u.compositionbreakpoint)/f.ratio,l=o/(s/e)));$(a).wrapAll("<div style='width:"+e.toFixed(4)+"%;display:inline-block;vertical-align:top;' />");r(a,100,o,o);h=$(n).find(".nn5-img-responsive[data-nn5-imageinfo]").slice(1);$(h).wrapAll("<div style='width:"+s.toFixed(4)+"%;display:inline-block;' />");c=[];h.each(function(){f=$(this).data("nn5-imageinfo");f.ratio=parseFloat(f.ratio);c.push(f)});v=t(c,l);i(v,h,c,u.gridsize)}function f(r,u){var h=$(r).find(".nn5-img-responsive[data-nn5-imageinfo]"),o,f=[],s,c,l;h.each(function(){o=$(this).data("nn5-imageinfo");o.ratio=parseFloat(o.ratio);f.push(o)});u.rowheights!=null?(c=u.rowheights[0],l=c==0?!0:!1,s=l?e(f):n(f,u.rowheights)):u.blockheight!=null&&(s=t(f,u.blockheight));i(s,h,f,u.gridsize)}function t(t,i){for(var e=0,u=t.length,o,r=0;r<u;r++)e+=t[r].ratio;var s=e/u,h=100*i,c=Math.sqrt(s*h/u),f=Math.ceil(i/c);return f==0&&(f=1),o=i/f,n(t,[o])}function e(n){for(var r=0,u,f,i,t=0;t<n.length;t++)r+=n[t].ratio;return u=1,f=100/r,i=[],i.push({start:0,end:n.length-1,faktor:u,height:f}),i}function n(n,t){for(var h=0,c=0,r=0,l,e=!1,o,s,u=0,f=t[0],a=[],i=0;i<n.length;i++)o=n.length<4&&f>50?50:10,i==n.length-1&&(e=!0),l=f*n[i].ratio,r+=l,(r>=100-o||e)&&(s=100/r,e&&r<100-o&&(s=1),c=i,a.push({start:h,end:c,faktor:s,height:f}),h=i+1,r=0,u++,u>t.length-1&&(u=t.length-1),f=t[u]);return a}function i(n,t,i,u){for(var s,f,h,v,w,y,c,l,a,o,p,e=0;e<n.length;e++)for(y=n[e].start,c=n[e].end,l=n[e].faktor,a=n[e].height,s=0,o=y;o<=c;o++)h=a*i[o].ratio,f=h*l,u>0&&(f=u*Math.round(f/u),f<u&&(f=u)),o==c&&l!=1&&(f=100-s),s+=f,p=f/h,v=(100/(w*p)).toFixed(4),r(t[o],f,a,v)}function r(n,t,i,r){var u=$("<div class='nn5-imagefloat-container' style='width:"+t.toFixed(4)+"%;height:0;padding-top:"+(i/2).toFixed(4)+"%;padding-bottom:"+(i/2).toFixed(4)+"%;'><\/div><div class=''><\/div>");$(n).wrap(u);$("<div class='nn5-imagefloat-container-border'><\/div>").insertAfter(n);$(n).css("padding-top",r+"%")}var o=this;this.prepareimagegroups=function(){$(".nn5-imagegroup").each(function(){var t=$(this).data("nn5-imagegroupinfo"),n=$.extend({},{composition:null,rowheights:null,blockheight:null,gridsize:null},t);n.gridsize==null&&(n.gridsize=0);n.composition=="auto"?u(this,n):f(this,n)})}};nn5.slider={};nn5.sliderpagertypes={dotstop:"dotstop",dotsbottom:"dotsbottom",none:"none"};nn5.sliderarrowtypes={small:"small",large:"large"};nn5.slider_defaults={modus:"slider",size:"20px",minsize:null,maxsize:null,startslideindex:0,showpagerdots:!1,showpagerarrows:!1,pagertype:nn5.sliderpagertypes.dotsbottom,arrowtype:nn5.sliderarrowtypes.small,autoplaydelay:0,autoplaytime:0,callbackondragout:null,callbackafterslidechange:null,callbackafterchangetolastslide:null,sizingmethod:"none",allowinteraction:!0};nn5.sliders=new function(){var n=this;this.sliders=[];this.preparesliders=function(){$(".nn5-slider").each(function(){var t=new nn5.slider;t.makeslider({outercontainer:this,pagercontainer:null,showpagerarrows:!0});n.sliders.push(t)})};this.prepareslider=function(t){var i=new nn5.slider;return i.makeslider({outercontainer:t,pagercontainer:null,showpagerarrows:!0}),n.sliders.push(i),i};this.removeslider=function(n){n!=null&&n.killautoplay&&n.killautoplay();delete n}};nn5.slider=function(){"use strict";function nt(){n.settings.modus=="carousel"?($(n.content).each(function(n,t){var i=$("<div class='nn5-center-container'><\/div>");$(i).append($(this).clone());$(t).replaceWith(i)}),n.content=$(n.container).children()):$(n.content).each(function(t,i){t<$(n.content).length-1&&$(i).append("<div class='nn5-slider-img-border'><\/div>")})}function p(n){var t=$(n)[0].getBoundingClientRect().width;return(isNaN(t)||t==undefined)&&(t=$(n).outerWidth()),t}function tt(n){var t=$(n)[0].getBoundingClientRect().height;return(isNaN(t)||t==undefined)&&(t=$(n).outerHeight()),t}function w(){var u=n.settings.size,f=it(),e=rt(),r=u=="auto"?0:o(u),i=p(n.outercontainer),s,t;$(n.content).each(function(t,i){var f=0,e;$(i).width()==0||$(i).height()==0?$(i).find(".nn5-appearloadimage").each(function(n,t){var i=$(t).data("nn5-imageinfo");f=i.ratio}):$(i).find(".nn5-slider-img-container").length>0?(e=$(i).find(".nn5-slider-img-container")[0],f=$(e).width()/$(e).height()):(u!="auto"&&$(i).height(r),$(i).height()>0&&(f=$(i).width()/$(i).height()));n.itemratios.push(f)});u=="fullsize"?($(n.outercontainer).closest(".nn5-slider-container").css({width:"100%",height:"100%"}),$(n.outercontainer).css({width:"100%",height:"100%"}),$(n.container).css({height:"100%"})):u=="auto"?$(n.content).first().each(function(t,r){var o=0,u;$(r).width()==0||$(r).height()==0?o=n.itemratios[t]:($(r).hasClass("nn5-slider-img-container")||$(r).find(".nn5-slider-img-container").length>0)&&(o=n.itemratios[t]);o>0&&(u=i/o,f>0&&u>f&&(u=f),e>0&&u<e&&(u=e),$(r).height(u),$(r).width(o*u),$(n.outercontainer).height(u),$(n.container).height(u))}):u.slice(-1)=="%"?(f>0&&r>f&&(r=f),e>0&&r<e&&(r=e),$(n.container).css({position:"absolute",left:"0",top:"0",bottom:"0"}),s=100*r/$(n.outercontainer).width(),$(n.outercontainer).css("padding-bottom",s+"%")):$(n.outercontainer).css("height",r+"px");t=tt(n.outercontainer);$(n.container).height(t);n.settings.modus=="carousel"&&$(n.content).each(function(r,u){var e,o;$(u).width(i).height(t);$(u).children().first().height(t);var c=i/t,h=$(u).children("div").first(),s=n.itemratios[r],f=n.settings.sizingmethod;f=="none"?$(h).height(t).width(i).css({position:"relative",left:0,top:0}):f!="contain-x"&&(c/s>1&&f=="contain"||f=="contain-y"||c/s<=1&&f=="cover")?(e=t*s,Math.abs(e-i)<1&&(e=i),$(h).height(t).width(e).css({position:"relative",left:(i-e)/2+"px",top:0})):(o=i/s,Math.abs(o-t)<1&&(o=t),$(h).height(o).width(i).css({position:"relative",top:(t-o)/2+"px",left:0}))});n.slidesarr=[];n.totalsize=0;$(n.content).each(function(i,r){($(r).width()==0||$(r).height()==0||n.settings.modus=="slider")&&$(r).height(t).width(t*n.itemratios[i]);var u=p(r);n.slidesarr.push({w:u,pos:n.totalsize});n.totalsize+=u});n.totalsize=$(n.container).outerWidth();n.outersize=$(n.container).parent().width();n.settings.arrowtype=="large"&&setTimeout(function(){var t=$(n.outercontainer).offset(),r=t.left-$(n.arrowleft).width(),i,u,f;$(n.arrowleft).removeClass("inside");r<0&&(r=t.left,$(n.arrowleft).addClass("inside"));i=t.left+$(n.outercontainer).width();u=!1;$(n.arrowright).removeClass("inside");i+$(n.arrowright).width()>$(window).width()&&(i=t.left+$(n.outercontainer).width()-$(n.arrowright).width(),$(n.arrowright).addClass("inside"));f=t.top+$(n.container).height()/2;$(n.arrowleft).fadeIn(500);$(n.arrowright).fadeIn(500)},1e3);n.goindex(n.currentslides.first,0,!0);v=$(document).width();y=$(window).height()}function it(){return o(n.settings.maxsize)}function rt(){return o(n.settings.minsize)}function o(t){var i=0,r,u;return t!=null&&(r=$(n.outercontainer).width(),t.slice(-1)=="%"?(u=parseInt(t.substring(0,t.length-1),0),i=r*u/100):i=parseInt(t.substring(0,t.length-2),0)),i}function b(i,r){t||(u=i,c=r,e=i,l=r,a=(new Date).getTime(),h=$(n.container).position(),t=!0)}function k(f,o,s){var a,v,y;t&&(n.isscrolling||n.totalsize<n.outersize||(r=!0,e=f,l=o,a=h.left+f-u,n.isdragging||(Math.abs(f-u)>15&&(n.isdragging=!0),Math.abs(o-c)>15&&(n.isscrolling=!0)),n.isdragging&&(s.preventDefault?s.preventDefault():s.returnValue=!1),n.isscrolling)||(v=parseInt(.07*n.outersize),a>0&&n.currentslides.first>0&&(v=0),a<0&&n.currentslides.last<n.slidesarr.length-1&&(v=0),a>v&&(a=v),y=-(n.totalsize-n.outersize+v),a<y&&(a=y),i(a,!1)))}function s(){var y,p,w,b,k,f,l;if(setTimeout(function(){n.isdragging=!1;n.isscrolling=!1},100),t){y=p=w=b=k=!1;var h,c,o=!1,s=!1;if(h=u,c=e,r&&Math.abs(c-h)<30){t=!1;r=!1;i(n.lastoffset,!0);return}if(f={dist:c-h,time:(new Date).getTime()-a,speed:0,isswipe:!1},f.time<300&&Math.abs(f.dist)>30&&(f.isswipe=!0),f.speed=f.dist/f.time,f.dist>0?s=!0:o=!0,f.isswipe||Math.abs(f.dist)>n.slidesarr[n.currentslides.first].w/3&&(f.dist<0?o=!0:s=!0),l=!1,(s&&n.currentslides.first==0||o&&n.currentslides.first>=n.slidesarr.length-1)&&(n.settings.callbackondragout==null?(o=!1,s=!1):l=!0),l)n.goout(s,o,f.speed);else if(f.isswipe)o||s?n.goindex(n.getnextpreviousslidesset(o?1:-1),f.speed):n.goindex(n.currentslides.first,f.speed);else{var v=-n.lastoffset-f.dist,d=v+n.outersize,g=n.getslidesinviewport(v,d);n.goindex(g,f.speed)}n.killautoplay();t=!1;r=!1}}function d(n,t){t==!0?$(n).addClass("dimmed"):$(n).removeClass("dimmed")}function i(t,i,r,u){r==undefined&&(r=.3);var f=this;if($(n.container).removeClass("animate"),i&&($(n.container).addClass("animate"),$(n.container).css({"-webkit-transition-duration":r+"s","-moz-transition-duration":r+"s","transition-duration":r+"s"})),$.support.csstransforms3d?($(n.container).css("transform","translate3d("+t+"px,0,0) scale3d(1,1,1)"),$(n.container).css("left",0)):$.support.csstransforms?($(n.container).css("transform","translate("+t+"px,0)"),$(n.container).css("left",0)):$.support.transition?$(n.container).css("left",t+"px"):i?$(n.container).animate({left:t,top:0},400,function(){}):$(n.container).css("left",t+"px"),i&&$.support.transition)$(n.container).one($.support.transition.end,function(){g();u!=undefined&&u()});else $(n.container).removeClass("animate"),g(),u!=undefined&&u()}function g(){$(n.container).removeClass("animate").css({"-webkit-transition-duration":"0s","-moz-transition-duration":"0s","transition-duration":"0s"})}var n=this;this.outercontainer;this.container;this.content;this.pagercontainerelm;this.elm;this.currentslides={first:0,last:0};this.previousslides={first:-1,last:-1};var t=!1,r=!1,h,u=-1,c=-1,e=-1,l=-1,a=-1;this.isdragging=!1;this.isscrolling=!1;this.slidesarr;this.outersize;this.pagerelm=null;this.arrowleft=null;this.arrowright=null;this.lastoffset=0;this.totalsize=0;this.autoplaycheckinterval=-1;this.autoplaydelayinterval=-1;this.autoplayinterval=-1;this.itemratios=[];var v=-1,y=-1,f=-1;$(window).resize(function(){n.arrowleft!=null&&$(n.arrowleft).hide();n.arrowright!=null&&$(n.arrowright).hide();f!=-1&&(clearInterval(f),f=-1);f=setTimeout(function(){$(document).width()!=v||n.settings.size=="fullsize"&&$(window).height()!=y?(w(),setTimeout(function(){$(".nn5-resizeableimage").each(function(){nn5.doreloadimage(this)})},500)):(n.arrowleft!=null&&$(n.arrowleft).show(),n.arrowright!=null&&$(n.arrowright).show())},100)});this.makeslider=function(t){var u,f,i,r;if(this.outercontainer=t.outercontainer,this.container=$(this.outercontainer).children()[0],this.content=$(this.container).children(),this.pagercontainerelm=this.outercontainer,this.elm=$(this.container),this.settings=$.extend({},nn5.slider_defaults,t),u=$(this.outercontainer).data("nn5-sliderinfo"),this.settings=$.extend({},this.settings,u),nt(),w(),$(this.container).find(".nn5-lazyloadimage, .nn5-appearloadimage").addClass("nn5-slider-lazyloadimage").removeClass("nn5-lazyloadimage, .nn5-appearloadimage"),this.settings.showpagerdots&&n.slidesarr.length<=1&&(this.settings.showpagerdots=!1),this.settings.showpagerarrows&&n.slidesarr.length<=1&&(this.settings.showpagerarrows=!1),this.settings.allowinteraction==!1&&(this.settings.showpagerarrows=!1),this.settings.showpagerdots==!0){this.pagerelm!=null&&$(this.pagerelm).remove();this.pagerelm=$("<div class='nn5-pager'><\/div>");$(this.pagerelm).appendTo($(this.pagercontainerelm));switch(this.settings.pagertype){case nn5.sliderpagertypes.dotstop:$(this.pagerelm).css({position:"absolute",top:"0"});break;case nn5.sliderpagertypes.dotsbottom:$(this.pagerelm).css({position:"absolute",bottom:"0"})}for(i=0;i<this.slidesarr.length;i++)f=$("<a data-nn5-pageindex='"+i+"'><\/a>"),$(f).appendTo($(this.pagerelm));$(this.pagerelm).find("a").on("click",function(){n.goindex(parseInt($(this).data("nn5-pageindex")))})}if(this.settings.showpagerarrows==!0){r=$(n.outercontainer).parent(".nn5-slider-container");this.settings.arrowtype=="large"?(this.arrowleft=$("<div class='nn5-pagerarrow-large nn5-pagerarrow-large-left'><\/div>"),this.arrowright=$("<div class='nn5-pagerarrow-large nn5-pagerarrow-large-right'><\/div>"),$(this.arrowleft).hide(),$(this.arrowright).hide(),$(this.arrowleft).appendTo($(r)),$(this.arrowright).appendTo($(r))):($(this.pagercontainerelm).find(".nn5-pagerarrow").remove(),this.arrowleft=$("<div class='nn5-pagerarrow nn5-pagerarrow-left'><span><\/span><\/div>"),this.arrowright=$("<div class='nn5-pagerarrow nn5-pagerarrow-right'><span><\/span><\/div>"),$(this.arrowleft).appendTo($(this.pagercontainerelm)),$(this.arrowright).appendTo($(this.pagercontainerelm)));$(this.arrowleft).on("click",function(t){$(this).hasClass("dimmed")&&(t.preventDefault?t.preventDefault():t.returnValue=!1);n.killautoplay();n.goindex(n.getnextpreviousslidesset(-1,0))});$(this.arrowright).on("click",function(t){$(this).hasClass("dimmed")&&(t.preventDefault?t.preventDefault():t.returnValue=!1);n.killautoplay();n.goindex(n.getnextpreviousslidesset(1,0))})}if(this.settings.allowinteraction==!0){$(this.elm).children().on({touchstart:function(t){n.killautoplay();var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0];b(i.pageX,i.pageY,"t")},touchmove:function(n){var t=n.originalEvent.touches[0]||n.originalEvent.changedTouches[0];k(t.pageX,t.pageY,n)},touchend:function(){s()}});$(this.elm).children().on({mousedown:function(t){n.killautoplay();t.preventDefault?t.preventDefault():t.returnValue=!1;b(t.pageX,t.pageY,"m")},mousemove:function(n){k(n.pageX,n.pageY,n)},mouseup:function(n){n.preventDefault?n.preventDefault():n.returnValue=!1;s()},click:function(t){n.killautoplay();t.stopPropagation();n.isdragging==!0&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}});$(document).on("mouseup",function(){s()});$(n.outercontainer).on("mouseover",function(){n.stopautoplay()});$(n.outercontainer).on("mouseout",function(){n.startautoplay()})}n.goindex(n.settings.startslideindex,0,!0);n.startautoplay()};this.startautoplay=function(){n.settings.autoplaytime>0&&(n.autoplaycheckinterval=setTimeout(function(){n.checkforautoplay()},300))};this.checkforautoplay=function(){if(nn5.is_mostly_in_view(n.outercontainer)){if(n.autoplayinterval==-1&&n.autoplaydelayinterval==-1){var t=n.autoplaydelayinterval-n.autoplayinterval;t<0&&(t=0);n.autoplaydelayinterval=setTimeout(function(){n.autoplayinterval=setInterval(function(){n.autoplay()},n.settings.autoplaytime)},t)}}else(n.autoplaydelayinterval!=-1||n.autoplayinterval!=-1)&&n.stopautoplay()};this.stopautoplay=function(){n.autoplayinterval!=-1&&(n.autoplaydelayinterval!=-1&&clearInterval(n.autoplaydelayinterval),n.autoplayinterval!=-1&&clearInterval(n.autoplayinterval),n.autoplaydelayinterval=-1,n.autoplayinterval=-1)};this.killautoplay=function(){clearInterval(n.autoplaycheckinterval);n.stopautoplay()};this.autoplay=function(){var t=n.currentslides.last+1;t>$(n.content).length-1&&(t=0);n.goindex(t)};this.getcurrentslides=function(){return this.currentslides};this.getpreviousslides=function(){return this.previousslides};this.goindex=function(t,r,u){var f,s,e,o;for(this.previousslides={first:this.currentslides.first,last:this.currentslides.last},typeof t=="number"?(this.currentslides.first=parseInt(t,10),this.currentslides.last=parseInt(this.getslidessetlastindex(t),10)):(this.currentslides.first=parseInt(t[0],10),this.currentslides.last=parseInt(t[t.length-1],10)),this.setnavigatorhilites(this.currentslides.first,this.currentslides.last),f=0,e=0;e<this.currentslides.first;e++)f-=this.slidesarr[e].w;for(s=0,e=this.currentslides.first;e<=this.currentslides.last;e++)s+=this.slidesarr[e].w;f=f+parseInt((this.outersize-s)/2);f>0?this.totalsize>this.outersize&&(f=0):f<-(this.totalsize-this.outersize)&&(f=-(this.totalsize-this.outersize));o=.4;r!=undefined&&r!=0&&(r=Math.abs(r),r<.5&&(r=.5),o=Math.abs((this.lastoffset-f)/r)/1e3,o<=0&&(o=.3));this.lastoffset=f;u==!0?i(f,!1,0,function(){n.makecallbacksafterslidechange()}):setTimeout(function(){i(f,!0,o,function(){n.makecallbacksafterslidechange()})},5)};this.goout=function(n,t,r){var u=this.slidesarr[this.currentslides.first].w,f,e;t&&(u=-u);f=r>0?Math.abs(u/r/1e3):.3;e=this;setTimeout(function(){i(u,!0)},10)};this.setnavigatorhilites=function(t,i){var r,u;if(this.settings.showpagerdots||this.settings.showpagerarrows){if(r=t==undefined&&i==undefined?this.getslidescurrentlyshown():[t,i],this.settings.showpagerdots)for($(this.pagerelm).children().removeClass("current"),u=r[0];u<=r[1];u++)$(this.pagerelm).children().eq(u).addClass("current");this.settings.showpagerarrows&&(d(n.arrowleft,r[0]==0?!0:!1),d(n.arrowright,r[1]>=this.slidesarr.length-1?!0:!1))}};this.getslidescurrentlyshown=function(){var n=-this.lastoffset,t=n+this.outersize;return this.getslidesinviewport(n,t)};this.getslidesinviewport=function(n,t){for(var r=-1,u=-1,f,e=9999,o=0,i=0;i<this.slidesarr.length;i++)this.slidesarr[i].pos>=n&&this.slidesarr[i].pos+this.slidesarr[i].w<=t&&(r==-1?r=i:u=i),f=Math.abs(this.slidesarr[i].pos-n),f<e&&(o=i),e=f;return r==-1&&(r=o),u==-1&&(u=r),[r,u]};this.getslidesoverlappingviewport=function(n,t){for(var f=-1,e=-1,r,u,i=0;i<this.slidesarr.length;i++)r=this.slidesarr[i].pos,u=r+this.slidesarr[i].w,(r<n&&u>n||r<=n&&u>=t||r>=n&&u<=t||r<t&&u>t)&&(f==-1?f=i:e=i);return e==-1&&(e=f),[f,e]};this.getnextpreviousslidesset=function(n){var f=this.getslidescurrentlyshown(),i,r,u,t;if(n==1)for(i=f[1]+1,i>this.slidesarr.length-1&&(i=this.slidesarr.length-1),r=i,u=this.slidesarr[i].w,t=i+1;t<this.slidesarr.length;t++)u+=this.slidesarr[t].w,u<this.outersize&&(r=t);else for(r=f[0]-1,r<0&&(r=0),i=r,u=this.slidesarr[r].w,t=r-1;t>=0;t--)u+=this.slidesarr[t].w,u<this.outersize&&(i=t);return[i,r]};this.getslidessetlastindex=function(n){var i,r,t;try{for(i=n,r=this.slidesarr[n].w,t=n+1;t<this.slidesarr.length;t++)r+=this.slidesarr[t].w,r<this.outersize&&(i=t);return i}catch(u){return-1}};this.makecallbacksafterslidechange=function(){var i=n.getslidescurrentlyshown(),t,f,r,u;$(n.container).find(".nn5-slider-list-item-container").removeClass("active");i!=null&&$(n.content).each(function(n,t){return n==i[0]&&($(t).hasClass("nn5-center-container")?$(t).find(".nn5-slider-list-item-container").addClass("active"):$(t).addClass("active")),n>i[1]?!1:void 0});t=-n.lastoffset-n.outersize;t<0&&(t=0);f=-n.lastoffset+2*n.outersize;r=n.getslidesoverlappingviewport(t,f);$(n.content).each(function(n,t){return n>=r[0]&&(u=$(t).find(".nn5-slider-lazyloadimage"),u.length>0&&$(u).addClass("nn5-lazyloadimage").removeClass("nn5-slider-lazyloadimage").each(function(n,t){nn5.dolateloadimage(t)})),n>r[1]?!1:void 0});n.settings.callbackafterslidechange!=null&&window[n.settings.callbackafterslidechange](n);n.settings.callbackafterchangetolastslide!=null&&n.currentslides.last==n.slidesarr.length-1&&window[n.settings.callbackafterchangetolastslide](n)}};nn5.flexlist={};nn5.flexlist_defaults={rowheights:[{minwidth:0,height:150,wspacing:15,hspacing:40,textheight:0},{minwidth:480,height:180,wspacing:20,hspacing:40,textheight:0},{minwidth:768,height:210,wspacing:20,hspacing:50,textheight:0},{minwidth:1024,height:240,wspacing:30,hspacing:60,textheight:0}],allowupscaling:!0,initialfiltertag:null,initialfilter:null,alwayssingleline:!0,rowsizedeterminedbyselfwidth:!0};nn5.flexlists=new function(){var n=this;this.flexlists=[];this.prepareflexlists=function(){$(".nn5-flexlist").each(function(){if(!$(this).hasClass("is-built")){var t=new nn5.flexlist;t.makeflexlist({container:this});n.flexlists.push(t)}})};this.prepareflexlist=function(t){$("."+t).each(function(){var t=new nn5.flexlist;t.makeflexlist({container:this});n.flexlists.push(t)})};this.filteritems=function(t,i,r){n.flexlists.length>t&&n.flexlists[t].filteritems(i,r)}};nn5.flexlist=function(){"use strict";function u(){var r=c(),h,u,f,e,v;for($(n.container).css({"margin-left":-r.wspacing/2+"px","margin-right":-r.wspacing/2+"px"}),$(n.containerinner).css({width:i(n.container)+r.wspacing+"px"}),n.settings.alwayssingleline==!0?o(r):s(r),h=0;h<t.length;h++)for(u=t[h],f=0;f<=u.ixs.length;f++){var y=u.ixs[f],l=n.items[y],p=u.widths[f],a=u.imagewidths[f];$(l).css({width:p+"px",height:u.height+"px"});e=$(l).find(".img-container")[0];$(e).width()*$(e).height()<a*u.imageheight&&$(e).find("img").each(function(){$(this).addClass("nn5-needsresize")});$(e).css({width:a+"px",height:u.imageheight+"px",left:r.wspacing/2+"px"});v=$(l).find(".text-container")[0];(r.textheight=0)?$(v).hide():$(v).css({width:a+"px",top:u.imageheight+"px",height:r.textheight+"px",left:r.wspacing/2+"px"})}}function o(r){var h=0,s,u;t=[];var l=i(n.containerinner),f=[];for(u=0;u<n.items.length;u++)f.push(u),h+=n.itemratios[u];var c=f.length,a=[],v=[];l=i(n.containerinner);var y=c*r.wspacing,p=l-y,w=h/c,e=p/c/w,o=e+r.hspacing+r.textheight;for(o>r.height&&(o=r.height,e=o-r.hspacing-r.textheight),s=0;s<f.length;s++)u=f[s],a.push(e*n.itemratios[u]+r.wspacing-.1),v.push(e*n.itemratios[u]);t.push({ratiosum:h,height:o,imageheight:e,isfull:!0,widths:a,imagewidths:v,ixs:f})}function s(r){var o=0,s=0,v=0,y=0,c=1,u,w,a,b;t=[];var l=[],p=i(n.containerinner),e=[];for(u=0;u<n.items.length;u++)h(u)&&e.push(u);for(n.settings.allowupscaling==!0&&(e.length<6?c=1.5:e.length<10&&(c=1.5)),w=c*r.height-r.hspacing-r.textheight,a=0;a<e.length;a++)u=e[a],y=n.itemratios[u],v=w*y+r.wspacing,o+v/2>p&&(f(r,l,s,c,!0),o=0,s=0,l=[]),a==e.length-1?(o+=v,s+=y,l.push(u),b=o>p?!0:!1,f(r,l,s,c,b)):(o+=v,s+=y,l.push(u))}function h(t){var i=n.items[t];return $(i).css("display")=="none"?!1:!0}function f(r,u,f,e,o){var p,s,c,l=u.length,a,v,h,y;if(o){p=i(n.containerinner);var w=l*r.wspacing,b=p-w,k=f/l;s=b/l/k;c=s+r.hspacing+r.textheight}else s=e*r.height-r.hspacing-r.textheight,c=e*r.height;for(a=[],v=[],h=0;h<u.length;h++)y=u[h],a.push(s*n.itemratios[y]+r.wspacing-.1),v.push(s*n.itemratios[y]);t.push({ratiosum:f,height:c,imageheight:s,isfull:o,widths:a,imagewidths:v,ixs:u})}function c(){for(var u=n.settings.rowsizedeterminedbyselfwidth==!0?i(n.container):$(document).width(),r=n.settings.rowheights[0],t=0;t<n.settings.rowheights.length;t++)u>n.settings.rowheights[t].minwidth&&(r=n.settings.rowheights[t]);return r}function i(n){var t=$(n)[0].getBoundingClientRect().width;return(isNaN(t)||t==undefined)&&(t=$(n).outerWidth()),t}var n=this;this.container;this.containerinner;this.content;this.elm;this.items=[];this.itemratios=[];this.settings;var t=[],e=-1,r=-1;$(window).resize(function(){r!=-1&&(clearInterval(r),r=-1);r=setTimeout(function(){$(document).width()!=e&&u()},200)});this.makeflexlist=function(t){n.container=t.container;this.settings=$.extend({},nn5.flexlist_defaults,$(this.container).data("nn5-flexlistinfo"));n.containerinner=$(n.container).find(".nn5-flexlist-inner")[0];$(n.container).find(".nn5-flexlist-item-container").each(function(t,i){var r=parseFloat($(this).data("nn5-flexlist-item-ratio"));n.itemratios.push(r);n.items.push(i)});u();n.settings.initialfilter!=null&&n.settings.initialfiltertag!=null&&n.filteritems(n.settings.initialfiltertag,n.settings.initialfilter);$(n.container).addClass("is-built")};this.filteritems=function(t,i){for(var r,e,f=0;f<n.items.length;f++)r=n.items[f],i==null?$(r).show():(e=$(r).data(t),e&&(e.indexOf(i)>=0?$(r).show():$(r).hide()));u();nn5.updateimages()}};nn5.columnlayout={};nn5.columnlayout_defaults={minwidth:300,columnspacingpct:12};nn5.columnlayouts=new function(){var n=this;this.columnlayouts=[];this.preparecolumnlayouts=function(){$(".nn5-column-layout").each(function(){var t=new nn5.columnlayout;t.makecolumnlayout({container:this});n.columnlayouts.push(t)})};this.preparecolumlayout=function(t){var i=new nn5.columnlayout;return i.makecolumnlayout({container:t}),n.columnlayouts.push(i),i};this.removecolumnlayout=function(n){delete n}};nn5.columnlayout=function(){"use strict";function o(){var i;return i=n.settings.minwidth==0?1:parseInt(Math.floor($(n.container).parent().width()/n.settings.minwidth)),i!=t?(t=i,!0):!1}function s(){var e,o,u,s,f;for(r=[],u=0;u<t;u++)s=$(n.container).parent().width(),f=n.settings.columnspacingpct/2,$(n.container).css({"margin-left":-(f/t)+"%","margin-right":-(f/t)+"%"}),e="width:"+100/t+"%;",o="padding-left:"+f+"%;padding-right:"+f+"%;",r.push($("<div id='column-"+u+"' class='column' style='"+e+"'><div class='inner' style='"+o+"'><\/div><\/div>")),$(n.container).append($(r[u])),i.push(0)}function h(){for(var t,n=0;n<f.length;n++)t=c(),$(r[t]).children(".inner").append($(f[n])),i[t]=$(r[t]).height()}function c(){for(var r=999999999,u=999999999,f=t,n=0;n<t;n++){if(i[n]==0)return n;i[n]<u&&(r=n,u=i[n])}return r}var n=this;this.container;this.elm;var f=[],t=0,i=[],r=[],e=0,u=-1;$(window).resize(function(){u!=-1&&(clearInterval(u),u=-1);u=setTimeout(function(){$(document).width()!=e&&n.update()},100)});this.makecolumnlayout=function(t){this.container=t.container;this.content=$(this.container).children();this.elm=$(this.container);this.settings=$.extend({},nn5.columnlayout_defaults,t);var i=$(this.container).data("nn5-columnlayout-info");this.settings=$.extend({},this.settings,i);$(n.container).children(".nn5-columnlayout-item").each(function(){f.push($(this).remove())});o();s();h()};n.update=function(){i=[];r=[];o()&&($(n.container).children(".column").remove(),s(),h())};this.getouterheight=function(){for(var r=0,n=0;n<t;n++)i[n]>r&&(r=i[n]);return r}};nn5sidebars=new function(){function i(){freezescreen();$(".nn5-sidebar-dimmer").show()}function t(){$(".nn5-sidebar-left").hasClass("active")||(unfreezescreen(),$(".nn5-sidebar-dimmer").hide())}var n=this;$(document).ready(function(){$(".nn5-sidebar-dimmer").click(function(){n.hide()});$('[data-toggle="nn5-sidebar-left"]').click(function(){n.show()})});this.show=function(){$(".nn5-sidebar-left").hasClass("active")&&$(".nn5-sidebar-left").toggleClass("in-active");$(".nn5-sidebar-left").toggleClass("active");$(".nn5-sidebar-left").hasClass("active")?i():t()};this.hide=function(){$(".nn5-sidebar-left").removeClass("active");$(".nn5-sidebar-right").removeClass("active");t()};this.lastscrolltop=0};nn5searchbar=new function(){function o(n){$(".filter-button").removeClass("active");$(n).addClass("active");var t=$(n).text();$(".search-list-item").each(function(){t=="Alle"||$(this).data("nn5-type")==t?$(this).show():$(this).hide()})}function s(){for(var t=document.location.href.split("/"),n=0;n<t.length;n++)if(t[n].length==1)return t[n];return""}function f(){u()}function e(){$(".nn5-searchbar-results").hide()}function u(){}var n=this,r,t,i;this.srchinterval=-1;this.lastsearchstring="";t=-1;i=-1;$(document).ready(function(){r=$(document).width();$(".nn5-searchbar input").on("keyup",function(){n.srchinterval!=-1&&clearTimeout(n.srchinterval);n.srchinterval=setTimeout(function(){n.search()},1500)});$(".nn5-searchbar-results").scroll(function(){nn5.updateimages($(".nn5-searchbar-results").find(".nn5-lazyloadimage"))});$(window).scroll(function(){i!=-1&&clearInterval(i);setTimeout(function(){$(".nn5-searchbar-results").is(":visible")&&u();i=-1},300)});$(window).resize(function(){t!=-1&&clearInterval(t);setTimeout(function(){$(".nn5-searchbar-results").is(":visible")&&u();t=-1},300);$(".nn5-searchbar").hasClass("active")&&($(document).width()!=r&&n.hide(!0),r=$(document).width())})});this.show=function(){$(".nn5-searchbar").hasClass("active")||($(".nn5-searchbar").addClass("visible"),setTimeout(function(){$(".nn5-searchbar").addClass("active")},1),$.cookie("search-string")!=null&&$.cookie("search-string")!=""&&$(".nn5-searchbar input").val($.cookie("search-string")).select(),$(".nn5-searchbar input").focus())};this.hide=function(n){$(".nn5-searchbar input").blur();e();$(".nn5-searchbar").hasClass("active")&&(n==!0?$(".nn5-searchbar").removeClass("active").removeClass("visible"):setTimeout(function(){$(".nn5-searchbar").removeClass("active");setTimeout(function(){$(".nn5-searchbar").removeClass("visible")},100)},100))};this.search=function(t){var i,r;if(t&&$(".nn5-searchbar input").blur(),n.srchinterval!=-1&&clearTimeout(n.srchinterval),i=$.trim($(".nn5-searchbar input").val()),$.cookie("search-string",i,{expires:7,path:"/"}),i==""){n.lastsearchstring="";e();return}if(n.lastsearchstring==i){f();return}$(".nn5-searchbar-results").html("<div class='searching-please-wait'>Searching ... please wait").show();f();r=s();$.ajax({type:"POST",url:"/webservice.asmx/search",data:JSON.stringify({searchstring:i,context:r}),contentType:"application/json;charset=utf-8",dataType:"json",success:function(t){$(".nn5-searchbar-results").html("<div class='unfinish-module'>Global search is not implemented. May be removed <\/div>"+t.d);setTimeout(function(){nn5.updateimages($(".nn5-searchbar-results").find(".nn5-lazyloadimage"))},100);$(".nn5-searchbar-results .filter-button").on("click",function(){o(this)});n.lastsearchstring=i},error:function(n,t,i){alert(n.status+" / "+i+" / "+n.responseText)},complete:function(){}})};this.searchresultclick=function(n,t){t==undefined&&(t="");$.ajax({type:"POST",url:"/webservice.asmx/getsearchurl",data:JSON.stringify({itemid:n,context:t}),contentType:"application/json;charset=utf-8",dataType:"json",success:function(n){document.location.href=n.d},error:function(n,t,i){alert(n.status+" / "+i+" / "+n.responseText)},complete:function(){}})}};nn5.modal=new function(){function r(){var r=$("#iframe-in-modal"),i,t;if(r.lenght!=0){i=r.contents().find("body");t=i.outerHeight();try{t+=parseInt(i.css("margin-top").replace("px",""));t+=parseInt(i.css("margin-bottom").replace("px",""))}catch(u){}t>$(window).height()-80&&(t=$(window).height()-80);r.height(t);$(n.$modal).find(".modal-content").css("opacity","1")}}function f(){$("body").append('<div class="modal" id="modal-for-iframe" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-body" style="line-height:0;margin:0;padding:0;"><iframe id="iframe-in-modal" src="" style="border: 0;"><\/iframe><\/div><\/div><\/div><\/div>')}var n=this;this.$modal=null;var t=-1,i=$(window).width(),u={url:null,size:null,scrolltotop:!1,closeonbackdropclick:!1};this.show=function(e){var o=$.extend({},u,e),s,h;if(o.scrolltotop==!0&&$(window).scrollTop()>0){$("html,body").animate({scrollTop:0},"fast",function(){n.show(e)});return}$("#modal-for-iframe").length==0&&(f(),i=$(window).width());$("#modal-for-iframe .modal-dialog").removeClass("modal-lg modal-sm");o.size=="lg"?$("#modal-for-iframe .modal-dialog").addClass("modal-lg"):o.size=="sm"&&$("#modal-for-iframe .modal-dialog").addClass("modal-sm");n.$modal=$("#modal-for-iframe");$(n.$modal).find(".modal-content").css("opacity","0");s=$("#iframe-in-modal");s.attr("src",o.url).css({width:"100%",height:"100px"});h={keyboard:!1};o.closeonbackdropclick!=!0&&(h.backdrop="static");n.$modal.modal(h);n.$modal.on("hidden.bs.modal",function(){$("#modal-for-iframe").remove()});s.load(function(){r();n.$modal.modal("show")});$(window).resize(function(){t!=-1&&clearInterval(t);t=setTimeout(function(){i!=$(window).width()&&(r(),i=$(window).width());t=-1},200)})};this.hide=function(){n.$modal.modal("hide")};this.setheight=function(n){$("#iframe-in-modal").css("height",n+"px")}};nn5.utils=new function(){var n=this;this.sliders=[];this.popupwindow=function(n,t,i,r){var u=screen.width/2-i/2,f=screen.height/2-r/2;return window.open(n,t,"toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes, width="+i+", height="+r+", top="+f+", left="+u)};this.popupsizedwindow=function(n,t,i,r){var u=screen.width/2-i/2,f=screen.height/2-r/2;return window.open(n,t,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width="+i+", height="+r+", top="+f+", left="+u)};this.scrollelementintoview=function(n,t){var r;t==undefined&&(t=51);var i=$(n).offset().top,f=$(document).scrollTop(),e=$(window).height(),o=$(n).outerHeight(),u=i-t;i+o>f+e?(r=i+o-e+10,r>u&&(r=u),$("html,body").animate({scrollTop:r},"fast")):i<=f+t&&$("html,body").animate({scrollTop:u-10},"fast")};this.scrollToElement=function(n,t){t==undefined&&(t=0);try{$("html,body").animate({scrollTop:n.offset().top-t},"slow")}catch(i){}};this.scrollToAnchor=function(n,t,i){var r=$("a[name='"+n+"']"),u;r.length!=0&&(t==undefined&&(t=0),i==undefined&&(i=!1),u=r.offset().top-t,i==!0&&(href=window.location.href,history.pushState({page:href},null,href.split("#")[0]+"#"+n)),$("html,body").animate({scrollTop:u},"slow"))};this.setcityfromzip=function(n,t,i){if($(t).val()==""){var r=$(n).val();r.length!=4||isNaN(r)||$.ajax({url:"/webservice.asmx/getcityfromzip",type:"POST",contentType:"application/json",data:JSON.stringify({zip:r}),dataType:"json",success:function(n){$(t).val(n.d);i!=undefined&&$(i).val("DK")},error:function(){alert("err")}})}}};nn5.mediaviewer=new function(){function f(){var o,s,r,u,f,e,c,l,h;c=i;h=!1;f=$(window).width();e=$(window).height();n==0&&t==0||n>=f||t>=e?(r=f,u=e,o=0,s=0,h=!0):(n>0&&t>0?(l=n/t,i>l?(r=n,u=r/i):(u=t,r=u*i)):n>0?(r=n,u=n/c):(u=t,r=n*c),r>f||u>e?(r=f,u=e,o=0,s=0,h=!0):(o=parseInt((f-r)/2),s=parseInt((e-u)/2)));h?($("#nn5-mediaviewer").css({left:0,top:0,bottom:0,right:0,width:"100%",height:"100%"}),$("#nn5-mediaviewer, #nn5-mediaviewer-dim").addClass("full-screen")):($("#nn5-mediaviewer").css({left:o+"px",top:s+"px",bottom:"",right:"",width:r+"px",height:u+"px"}),$("#nn5-mediaviewer, #nn5-mediaviewer-dim").removeClass("full-screen"))}var i=.71,n=0,t=0,r=null,u=-1;$(document).keyup(function(n){if(n=n?n:window.event,n.keyCode==27){nn5.mediaviewer.hide();return}n.keyCode==39||n.keyCode==37});$(window).resize(function(){$("#nn5-mediaviewer").length>0&&(u!=-1&&(clearInterval(u),u=-1),u=setTimeout(function(){r.beginresize();f();r.endresize();u=-1},500))});this.show=function(u){var o,s,e,h;try{o=u.substring(u.indexOf("?")+1).split("&")}catch(c){o=[]}for(s=0,e={};s<o.length;s++)o[s]=o[s].split("="),e[o[s][0]]=decodeURIComponent(o[s][1]);e.enlargew&&parseInt(e.enlargew,10)&&(n=parseInt(e.enlargew,10));e.enlargeh&&parseInt(e.enlargeh,10)&&(t=parseInt(e.enlargeh,10));i=e.ratio&&parseFloat(e.ratio)?parseFloat(e.ratio):.71;$("#nn5-mediaviewer").length==0&&$("body").append('<div id="nn5-mediaviewer-dim" onclick="nn5.mediaviewer.hide()"><\/div><div id="nn5-mediaviewer"><div  id="nn5-mediaviewer-content"><\/div><div id="nn5-mediaviewer-close-button" onclick="nn5.mediaviewer.hide()"><span class="glyphicon glyphicon-remove"><\/span><\/div><\/div>');f();$("#nn5-mediaviewer-dim").show();$("#nn5-mediaviewer").show();h=u.split("?")[1];$.ajax({type:"POST",url:"/webservice.asmx/enlargemedia",data:JSON.stringify({querystring:h}),contentType:"application/json;charset=utf-8",dataType:"json",success:function(n){$("#nn5-mediaviewer-content").html(n.d);$("#nn5-mediaviewer, #nn5-mediaviewer-dim").addClass("active");r=new nn5.mediaviewer.slider;var t=$("#nn5-mediaviewer-content").find(".nn5-slider")[0];r.makeslider({outercontainer:t,pagercontainer:null,showpagerarrows:!0})},error:function(){},complete:function(){}})};this.hide=function(){$("#nn5-mediaviewer, #nn5-mediaviewer-dim").removeClass("active");setTimeout(function(){$("#nn5-mediaviewer, #nn5-mediaviewer-dim").remove();nn5.sliders.removeslider(r)},500)}};nn5.mediaviewer.slider_defaults={modus:"slider",size:"20px",minsize:null,maxsize:null,startslideindex:0,showpagerdots:!1,showpagerarrows:!1,pagertype:nn5.sliderpagertypes.dotsbottom,arrowtype:nn5.sliderarrowtypes.small,autoplaydelay:0,autoplaytime:0,callbackondragout:null,callbackafterslidechange:null,callbackafterchangetolastslide:null,sizingmethod:"contain",allowinteraction:!0};nn5.mediaviewer.slider=function(){"use strict";function d(){$(n.content).each(function(t,i){$(i).find(".nn5-slider-lazyloadimage").each(function(t,i){var r=$(i).data("nn5-imageinfo");n.itemratios.push(parseFloat(r.ratio));n.itemsunloadedcache.push(null)})});n.numofslides=n.itemratios.length}function a(t){var i,r,u;for(n.sliderw=g(n.outercontainer),n.sliderh=nt(n.outercontainer),i=n.sliderh,r=n.sliderw,$(n.container).height(i),n.totalsize=0,n.itemcenterinfo=[],$(n.content).addClass("not-inited"),$(n.content).each(function(t,u){var o=r/i,s=$(u).children("div").first(),e=n.itemratios[t],f={left:0,top:0,w:0,h:0};o/e>1?(f.h=i,f.w=i*e,f.left=(r-f.w)/2,f.top=0,Math.abs(f.w-r)<1&&(f.w=r)):(f.w=r,f.h=r/e,Math.abs(f.h-i)<1&&(f.h=i),f.left=0,f.top=(i-f.h)/2);n.itemcenterinfo.push(f)}),u=0;u<=n.currentslide;u++)b(u);t==!0&&(f(n.currentslide),n.currentslide>0&&f(n.currentslide-1),n.currentslide<n.numofslides-1&&f(n.currentslide+1),setTimeout(function(){n.goindex(n.currentslide,0,!0)},10));n.totalsize=$(n.container).outerWidth();tt()}function g(n){var t=$(n)[0].getBoundingClientRect().width;return(isNaN(t)||t==undefined)&&(t=$(n).outerWidth()),t}function nt(n){var t=$(n)[0].getBoundingClientRect().height;return(isNaN(t)||t==undefined)&&(t=$(n).outerHeight()),t}function tt(){n.settings.arrowtype=="large"&&setTimeout(function(){var t=$(n.outercontainer).offset(),r=t.left-$(n.arrowleft).width(),i,u,f;$(n.arrowleft).removeClass("inside");r<0&&(r=t.left,$(n.arrowleft).addClass("inside"));i=t.left+$(n.outercontainer).width();u=!1;$(n.arrowright).removeClass("inside");i+$(n.arrowright).width()>$(window).width()&&(i=t.left+$(n.outercontainer).width()-$(n.arrowright).width(),$(n.arrowright).addClass("inside"));f=t.top+$(n.container).height()/2;$(n.arrowleft).fadeIn(500);$(n.arrowright).fadeIn(500)},1e3)}function v(i,r){t||(u=i,h=r,e=i,c=r,l=(new Date).getTime(),s=$(n.container).position(),t=!0)}function y(f,o,l){var a,v,y;t&&(n.isscrolling||n.totalsize<n.sliderw||(r=!0,e=f,c=o,a=s.left+f-u,n.isdragging||(Math.abs(f-u)>15&&(n.isdragging=!0),Math.abs(o-h)>15&&(n.isscrolling=!0)),n.isdragging&&(l.preventDefault?l.preventDefault():l.returnValue=!1),n.isscrolling)||(v=parseInt(.07*n.sliderw),a>0&&n.currentslide>0&&(v=0),a<0&&n.currentslide<n.numofslides-1&&(v=0),a>v&&(a=v),y=-(n.totalsize-n.sliderw+v),a<y&&(a=y),i(a,!1)))}function o(){var y,p,w,b,v,f,a;if(setTimeout(function(){n.isdragging=!1;n.isscrolling=!1},100),t){y=p=w=b=v=!1;var h,c,o=!1,s=!1;if(h=u,c=e,r&&Math.abs(c-h)<30){t=!1;r=!1;i(n.lastoffset,!0);return}f={dist:c-h,time:(new Date).getTime()-l,speed:0,isswipe:!1};f.time<300&&Math.abs(f.dist)>30&&(f.isswipe=!0);f.speed=f.dist/f.time;f.dist>0?s=!0:o=!0;v||$(".nn5-slider-list-item-container.active .nn5-img-moviewrapper").length>0&&(o=!1);f.isswipe||(console.log(Math.abs(f.dist)+" - "+n.sliderw/3),Math.abs(f.dist)>n.sliderw/3&&(f.dist<0?o=!0:s=!0));a=!1;(s&&n.currentslide==0||o&&n.currentslide>=n.numofslides-1)&&(n.settings.callbackondragout==null?(o=!1,s=!1):a=!0);a?n.goout(s,o,f.speed):o||s?n.goindex(n.getnextpreviousslide(o?1:-1),f.speed):n.goindex(n.currentslide,f.speed);n.killautoplay();t=!1;r=!1}}function p(n,t){t==!0?$(n).addClass("dimmed"):$(n).removeClass("dimmed")}function i(t,i,r,u){r==undefined&&(r=.3);var f=this;if($(n.container).removeClass("animate"),i&&($(n.container).addClass("animate"),$(n.container).css({"-webkit-transition-duration":r+"s","-moz-transition-duration":r+"s","transition-duration":r+"s"})),$.support.csstransforms3d?($(n.container).css("transform","translate3d("+t+"px,0,0) scale3d(1,1,1)"),$(n.container).css("left",0)):$.support.csstransforms?($(n.container).css("transform","translate("+t+"px,0)"),$(n.container).css("left",0)):$.support.transition?$(n.container).css("left",t+"px"):i?$(n.container).animate({left:t,top:0},400,function(){}):$(n.container).css("left",t+"px"),i&&$.support.transition)$(n.container).one($.support.transition.end,function(){w();u!=undefined&&u()});else $(n.container).removeClass("animate"),w(),u!=undefined&&u()}function w(){$(n.container).removeClass("animate").css({"-webkit-transition-duration":"0s","-moz-transition-duration":"0s","transition-duration":"0s"})}function f(t){b(t);var i=$(n.content)[t];$(i).show();$(i).children("div").first().show()}function b(t){var i=$(n.content)[t];$(i).hasClass("not-inited")&&($(i).children("div").first().css({top:n.itemcenterinfo[t].top+"px",left:n.itemcenterinfo[t].left+"px",width:n.itemcenterinfo[t].w+"px",height:n.itemcenterinfo[t].h+"px"}),$(i).width(n.sliderw).height(n.sliderh).removeClass("not-inited"),n.totalsize=$(n.container).outerWidth())}function k(t){var i=$(n.content)[t];$(i).find(".nn5-slider-lazyloadimage").length>0||n.itemsunloadedcache[t]==null&&(n.itemsunloadedcache[t]=$(i).find("img").attr("src"),$(i).find("img").attr("src","data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="),$(i).children("div").first().hide())}var n=this;this.outercontainer;this.container;this.content;this.pagercontainerelm;this.elm;this.currentslide=0;var t=!1,r=!1,s,u=-1,h=-1,e=-1,c=-1,l=-1;this.isdragging=!1;this.isscrolling=!1;this.pagerelm=null;this.arrowleft=null;this.arrowright=null;this.lastoffset=0;this.totalsize=0;this.autoplaycheckinterval=-1;this.autoplaydelayinterval=-1;this.autoplayinterval=-1;this.itemratios=[];this.itemcenterinfo=[];this.itemsunloadedcache=[];this.sliderw=0;this.sliderh=0;this.numofslides=0;this.beginresize=function(){n.arrowleft!=null&&$(n.arrowleft).hide();n.arrowright!=null&&$(n.arrowright).hide()};this.endresize=function(){a(!0);$(n.content).find(".nn5-resizeableimage").addClass("nn5-needsresize");setTimeout(function(){nn5.updateimages()},300)};this.makeslider=function(t){var r,i;if(this.outercontainer=t.outercontainer,this.container=$(this.outercontainer).children()[0],this.content=$(this.container).children(),this.pagercontainerelm=this.outercontainer,this.elm=$(this.container),this.settings=$.extend({},nn5.slider_defaults,t),r=$(this.outercontainer).data("nn5-sliderinfo"),this.settings=$.extend({},this.settings,r),this.currentslide=parseInt(this.settings.startslideindex,10),d(),a(),this.settings.showpagerarrows&&n.numofslides<=1&&(this.settings.showpagerarrows=!1),this.settings.allowinteraction==!1&&(this.settings.showpagerarrows=!1),this.settings.showpagerarrows==!0&&this.numofslides>1){i=$(n.outercontainer).parent(".nn5-slider-container");this.settings.arrowtype=="large"?(this.arrowleft=$("<div class='nn5-pagerarrow-large nn5-pagerarrow-large-left'><\/div>"),this.arrowright=$("<div class='nn5-pagerarrow-large nn5-pagerarrow-large-right'><\/div>"),$(this.arrowleft).hide(),$(this.arrowright).hide(),$(this.arrowleft).appendTo($(i)),$(this.arrowright).appendTo($(i))):($(this.pagercontainerelm).find(".nn5-pagerarrow").remove(),this.arrowleft=$("<div class='nn5-pagerarrow nn5-pagerarrow-left'><span><\/span><\/div>"),this.arrowright=$("<div class='nn5-pagerarrow nn5-pagerarrow-right'><span><\/span><\/div>"),$(this.arrowleft).appendTo($(this.pagercontainerelm)),$(this.arrowright).appendTo($(this.pagercontainerelm)));$(this.arrowleft).on("click",function(t){if($(this).hasClass("dimmed"))return t.preventDefault?t.preventDefault():t.returnValue=!1,!1;n.killautoplay();n.goindex(n.getnextpreviousslide(-1,0))});$(this.arrowright).on("click",function(t){if($(this).hasClass("dimmed"))return t.preventDefault?t.preventDefault():t.returnValue=!1,!1;n.killautoplay();n.goindex(n.getnextpreviousslide(1,0))})}if(this.settings.allowinteraction==!0){$(this.elm).children().on({touchstart:function(t){n.killautoplay();var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0];v(i.pageX,i.pageY,"t")},touchmove:function(n){var t=n.originalEvent.touches[0]||n.originalEvent.changedTouches[0];y(t.pageX,t.pageY,n)},touchend:function(){o()}});$(this.elm).children().on({mousedown:function(t){t.button==0&&(n.killautoplay(),t.preventDefault?t.preventDefault():t.returnValue=!1,v(t.pageX,t.pageY,"m"))},mousemove:function(n){y(n.pageX,n.pageY,n)},mouseup:function(n){n.preventDefault?n.preventDefault():n.returnValue=!1;o()},click:function(t){n.killautoplay();t.stopPropagation();n.isdragging==!0&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}});$(document).on("mouseup",function(){o()});$(n.outercontainer).on("mouseover",function(){n.stopautoplay()});$(n.outercontainer).on("mouseout",function(){n.startautoplay()});$(document).keyup(function(t){t=t?t:window.event;t.keyCode==39||t.keyCode==37?n.goindex(n.getnextpreviousslide(t.keyCode==39?1:-1),5):t.keyCode==37})}n.goindex(n.settings.startslideindex,0,!0);n.makecallbacksafterslidechange();n.startautoplay()};this.startautoplay=function(){n.settings.autoplaytime>0&&(n.autoplaycheckinterval=setTimeout(function(){n.checkforautoplay()},300))};this.checkforautoplay=function(){if(nn5.is_mostly_in_view(n.outercontainer)){if(n.autoplayinterval==-1&&n.autoplaydelayinterval==-1){var t=n.autoplaydelayinterval-n.autoplayinterval;t<0&&(t=0);n.autoplaydelayinterval=setTimeout(function(){n.autoplayinterval=setInterval(function(){n.autoplay()},n.settings.autoplaytime)},t)}}else(n.autoplaydelayinterval!=-1||n.autoplayinterval!=-1)&&n.stopautoplay()};this.stopautoplay=function(){n.autoplayinterval!=-1&&(n.autoplaydelayinterval!=-1&&clearInterval(n.autoplaydelayinterval),n.autoplayinterval!=-1&&clearInterval(n.autoplayinterval),n.autoplaydelayinterval=-1,n.autoplayinterval=-1)};this.killautoplay=function(){clearInterval(n.autoplaycheckinterval);n.stopautoplay()};this.autoplay=function(){var t=n.currentslide+1;t>$(n.content).length-1&&(t=0);n.goindex(t)};this.getcurrentslide=function(){return this.currentslide};this.getpreviousslides=function(){var n=this.currentslide-1;return n<0&&(n=0),n>this.numofslides-1&&(n=0),n};this.goindex=function(t,r,u){var f,e;this.currentslide=parseInt(t,10);this.setnavigatorhilites();f=-this.currentslide*this.sliderw;f>0?this.totalsize>this.sliderw&&(f=0):f<-(this.totalsize-this.sliderw)&&(f=-(this.totalsize-this.sliderw));e=.4;r!=undefined&&r!=0&&(r=Math.abs(r),r<.5&&(r=.5),e=Math.abs((this.lastoffset-f)/r)/1e3,e<=0&&(e=.3));this.lastoffset=f;u==!0?i(f,!1,0,function(){n.makecallbacksafterslidechange()}):setTimeout(function(){i(f,!0,e,function(){n.makecallbacksafterslidechange()})},5)};this.goout=function(n,t,r){var u=this.sliderw,f,e;t&&(u=-u);f=r>0?Math.abs(u/r/1e3):.3;e=this;setTimeout(function(){i(u,!0)},10)};this.setnavigatorhilites=function(){this.settings.showpagerarrows&&this.settings.showpagerarrows&&(p(n.arrowleft,this.currentslide==0?!0:!1),p(n.arrowright,this.currentslide>=this.numofslides-1?!0:!1))};this.getnextpreviousslide=function(t){var i=n.currentslide+t;return i>n.numofslides-1&&(i=0),i<0&&(i=n.numofslides-1),i};this.makecallbacksafterslidechange=function(){var r,t,i;$(n.container).find(".nn5-slider-list-item-container").removeClass("active");$(n.content).each(function(t,i){return t==n.currentslide&&$(i).find(".nn5-slider-list-item-container").addClass("active"),t>n.currentslide?!1:void 0});r=n.currentslide>0?n.currentslide-1:n.currentslide;t=n.currentslide<n.numofslides-1?n.currentslide+1:n.currentslide;n.currentslide>1&&k(n.currentslide-2);n.currentslide<n.numofslides-2&&k(n.currentslide+2);$(n.content).each(function(u,e){if(u>=r&&u<=t){if(f(u),i=$(e).find(".nn5-slider-lazyloadimage"),i.length>0)$(i).addClass("nn5-lazyloadimage").removeClass("nn5-slider-lazyloadimage").each(function(n,t){nn5.dolateloadimage(t)});else if(n.itemsunloadedcache[u]!=null){$(e).children("div").first().show();var o=$(e).find("img");$(o).attr("src",n.itemsunloadedcache[u]).addClass("nn5-needsresize");nn5.doreloadimage(o)}}else if(u>t)return!1});n.settings.callbackafterslidechange!=null&&window[n.settings.callbackafterslidechange](n);n.settings.callbackafterchangetolastslide!=null&&n.currentslide==n.numofslides-1&&window[n.settings.callbackafterchangetolastslide](n)}},function(n,t,i){function f(n){return n}function e(n){return decodeURIComponent(n.replace(u," "))}var u=/\+/g,r=n.cookie=function(u,o,s){var p,c,l,a,h,w,v,y;if(o!==i)return s=n.extend({},r.defaults,s),o===null&&(s.expires=-1),typeof s.expires=="number"&&(p=s.expires,c=s.expires=new Date,c.setDate(c.getDate()+p)),o=r.json?JSON.stringify(o):String(o),t.cookie=[encodeURIComponent(u),"=",r.raw?o:encodeURIComponent(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(l=r.raw?f:e,a=t.cookie.split("; "),h=0,w=a.length;h<w;h++)if(v=a[h].split("="),l(v.shift())===u)return y=l(v.join("=")),r.json?JSON.parse(y):y;return null};r.defaults={};n.removeCookie=function(t,i){return n.cookie(t)!==null?(n.cookie(t,null,i),!0):!1}}(jQuery,document);freezescreenscrolltop=0;rzinterval=-1;$(document).ready(function(){updateRowTextCentering()});$(window).resize(function(){rzinterval!=-1&&clearInterval(rzinterval);rzinterval=setTimeout(function(){updateRowTextCentering();updateprojecttextreadmore();rzinterval=-1},100)});$(document).ready(function(){$(window).scroll(function(){updateSlideIn();updatefixedlisttop()});updateSlideIn();$(".c-list-top.fixable h1:before").on("click",function(){$("html,body").animate({scrollTop:0},"fast")});updatefixedlisttop();updateprojecttextreadmore()});$(window).on("popstate",function(n){restorepopstate(n.originalEvent.state)});resizeint=-1;lastwidth=$(window).width();$(document).ready(function(){window.location.hash!=null&&window.location.hash!=""&&dohashevent(window.location.hash);$(document).on("scroll",function(){$(".top-menu-lg").is(":visible")==!0?$("body").css("position")!="fixed"&&($(document).scrollTop()>5?$("#top-menu-outer-lg, .top-menu-lg").addClass("scrolled"):$("#top-menu-outer-lg, .top-menu-lg").removeClass("scrolled")):$(document).scrollTop()>5?$("#top-menu-outer-sm").addClass("scrolled"):$("#top-menu-outer-sm").removeClass("scrolled")});$(window).resize(function(){clearTimeout(resizeint);resizeint=setTimeout(function(){lastwidth=$(window).width()},200)});$(".language-selector").on("show.bs.dropdown",function(){$(".c-list-top").css("z-index","0")});$(".language-selector").on("hidden.bs.dropdown",function(){$(".c-list-top").css("z-index","")})});window.onhashchange=function(){dohashevent(window.location.hash)},function(n){n.fn.fitText=function(t,i){var u=t||1,r=n.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},i);return this.each(function(){var t=n(this),i=function(){t.css("font-size",Math.max(Math.min(t.width()/(u*10),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize)))};i();n(window).on("resize.fittext orientationchange.fittext",i)})}}(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]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){(n.support.transition=t(),n.support.transition)&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(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)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.6";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;(u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,"")),r=n(u),i&&i.preventDefault(),r.length||(r=f.closest(".alert")),r.trigger(i=n.Event("close.bs.alert")),i.isDefaultPrevented())||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;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 i(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)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.6";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text";u.resetText==null&&i.data("resetText",i[f]());setTimeout(n.proxy(function(){i[f](u[t]==null?this.options[t]:u[t]);t=="loadingText"?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),n.prop("type")=="radio"?(n.prop("checked")&&(t=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):n.prop("type")=="checkbox"&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");n(t.target).is('input[type="radio"]')||n(t.target).is('input[type="checkbox"]')||t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(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()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));this.options.pause!="hover"||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.6";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};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.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f=n=="prev"&&i===0||n=="next"&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r=n=="prev"?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(n<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(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(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f=i=="next"?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),this.$element.trigger(s),s.isDefaultPrevented())?void 0:(this.sliding=!0,l&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.6";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!r||!r.length||(f=r.data("bs.collapse"),!f||!f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented())){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented())){if(i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},!n.support.transition)return u.call(this);this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":u.data();i.call(f,o)})}(jQuery);+function(n){"use strict";function r(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function u(t){t&&t.which===3||(n(e).remove(),n(i).each(function(){var u=n(this),i=r(u),f={relatedTarget:this};i.hasClass("open")&&(t&&t.type=="click"&&/input|textarea/i.test(t.target.tagName)&&n.contains(i[0],t.target)||(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented())||(u.attr("aria-expanded","false"),i.removeClass("open").trigger(n.Event("hidden.bs.dropdown",f))))}))}function o(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)})}var e=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.6";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=r(f),o=i.hasClass("open"),u(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length)n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",u);if(e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",e))}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,u;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=r(e),s=o.hasClass("open"),!s&&t.which!=27||s&&t.which==27)return t.which==27&&o.find(i).trigger("focus"),e.trigger("click");(h=" li:not(.disabled):visible a",f=o.find(".dropdown-menu"+h),f.length)&&(u=f.index(t.target),t.which==38&&u>0&&u--,t.which==40&&u<f.length-1&&u++,~u||(u=0),f.eq(u).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=o;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",u).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,t.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(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)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.6";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});if(this.$element.trigger(u),!this.isShown&&!u.isDefaultPrevented()){this.isShown=!0;this.checkScrollbar();this.setScrollbar();this.$body.addClass("modal-open");this.escape();this.resize();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})});this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in");r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)})}};t.prototype.hide=function(i){(i&&i.preventDefault(),i=n.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):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.trigger("focus")},this))};t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){if(this.isShown)n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this));else n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){r=n.support.transition&&f;this.$backdrop=n(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body);this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus():this.hide())},this));if(r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.adjustDialog()};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left));this.bodyIsOverflowing=document.body.clientWidth<n;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){if(!n.isDefaultPrevented())u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.tooltip",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.6";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(n.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(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":"focusin";s=u=="hover"?"mouseleave":"focusout";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).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState[t.type=="focusin"?"focus":"hover"]=!0),i.tip().hasClass("in")||i.hoverState=="in"){i.hoverState="in";return}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.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState[t.type=="focusout"?"focus":"hover"]=!1),!i.isInStateTrue()){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 c=n.Event("show.bs."+this.type),l,p,e,w,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i=typeof this.options.placement=="function"?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;y&&(p=i,e=this.getPosition(this.$viewport),i=i=="bottom"&&f.bottom+s>e.bottom?"top":i=="top"&&f.top-s<e.top?"bottom":i=="right"&&f.right+o>e.width?"left":i=="left"&&f.left-o<e.left?"right":i,r.removeClass(p).addClass(i));w=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(w,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;n=="out"&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top+=o;t.left+=s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;i=="top"&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?u.left*2-l+h:u.top*2-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};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(i){function e(){u.hoverState!="in"&&r.detach();u.$element.removeAttr("aria-describedby").trigger("hidden.bs."+u.type);i&&i()}var u=this,r=n(this.$tip),f=n.Event("hide.bs."+this.type);if(this.$element.trigger(f),!f.isDefaultPrevented())return r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e(),this.hoverState=null,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(t){t=t||this.$element;var u=t[0],r=u.tagName=="BODY",i=u.getBoundingClientRect();i.width==null&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=r?{top:0,left:0}:t.offset(),e={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=r?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,e,o,f)};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.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.right&&(f.left=u.left+u.width-c)),f):f};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.getUID=function(n){do n+=~~(Math.random()*1e6);while(document.getElementById(n));return n};t.prototype.tip=function(){if(!this.$tip&&(this.$tip=n(this.options.template),this.$tip.length!=1))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};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=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type);n.$tip&&n.$tip.detach();n.$tip=null;n.$arrow=null;n.$viewport=null})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.popover",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.6";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><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(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?typeof t=="string"?"html":"append":"text"](t);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")};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){this.$body=n(document.body);this.$scrollElement=n(i).is(document.body)?n(window):n(i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this));this.refresh();this.process()}function i(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]()})}t.VERSION="3.3.6";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var t=this,i="offset",r=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||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.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(t[n+1]===undefined||i<t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();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")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(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]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.6";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function o(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);e?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),e=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&e?f.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function i(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]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).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=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.6";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(i!=null&&this.affixed=="top")return u<i?"top":!1;if(this.affixed=="bottom")return i!=null?u+this.unpin<=f.top?!1:"bottom":u+e<=n-r?!1:"bottom";var o=this.affixed==null,s=o?u:f.top,h=o?e:t;return i!=null&&u<=i?"top":r!=null&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=Math.max(n(document).height(),n(document.body).height());if(typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top(this.$element)),typeof u=="function"&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(this.unpin!=null&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin=i=="bottom"?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}i=="bottom"&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};t.offsetBottom!=null&&(t.offset.bottom=t.offsetBottom);t.offsetTop!=null&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery);+function(n){"use strict";function t(n,t){var r=document.createElement("div").style,i;for(i in n)if(r[n[i]]!==undefined)return t=="pfx"?n[i]:!0;return!1}function i(){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]}}function r(){return!!t(["transformProperty","WebkitTransform","MozTransform","msTransform"])}function u(){return"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix}if(!("ontouchstart"in window||navigator.msMaxTouchPoints))return!1;n(function(){n.support.transition=i();n.support.csstransforms=r();n.support.csstransforms3d=u()})}(window.jQuery)