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