!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(e,t){'use strict';var b=[],r=e.document,Xt=Object.getPrototypeOf,v=b.slice,Ye=b.concat,le=b.push,V=b.indexOf,Q={},Ke=Q.toString,X=Q.hasOwnProperty,Ve=X.toString,Jt=Ve.call(Object),s={},o=function(e){return'function'==typeof e&&'number'!=typeof e.nodeType},E=function(e){return null!=e&&e===e.window},Zt={type:!0,src:!0,nonce:!0,noModule:!0};function Qe(e,t,n){var i,s,o=(n=n||r).createElement('script');if(o.text=e,t)for(i in Zt)(s=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,s);n.head.appendChild(o).parentNode.removeChild(o)};function I(e){return null==e?e+'':'object'==typeof e||'function'==typeof e?Q[Ke.call(e)]||'object':typeof e};var Ge='3.4.1',n=function(e,t){return new n.fn.init(e,t)},Qt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function ce(e){var t=!!e&&'length'in e&&e.length,n=I(e);return!o(e)&&!E(e)&&('array'===n||0===t||'number'==typeof t&&0+~]|'+i+')'+i+'*'),ye=new RegExp(i+'|>'),be=new RegExp(U),we=new RegExp('^'+k+'$'),M={ID:new RegExp('^#('+k+')'),CLASS:new RegExp('^\\.('+k+')'),TAG:new RegExp('^('+k+'|[*])'),ATTR:new RegExp('^'+oe),PSEUDO:new RegExp('^'+U),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('^(?:'+F+')$','i'),needsContext:new RegExp('^'+i+'*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\('+i+'*((?:-\\d)?\\d*)'+i+'*\\)|)(?=[^-]|$)','i')},xe=/HTML$/i,Ce=/^(?:input|select|textarea|button)$/i,ke=/^h\d$/i,A=/^[^{]+\{\s*\[native \w/,Te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,g=new RegExp('\\\\([\\da-f]{1,6}'+i+'?|('+i+')|.)','ig'),m=function(e,t,n){var i='0x'+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,se=function(e,t){return t?'\0'===e?'\ufffd':e.slice(0,-1)+'\\'+e.charCodeAt(e.length-1).toString(16)+' ':'\\'+e},ae=function(){y()},Se=R(function(e){return!0===e.disabled&&'fieldset'===e.nodeName.toLowerCase()},{dir:'parentNode',next:'legend'});try{b.apply(x=ie.call(d.childNodes),d.childNodes),x[d.childNodes.length].nodeType}catch(a){b={apply:x.length?function(e,t){fe.apply(e,ie.call(t))}:function(e,t){var n=e.length,i=0;while(e[n++]=t[i++]);e.length=n-1}}};function o(e,t,i,o){var c,m,p,f,v,w,x,g=t&&t.ownerDocument,h=t?t.nodeType:9;if(i=i||[],'string'!=typeof e||!e||1!==h&&9!==h&&11!==h)return i;if(!o&&((t?t.ownerDocument||t:d)!==n&&y(t),t=t||n,u)){if(11!==h&&(v=Te.exec(e)))if(c=v[1]){if(9===h){if(!(p=t.getElementById(c)))return i;if(p.id===c)return i.push(p),i} else if(g&&(p=g.getElementById(c))&&L(t,p)&&p.id===c)return i.push(p),i} else{if(v[2])return b.apply(i,t.getElementsByTagName(e)),i;if((c=v[3])&&s.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(c)),i};if(s.qsa&&!j[e+' ']&&(!l||!l.test(e))&&(1!==h||'object'!==t.nodeName.toLowerCase())){if(x=e,g=t,1===h&&ye.test(e)){(f=t.getAttribute('id'))?f=f.replace(re,se):t.setAttribute('id',f=r),m=(w=I(e)).length;while(m--)w[m]='#'+f+' '+P(w[m]);x=w.join(','),g=G.test(e)&&K(t.parentNode)||t};try{return b.apply(i,g.querySelectorAll(x)),i}catch(a){j(e,!0)}finally{f===r&&t.removeAttribute('id')}}};return Z(e.replace(q,'$1'),t,i,o)};function z(){var e=[];return function n(i,o){return e.push(i+' ')>t.cacheLength&&delete n[e.shift()],n[i+' ']=o}};function p(e){return e[r]=!0,e};function h(e){var i=n.createElement('fieldset');try{return!!e(i)}catch(t){return!1}finally{i.parentNode&&i.parentNode.removeChild(i),i=null}};function Y(e,n){var i=e.split('|'),o=i.length;while(o--)t.attrHandle[i[o]]=n};function le(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1};function Ee(e){return function(t){return'input'===t.nodeName.toLowerCase()&&t.type===e}};function Ie(e){return function(t){var n=t.nodeName.toLowerCase();return('input'===n||'button'===n)&&t.type===e}};function ce(e){return function(t){return'form'in t?t.parentNode&&!1===t.disabled?'label'in t?'label'in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Se(t)===e:t.disabled===e:'label'in t&&t.disabled===e}};function T(e){return p(function(t){return t=+t,p(function(n,i){var o,r=e([],n.length,t),s=r.length;while(s--)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))})})};function K(e){return e&&'undefined'!=typeof e.getElementsByTagName&&e};for(S in s=o.support={},J=o.isXML=function(e){var n=e.namespaceURI,t=(e.ownerDocument||e).documentElement;return!xe.test(n||t&&t.nodeName||'HTML')},y=o.setDocument=function(e){var p,o,a=e?e.ownerDocument||e:d;return a!==n&&9===a.nodeType&&a.documentElement&&(c=(n=a).documentElement,u=!J(n),d!==n&&(o=n.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener('unload',ae,!1):o.attachEvent&&o.attachEvent('onunload',ae)),s.attributes=h(function(e){return e.className='i',!e.getAttribute('className')}),s.getElementsByTagName=h(function(e){return e.appendChild(n.createComment('')),!e.getElementsByTagName('*').length}),s.getElementsByClassName=A.test(n.getElementsByClassName),s.getById=h(function(e){return c.appendChild(e).id=r,!n.getElementsByName||!n.getElementsByName(r).length}),s.getById?(t.filter.ID=function(e){var t=e.replace(g,m);return function(e){return e.getAttribute('id')===t}},t.find.ID=function(e,t){if('undefined'!=typeof t.getElementById&&u){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(g,m);return function(e){var n='undefined'!=typeof e.getAttributeNode&&e.getAttributeNode('id');return n&&n.value===t}},t.find.ID=function(e,t){if('undefined'!=typeof t.getElementById&&u){var i,o,r,n=t.getElementById(e);if(n){if((i=n.getAttributeNode('id'))&&i.value===e)return[n];r=t.getElementsByName(e),o=0;while(n=r[o++])if((i=n.getAttributeNode('id'))&&i.value===e)return[n]};return[]}}),t.find.TAG=s.getElementsByTagName?function(e,t){return'undefined'!=typeof t.getElementsByTagName?t.getElementsByTagName(e):s.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if('*'===e){while(n=o[r++])1===n.nodeType&&i.push(n);return i};return o},t.find.CLASS=s.getElementsByClassName&&function(e,t){if('undefined'!=typeof t.getElementsByClassName&&u)return t.getElementsByClassName(e)},w=[],l=[],(s.qsa=A.test(n.querySelectorAll))&&(h(function(e){c.appendChild(e).innerHTML='',e.querySelectorAll('[msallowcapture^=\'\']').length&&l.push('[*^$]='+i+'*(?:\'\'|"")'),e.querySelectorAll('[selected]').length||l.push('\\['+i+'*(?:value|'+F+')'),e.querySelectorAll('[id~='+r+'-]').length||l.push('~='),e.querySelectorAll(':checked').length||l.push(':checked'),e.querySelectorAll('a#'+r+'+*').length||l.push('.#.+[+~]')}),h(function(e){e.innerHTML='';var t=n.createElement('input');t.setAttribute('type','hidden'),e.appendChild(t).setAttribute('name','D'),e.querySelectorAll('[name=d]').length&&l.push('name'+i+'*[*^$|!~]?='),2!==e.querySelectorAll(':enabled').length&&l.push(':enabled',':disabled'),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(':disabled').length&&l.push(':enabled',':disabled'),e.querySelectorAll('*,:x'),l.push(',.*:')})),(s.matchesSelector=A.test(N=c.matches||c.webkitMatchesSelector||c.mozMatchesSelector||c.oMatchesSelector||c.msMatchesSelector))&&h(function(e){s.disconnectedMatch=N.call(e,'*'),N.call(e,'[s!=\'\']:x'),w.push('!=',U)}),l=l.length&&new RegExp(l.join('|')),w=w.length&&new RegExp(w.join('|')),p=A.test(c.compareDocumentPosition),L=p||A.test(c.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},W=p?function(e,t){if(e===t)return E=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!s.sortDetached&&t.compareDocumentPosition(e)===i?e===n||e.ownerDocument===d&&L(d,e)?-1:t===n||t.ownerDocument===d&&L(d,t)?1:v?C(v,e)-C(v,t):0:4&i?-1:1)}:function(e,t){if(e===t)return E=!0,0;var i,o=0,a=e.parentNode,l=t.parentNode,r=[e],s=[t];if(!a||!l)return e===n?-1:t===n?1:a?-1:l?1:v?C(v,e)-C(v,t):0;if(a===l)return le(e,t);i=e;while(i=i.parentNode)r.unshift(i);i=t;while(i=i.parentNode)s.unshift(i);while(r[o]===s[o])o++;return o?le(r[o],s[o]):r[o]===d?-1:s[o]===d?1:0}),n},o.matches=function(e,t){return o(e,null,null,t)},o.matchesSelector=function(e,t){if((e.ownerDocument||e)!==n&&y(e),s.matchesSelector&&u&&!j[t+' ']&&(!w||!w.test(t))&&(!l||!l.test(t)))try{var r=N.call(e,t);if(r||s.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){j(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(g,m),e[3]=(e[3]||e[4]||e[5]||'').replace(g,m),'~='===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]||o.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]&&o.error(e[0]),e},PSEUDO:function(e){var n,t=!e[6]&&e[2];return M.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||'':t&&be.test(t)&&(n=I(t,!0))&&(n=t.indexOf(')',t.length-n)-t.length)&&(e[0]=e[0].slice(0,n),e[2]=t.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(g,m).toLowerCase();return'*'===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=ee[e+' '];return t||(t=new RegExp('(^|'+i+')'+e+'('+i+'|$)'))&&ee(e,function(e){return t.test('string'==typeof e.className&&e.className||'undefined'!=typeof e.getAttribute&&e.getAttribute('class')||'')})},ATTR:function(e,t,n){return function(i){var r=o.attr(i,e);return null==r?'!='===t:!t||(r+='','='===t?r===n:'!='===t?r!==n:'^='===t?n&&0===r.indexOf(n):'*='===t?n&&-1','#'===e.firstChild.getAttribute('href')})||Y('type|href|height|width',function(e,t,n){if(!n)return e.getAttribute(t,'type'===t.toLowerCase()?1:2)}),s.attributes&&h(function(e){return e.innerHTML='',e.firstChild.setAttribute('value',''),''===e.firstChild.getAttribute('value')})||Y('value',function(e,t,n){if(!n&&'input'===e.nodeName.toLowerCase())return e.defaultValue}),h(function(e){return null==e.getAttribute('disabled')})||Y(F,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),o}(e);n.find=y,n.expr=y.selectors,n.expr[':']=n.expr.pseudos,n.uniqueSort=n.unique=y.uniqueSort,n.text=y.getText,n.isXMLDoc=y.isXML,n.contains=y.contains,n.escapeSelector=y.escape;var S=function(e,t,i){var o=[],r=void 0!==i;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(r&&n(e).is(i))break;o.push(e)};return o},Fe=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Ue=n.expr.match.needsContext;function u(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()};var We=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ue(e,t,i){return o(t)?n.grep(e,function(e,n){return!!t.call(e,n,e)!==i}):t.nodeType?n.grep(e,function(e){return e===t!==i}):'string'!=typeof t?n.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(n.fn.init=function(e,t,i){var s,a;if(!e)return this;if(i=i||Be,'string'==typeof e){if(!(s='<'===e[0]&&'>'===e[e.length-1]&&3<=e.length?[null,e,null]:Vt.exec(e))||!s[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(s[1]){if(t=t instanceof n?t[0]:t,n.merge(this,n.parseHTML(s[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),We.test(s[1])&&n.isPlainObject(t))for(s in t)o(this[s])?this[s](t[s]):this.attr(s,t[s]);return this};return(a=r.getElementById(s[2]))&&(this[0]=a,this.length=1),this};return e.nodeType?(this[0]=e,this.length=1,this):o(e)?void 0!==i.ready?i.ready(e):e(n):n.makeArray(e,this)}).prototype=n.fn,Be=n(r);var Yt=/^(?:parents|prev(?:Until|All))/,Kt={children:!0,contents:!0,next:!0,prev:!0};function Xe(e,t){while((e=e[t])&&1!==e.nodeType);return e};n.fn.extend({has:function(e){var t=n(e,this),i=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,ze=/^$|^module$|\/(?:java|ecma)script/i,c={option:[1,''],thead:[1,'','
'],col:[2,'','
'],tr:[2,'','
'],td:[3,'','
'],_default:[0,'','']};function l(e,t){var i;return i='undefined'!=typeof e.getElementsByTagName?e.getElementsByTagName(t||'*'):'undefined'!=typeof e.querySelectorAll?e.querySelectorAll(t||'*'):[],void 0===t||t&&u(e,t)?n.merge([e],i):i};function de(e,t){for(var n=0,o=e.length;nx',s.noCloneChecked=!!z.cloneNode(!0).lastChild.defaultValue;var zt=/^key/,Pt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,qe=/^([^.]*)(?:\.(.+)|)/;function O(){return!0};function D(){return!1};function tn(e,t){return e===function(){try{return r.activeElement}catch(e){}}()==('focus'===t)};function pe(e,t,i,o,r,s){var a,l;if('object'==typeof t){for(l in'string'!=typeof i&&(o=o||i,i=void 0),t)pe(e,l,i,o,t[l],s);return e};if(null==o&&null==r?(r=i,o=i=void 0):null==r&&('string'==typeof i?(r=o,o=void 0):(r=o,o=i,i=void 0)),!1===r)r=D;else if(!r)return e;return 1===s&&(a=r,(r=function(e){return n().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=n.guid++)),e.each(function(){n.event.add(this,t,r,o,i)})};function ee(e,t,o){o?(i.set(e,t,!1),n.event.add(e,t,{namespace:!1,handler:function(e){var a,s,r=i.get(this,t);if(1&e.isTrigger&&this[t]){if(r.length)(n.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=v.call(arguments),i.set(this,t,r),a=o(this,t),this[t](),r!==(s=i.get(this,t))||a?i.set(this,t,!1):s={},r!==s)return e.stopImmediatePropagation(),e.preventDefault(),s.value} else r.length&&(i.set(this,t,{value:n.event.trigger(n.extend(r[0],n.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===i.get(e,t)&&n.event.add(e,t,O)};n.event={global:{},add:function(e,t,o,r,s){var g,p,y,f,m,c,l,u,a,v,b,d=i.get(e);if(d){o.handler&&(o=(g=o).handler,s=g.selector),s&&n.find.matchesSelector(H,s),o.guid||(o.guid=n.guid++),(f=d.events)||(f=d.events={}),(p=d.handle)||(p=d.handle=function(t){return'undefined'!=typeof n&&n.event.triggered!==t.type?n.event.dispatch.apply(e,arguments):void 0}),m=(t=(t||'').match(h)||['']).length;while(m--)a=b=(y=qe.exec(t[m])||[])[1],v=(y[2]||'').split('.').sort(),a&&(l=n.event.special[a]||{},a=(s?l.delegateType:l.bindType)||a,l=n.event.special[a]||{},c=n.extend({type:a,origType:b,data:r,handler:o,guid:o.guid,selector:s,needsContext:s&&n.expr.match.needsContext.test(s),namespace:v.join('.')},g),(u=f[a])||((u=f[a]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,r,v,p)||e.addEventListener&&e.addEventListener(a,p)),l.add&&(l.add.call(e,c),c.handler.guid||(c.handler.guid=o.guid)),s?u.splice(u.delegateCount++,0,c):u.push(c),n.event.global[a]=!0)}},remove:function(e,t,o,r,s){var f,y,u,p,g,l,c,d,a,v,b,m=i.hasData(e)&&i.get(e);if(m&&(p=m.events)){g=(t=(t||'').match(h)||['']).length;while(g--)if(a=b=(u=qe.exec(t[g])||[])[1],v=(u[2]||'').split('.').sort(),a){c=n.event.special[a]||{},d=p[a=(r?c.delegateType:c.bindType)||a]||[],u=u[2]&&new RegExp('(^|\\.)'+v.join('\\.(?:.*\\.|)')+'(\\.|$)'),y=f=d.length;while(f--)l=d[f],!s&&b!==l.origType||o&&o.guid!==l.guid||u&&!u.test(l.namespace)||r&&r!==l.selector&&('**'!==r||!l.selector)||(d.splice(f,1),l.selector&&d.delegateCount--,c.remove&&c.remove.call(e,l));y&&!d.length&&(c.teardown&&!1!==c.teardown.call(e,v,m.handle)||n.removeEvent(e,a,m.handle),delete p[a])} else for(a in p)n.event.remove(e,a+t[g],o,r,!0);n.isEmptyObject(p)&&i.remove(e,'handle events')}},dispatch:function(e){var o,c,u,s,r,d,t=n.event.fix(e),l=new Array(arguments.length),p=(i.get(this,'events')||{})[t.type]||[],a=n.event.special[t.type]||{};for(l[0]=t,o=1;o\x20\t\r\n\f]*)[^>]*)\/>/gi,jt=/\s*$/g;function nt(e,t){return u(e,'table')&&u(11!==t.nodeType?t:t.firstChild,'tr')&&n(e).children('tbody')[0]||e};function nn(e){return e.type=(null!==e.getAttribute('type'))+'/'+e.type,e};function on(e){return'true/'===(e.type||'').slice(0,5)?e.type=e.type.slice(5):e.removeAttribute('type'),e};function it(e,t){var o,u,r,l,c,d,p,s;if(1===t.nodeType){if(i.hasData(e)&&(l=i.access(e),c=i.set(t,l),s=l.events))for(r in delete c.handle,c.events={},s)for(o=0,u=s[r].length;o')},clone:function(e,t,i){var o,u,a,r,d,p,h,c=e.cloneNode(!0),f=T(e);if(!(s.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||n.isXMLDoc(e)))for(r=l(c),o=0,u=(a=l(e)).length;o').attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on('load error',t=function(e){i.remove(),t=null,e&&s('error'===e.type?404:200,e.type)}),r.head.appendChild(i[0])},abort:function(){t&&t()}}});var be,we=[],ne=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:'callback',jsonpCallback:function(){var e=we.pop()||n.expando+'_'+Te++;return this[e]=!0,e}}),n.ajaxPrefilter('json jsonp',function(t,i,r){var s,a,l,c=!1!==t.jsonp&&(ne.test(t.url)?'url':'string'==typeof t.data&&0===(t.contentType||'').indexOf('application/x-www-form-urlencoded')&&ne.test(t.data)&&'data');if(c||'jsonp'===t.dataTypes[0])return s=t.jsonpCallback=o(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,c?t[c]=t[c].replace(ne,'$1'+s):!1!==t.jsonp&&(t.url+=(re.test(t.url)?'&':'?')+t.jsonp+'='+s),t.converters['script json']=function(){return l||n.error(s+' was not called'),l[0]},t.dataTypes[0]='json',a=e[s],e[s]=function(){l=arguments},r.always(function(){void 0===a?n(e).removeProp(s):e[s]=a,t[s]&&(t.jsonpCallback=i.jsonpCallback,we.push(s)),l&&o(a)&&a(l[0]),l=a=void 0}),'script'}),s.createHTMLDocument=((be=r.implementation.createHTMLDocument('').body).innerHTML='
',2===be.childNodes.length),n.parseHTML=function(e,t,i){return'string'!=typeof e?[]:('boolean'==typeof t&&(i=t,t=!1),t||(s.createHTMLDocument?((l=(t=r.implementation.createHTMLDocument('')).createElement('base')).href=r.location.href,t.head.appendChild(l)):t=r),o=!i&&[],(a=We.exec(e))?[t.createElement(a[1])]:(a=tt([e],t,o),o&&o.length&&n(o).remove(),n.merge([],a.childNodes)));var l,a,o},n.fn.load=function(e,t,i){var r,l,c,s=this,a=e.indexOf(' ');return-1').append(n.parseHTML(e)).find(r):e)}).always(i&&function(e,t){s.each(function(){i.apply(this,c||[e.responseText,t,e])})}),this},n.each(['ajaxStart','ajaxStop','ajaxComplete','ajaxError','ajaxSuccess','ajaxSend'],function(e,t){n.fn[t]=function(e){return this.on(t,e)}}),n.expr.pseudos.animated=function(e){return n.grep(n.timers,function(t){return e===t.elem}).length},n.offset={setOffset:function(e,t,i){var h,a,l,c,r,u,d=n.css(e,'position'),p=n(e),s={};'static'===d&&(e.style.position='relative'),r=p.offset(),l=n.css(e,'top'),u=n.css(e,'left'),('absolute'===d||'fixed'===d)&&-1<(l+u).indexOf('auto')?(c=(h=p.position()).top,a=h.left):(c=parseFloat(l)||0,a=parseFloat(u)||0),o(t)&&(t=t.call(e,i,n.extend({},r))),null!=t.top&&(s.top=t.top-r.top+c),null!=t.left&&(s.left=t.left-r.left+a),'using'in t?t.using.call(e,s):p.css(s)}},n.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){n.offset.setOffset(this,e,t)});var i,o,t=this[0];return t?t.getClientRects().length?(i=t.getBoundingClientRect(),o=t.ownerDocument.defaultView,{top:i.top+o.pageYOffset,left:i.left+o.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,i,o,t=this[0],r={top:0,left:0};if('fixed'===n.css(t,'position'))i=t.getBoundingClientRect();else{i=this.offset(),o=t.ownerDocument,e=t.offsetParent||o.documentElement;while(e&&(e===o.body||e===o.documentElement)&&'static'===n.css(e,'position'))e=e.parentNode;e&&e!==t&&1===e.nodeType&&((r=n(e).offset()).top+=n.css(e,'borderTopWidth',!0),r.left+=n.css(e,'borderLeftWidth',!0))};return{top:i.top-r.top-n.css(t,'marginTop',!0),left:i.left-r.left-n.css(t,'marginLeft',!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&'static'===n.css(e,'position'))e=e.offsetParent;return e||H})}}),n.each({scrollLeft:'pageXOffset',scrollTop:'pageYOffset'},function(e,t){var i='pageYOffset'===t;n.fn[e]=function(n){return m(this,function(e,n,o){var r;if(E(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===o)return r?r[t]:e[n];r?r.scrollTo(i?r.pageXOffset:o,i?o:r.pageYOffset):e[n]=o},e,n,arguments.length)}}),n.each(['top','left'],function(e,t){n.cssHooks[t]=rt(s.pixelPosition,function(e,i){if(i)return i=W(e,t),se.test(i)?n(e).position()[t]+'px':i})}),n.each({Height:'height',Width:'width'},function(e,t){n.each({padding:'inner'+e,content:t,'':'outer'+e},function(i,o){n.fn[o]=function(r,s){var a=arguments.length&&(i||'boolean'!=typeof r),l=i||(!0===r||!0===s?'margin':'border');return m(this,function(t,i,r){var s;return E(t)?0===o.indexOf('outer')?t['inner'+e]:t.document.documentElement['client'+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body['scroll'+e],s['scroll'+e],t.body['offset'+e],s['offset'+e],s['client'+e])):void 0===r?n.css(t,i,l):n.style(t,i,r,l)},t,a?r:void 0,a)}})}),n.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,t){n.fn[t]=function(e,n){return 0').addClass('ui-effects-wrapper').css({fontSize:'100%',background:'transparent',border:'none',margin:0,padding:0}),o=document.activeElement;return t.wrap(i),(t[0]===o||e.contains(t[0],o))&&e(o).focus(),i=t.parent(),t.css('position')=='static'?(i.css({position:'relative'}),t.css({position:'relative'})):(e.extend(n,{position:t.css('position'),zIndex:t.css('z-index')}),e.each(['top','left','bottom','right'],function(e,i){n[i]=t.css(i),isNaN(parseInt(n[i],10))&&(n[i]='auto')}),t.css({position:'relative',top:0,left:0,right:'auto',bottom:'auto'})),i.css(n).show()},removeWrapper:function(t){var i,n=document.activeElement;return t.parent().is('.ui-effects-wrapper')?(i=t.parent().replaceWith(t),(t[0]===n||e.contains(t[0],n))&&e(n).focus(),i):t},setTransition:function(t,n,i,o){return o=o||{},e.each(n,function(e,n){var r=t.cssUnit(n);r[0]>0&&(o[n]=r[0]*i+r[1])}),o}}),e.fn.extend({effect:function(t,i,o,r){var a=n.apply(this,arguments),s={options:a[1],duration:a[2],callback:a[3]},l=s.options.mode,c=e.effects[t];return e.fx.off||!c?l?this[l](s.duration,s.callback):this.each(function(){s.callback&&s.callback.call(this)}):c.call(this,s)},_show:e.fn.show,show:function(e){if(i(e))return this._show.apply(this,arguments);var t=n.apply(this,arguments);return t[1].mode='show',this.effect.apply(this,t)},_hide:e.fn.hide,hide:function(e){if(i(e))return this._hide.apply(this,arguments);var t=n.apply(this,arguments);return t[1].mode='hide',this.effect.apply(this,t)},__toggle:e.fn.toggle,toggle:function(t){if(i(t)||typeof t=='boolean'||e.isFunction(t))return this.__toggle.apply(this,arguments);var o=n.apply(this,arguments);return o[1].mode='toggle',this.effect.apply(this,o)},cssUnit:function(t){var n=this.css(t),i=[];return e.each(['em','px','%','pt'],function(e,t){n.indexOf(t)>0&&(i=[parseFloat(n),t])}),i}}),e.easing.jswing=e.easing.swing,e.extend(e.easing,{def:'easeOutQuad',swing:function(t,n,i,o,r){return e.easing[e.easing.def](t,n,i,o,r)},easeInQuad:function(e,t,n,i,o){return i*(t/=o)*t+n},easeOutQuad:function(e,t,n,i,o){return-i*(t/=o)*(t-2)+n},easeInOutQuad:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t+n:-i/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,i,o){return i*(t/=o)*t*t+n},easeOutCubic:function(e,t,n,i,o){return i*((t=t/o-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t*t+n:i/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,i,o){return i*(t/=o)*t*t*t+n},easeOutQuart:function(e,t,n,i,o){return-i*((t=t/o-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t*t*t+n:-i/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,i,o){return i*(t/=o)*t*t*t*t+n},easeOutQuint:function(e,t,n,i,o){return i*((t=t/o-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t*t*t*t+n:i/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,i,o){return-i*Math.cos(t/o*(Math.PI/2))+i+n},easeOutSine:function(e,t,n,i,o){return i*Math.sin(t/o*(Math.PI/2))+n},easeInOutSine:function(e,t,n,i,o){return-i/2*(Math.cos(Math.PI*t/o)-1)+n},easeInExpo:function(e,t,n,i,o){return t==0?n:i*Math.pow(2,10*(t/o-1))+n},easeOutExpo:function(e,t,n,i,o){return t==o?n+i:i*(-Math.pow(2,-10*t/o)+1)+n},easeInOutExpo:function(e,t,n,i,o){return t==0?n:t==o?n+i:(t/=o/2)<1?i/2*Math.pow(2,10*(t-1))+n:i/2*(-Math.pow(2,-10*--t)+2)+n},easeInCirc:function(e,t,n,i,o){return-i*(Math.sqrt(1-(t/=o)*t)-1)+n},easeOutCirc:function(e,t,n,i,o){return i*Math.sqrt(1-(t=t/o-1)*t)+n},easeInOutCirc:function(e,t,n,i,o){return(t/=o/2)<1?-i/2*(Math.sqrt(1-t*t)-1)+n:i/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,i,o){var a=1.70158,r=0,s=i;if(t==0)return n;if((t/=o)==1)return n+i;r||(r=o*.3);if(s=n.threshold){i=a;T(e,i);k(e)}}} else{i=r;T(e,i);k(e)}};function O(e){e.preventDefault();distance=D();direction=N();if(n.triggerOnTouchEnd){i=a;if((E==n.fingers||!o)&&x.x!=0){if(distance>=n.threshold){T(e,i);k(e)} else{i=r;T(e,i);k(e)}} else{i=r;T(e,i);k(e)}} else if(i==f){i=r;T(e,i);k(e)};I.removeEventListener(g,A,!1);I.removeEventListener(m,O,!1)};function k(e){E=0;C.x=0;C.y=0;x.x=0;x.y=0;L.x=0;L.y=0};function T(e,t){if(n.swipeStatus)n.swipeStatus.call(S,e,t,direction||null,distance||0);if(t==r){if(n.click&&(E==1||!o)&&(isNaN(distance)||distance==0))n.click.call(S,e,e.target)};if(t==a){if(n.swipe){n.swipe.call(S,e,direction,distance)};switch(direction){case s:if(n.swipeLeft)n.swipeLeft.call(S,e,direction,distance);break;case l:if(n.swipeRight)n.swipeRight.call(S,e,direction,distance);break;case c:if(n.swipeUp)n.swipeUp.call(S,e,direction,distance);break;case u:if(n.swipeDown)n.swipeDown.call(S,e,direction,distance);break}}};function q(e,t){if(n.allowPageScroll==d){e.preventDefault()} else{var i=n.allowPageScroll==v;switch(t){case s:if((n.swipeLeft&&i)||(!i&&n.allowPageScroll!=p))e.preventDefault();break;case l:if((n.swipeRight&&i)||(!i&&n.allowPageScroll!=p))e.preventDefault();break;case c:if((n.swipeUp&&i)||(!i&&n.allowPageScroll!=h))e.preventDefault();break;case u:if((n.swipeDown&&i)||(!i&&n.allowPageScroll!=h))e.preventDefault();break}}};function D(){return Math.round(Math.sqrt(Math.pow(x.x-C.x,2)+Math.pow(x.y-C.y,2)))};function M(){var t=C.x-x.x,n=x.y-C.y,i=Math.atan2(n,t),e=Math.round(i*180/Math.PI);if(e<0)e=360-Math.abs(e);return e};function N(){var e=M();if((e<=45)&&(e>=0))return s;else if((e<=360)&&(e>=315))return s;else if((e>=135)&&(e<=225))return l;else if((e>45)&&(e<135))return u;else return c};try{this.addEventListener(b,j,!1);this.addEventListener(w,k)}catch(t){}})}})(jQuery);function is_touch_device(){return'ontouchstart' in window};var isTablet=is_touch_device();function getBrowser(){var e=navigator.userAgent.toLowerCase();$.browser={};$.browser.chrome=/chrome/.test(e);$.browser.safari=/webkit/.test(e);$.browser.opera=/opera/.test(e);$.browser.msie=/msie/.test(e)&&!/opera/.test(e);$.browser.mozilla=/mozilla/.test(e)&&!/(compatible|webkit)/.test(e)||/firefox/.test(e);if($.browser.chrome){return'chrome'};if($.browser.mozilla){return'mozilla'};if($.browser.opera){return'opera'};if($.browser.safari){return'safari'};if($.browser.msie){return'ie'}};function getInternetExplorerVersion(){var t=-1,n=navigator.userAgent,e;if(navigator.appName==='Microsoft Internet Explorer'){e=new RegExp('MSIE ([0-9]{1,}[\.0-9]{0,})');if(e.exec(n)!==null){t=parseFloat(RegExp.$1)}} else if(navigator.appName==='Netscape'){e=new RegExp('Trident/.*rv:([0-9]{1,}[\.0-9]{0,})');if(e.exec(n)!==null){t=parseFloat(RegExp.$1)}};return t};function detectCSSFeature(e){var t=!1,i='Webkit Moz ms O'.split(' '),o=document.createElement('div'),r=null;e=e.toLowerCase();if(o.style[e]){t=!0};if(t===!1){r=e.charAt(0).toUpperCase()+e.substr(1);for(var n=0;n=10){$('body').addClass('ie11')};var t=setTimeout(function(){$('#preloader').addClass('off').delay(1000).queue(function(){$(this).remove().dequeue()})},1000);$('header nav.HoJS').removeClass('HoJS');$('#menuHead').bind('click',function(e){e.preventDefault();$(this).toggleClass('act');if($(this).hasClass('act')){$('#Navigation').addClass('act');$('#head').removeClass('top');$(this).attr('aria-expanded','true')} else{$('#Navigation').removeClass('act');$(this).removeAttr('aria-expanded')};if($(this).hasClass('act')){scrollpos=$(window).scrollTop();$('#head').addClass('layeredPage');$('#pagefix').css('margin-top',(-$(window).scrollTop()+(($('body').hasClass('topimages'))?$('#headerImages').height()+$('#stickyhead').height():0)));$('#pagewrap').addClass('fix');if($('body').hasClass('topimages')){$('#stickyhead').css({position:'fixed',width:'100%'});$('#headerImages').css({position:'absolute',width:'100%','z-index':'-1'})};$(window).scrollTop(0)} else{$('#head').removeClass('layeredPage');$('#pagefix').css('margin-top','');$('#pagewrap').removeClass('fix');if($('body').hasClass('topimages')){$('#stickyhead').css({position:'',width:''});$('#headerImages').css({position:'',width:'','z-index':''})};$(window).scrollTop(scrollpos)}});$('ul#nav a').click(function(e){if(isTablet){if(!$(this).parent().hasClass('open')&&$(this).parent().find('ul').length>0&&$(this).parent().find('ul').html().length>0){e.preventDefault();$(this).parent().addClass('open')}}});var e=new IntersectionObserver(function(e){if(e[0].intersectionRatio<1&&e[0].boundingClientRect.top>0){document.getElementById('scrolltop').classList.add('sticky-elements');e[0].target.classList.add('is-sticky')} else if(e[0].intersectionRatio===1){document.getElementById('scrolltop').classList.remove('sticky-elements');e[0].target.classList.remove('is-sticky')}},{threshold:[0,1,1]});if(document.querySelector('.sticky-bottom'))e.observe(document.querySelector('.sticky-bottom'));initCont();$(window).on('load',function(){windowload()});$(window).scroll(function(){setscroll()})};function initCont(){if(!('placeholder' in document.createElement('input'))){$('label').css('display','block')};if(!svgSupport){$('body').addClass('nosvg');$('img.svg').each(function(){this.src=this.src.replace('.svg','.png')});$('img.svginline').each(function(){this.src=this.src.replace('.svg','.png')});$('img.scalable_svg').each(function(){this.src=this.src.replace('.svg','.png')})} else{$('img.svginline:not(.init)').addClass('init').each(function(){var e=$(this),t=e.attr('id'),n=e.attr('class'),i=e.attr('src');$.get(i,function(i){var o=$(i).find('svg');if(typeof t!=='undefined'){o=o.attr('id',t)};if(typeof n!=='undefined'){o=o.attr('class',o.attr('class')+' '+n+' replaced-svg')};o=o.removeAttr('xmlns:a');e.replaceWith(o);var r=document.querySelectorAll('.draw path');r.forEach(function(e){var t=e.getTotalLength();e.style.cssText='stroke-dashArray:'+t+';stroke-dashoffset:'+t})})})};$('.slideup, .slidedown, .dropin, .fadein, .bounceleft, .bounceright, .slideleft, .slideright, .draw, .anim, .animtext').addClass('js');var e=document.querySelectorAll('.draw path');e.forEach(function(e){var t=e.getTotalLength();e.style.cssText='stroke-dashArray:'+t+';stroke-dashoffset:'+t});$('.readmore:not(.init)').addClass('init').click(function(e){e.preventDefault();$(this).slideUp('slow');$('#'+$(this).attr('data-src')).toggleClass('hiddenTextOn',1000)});$('.truncate:not(.init)').addClass('init').attr('aria-expanded','false').each(function(){$(this).addClass('act');$(this).append(' ')});$('.truncate .opener:not(.init)').addClass('init').click(function(e){e.preventDefault();if($(this).parent().hasClass('open')){$(this).parent().removeClass('open');$(this).parent().attr('aria-expanded','false')} else{$(this).parent().addClass('open');$(this).parent().attr('aria-expanded','true')}});$('.found').closest('.truncate').addClass('open');$('.found').closest('.toggleBox').addClass('on');if($('.found').length>0){scrollToTarget($('.found').eq(0))};$('.css_nextstep + label').bind('click',function(){scrollToTarget($(this))});initializeClock();initTables();initToggleBoxes();initRandText();initInfobox();initPopupInfo();initFullheight();initRotationSlider();setFullheight();$('.videoteaser .opener').bind('click',function(){var e=$(this).parent().find('.responsive-video'),t=$(this);t.addClass('opened');e.addClass('on');e.find('video').get(0).play();e.prepend('');e.find('.closeButton').click(function(){e.removeClass('on');t.removeClass('opened');e.find('video').get(0).pause();$(this).remove()});if(e.offset().top-$(window).scrollTop()>$(window).height()-100){scrollToTarget(e)}});$('#topheader>.mainwidth>*>ul>li>ul').prev('a').attr('aria-haspopup','true').bind('click',function(e){e.preventDefault();if($(this).attr('aria-expanded')=='true'){$(this).next().removeClass('open');$(this).attr('aria-expanded','false')} else{$('#topheader>.mainwidth>*>ul>li>ul').removeClass('open').prev('a').attr('aria-expanded','false');$(this).next().addClass('open');$(this).attr('aria-expanded','true')}});$('a[href*="#"]:not(.filter):not(.init)').addClass('init').bind('click',function(e){var o=$(this).attr('href'),t=o.split('#');if(t[1].length>0&&$('#'+t[1]).length>0){e.preventDefault();scrollToTarget($('#'+t[1]));if($('#'+t[1]).hasClass('galleryImg')){var n=($('#'+t[1]).parents('.fadeSet').length&&$('#'+t[1]).parents('.fadeSet').data('id'))?$('#'+t[1]).parents('.fadeSet').data('id'):!1;if(n){var i=$('.g'+n+' .galleryImg').index($('#'+t[1]));window.clearInterval(fadeaktiv[n]);openFade(n,i)}}}});if($(location.hash).length==1){scrollToTarget($(location.hash))};$('#headerImages .scrolldown:not(.init)').addClass('init').click(function(){$(this).addClass('off')});$('.toggle-theme').unbind('click').bind('click',function(e){e.preventDefault();var t='light';if(document.body.classList.contains('dark-theme')){$('body').removeClass('dark-theme');$('body').addClass('light-theme');t='light'} else{$('body').removeClass('light-theme');$('body').addClass('dark-theme');t='dark'};createCookie('theme',t,365)});$('.teasergallery>.c_grid>.didblock').on('touchstart',function(e){$('.teasergallery>.c_grid>.didblock').removeClass('hover');$(this).addClass('hover')});$('.teasergallery>.c_grid>.didblock').on('touchend',function(e){$('.teasergallery>.c_grid>.didblock').removeClass('hover')});$('.hoverinfo').on('touchstart',function(){$(this).addClass('hover')});$('.hoverinfo').on('touchend',function(){$(this).removeClass('hover')})};function getScrollOffset(e){if(e.closest('#singleItem').length)return 0;return($(window).width()>960)?($('.menuhead #head').height()>0?$('.menuhead #head').height():0):($('#head').height()>0?$('#head').height():0)};function scrollToTarget(e){if($('#menuHead.act').length>0){$('#menuHead.act').click()};var t=getScrollOffset(e),n=($.browser.opera)?'html':'html,body';$(n).animate({scrollTop:e.offset().top-t},1000,function(){if(!$('#pagefix').hasClass('on')){console.log('corr');t=getScrollOffset(e);$(n).animate({scrollTop:e.offset().top-t},0)};e.closest('.truncate').addClass('open');e.closest('.toggleBox').addClass('on');e.find('.toggleBox').addClass('on')})};function windowload(){resizeSite();setscroll()};function setscroll(){if($(window).scrollTop()>30){$('#head:not(.layeredPage)').addClass('top')} else{$('#head:not(.layeredPage)').removeClass('top')};if($('#contact').length!=0){if($('#contact').offset().top-$(window).scrollTop()<$(window).height()-100){if($('#contactbutton').css('right')!='-300px')$('#contactbutton').css('right','-300px')} else{if($('#contactbutton').css('right')!='30px')$('#contactbutton').css('right','')}};if($(window).scrollTop()>400){$('#scrolltop').addClass('visible')} else{$('#scrolltop').removeClass('visible')};if($(window).width()>600){$('.table.head').each(function(){if($(this).offset().top-$(window).scrollTop()<$('.menuhead #head').height()&&$(this).offset().top+$(this).height()-$(window).scrollTop()>$(this).find('.trow:last-child').height()){$(this).find('.trow.c0.fix').css('top',$('.menuhead #head').height()+$(window).scrollTop()-$(this).offset().top)} else{$(this).find('.trow.c0.fix').css('top','')}})};$('.anim, .animtext, .blurout').each(function(){if($(this).offset().top-$(window).scrollTop()<$(window).height()-$(this).height()*0.66){$(this).addClass('on');$(this).removeClass('off')} else if(!$(this).hasClass('on')){$(this).removeClass('on');$(this).addClass('off')}});$('.code_panel_container:not(.started)').each(function(){if($(this).offset().top-$(window).scrollTop()<$(window).height()-300){$(this).addClass('started');code_panel_animation('#'+$(this).attr('id'))}});if($(window).width()>480){$('.slidedown:not(.on), .dropin:not(.on), .bounceleft:not(.on), .bounceright:not(.on), .slideleft:not(.on), .slideright:not(.on), .draw:not(.on)').each(function(){if($(this).offset().top-$(window).scrollTop()<$(window).height()-150){$(this).addClass('on')}});$('.fadein,.slideup').each(function(e,t){var i=Math.min($(this).height(),200),n=($(window).height()+$(window).scrollTop()-$(this).offset().top)/i;if(n<0){n=0};if(n>=1){n=1;$(this).addClass('on')};$(this).get(0).style.setProperty('--offset',n)});$('[class*="rotate-scroll"]').each(function(e,t){var n=1-($(this).offset().top+$(this).height()-$(window).scrollTop())/($(window).height()+$(this).height());if(n<0){n=0};if(n>1){n=1};if(n>0){$(this).addClass('on')};$(this).get(0).style.setProperty('--offset',n)});$('.parallax').each(function(e,t){var n=1-($(this).offset().top+$(this).height()-$(window).scrollTop())/($(window).height()+$(this).height());if(n<0){n=0};if(n>1){n=1};$(this).get(0).style.setProperty('--offset',n);var i=$(this).find('.bgimg').height()-$(this).height();if($(this).hasClass('countermove')){$(this).find('.bgimg').css('background-position','50% '+(100-100*n)+'%')} else{$(this).find('.bgimg').css('background-position','50% '+(100*n)+'%')}});$('.sticky').each(function(){var n=$(window).scrollTop(),t=$(window).height(),e=-(($(this).offset().top-n)/t);if(e<0){e=0};if(e>1){e=1};$(this).find('.bgimg').css({'margin-top':t*e,'margin-bottom':-t*e});$(this).find('.galleryImg img').css({'margin-top':t*e,'margin-bottom':-t*e})});$('.fadeSet>.fadeCont>.galleryImg:not(.on):not(:first-child) .js.on').removeClass('on')}};function setFixedGallery(e){if($(window).width()>768){e.css('height',e.data('galleryH')*e.data('galleryMax'));e.find('.galleryImg').each(function(t,n){$(this).css('position','absolute');$(this).css('overflow','hidden');$(this).css('z-index',e.data('galleryMax')-t);$(this).css('width',e.data('galleryW'));$(this).css('top',0);$(this).css('height',e.data('galleryH'))})}};var resizeTimeout;function resizeSite(){clearTimeout(resizeTimeout);resizeTimeout=setTimeout(function(){$('.fixedgallery').each(function(){$(this).data('galleryH',$(this).width()*$(this).data('ratio'));$(this).data('galleryW',$(this).width());setFixedGallery($(this))});if($('#headerImages .scrolldown').length>0){if($(window).height()>$('.menuhead #head').height()+$('#headerImages').height()+250){$('#headerImages .scrolldown').css('display','none')} else if($(window).width()>768){$('#headerImages .scrolldown').css('display','block')}};if($('#headerImages').height()<$('#headerImages .fadeSet').height()){$('#headerImages .fadeSet').css('margin-top',-($('#headerImages .fadeSet').height()-$('#headerImages').height())/2)} else{$('#headerImages .fadeSet').css('margin-top','')};$('.boxsliderGallery').each(function(){checkBoxsliderButtons($(this).attr('id'))});setscroll();setFullheight()},1000);$('ul#nav ul').each(function(){checkMenuPos($(this))});$('.imgNav').each(function(){checkSlideButtons($(this))})};function checkMenuPos(e){};var nextID=0;function initFullheight(){$('.scrollnext:not(.init)').addClass('init').each(function(){var t=$(this).next(),e='';if(t.attr('id')){e=t.attr('id')} else{nextID++;e='c'+nextID;t.attr('id',e)};$(this).append('');$(this).find('.scrolldown').click(function(){$(this).addClass('off')})})};function setFullheight(){$('.fullheight').each(function(){$(this).css('min-height',$(window).height()-$('.menuhead #head').height());$(this).find('.parallax').css('min-height',$(window).height()-$('.menuhead #head').height())})};function initPopupInfo(){$('[href="#popup"]').click(function(e){e.preventDefault();t($(this))});function e(){var e=($.browser.opera)?'html':'html,body';$('#singleItem').removeClass('open');$('#head').removeClass('layeredPage');$('#pagefix').css('margin-top','');$('#pagefix').removeClass('on');$('#pagewrap').css({position:'relative',left:'',width:'',height:'auto',overflow:'normal'});$(window).scrollTop(scrollpos)};function t(t){scrollpos=$(window).scrollTop();var n=t.attr('data-id'),i={did:n,lang:$('html').attr('lang'),ajax:!0};if($('#singleItem').length==0){$('body').append('
')};$.post('ax_did.php',i,function(t){runFunctions=[];$('#singleItem').html(t);$('#singleItem').addClass('open');$('#singleItem .openObject').click(function(e){e.preventDefault();openObject($(this))});for(var n in runFunctions){window[runFunctions[n][0]](runFunctions[n][1])};runFunctions=[];if($('#closeSingle').length==0){$('#singleItem').append('')} else{$('#closeSingle').show()};$('#closeSingle').click(function(){e();$('#closeSingle').hide()});$('#head').addClass('layeredPage');$('#pagefix').addClass('on');$('#pagefix').css('margin-top',(-scrollpos));$('#pagewrap').css({position:'fixed',left:'0',width:'100%',overflow:'hidden'});initCont();resizeSite();setscroll();init_lb();$(window).scrollTop(0);window.setTimeout(function(){$('#singleItem').addClass('open')},10)})}};function initRandText(){$('.randomizeText:not(.initRT), ul#nav a:not(.initRT), ul#footernav a:not(.initRT)').addClass('initRT').each(function(){var t=$(this).html(),n=[];for(var e=0;e0){n[t]=n[t]-1;if(Math.floor(Math.random()*3)==0){i[t]=String.fromCharCode(33+Math.floor(Math.random()*90))} else{i[t]='+'};o=!0} else{i[t]=s[t]};r+=i[t]};e.data('rdTime',n);e.html(r);if(o){setTimeout(function(){animRT(e);e=null},20)} else{e.css('width','');e.css('white-space','')}};function initToggleBoxes(){var e=$('.toggleBox.HoJS');e.each(function(){var e=$(this);e.removeClass('HoJS');var t=e.find('.toggleCont');e.find('.toggleHead').click(function(n){n.preventDefault();if(e.parents('.columnbox').length){if($(window).width()>768){var i=e.parents('.columnbox').find('.displaybox');if(e.hasClass('act')){$('.columnbox .toggleBox').removeClass('on act');i.html('')} else{$('.columnbox .toggleBox').removeClass('on act');e.addClass('act');i.css('padding-top','');i.html(t.html());var o=$(window).scrollTop()-i.offset().top+$('.menuhead #head').height();if(o>0){i.css('padding-top',o+30)}}} else{e.toggleClass('on',0,function(){checkToggleIcon(e)})}} else{e.toggleClass('on',0,function(){checkToggleIcon(e)})}})})};function checkToggleIcon(e){var t=e.find('.toggleCont');if(e.hasClass('on')){t.attr('aria-expanded','true');t.attr('aria-hidden','false');$(this).find('.label').html('Schließen ')} else{t.attr('aria-expanded','false');t.attr('aria-hidden','true');$(this).find('.label').html('Öffnen ')};var n=setTimeout(function(){console.log(e.parents('.searchform').height());if(e.parents('.searchform').height()>$(window).height()){$('.layerItem.on #searchbutton').addClass('fix')} else{$('.layerItem.on #searchbutton').removeClass('fix')}},1000)};var imgNums=[];function initSlideGallery(e){$('.g'+e).data('id',e);var o=$('.g'+e).hasClass('vertical');$('.g'+e).find('.galleryImg').eq(0).clone().appendTo($('.g'+e+' .gCont'));var i=$('.g'+e).find('.galleryImg');imgNums[e]=new Array(i.length,0);var t=window.setInterval('autoNextSlide(\''+e+'\')',6000);$('.g'+e).before('');$('.g'+e).after('');$('.g'+e).parent().find('.button_l').click(function(){window.clearInterval(t);prevSlide(e)});$('.g'+e).parent().find('.button_r').click(function(){window.clearInterval(t);nextSlide(e)});if(isTablet&&!o){function r(n,i,o,r){if(i=='start'){window.clearInterval(t)};if(i=='move'){if(o=='left')$('.g'+e).find('.gCont').css({'-webkit-transition':'-webkit-transform 0s','-moz-transition':'-moz-transform 0s','transition':'transform 0s','-webkit-transform':'translate('+((-imgNums[e][1]*100)-Math.round(100*r/$('.g'+e).width()))+'%,0)','-moz-transform':'translate('+((-imgNums[e][1]*100)-Math.round(100*r/$('.g'+e).width()))+'%,0)','transform':'translate('+((-imgNums[e][1]*100)-Math.round(100*r/$('.g'+e).width()))+'%,0)',});if(o=='right')$('.g'+e).find('.gCont').css({'-webkit-transition':'-webkit-transform 0s','-moz-transition':'-moz-transform 0s','transition':'transform 0s','-webkit-transform':'translate('+((-imgNums[e][1]*100)+Math.round(100*r/$('.g'+e).width()))+'%,0)','-moz-transform':'translate('+((-imgNums[e][1]*100)+Math.round(100*r/$('.g'+e).width()))+'%,0)','transform':'translate('+((-imgNums[e][1]*100)+Math.round(100*r/$('.g'+e).width()))+'%,0)',})};if(i=='end'||(i=='cancel'&&r>Math.round($('.g'+e).width()/4))){if(o=='right'){prevSlide(e)};if(o=='left'){nextSlide(e)}} else if(i=='cancel'){$('.g'+e).find('.gCont').css({'-webkit-transition':'-webkit-transform 1s ease-in-out','-moz-transition':'-moz-transform 1s ease-in-out','transition':'transform 1s ease-in-out','-webkit-transform':'translate('+(-imgNums[e][1]*100)+'%,0)','-moz-transform':'translate('+(-imgNums[e][1]*100)+'%,0)','transform':'translate('+(-imgNums[e][1]*100)+'%,0)',});checkSlideButtons(e)}};var n={swipeStatus:r,threshold:Math.round($('.g'+e).width()/2),triggerOnTouchEnd:!1,allowPageScroll:'vertical'};$(function(){$('.g'+e).find('.slideCont').swipe(n)})};$('.g'+e).find('.galleryImg').eq(0).addClass('on');checkSlideButtons(e);$('.g'+e).find('.gCont').on('transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd',function(){checkSlideButtons(e)})};function autoNextSlide(e){nextSlide(e)};function nextSlide(e){var i=$('.g'+e),o=i.hasClass('vertical'),t=imgNums[e][1],n;t++;if(t>=imgNums[e][0]-1){n=o?'translate(0,'+(-t*100)+'%)':'translate('+(-t*100)+'%,0)';i.find('.gCont').css({'-webkit-transition':'-webkit-transform 1s ease-in-out','-moz-transition':'-moz-transform 1s ease-in-out','transition':'transform 1s ease-in-out','-webkit-transform':n,'-moz-transform':n,'transform':n,});t=0;imgNums[e][1]=t;setTimeout(function(){i.find('.gCont').css({'-webkit-transition':'-webkit-transform 0s','-moz-transition':'-moz-transform 0s','transition':'transform 0s','-webkit-transform':'translate(0,0)','-moz-transform':'translate(0,0)','transform':'translate(0,0)',})},1000);checkSlideButtons(e)} else{imgNums[e][1]=t;n=o?'translate(0,'+(-t*100)+'%)':'translate('+(-t*100)+'%,0)';i.find('.gCont').css({'-webkit-transition':'-webkit-transform 1s ease-in-out','-moz-transition':'-moz-transform 1s ease-in-out','transition':'transform 1s ease-in-out','-webkit-transform':n,'-moz-transform':n,'transform':n,});checkSlideButtons(e)}};function prevSlide(e){var i=$('.g'+e),o=i.hasClass('vertical'),n=imgNums[e][1],t;n--;if(n<=0){t=o?'translate(0,'+(-n*100)+'%)':'translate('+(-n*100)+'%,0)';i.find('.gCont').css({'-webkit-transition':'-webkit-transform 1s ease-in-out','-moz-transition':'-moz-transform 1s ease-in-out','transition':'transform 1s ease-in-out','-webkit-transform':t,'-moz-transform':t,'transform':t,});n=imgNums[e][0]-1;imgNums[e][1]=n;t=o?'translate(0,'+(-n*100)+'%)':'translate('+(-n*100)+'%,0)';setTimeout(function(){i.find('.gCont').css({'-webkit-transition':'-webkit-transform 0s','-moz-transition':'-moz-transform 0s','transition':'transform 0s','-webkit-transform':t,'-moz-transform':t,'transform':t,})},1000);checkSlideButtons(e)} else{imgNums[e][1]=n;t=o?'translate(0,'+(-n*100)+'%)':'translate('+(-n*100)+'%,0)';i.find('.gCont').css({'-webkit-transition':'-webkit-transform 1s ease-in-out','-moz-transition':'-moz-transform 1s ease-in-out','transition':'transform 1s ease-in-out','-webkit-transform':t,'-moz-transform':t,'transform':t,});checkSlideButtons(e)}};function checkSlideButtons(e){var t=$('.g'+e),i=imgNums[e][1];if(imgNums[e][0]>0){t.parent().find('.button_l').css('display','block');t.parent().find('.button_r').css('display','block')} else{t.parent().find('.button_l').css('display','none');t.parent().find('.button_r').css('display','none')};t.find('.galleryImg').removeClass('on');t.find('.galleryImg').eq(i).addClass('on');var n=t.find('.galleryImg.on .galleryText').html();if(n){t.find('.galleryTextButton').addClass('on');if($('.g'+e).parent().find('.galleryInfo').css('display')=='block'){openGalleryText(e)}} else{t.find('.galleryTextButton').removeClass('on');$('.g'+e).parent().find('.galleryInfo').fadeOut('slow')}};function openGalleryText(e){if($('.g'+e).parent().find('.galleryInfo').length==0){$('.g'+e).parent().append('
');$('.g'+e).parent().find('.closeButton').click(function(t){t.preventDefault();closeGalleryText(e)})};var t=$('.g'+e+' .galleryImg.on .galleryText').html();if(t){$('.g'+e).parent().find('.galleryInfoCont').html(t);$('.g'+e).parent().find('.galleryInfo').fadeIn('slow');$('.g'+e).find('.galleryTextButton').removeClass('on')}};function closeGalleryText(e){$('.g'+e).parent().find('.galleryInfo').fadeOut('slow');$('.g'+e).find('.galleryTextButton').addClass('on')};var fadeaktiv=[];function initFadeGallery(e){$('.g'+e).data('id',e);$('.g'+e+'>.fadeCont>.didblock').wrap('
');var n=$('.g'+e+'>.fadeCont>.galleryImg');console.log(e+':'+n.length);if(cssTransitionSupport){$('.g'+e+'>.fadeCont>.galleryImg.galleryImg').addClass('cssoff');$('.g'+e+'>.fadeCont>.galleryImg.galleryImg:first-child').addClass('csson')};$('.g'+e+'>.fadeCont>.galleryImg.galleryImg:not(:first-child) .js.on').removeClass('on');imgNums[e]=new Array(n.length,0);if(!$('.g'+e).parent().hasClass('noauto')){var t=5000;if(e=='Head'||$('.g'+e).parents('.long-break').length)t=10000;if(!(e in fadeaktiv)){fadeaktiv[e]=window.setInterval('autoNextFade(\''+e+'\')',t)} else{window.clearInterval(fadeaktiv[e]);fadeaktiv[e]=window.setInterval('autoNextFade(\''+e+'\')',t)}};$('.g'+e).before('');$('.g'+e).after('');$('.g'+e).parent().find('.button_l').click(function(){window.clearInterval(fadeaktiv[e]);prevFade(e)});$('.g'+e).parent().find('.button_r').click(function(){window.clearInterval(fadeaktiv[e]);nextFade(e)});if(isTablet){function o(t,n,i,o){if(n=='start'){window.clearInterval(fadeaktiv[e])};if(n=='move'){};if(n=='end'||(n=='cancel'&&o>Math.round($('.g'+e).width()/4))){if(i=='right'){prevFade(e)};if(i=='left'){nextFade(e)}} else if(n=='cancel'){}};var i={swipeStatus:o,threshold:Math.round($('.g'+e).width()/4),triggerOnTouchEnd:!1,allowPageScroll:'vertical'};$(function(){$('.g'+e).swipe(i)})};$('#thumbnailmenu'+e+' div').each(function(t){$(this).click(function(){window.clearInterval(fadeaktiv[e]);openFade(e,t)})})};function autoNextFade(e){nextFade(e)};function nextFade(e){var t=imgNums[e][1];t++;if(t==imgNums[e][0]){t=0};imgNums[e][1]=t;openFade(e,t)};function prevFade(e){var t=imgNums[e][1];t--;if(t<0){t=imgNums[e][0]-1};imgNums[e][1]=t;openFade(e,t)};function openFade(e,t){imgNums[e][1]=t;if(cssTransitionSupport){$('.g'+e+'>.fadeCont>.galleryImg').each(function(e){if(e==t){$(this).addClass('csson')} else{$(this).removeClass('csson')}});checkFadeButtons(e)} else{$('.g'+e+'>.fadeCont>.galleryImg').each(function(n){if(n==t){$('.g'+e+'>.fadeCont>.galleryImg').eq(n).fadeTo('slow',1)} else{$('.g'+e+'>.fadeCont>.galleryImg').eq(n).fadeTo('slow',0)}});checkFadeButtons(e)}};function checkFadeButtons(e){var o=$('.g'+e);$('main a[href^="#"]').removeClass('act');var i=imgNums[e][1];if(imgNums[e][0]>0){o.parent().find('.button_l').css('display','block');o.parent().find('.button_r').css('display','block')} else{o.parent().find('.button_l').css('display','none');o.parent().find('.button_r').css('display','none')};$('.g'+e+'>.fadeCont>.galleryImg').removeClass('on');$('.g'+e+'>.fadeCont>.galleryImg .js.on').removeClass('on').addClass('off');$('.g'+e+'>.fadeCont>.galleryImg').eq(i).addClass('on');$('.g'+e+'>.fadeCont>.galleryImg').eq(i).find('.js').addClass('on').removeClass('off');$('#thumbnailmenu'+e+' div').removeClass('on');$('#thumbnailmenu'+e+' div').eq(i).addClass('on');$('a[href="#'+$('.g'+e+'>.fadeCont>.galleryImg').eq(i).attr('id')+'"]').addClass('act');if($('body.menu-transparent .content>:first-child').find('.g'+e).length>0){var n=$('.g'+e+'>.fadeCont>.galleryImg.csson img').attr('src');if(!n){var t=$('.g'+e+'>.fadeCont>.galleryImg.csson .bgimg').css('background-image');if(t){t=t.replace('url(','').replace(')','').replace(/"/gi,'');var n=t}};var s=120;if(n){getImageLightness(n,function(e){console.log(e);$('body.menu-transparent #head').removeClass('dark-bg');if(e.fadeCont>.galleryImg.csson .didblock').css('backgroundColor'),r=t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/),a=Math.round(((parseInt(r[1])*299)+(parseInt(r[2])*587)+(parseInt(r[3])*114))/1000);$('body.menu-transparent #head').removeClass('dark-bg');if(a');$('#'+e).after('');$('#'+e).parent().find('.button_l').css('display','none').click(function(){prevBoxslider(e)});$('#'+e).parent().find('.button_r').css('display','none').click(function(){nextBoxslider(e)});var n=0;$('#'+e+' .boxsliderBox').each(function(e){n+=$(this).outerWidth()});if(n>$('#'+e).width()){$('#'+e).parent().find('.button_r').css('display','block')};$('#'+e).data('pos',0);if(isTablet){var t=0,o=0;function r(n,i,r,s){if(i=='start'){t=Math.round($('#'+e).find('.boxsliderContent').position().left);$('#'+e+' .boxsliderContent').css({'-webkit-transition':'-webkit-transform 0s','-moz-transition':'-moz-transform 0s','transition':'transform 0s',})};if(i=='move'){if(r=='left'){$('#'+e+' .boxsliderContent').css({'left':(t-s)})};if(r=='right'){$('#'+e+' .boxsliderContent').css({'left':(t+s)})};o=s};if(i=='end'||i=='cancel'){$('#'+e+' .boxsliderContent').css({'-webkit-transition':'-webkit-transform 1s','-moz-transition':'-moz-transform 1s','transition':'transform 1s',});var u=0,a=0,l=0,c=0,d=$('#'+e).find('.boxsliderContent').position().left;$('#'+e+' .boxsliderBox').each(function(e){c+=$(this).outerWidth();if(c<-d)u++});if($('#'+e).hasClass('singlemove')){a=u;l=$('#'+e+' .boxsliderBox').length} else{a=-Math.round($('#'+e+' .boxsliderContent').position().left/$('#'+e).width());l=Math.round(c/$('#'+e).width());if(a<0){a=0} else if(a>l){a=l};console.log(a)};if(r=='left'){if($('#'+e).width()-$('#'+e+' .boxsliderContent').position().left0){$('#'+e).parent().find('.button_l').css('display','block')} else{$('#'+e).parent().find('.button_l').css('display','none')}};function initTables(){$('table:not(.fixedTable):not(.init)').addClass('init').each(function(e){var d=$('
'),l=$(this).find('tr:not(.fixedTable)'),c=0,u=0,r=[];for(var o=0;o'),n=l.eq(o).find('td,th');if(c==0){u=0;for(var t=0;t');i.attr('class','tcell '+s);var h=n.eq(t).html();if($.trim(h).length==0||h==' ')i.addClass('hide-600');var p='';if($(this).hasClass('head')&&c>1&&r[t]&&$.trim(r[t])!=0&&r[t]!=' '){p='';i.attr('class',i.attr('class')+' labeled')};i.html(p+n.eq(t).html());i.appendTo(a)};$('
').appendTo(a);a.appendTo(d);if($(this).hasClass('head')&&c==1){a.clone().addClass('fix').addClass('head').appendTo(d)}};d.insertBefore($(this));$(this).remove()})};function createCookie(e,t,n){var o;if(n){var i=new Date();i.setTime(i.getTime()+(n*24*60*60*1000));o='; expires='+i.toGMTString()} else o='';document.cookie=e+'='+t+o+'; path=/'};function initRotationSlider(){var n,e=!1,t=0;$('.rotationvalue').each(function(){$(this).find('.rotationpicker').data('id',$(this).attr('id'));$(this).find('.rotationpicker').attr('id','p_'+$(this).attr('id'));$(this).find('.rotationpicker').data('min',Number($('#i_'+$(this).attr('id')).attr('min')));$(this).find('.rotationpicker').data('max',Number($('#i_'+$(this).attr('id')).attr('max')));$(this).find('.rotationpicker').data('steps',($(this).attr('data-anglestep'))?Number($(this).attr('data-anglestep')):5);var e=($(this).attr('data-valuearray'))?($(this).attr('data-valuearray').split(',')):!1;$(this).find('.rotationpicker').data('valuearray',e);var i=$('#i_'+$(this).attr('id')).val();$(this).find('.rotationpicker').data('startvalue',i);if(i.length>0){if(e!==!1){for(var n=0;n=360)t-=360;if(a-r>0){var o=r+t*(a-r)/360} else if(s!==!1){var o=s[Math.round(s.length*t/360)]};$('#i_'+e).val(o);$('#p_'+e).css('transform','rotate('+t+'deg)');$('#p_'+e).css('-webkit-transform','rotate('+t+'deg)');$('#rotimg_'+e).css('transform','rotate('+o+'deg)');$('#rotimg_'+e).css('-webkit-transform','rotate('+o+'deg)')};function s(n){var r=$('#p_'+e).data('min'),s=$('#p_'+e).data('max'),c=$('#p_'+e).data('steps'),i=$('#p_'+e).data('valuearray'),a=i.findIndex(function(e){return e==n}),l=Math.round(360*a/i.length);t=l;t=t%360;if(t<0)t+=360;if(t>=360)t-=360;if(s-r>0){var o=r+t*(s-r)/360} else if(i!==!1){var o=i[Math.round(i.length*t/360)]};$('#p_'+e).css('transform','rotate('+t+'deg)');$('#p_'+e).css('-webkit-transform','rotate('+t+'deg)');$('#rotimg_'+e).css('transform','rotate('+o+'deg)');$('#rotimg_'+e).css('-webkit-transform','rotate('+o+'deg)')}};function initInfobox(){if($('.infoboxLex').length>0&&$('#lexbox').length==0){$('#tarifrechner .container').append('