/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Be(e,n),Me.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0=F.minw)&&(!F.maxw||F.maxw&&D<=F.maxw)){if(!z[F.media]){z[F.media]=[]}z[F.media].push(k[F.rules])}}for(var y in p){if(p[y]&&p[y].parentNode===f){f.removeChild(p[y])}}for(var y in z){var G=u.createElement("style"),A=z[y].join("\n");G.type="text/css";G.media=y;if(G.styleSheet){G.styleSheet.cssText=A}else{G.appendChild(u.createTextNode(A))}C.appendChild(G);p.push(G)}f.insertBefore(C,B.nextSibling)},n=function(v,x){var w=c();if(!w){return}w.open("GET",v,true);w.onreadystatechange=function(){if(w.readyState!=4||w.status!=200&&w.status!=304){return}x(w.responseText)};if(w.readyState==4){return}w.send(null)},c=(function(){var v=false;try{v=new XMLHttpRequest()}catch(w){v=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return v}})();a();respond.update=a;function s(){j(true)}if(e.addEventListener){e.addEventListener("resize",s,false)}else{if(e.attachEvent){e.attachEvent("onresize",s)}}})(this,(function(f){if(f.matchMedia){return true}var e,i=document,c=i.documentElement,g=c.firstElementChild||c.firstChild,h=!i.body,d=i.body||i.createElement("body"),b=i.createElement("div"),a="only all";b.id="mq-test-1";b.style.cssText="position:absolute;top:-99em";d.appendChild(b);b.innerHTML='_';if(h){c.insertBefore(d,g)}b.removeChild(b.firstChild);e=b.offsetWidth==9;if(h){c.removeChild(d)}else{d.removeChild(b)}return e})(this));/* * jQuery QuickFlip v2.1.1 * http://jonraasch.com/blog/quickflip-2-jquery-plugin * * Copyright (c) 2009 Jon Raasch (http://jonraasch.com/) * Licensed under the FreeBSD License: * http://dev.jonraasch.com/quickflip/docs#licensing * */ (function(c){var a=false,b=null;c.quickFlip={wrappers:[],opts:[],objs:[],init:function(d,f){var d=d||{};d.closeSpeed=d.closeSpeed||180;d.openSpeed=d.openSpeed||120;d.ctaSelector=d.ctaSelector||".quickFlipCta";d.refresh=d.refresh||a;d.easing=d.easing||"swing";d.noResize=d.noResize||a;d.vertical=d.vertical||a;var g=typeof(f)!="undefined"?c(f):c(".quickFlip"),h=g.children();if(g.css("position")=="static"){g.css("position","relative")}var e=c.quickFlip.wrappers.length;h.each(function(i){var k=c(this);if(d.ctaSelector){k.find(d.ctaSelector).click(function(j){j.preventDefault();c.quickFlip.flip(e)})}if(i){k.hide()}});c.quickFlip.opts.push(d);c.quickFlip.objs.push({$box:c(g),$kids:c(h)});c.quickFlip.build(e);if(!d.noResize){c(window).resize(function(){for(var j=0;j"),s=q.panels[t].clone().show();r.css(l);r.html(s);return r}var n=c("
"),j=i.panels[p].html(),l={width:e.vertical?e.panelWidth:i.half,height:e.vertical?i.half:e.panelHeight,position:"absolute",overflow:"hidden",margin:0,padding:0};if(e.vertical){l.left=0}else{l.top=0}var m=c(o(i,p)).appendTo(n),k=c(o(i,p)).appendTo(n);if(e.vertical){m.css("bottom",i.half);k.css("top",i.half);k.children().css({top:b,bottom:0})}else{m.css("right",i.half);k.css("left",i.half);k.children().css({right:0,left:"auto"})}return n}},flip:function(g,q,l,r){function h(j,i){j=j||{};i=i||{};for(opt in j){i[opt]=j[opt]}return i}if(typeof g!="number"||typeof c.quickFlip.wrappers[g]=="undefined"){return}var n=c.quickFlip.wrappers[g],f=n.currPanel,e=(typeof(q)!="undefined"&&q!=b)?q:(n.panels.length>f+1)?f+1:0;n.currPanel=e,l=(typeof(l)!="undefined"&&l!=b)?l:1;r=h(r,c.quickFlip.opts[g]);n.panels[f].hide();if(r.refresh){c.quickFlip.removeFlipDivs(g);c.quickFlip.build(g,e);n=c.quickFlip.wrappers[g]}n.flipDivs[f].show();var p=0,o=0,d=r.vertical?{height:0}:{width:0},m=r.vertical?{height:n.half}:{width:n.half};n.flipDivCols[f].animate(d,r.closeSpeed,r.easing,function(){if(!p){p++}else{n.flipDivs[e].show();n.flipDivCols[e].css(d);n.flipDivCols[e].animate(m,r.openSpeed,r.easing,function(){if(!o){o++}else{n.flipDivs[e].hide();n.panels[e].show();switch(l){case 0:case -1:c.quickFlip.flip(g,b,-1);break;case 1:break;default:c.quickFlip.flip(g,b,l-1);break}}})}})},removeFlipDivs:function(e){for(var d=0;d * MIT Licensed. * * http://ricostacruz.com/jquery.transit * http://github.com/rstacruz/jquery.transit */ (function(k){k.transit={version:"0.9.9",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:true,useTransitionEnd:false};var d=document.createElement("div");var q={};function b(v){if(v in d.style){return v}var u=["Moz","Webkit","O","ms"];var r=v.charAt(0).toUpperCase()+v.substr(1);if(v in d.style){return v}for(var t=0;t-1;q.transition=b("transition");q.transitionDelay=b("transitionDelay");q.transform=b("transform");q.transformOrigin=b("transformOrigin");q.transform3d=e();var i={transition:"transitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"};var f=q.transitionEnd=i[q.transition]||null;for(var p in q){if(q.hasOwnProperty(p)&&typeof k.support[p]==="undefined"){k.support[p]=q[p]}}d=null;k.cssEase={_default:"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};k.cssHooks["transit:transform"]={get:function(r){return k(r).data("transform")||new j()},set:function(s,r){var t=r;if(!(t instanceof j)){t=new j(t)}if(q.transform==="WebkitTransform"&&!a){s.style[q.transform]=t.toString(true)}else{s.style[q.transform]=t.toString()}k(s).data("transform",t)}};k.cssHooks.transform={set:k.cssHooks["transit:transform"].set};if(k.fn.jquery<"1.8"){k.cssHooks.transformOrigin={get:function(r){return r.style[q.transformOrigin]},set:function(r,s){r.style[q.transformOrigin]=s}};k.cssHooks.transition={get:function(r){return r.style[q.transition]},set:function(r,s){r.style[q.transition]=s}}}n("scale");n("translate");n("rotate");n("rotateX");n("rotateY");n("rotate3d");n("perspective");n("skewX");n("skewY");n("x",true);n("y",true);function j(r){if(typeof r==="string"){this.parse(r)}return this}j.prototype={setFromString:function(t,s){var r=(typeof s==="string")?s.split(","):(s.constructor===Array)?s:[s];r.unshift(t);j.prototype.set.apply(this,r)},set:function(s){var r=Array.prototype.slice.apply(arguments,[1]);if(this.setter[s]){this.setter[s].apply(this,r)}else{this[s]=r.join(",")}},get:function(r){if(this.getter[r]){return this.getter[r].apply(this)}else{return this[r]||0}},setter:{rotate:function(r){this.rotate=o(r,"deg")},rotateX:function(r){this.rotateX=o(r,"deg")},rotateY:function(r){this.rotateY=o(r,"deg")},scale:function(r,s){if(s===undefined){s=r}this.scale=r+","+s},skewX:function(r){this.skewX=o(r,"deg")},skewY:function(r){this.skewY=o(r,"deg")},perspective:function(r){this.perspective=o(r,"px")},x:function(r){this.set("translate",r,null)},y:function(r){this.set("translate",null,r)},translate:function(r,s){if(this._translateX===undefined){this._translateX=0}if(this._translateY===undefined){this._translateY=0}if(r!==null&&r!==undefined){this._translateX=o(r,"px")}if(s!==null&&s!==undefined){this._translateY=o(s,"px")}this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var r=(this.scale||"1,1").split(",");if(r[0]){r[0]=parseFloat(r[0])}if(r[1]){r[1]=parseFloat(r[1])}return(r[0]===r[1])?r[0]:r},rotate3d:function(){var t=(this.rotate3d||"0,0,0,0deg").split(",");for(var r=0;r<=3;++r){if(t[r]){t[r]=parseFloat(t[r])}}if(t[3]){t[3]=o(t[3],"deg")}return t}},parse:function(s){var r=this;s.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(t,v,u){r.setFromString(v,u)})},toString:function(t){var s=[];for(var r in this){if(this.hasOwnProperty(r)){if((!q.transform3d)&&((r==="rotateX")||(r==="rotateY")||(r==="perspective")||(r==="transformOrigin"))){continue}if(r[0]!=="_"){if(t&&(r==="scale")){s.push(r+"3d("+this[r]+",1)")}else{if(t&&(r==="translate")){s.push(r+"3d("+this[r]+",0)")}else{s.push(r+"("+this[r]+")")}}}}}return s.join(" ")}};function m(s,r,t){if(r===true){s.queue(t)}else{if(r){s.queue(r,t)}else{t()}}}function h(s){var r=[];k.each(s,function(t){t=k.camelCase(t);t=k.transit.propertyMap[t]||k.cssProps[t]||t;t=c(t);if(k.inArray(t,r)===-1){r.push(t)}});return r}function g(s,v,x,r){var t=h(s);if(k.cssEase[x]){x=k.cssEase[x]}var w=""+l(v)+" "+x;if(parseInt(r,10)>0){w+=" "+l(r)}var u=[];k.each(t,function(z,y){u.push(y+" "+w)});return u.join(", ")}k.fn.transition=k.fn.transit=function(z,s,y,C){var D=this;var u=0;var w=true;if(typeof s==="function"){C=s;s=undefined}if(typeof y==="function"){C=y;y=undefined}if(typeof z.easing!=="undefined"){y=z.easing;delete z.easing}if(typeof z.duration!=="undefined"){s=z.duration;delete z.duration}if(typeof z.complete!=="undefined"){C=z.complete;delete z.complete}if(typeof z.queue!=="undefined"){w=z.queue;delete z.queue}if(typeof z.delay!=="undefined"){u=z.delay;delete z.delay}if(typeof s==="undefined"){s=k.fx.speeds._default}if(typeof y==="undefined"){y=k.cssEase._default}s=l(s);var E=g(z,s,y,u);var B=k.transit.enabled&&q.transition;var t=B?(parseInt(s,10)+parseInt(u,10)):0;if(t===0){var A=function(F){D.css(z);if(C){C.apply(D)}if(F){F()}};m(D,w,A);return D}var x={};var r=function(H){var G=false;var F=function(){if(G){D.unbind(f,F)}if(t>0){D.each(function(){this.style[q.transition]=(x[this]||null)})}if(typeof C==="function"){C.apply(D)}if(typeof H==="function"){H()}};if((t>0)&&(f)&&(k.transit.useTransitionEnd)){G=true;D.bind(f,F)}else{window.setTimeout(F,t)}D.each(function(){if(t>0){this.style[q.transition]=E}k(this).css(z)})};var v=function(F){this.offsetWidth;r(F)};m(D,w,v);return this};function n(s,r){if(!r){k.cssNumber[s]=true}k.transit.propertyMap[s]=q.transform;k.cssHooks[s]={get:function(v){var u=k(v).css("transit:transform");return u.get(s)},set:function(v,w){var u=k(v).css("transit:transform");u.setFromString(s,w);k(v).css({"transit:transform":u})}}}function c(r){return r.replace(/([A-Z])/g,function(s){return"-"+s.toLowerCase()})}function o(s,r){if((typeof s==="string")&&(!s.match(/^[\-0-9\.]+$/))){return s}else{return""+s+r}}function l(s){var r=s;if(k.fx.speeds[r]){r=k.fx.speeds[r]}return o(r,"ms")}k.transit.getTransitionValue=g})(jQuery);/*! * Freetile.js v0.3.1 * A dynamic layout plugin for jQuery. */ (function(b){b.fn.freetile=function(c){if(typeof a[c]==="function"){return a[c].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof c==="object"||!c){return a.init.apply(this,arguments)}else{b.error("Method "+c+" does not exist on jQuery.Freetile")}}return this};var a={init:function(e){var d=this,f=a.setupOptions(d,e),g=a.newContent(f.contentToAppend);if(!f.tiled){a.setupContainerBindings(d,f)}if(f.tiled&&g){d.append(g);g.filter(f.selector||"*").filter(f.loadCheckSelector).imagesLoaded(function(){a.positionAll(d,f)})}else{d.children(f.loadCheckSelector).imagesLoaded(function(){a.positionAll(d,f)})}return d},append:function(e){var d=this,f=a.setupOptions(d,e),g=a.newContent(f.contentToAppend);if(f.tiled&&g){d.append(g);g.filter(f.loadCheckSelector).imagesLoaded(function(){a.positionAll(d,f)})}return d},layout:function(d){var c=this,e=a.setupOptions(c,d);a.positionAll(c,e);return c},destroy:function(){var c=this,d=c.data("FreetileData");a.resetElementsStyle(c,d);b(window).off("resize",this.windowResizeCallback);c.off(d.customEvents,this.customEventsCallback);return true},setupOptions:function(d,e){var c=d.data("FreetileData");var f=b.extend(true,{},this.defaults,c,this.reset,e);d.data("FreetileData",f);f.tiled=(c!==undefined);f._animate=f.animate&&f.tiled&&b.isEmptyObject(f.contentToAppend);this.reset.callback=f.persistentCallback&&f.callback?f.callback:function(){};return f},windowResizeCallback:function(c,d,e){clearTimeout(c.data("FreetileTimeout"));c.data("FreetileTimeout",setTimeout(function(){var h=b(window),g=h.width(),f=h.height();if(g!=d||f!=e){d=g,e=f;c.freetile("layout")}},400))},customEventsCallback:function(c){clearTimeout(c.data("FreetileTimeout"));c.data("FreetileTimeout",setTimeout(function(){c.freetile("layout")},400))},setupContainerBindings:function(c,f){if(f.containerResize){var e=b(window),d=e.width(),g=e.height();e.resize(b.proxy(this.windowResizeCallback,c,c,d,g))}if(f.customEvents){c.bind(f.customEvents,b.proxy(this.customEventsCallback,c,c))}return c},newContent:function(c){if((typeof c==="object"&&!b.isEmptyObject(c))||(typeof c==="string"&&b(c).length)){return b(c)}return false},calculatePositions:function(c,d,e){d.each(function(o){var p=b(this),n=0;e.ElementWidth=p.outerWidth(true);e.ElementHeight=p.outerHeight(true);e.ElementTop=0;e.ElementIndex=o;e.IndexStart=0;e.IndexEnd=0;e.BestScore=0;e.TestedTop=0;e.TestedLeft=0;e.TestedTop=e.currentPos[0].top;for(n=1;ne.BestScore){e.IndexStart=o;e.IndexEnd=n;e.ElementTop=e.TestedTop;e.BestScore=l}}var h=p.position(),q={left:e.currentPos[e.IndexStart].left+e.xPadding,top:e.ElementTop+e.yPadding};if(h.top!=q.top||h.left!=q.left){var k={el:p,f:"css",d:0};if(e._animate&&!p.hasClass("noanim")){var f=p.offset(),m={left:q.left+(f.left-h.left),top:q.top+(f.top-h.top)};if((f.top+e.ElementHeight>e.viewportY&&f.tope.viewportY&&m.top0){h.width=g.containerWidthStep*(parseInt(c.width()/g.containerWidthStep,10))}c.css(h);var e=b.map(g.currentPos,function(l,k){return l.top});h={height:Math.max.apply(Math,e)};if(g._animate&&g.containerAnimate){c.stop().animate(h,b.extend(true,{},g.animationOptions))}else{c.css(h)}if(g.iteration<=0){g.callback(g)}c.data("FreetilePos",g.currentPos);j.addClass("tiled");return c},resetElementsStyle:function(c,d){var e;if(b.isEmptyObject(d.contentToAppend)){e=d.selector?c.children(d.selector):c.children()}else{e=d.selector?d.contentToAppend.filter(d.selector):d.contentToAppend}e.each(function(){b(this).attr("style","")})},defaults:{selector:"*",animate:false,elementDelay:0,containerResize:true,containerAnimate:false,customEvents:"",persistentCallback:false,forceWidth:false,containerWidthStep:1,loadCheckSelector:":not(.ignore-load-check)",scoreFunction:function(c){return -(c.TestedTop)}},reset:{animationOptions:{complete:function(){}},callback:function(){},contentToAppend:{}}}})(jQuery); /*! * imagesLoaded PACKAGED v3.0.2 * JavaScript is all like "You images are done yet or what?" */ (function(d){function b(){}function f(h,g){if(c){return g.indexOf(h)}for(var i=g.length;i--;){if(g[i]===h){return i}}return -1}var a=b.prototype,c=Array.prototype.indexOf?!0:!1;a._getEvents=function(){return this._events||(this._events={})},a.getListeners=function(j){var h,k,g=this._getEvents();if("object"==typeof j){h={};for(k in g){g.hasOwnProperty(k)&&j.test(k)&&(h[k]=g[k])}}else{h=g[j]||(g[j]=[])}return h},a.getListenersAsObject=function(h){var g,i=this.getListeners(h);return i instanceof Array&&(g={},g[h]=i),g||i},a.addListener=function(k,h){var g,j=this.getListenersAsObject(k);for(g in j){j.hasOwnProperty(g)&&-1===f(h,j[g])&&j[g].push(h)}return this},a.on=a.addListener,a.defineEvent=function(g){return this.getListeners(g),this},a.defineEvents=function(h){for(var g=0;h.length>g;g+=1){this.defineEvent(h[g])}return this},a.removeListener=function(l,h){var g,k,j=this.getListenersAsObject(l);for(k in j){j.hasOwnProperty(k)&&(g=f(h,j[k]),-1!==g&&j[k].splice(g,1))}return this},a.off=a.removeListener,a.addListeners=function(h,g){return this.manipulateListeners(!1,h,g)},a.removeListeners=function(h,g){return this.manipulateListeners(!0,h,g)},a.manipulateListeners=function(l,h,p){var g,k,j=l?this.removeListener:this.addListener,m=l?this.removeListeners:this.addListeners;if("object"!=typeof h||h instanceof RegExp){for(g=p.length;g--;){j.call(this,h,p[g])}}else{for(g in h){h.hasOwnProperty(g)&&(k=h[g])&&("function"==typeof k?j.call(this,g,k):m.call(this,g,k))}}return this},a.removeEvent=function(j){var h,k=typeof j,g=this._getEvents();if("string"===k){delete g[j]}else{if("object"===k){for(h in g){g.hasOwnProperty(h)&&j.test(h)&&delete g[h]}}else{delete this._events}}return this},a.emitEvent=function(l,h){var m,g,k,j=this.getListenersAsObject(l);for(g in j){if(j.hasOwnProperty(g)){for(m=j[g].length;m--;){k=h?j[g][m].apply(null,h):j[g][m](),k===!0&&this.removeListener(l,j[g][m])}}}return this},a.trigger=a.emitEvent,a.emit=function(h){var g=Array.prototype.slice.call(arguments,1);return this.emitEvent(h,g)},"function"==typeof define&&define.amd?define(function(){return b}):d.EventEmitter=b})(this),function(d){var b=document.documentElement,f=function(){};b.addEventListener?f=function(h,g,i){h.addEventListener(g,i,!1)}:b.attachEvent&&(f=function(g,h,e){g[h+e]=e.handleEvent?function(){var i=d.event;i.target=i.target||i.srcElement,e.handleEvent.call(e,i)}:function(){var i=d.event;i.target=i.target||i.srcElement,e.call(g,i)},g.attachEvent("on"+h,g[h+e])});var a=function(){};b.removeEventListener?a=function(h,g,i){h.removeEventListener(g,i,!1)}:b.detachEvent&&(a=function(j,h,k){j.detachEvent("on"+h,j[h+k]);try{delete j[h+k]}catch(g){j[h+k]=void 0}});var c={bind:f,unbind:a};"function"==typeof define&&define.amd?define(c):d.eventie=c}(this),function(j){function l(h,a){for(var i in a){h[i]=a[i]}return h}function d(a){return"[object Array]"===k.call(a)}function f(o){var h=[];if(d(o)){h=o}else{if("number"==typeof o.length){for(var a=0,n=o.length;n>a;a++){h.push(o[a])}}else{h.push(o)}}return h}function b(p,q){function i(r,t,s){if(!(this instanceof i)){return new i(r,t)}"string"==typeof r&&(r=document.querySelectorAll(r)),this.elements=f(r),this.options=l({},this.options),"function"==typeof t?s=t:l(this.options,t),s&&this.on("always",s),this.getImages(),m&&(this.jqDeferred=new m.Deferred);var a=this;setTimeout(function(){a.check()})}function h(a){this.img=a}i.prototype=new p,i.prototype.options={},i.prototype.getImages=function(){this.images=[];for(var x=0,u=this.elements.length;u>x;x++){var z=this.elements[x];"IMG"===z.nodeName&&this.addImage(z);for(var a=z.querySelectorAll("img"),w=0,v=a.length;v>w;w++){var y=a[w];this.addImage(y)}}},i.prototype.addImage=function(n){var a=new h(n);this.images.push(a)},i.prototype.check=function(){function x(s,n){return u.options.debug&&g&&c.log("confirm",s,n),u.progress(s),y++,y===a&&u.complete(),!0}var u=this,y=0,a=this.images.length;if(this.hasAnyBroken=!1,!a){return this.complete(),void 0}for(var w=0;a>w;w++){var v=this.images[w];v.on("confirm",x),v.check()}},i.prototype.progress=function(a){this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a),this.jqDeferred&&this.jqDeferred.notify(this,a)},i.prototype.complete=function(){var n=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(n,this),this.emit("always",this),this.jqDeferred){var a=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[a](this)}},m&&(m.fn.imagesLoaded=function(r,a){var s=new i(this,r,a);return s.jqDeferred.promise(m(this))});var o={};return h.prototype=new p,h.prototype.check=function(){var n=o[this.img.src];if(n){return this.useCached(n),void 0}if(o[this.img.src]=this,this.img.complete&&void 0!==this.img.naturalWidth){return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0}var a=this.proxyImage=new Image;q.bind(a,"load",this),q.bind(a,"error",this),a.src=this.img.src},h.prototype.useCached=function(n){if(n.isConfirmed){this.confirm(n.isLoaded,"cached was confirmed")}else{var a=this;n.on("confirm",function(r){return a.confirm(r.isLoaded,"cache emitted confirmed"),!0})}},h.prototype.confirm=function(n,a){this.isConfirmed=!0,this.isLoaded=n,this.emit("confirm",this,a)},h.prototype.handleEvent=function(n){var a="on"+n.type;this[a]&&this[a](n)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindProxyEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindProxyEvents()},h.prototype.unbindProxyEvents=function(){q.unbind(this.proxyImage,"load",this),q.unbind(this.proxyImage,"error",this)},i}var m=j.jQuery,c=j.console,g=c!==void 0,k=Object.prototype.toString;"function"==typeof define&&define.amd?define(["eventEmitter","eventie"],b):j.imagesLoaded=b(j.EventEmitter,j.eventie)}(window);var tickerstart; var tickertimer = 5000; var start; var timer = 5000; var resizeTimer; // vars fuer LazyLoadImg var scrolling = 0; var windowheight = 0; var windowwidth = 0; var viewportpos = 500; var image = ""; var imagewidth = 0; var imageheight = 0; var randomkey = Date.now(); function slideSwitch() { $('#content .slidebox').each( function() { var $currentbox = "#" + $(this).attr('id'); if (!$($currentbox).hasClass('hover')) { var $activeelement = $($currentbox+' img.active'); if ( $activeelement.length == 0 ) { $activeelement = $($currentbox +' img:last'); $($activeelement).addClass('active'); } var $nextelement = $activeelement.next().length ? $activeelement.next() : $($currentbox +' img:first'); $nextelement.slideDown(500, function() { $activeelement.slideUp(500);}) $activeelement.removeClass('active'); $nextelement.addClass('active'); } }) } function LazyLoadImg() { // galeriebilder $('#content .galeriecontainer .fslightbox').not('.show').each(function() { if ($(this).offset().top < scrolling + windowheight + viewportpos) { // vlightbox in span var image = ""; $('.galeriecontainer .fslightbox').each(function() { image = $(this).attr('href'); image = ""; $(this).html(image); $(this).addClass('show'); }) } }) $('#content img').not('.show').each(function() { if ($(this).offset().top < scrolling + windowheight + viewportpos) { imagewidth = $(this).closest('figure').width(); if (windowwidth < 850) { imagewidth = windowwidth; } if ($(this).attr('origdata') !== undefined) { image = "/module/createimage.php?img=" + $(this).attr('origdata') + "&w=" + imagewidth; $(this).attr('src',image); $(this).addClass('.show'); } } }) } function isInView(elem){ return $(elem).offset().top + $(elem).height() < $(window).scrollTop() + $(window).height(); } function textticker() { $('#content .tickerbox').each( function() { var $currentbox = "#" + $(this).attr('id'); if (!$($currentbox).hasClass('ishover')) { var $activeelement = $($currentbox+' .active'); if ($($activeelement).length == 0) { $activeelement = $($currentbox +' p:first'); $($activeelement).addClass('active'); } var $activeparagraph = "#" + $($activeelement).attr('id'); var $nextelement = $($activeparagraph).next('p'); if ($($nextelement).length == 0) { $nextelement = $($currentbox+' p:first'); } var $nextparagraph = "#" + $($nextelement).attr('id'); $($activeparagraph).fadeOut(500); timernextel = setTimeout(function(){ $($nextparagraph).slideDown(500); },600); $($activeparagraph).removeClass('active'); $($nextparagraph).addClass('active'); } }) } $(window).resize(function() { if ($(window).innerWidth() > 622) { $("#subnavi1").slideDown('fast'); $(".smartphone").css('visibility','hidden'); } else { $('#subnavi1').slideUp(0); $(".smartphone").css('visibility','visible'); } Spalte1Width(); }); function Spalte1Width() { var gesamtbreite = $(window).width(); if (gesamtbreite < 650) { // sidebar nach unten $('#main').css('width','96%'); $('#sidebar').css('width','96%'); } else { if ($('#sidebar').length > 0) { $('#main').css('width','48%'); $('#sidebar').css('width','22%'); } else { $('#main').css('width','60%'); } } if (gesamtbreite < 1000) { var ueberschrift1 = parseInt(350 * gesamtbreite / 1000) + "%"; $('#main h1').css('font-size',ueberschrift1); } } function textticker() { $('#content .tickerbox').each( function() { var $currentbox = "#" + $(this).attr('id'); if (!$($currentbox).hasClass('ishover')) { var $activeelement = $($currentbox+' .active'); if ($($activeelement).length == 0) { $activeelement = $($currentbox +' p:first'); $($activeelement).addClass('active'); } var $activeparagraph = "#" + $($activeelement).attr('id'); var $nextelement = $($activeparagraph).next('p'); if ($($nextelement).length == 0) { $nextelement = $($currentbox+' p:first'); } var $nextparagraph = "#" + $($nextelement).attr('id'); $($activeparagraph).fadeOut(500); timernextel = setTimeout(function(){ $($nextparagraph).slideDown(500); },600); $($activeparagraph).removeClass('active'); $($nextparagraph).addClass('active'); } }) } // navi-pfeile in slideboxen einfuegen function slideboxnavi() { var $navibox = "
"; $('.slidebox').prepend($navibox); $('.slidebox img:first').fadeIn(); } function sidebarLast() { var $sidebar = $("#sidebar"); if ($('#content').children('div').attr('id') == "sidebar") { $sidebar.remove(); $("#content").append($sidebar); $('#main').css('width','93%'); $('#sidebar').css('width','93%'); } } function sidebarFirst() { var $spalte1 = $("#main"); if ($('#content').children('div').attr('id') == "main") { if ($('#sidebar').length > 0) { $spalte1.remove(); $("#content").append($spalte1); $('#main').css('width','65%'); $('#sidebar').css('width','24%'); }} } $(document).ready(function(){ windowwidth = $(window).width(); $('#navi').css("visibility","visible"); $('.mehrtext').slideUp('fast'); $('#main').css('width',''); // leere sidebar entfernen if ($('#sidebar').length > 0) { if ($('#sidebar').html().length < 2) { $('#sidebar').remove(); } } if ($(window).width() > 622) { $('.pad').css('visibility','visible'); $("#subnavi1").slideDown('fast'); $(".smartphone").css('visibility','hidden'); sidebarFirst(); } else { $('.smartphone').css('visibility','visible'); sidebarLast(); } // sidebar bilden if ($('.sidebar').length > 0) { var sidebar = ""; $('.sidebar').each(function() { sidebar += $(this).html(); $(this).remove(); }) $('#content').prepend(""); } Spalte1Width(); if (windowwidth > 800) { if ($('#main').length > 0) { var $container = $('#main'); $container.freetile({ animate: true, elementDelay: 30 }); } } $('#content .artikellink').each(function() { $(this).closest('article').addClass('haslink'); }) $('.haslink').on('click', function() { document.location.href = $(this).find('.artikellink').attr('href'); }) $('#allowcookies').click(function() { $.ajax({ url : "module/allowcookies.php", type: "POST", success: function(data, textStatus, jqXHR) { }, error: function (xhr, ajaxOptions, thrownError) { console.log("Fehler:" + xhr.responseText+" - "+thrownError);} }); $('#cookiezustimmung').slideUp(500); $('body').removeClass('cookieheader'); }) if ($('#cookiezustimmung').length > 0) { $('body').addClass('cookieheader'); } $("#content .tickerbox p").removeClass('active'); start = setInterval( "slideSwitch()", timer ); $('#content .tickerbox .active').css({opacity: 1.0}); $('#content .tickerbox .active').fadeIn(); tickerstart = setInterval("textticker()", tickertimer); slideboxnavi(); $('#content .tickerbox p').not('#content .tickerbox .active').fadeOut(0); $('#quicknavi').click(function(){ if ($('#hauptnavi').hasClass('sichtbar')) { $('#hauptnavi').removeClass('sichtbar'); $('#hauptnavi').slideUp(300); } else { $('#hauptnavi').slideDown(500); $('#hauptnavi').addClass('sichtbar'); } }) $('#quicknavi').mouseleave(function() { $('#hauptnavi').removeClass('sichtbar'); $('#hauptnavi').slideUp(300); }) $('#content').on('click','.kachellink',function(ev) { var $linkadresse = ""; var $linkziel = ""; var $masterseite = ""; var $subseite = ""; if ($(this).children('.kacheltitel').length > 0) { $linkadresse = $(this).children(".kacheltitel").children(".kacheltitelcontent").children("a").attr('href'); $linkziel = $(this).children(".kacheltitel").children(".kacheltitelcontent").children("a").attr('target'); } else { $linkadresse = $(this).children(".kachellink").attr('href'); $linkziel = $(this).children(".kachellink").attr('target'); } console.log($linkadresse); // pruefen ob link auf gleiche url if ($linkadresse.indexOf("//") > 0) { var $extern = 1; } else { $linkadresse = $linkadresse.substr(1); if ($linkadresse.indexOf("/") > 0) { var urlteile = $linkadresse.slice("/"); var zielseite = urlteile[urlteile.lastIndexOf(urlteile)]; console.log("Ziel: " + zielseite); $masterseite = $linkadresse.substr(0,$linkadresse.indexOf("/")); $subseite = $linkadresse.substr($linkadresse.indexOf("/")+1); $subseite = $subseite.substr(0,$subseite.indexOf(".")); } else { $masterseite = $linkadresse.substr(0,$linkadresse.indexOf(".")); $subseite = ""; } } if ($linkziel == "_blank") { window.open($linkadresse); } else { window.location.href = $linkadresse; } return false; }) $(".mehrlinkein").click(function () { var currentid = $(this).attr('id'); currentid = currentid.substr(11); var currentobj = "#mehrtext" + currentid; $(currentobj).css('visibility','visible'); $(currentobj).slideDown(300); currentobj = "#mehrlinkdiv" + currentid; $(currentobj).css('visibility','hidden'); $(currentobj).css('height','0px'); return false; } ) $(".mehrlinkaus").click(function () { var currentid = $(this).attr('id'); currentid = currentid.substr(11); var currentobj= "#mehrtext" + currentid; $(currentobj).slideUp(300); currentobj = "#mehrlinkdiv" + currentid; $(currentobj).css('visibility','visible'); $(currentobj).css('height','auto'); return false; } ) $(".smartphone").click(function() { $('#subnavi1').toggle('fast'); return false; }); // subnavi einaus fuer smartphone $(".hauptnavi_gruppenschalter").click(function(event) { event.stopPropagation(); var currentid = $(this).parent('li').attr('id'); currentid = currentid.substr(9); currentobj= "#subnavi" + currentid; $(currentobj).css('visibility','visible'); $(currentobj).slideToggle(300); }) $('#subnavi1').click(function() { if ($(window).width() < 623) { //$('#subnavi1').slideUp('fast'); } }); $(".hauptnavi").mouseenter( function() { if ($(window).width() > 622) { var currentid = $(this).attr('id'); var currentobj = "#" + currentid; $(currentobj).removeClass('hauptnavi'); $(currentobj).addClass('hauptnavi_mouse'); setTimeout(function() { if ($(currentobj).hasClass('hauptnavi_mouse')) { currentid = currentid.substr(9); currentobj= "#subnavi" + currentid; $(currentobj).css("visibility","visible"); $(currentobj).slideDown(300); } },200); } }); $(".hauptnavi").mouseleave(function () { if ($(window).width() > 622) { var currentid = $(this).attr('id'); var currentel = "#" + currentid; $(currentel).removeClass('hauptnavi_mouse'); $(currentel).addClass('hauptnavi'); currentid = currentid.substr(9); var currentobj= "#subnavi" + currentid; $(currentobj).fadeOut(300); return false; } }); $("#mobil_navischalter").click(function() { $("#primary_nav").css("visibility","visible"); $("#primary_nav").toggle(300); return false; }); $("body").click(function() { if ($(window).width() < 481) { $("#primary_nav").slideUp(); } }) $('#content').on('mouseenter','.tickerbox',function() { var $target = "#" + $(this).attr('id'); if ( !$($target).hasClass('ishover')) { $($target).addClass('ishover'); } }) $('#content').on('mouseleave','.tickerbox',function() { var $target = "#" + $(this).attr('id'); $($target).removeClass('ishover'); }) $('#content').on('mouseenter','.slideupbox',function() { var $target = "#" + $(this).attr('id'); var hoehe = $($target + " img").height(); hoehe = parseInt(hoehe); hoehe = "-" + hoehe + "px"; if ( !$($target).hasClass('slideup')) { $($target + " img").animate({marginTop: hoehe},500); $($target).addClass('slideup'); } }) $('#content').on('mouseleave','.slideupbox',function() { var $target = "#" + $(this).attr('id'); $($target + " img").animate({marginTop: '0'},500); $($target).removeClass('slideup'); }) $('#content').on('mouseenter','.slidebox',function() { var $target = "#" + $(this).attr('id'); if (!$($target).hasClass('hover')) { $($target).addClass('hover'); setTimeout(function(){ if ($($target).hasClass('hover')) { $($target + ' .bildvorher').css({opacity: 0.5}); $($target + ' .bildnachher').css({opacity: 0.5}); $($target + ' .bildvorher').fadeIn(300); $($target + ' .bildnachher').fadeIn(300); } }, 500); } }) $('#content').on('mouseleave','.slidebox',function() { var $target = "#" + $(this).attr('id'); if ($($target).hasClass('hover')) { setTimeout(function() { $($target + ' .bildvorher').fadeOut(300); $($target + ' .bildnachher').fadeOut(300); $($target).removeClass('hover'); }, 500); } }) $('#content').on('mouseenter','.slidebox .bildvorher',function() { $(this).animate({opacity: 1.0},500); }) $('#content').on('mouseleave','.slidebox .bildvorher',function() { $(this).animate({opacity: 0.5},500); }) $('#content').on('mouseenter','.slidebox .bildnachher',function() { $(this).animate({opacity: 1.0},500); }) $('#content').on('mouseleave','.slidebox .bildnachher',function() { $(this).animate({opacity: 0.5},500); }) // 1 bild zurueck $('#content').on('click','.bildvorher',function() { var element = "#" + $(this).parent().attr('id'); var $active = $(element+' img.active'); if ( $active.length == 0 ) $active = $(element+' img:first'); var $next = $active.prev('img').length ? $active.prev('img') : $(element +' img:last'); $next.addClass('active'); $active.removeClass('active'); $active.slideUp(500); $next.slideDown(500); }) $('#content').on('click','.bildnachher',function() { var element = "#" + $(this).parent().attr('id'); var $active = $(element+' img.active'); if ( $active.length == 0 ) $active = $(element+' img:last'); var $next = $active.next('img').length ? $active.next('img') : $(element +' img:first'); $next.addClass('active'); $active.removeClass('active'); $active.slideUp(500); $next.slideDown(500); }) $('#content').on('mouseenter','.flipContainer',function() { $(this).children(".front").transit( { "rotateY":"90deg" },500,"easeInCirc",function () { var back; $(this).hide(); back = $(this).siblings(".back"); back.css({ "rotateY" : "-90deg" }); back.show(); back.transit( { "rotateY":"0deg" },500,"easeOutCirc"); }); }); $('#content').on('mouseleave','.flipContainer',function() { $(this).children(".back").transit( { "rotateY" : "90deg" },500,"easeInCirc",function () { var front; $(this).hide(); front = $(this).siblings(".front"); front.css({ "rotateY" : "-90deg" }); front.show(); front.transit({ "rotateY" : "0deg" },500,"easeOutCirc"); }); }); }); $(window).on('load',function() { windowheight = $(window).height(); LazyLoadImg(); }) $(window).on('scroll',function() { scrolling = $(window).scrollTop(); LazyLoadImg(); $('#content article.outofview').each(function() { if ($(this).offset().top + $(this).height() / 2 < windowheight + scrolling) { $(this).removeClass('outofview'); $(this).addClass('inview'); $(this).animate({scale: 1.0}, 2000 ); } }) })