vendor: 4,360 bytes, lines 1-2
1/*js/jquery-2.1.4.min.js*//* jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ 2!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document){throw new Error("jQuery requires a window with a document")}return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++){if(null!=(a=arguments[h])){for(b in a){c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d))}}}return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return !n.isArray(a)&&a-parseFloat(a)+1>=0},isPlainObject:function(a){return"object"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a){return !1}return !0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=l.createElement("script"),b.text=a,l.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++){if(d=b.apply(a[e],c),d===!1){break}}}else{for(e in a){if(d=b.apply(a[e],c),d===!1){break}}}}else{if(g){for(;f>e;e++){if(d=b.call(a[e],e,a[e]),d===!1){break}}}else{for(e in a){if(d=b.call(a[e],e,a[e]),d===!1){break}}}}return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++){a[e++]=b[d]}return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++){d=!b(a[f],f),d!==h&&e.push(a[f])}return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h){for(;g>f;f++){d=b(a[f],f,c),null!=d&&i.push(d)}}else{for(f in a){d=b(a[f],f,c),null!=d&&i.push(d)}}return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:k}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b="length" in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*ne
2w Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++){if(a[c]===b){return c}}return -1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),da=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ea=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]){}a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k){return d}if(!e&&p){if(11!==k&&(f=_.exec(a))){if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode){return d}if(h.id===j){return d.push(h),d}}else{if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j){return d.push(h),d}}}else{if(f[2]){return H.apply(d,b.getElementsByTagName(a)),d}if((j=f[3])&&c.getElementsByClassName){return H.apply(d,b.getElementsByClassName(j)),d}}}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(ba,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--){o[l]=s+ra(o[l])}w=aa.test(a)&&pa(b.parentNode)||b,x=o.join(",")}if(x){try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}}return i(a.replace(R,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}
2function ja(a){var b=n.createElement("div");try{return !!a(b)}catch(c){return !1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=a.length;while(e--){d.attrHandle[c[e]]=b}}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d){return d}if(c){while(c=c.nextSibling){if(c===b){return -1}}}return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--){c[e=f[g]]&&(c[e]=!(d[e]=c[e]))}})})}function pa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent&&e.attachEvent("onunload",ea)),p=!f(g),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++]){1===c.nodeType&&d.push(c)}return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b){while(b=b.parentNode){if(b===a){return !0}}}return !1},B=b?function(a,b){if(a===b){return l=!0,0}var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b){return l=!0,0}var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f){return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0}if(e===f){return la(a,b)}c=a;while(c=c.parentNode){h.unshift(c)}c=b;while(c=c.parentNode){i.unshift(c)}while(h[d]===i[d]){d++}return d?la(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b))){try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType){return d}}catch(e){}}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);
vendor: 4,861 bytes, line 2
2var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++]){b===a[f]&&(e=d.push(f))}while(e--){a.splice(d[e],1)}}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent){return a.textContent}for(a=a.firstChild;a;a=a.nextSibling){c+=e(a)}}else{if(3===f||4===f){return a.nodeValue}}}else{while(b=a[d++]){c+=e(b)}}return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ca,da),a[3]=(a[3]||a[4]||a[5]||"").replace(ca,da),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ca,da).toLowerCase();return"*"===a?function(){return !0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return !!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p]){if(h?l.nodeName.toLowerCase()===r:1===l.nodeType){return !1}}o=p="only"===a&&!o&&"nextSibling"}return !0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop()){if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}}else{if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w){m=j[1]}else{while(l=++n&&l&&l[p]||(m=n=0)||o.pop()){if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b)){break}}}}return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--){d=J(a,f[g]),a[d]=!(c[d]=f[g])}}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--){(f=g[h])&&(a[h]=!(b[h]=f))}}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(ca,da),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return W.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(ca,da).toLowerCase(),function(b){var c;do{if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang")){return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-")}}while((b=b.parentNode)&&1===b.nodeType);return !1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling){if(a.nodeType<6){return !1}}return !0},parent:function(a){return !d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)}
2,input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:oa(function(){return[0]}),last:oa(function(a,b){return[b-1]}),eq:oa(function(a,b,c){return[0>c?c+b:c]}),even:oa(function(a,b){for(var c=0;b>c;c+=2){a.push(c)}return a}),odd:oa(function(a,b){for(var c=1;b>c;c+=2){a.push(c)}return a}),lt:oa(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;){a.push(d)}return a}),gt:oa(function(a,b,c){for(var d=0>c?c+b:c;++d<b;){a.push(d)}return a})}},d.pseudos.nth=d.pseudos.eq;for(b in {radio:!0,checkbox:!0,file:!0,password:!0,image:!0}){d.pseudos[b]=ma(b)}for(b in {submit:!0,reset:!0}){d.pseudos[b]=na(b)}function qa(){}qa.prototype=d.filters=d.pseudos,d.setFilters=new qa,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k){return b?0:k.slice(0)}h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter){!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length))}if(!c){break}}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function ra(a){for(var b=0,c=a.length,d="";c>b;b++){d+=a[b].value}return d}function sa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d]){if(1===b.nodeType||e){return a(b,c,f)}}}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d]){if((1===b.nodeType||e)&&a(b,c,g)){return !0}}}else{while(b=b[d]){if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f){return j[2]=h[2]}if(i[d]=j,j[2]=a(b,c,g)){return !0}}}}}}function ta(a){return a.length>1?function(b,c,d){var e=a.length;while(e--){if(!a[e](b,c,d)){return !1}}return !0}:a[0]}function ua(a,b,c){for(var d=0,e=b.length;e>d;d++){ga(a,b[d],c)}return c}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++){(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h))}return g}function wa(a,b,c,d,e,f){return d&&!d[u]&&(d=wa(d)),e&&!e[u]&&(e=wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ua(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:va(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=va(r,n),d(j,[],h,i),k=j.length;while(k--){(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}}if(f){if(e||a){if(e){j=[],k=r.length;while(k--){(l=r[k])&&j.push(q[k]=l)}e(null,r=[],j,i)}k=r.length;while(k--){(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}}else{r=va(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)}})}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sa(function(a){return a===b},h,!0),l=sa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++){if(c=d.relative[a[i].type]){m=[sa(ta(m),c)]}else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++){if(d.relative[a[e].type]){break}}return wa(i>1&&ta(m),i>1&&ra(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xa(a.slice(i,e)),f>e&&xa(a=a.slice(e)),f>e&&ra(a))}m.push(c)}}return ta(m)}function ya(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||0.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++]){if(o(l,g,h)){i.push(l);break}}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++]){o(r,s,g,h)}if(f){if(p>0){while(q--){r[q]||s[q]||(s[q]=F.call(i))}}s=va(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&ga.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--){f=xa(b[c]),f[u]?d.push(f):e.push(f)}f=A(a,ya(e,d)),f.selector=a}return f},i=ga.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ca,da),b)||[])[0],!b){return e}n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type]){break}if((m=d.find[l])&&(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&pa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&ra(j),!a){return H.apply(e,f),e}break}}}return(n||h(a,o))(f,b,!p,e,aa.test(a)&&pa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")}
vendor: 7,108 bytes, line 2
2)||ka("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b)){return n.grep(a,function(a,d){return !!b.call(a,d,a)!==c})}if(b.nodeType){return n.grep(a,function(a){return a===b!==c})}if("string"==typeof b){if(w.test(b)){return n.filter(b,a,c)}b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a){return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++){if(n.contains(e[b],this)){return !0}}}))}for(b=0;c>b;b++){n.find(a,e[b],d)}return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return !!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a){return this}if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b){return !b||b.jquery?(b||y).find(a):this.constructor(b).find(a)}if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b)){for(c in b){n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c])}}return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType){if(1===a.nodeType){if(e&&n(a).is(c)){break}d.push(a)}}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling){1===a.nodeType&&a!==b&&c.push(a)}return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++){if(n.contains(this,b[a])){return !0}}})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++){for(c=this[d];c&&c!==b;c=c.parentNode){if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}}}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType){}return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++){if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1){h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return !h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return !i},fireWith:function(a,b){return !h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return !!c}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1){for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++){c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f}}return f||g.resolveWith(k,c),g.promise()}});var H;
vendor: 4,848 bytes, line 2
2n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler("ready"),n(l).off("ready"))))}});function I(){l.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),"complete"===l.readyState?setTimeout(n.ready):(l.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c){n.access(a,b,h,c[h],!0,f,g)}}else{if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b)){for(;i>h;h++){b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)))}}}return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+K.uid++}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a)){return 0}var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b){f[b]=c}else{if(n.isEmptyObject(f)){n.extend(this.cache[e],b)}else{for(d in b){f[d]=b[d]}}}return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b){this.cache[f]={}}else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--){delete g[d[c]]}}},hasData:function(a){return !n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType){if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else{c=void 0}}return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--){g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])))}L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c){return c}if(c=M.get(f,d),void 0!==c){return c}if(c=P(f,d,void 0),void 0!==c){return c}}else{this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})}},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--){c=L.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h))}return h(),e.promise(b)}
vendor: 7,785 bytes, line 2
2});var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,R=["Top","Right","Bottom","Left"],S=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)},T=/^(?:checkbox|radio)$/i;!function(){var a=l.createDocumentFragment(),b=a.appendChild(l.createElement("div")),c=l.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";k.focusinBubbles="onfocusin" in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return !0}function $(){return !1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--){h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--){if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--){k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k))}g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else{for(o in i){n.event.remove(a,o+b[j],c,d,!0)}}}n.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode){p.push(g),h=g}h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped()){b.type=f>1?i:o.bindType||q,m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault())}return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped()){(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type)){for(;i!==this;i=i.parentNode||this){if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++){f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f)}d.length&&g.push({elem:i,handlers:d})}}}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||l,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[n.expando]){return a}var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=W.test(e)?this.mouseHooks:V.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new n.Event(f),b=d.length;while(b--){c=d[b],a[c]=f[c]}return a.target||(a.target=l),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==_()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===_()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?n.event.trigger(e,null,b):n.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?Z:$):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void (this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={isDefaultPrevented:$,isPropagationStopped:$,isImmediatePropagationStopped:$,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=Z,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=Z,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=Z,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}}
2,n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!n.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),!0)};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=L.access(d,b);e||d.addEventListener(a,c,!0),L.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=L.access(d,b)-1;e?L.access(d,b,e):(d.removeEventListener(a,c,!0),L.remove(d,b))}}}),n.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(g in a){this.on(g,b,c,a[g],e)}return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1){d=$}else{if(!d){return this}}return 1===e&&(f=d,d=function(a){return n().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=n.guid++)),this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj){return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this}if("object"==typeof a){for(e in a){this.off(e,b,a[e])}return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=$),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});var aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ba=/<([\w:]+)/,ca=/<|&#?\w+;/,da=/<(?:script|style|link)/i,ea=/checked\s*(?:[^=]|=\s*.checked.)/i,fa=/^$|\/(?:java|ecma)script/i,ga=/^true\/(.*)/,ha=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ia={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ia.optgroup=ia.option,ia.tbody=ia.tfoot=ia.colgroup=ia.caption=ia.thead,ia.th=ia.td;function ja(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function ka(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function la(a){var b=ga.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function ma(a,b){for(var c=0,d=a.length;d>c;c++){L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}}function na(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j){for(c=0,d=j[e].length;d>c;c++){n.event.add(b,e,j[e][c])}}}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function oa(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pa(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a))){for(g=oa(h),f=oa(a),d=0,e=f.length;e>d;d++){pa(f[d],g[d])}}if(b){if(c){for(f=f||oa(a),g=g||oa(h),d=0,e=f.length;e>d;d++){na(f[d],g[d])}}else{na(a,h)}}return g=oa(h,"script"),g.length>0&&ma(g,!i&&oa(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++){if(e=a[m],e||0===e){if("object"===n.type(e)){n.merge(l,e.nodeType?[e]:e)}else{if(ca.test(e)){f=f||k.appendChild(b.createElement("div")),g=(ba.exec(e)||["",""])[1].toLowerCase(),h=ia[g]||ia._default,f.innerHTML=h[1]+e.replace(aa,"<$1></$2>")+h[2],j=h[0];while(j--){f=f.lastChild}n.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else{l.push(b.createTextNode(e))}}}}k.textContent="",m=0;while(e=l[m++]){if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=oa(k.appendChild(e),"script"),i&&ma(f),c)){j=0;while(e=f[j++]){fa.test(e.type||"")&&c.push(e)}}}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events){for(d in b.events){f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle)}}L.cache[e]&&delete L.cache[e]}
vendor: 12,636 bytes, line 2
2delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=ja(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=ja(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++){b||1!==c.nodeType||n.cleanData(oa(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&ma(oa(c,"script")),c.parentNode.removeChild(c))}return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&(n.cleanData(oa(a,!1)),a.textContent="")}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType){return b.innerHTML}if("string"==typeof a&&!da.test(a)&&!ia[(ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(aa,"<$1></$2>");try{for(;d>c;c++){b=this[c]||{},1===b.nodeType&&(n.cleanData(oa(b,!1)),b.innerHTML=a)}b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(oa(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&ea.test(p)){return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)})}if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(oa(c,"script"),ka),g=f.length;l>j;j++){h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,oa(h,"script"))),b.call(this[j],h,j)}if(g){for(i=f[f.length-1].ownerDocument,n.map(f,la),j=0;g>j;j++){h=f[j],fa.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(ha,"")))}}}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++){c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get())}return this.pushStack(d)}});var qa,ra={};function sa(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function ta(a){var b=l,c=ra[a];return c||(c=sa(a,b),"none"!==c&&c||(qa=(qa||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=qa[0].contentDocument,b.write(),b.close(),c=sa(a,b),qa.detach()),ra[a]=c),c}var ua=/^margin/,va=new RegExp("^("+Q+")(?!px)[a-z%]+$","i"),wa=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)};function xa(a,b,c){var d,e,f,g,h=a.style;return c=c||wa(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(""!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),va.test(g)&&ua.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function ya(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d=l.documentElement,e=l.createElement("div"),f=l.createElement("div");if(f.style){f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===f.style.backgroundClip,e.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",e.appendChild(f);function g(){f.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",f.innerHTML="",d.appendChild(e);var g=a.getComputedStyle(f,null);b="1%"!==g.top,c="4px"===g.width,d.removeChild(e)}a.getComputedStyle&&n.extend(k,{pixelPosition:function(){return g(),b},boxSizingReliable:function(){return null==c&&g(),c},reliableMarginRight:function(){var b,c=f.appendChild(l.createElement("div"));return c.style.cssText=f.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",f.style.width="1px",d.appendChild(e),b=!parseFloat(a.getComputedStyle(c,null).marginRight),d.removeChild(e),f.removeChild(c),b}})}}(),n.swap=function(a,b,c,d){var e,f,g={};for(f in b){g[f]=a.style[f],a.style[f]=b[f]}e=c.apply(a,d||[]);for(f in b){a.style[f]=g[f]}return e};var za=/^(none|table(?!-c[ea]).+)/,Aa=new RegExp("^("+Q+")(.*)$","i"),Ba=new RegExp("^([+-])=("+Q+")","i"),Ca={position:"absolute",visibility:"hidden",display:"block"},Da={letterSpacing:"0",fontWeight:"400"},Ea=["Webkit","O","Moz","ms"];function Fa(a,b){if(b in a){return b}var c=b[0].toUpperCase()+b.slice(1),d=b,e=Ea.length;while(e--){if(b=Ea[e]+c,b in a){return b}}return d}function Ga(a,b,c){var d=Aa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Ha(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2){"margin"===c&&(g+=n.css(a,c+R[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+R[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+R[f]+"Width",!0,e))):(g+=n.css(a,"padding"+R[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+R[f]+"Width",!0,e)))}return g}function Ia(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=wa(a),g="border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=xa(a,b,f),(0>e||null==e)&&(e=a.style[b]),va.test(e)){return e}d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Ha(a,b,c||(g?"border":"content"),d,f)+"px"}function Ja(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++){d=a[g],d.style&&(f[g]=L.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&S(d)&&(f[g]=L.access(d,"olddisplay",ta(d.nodeName)))):(e=S(d),"none"===c&&e||L.set(d,"olddisplay",e?c:n.css(d,"display"))))}for(g=0;h>g;g++){d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"))}return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=xa(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Fa(i,h)),g=n.cssHooks[b]||n.cssHooks[h],void 0===c?g&&"get" in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Ba.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||n.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set" in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Fa(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&"get" in g&&(e=g.get(a,!0,c)),void 0===e&&(e=xa(a,b,d)),"normal"===e&&b in Da&&(e=Da[b]),""===c||c?(f=parseFloat(e),c===!0||n.isNumeric(f)?f||0:e):e}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?za.test(n.css(a,"display"))&&0===a.offsetWidth?n.swap(a,Ca,function(){return Ia(a,b,d)}):Ia(a,b,d):void 0},set:function(a,c,d){var e=d&&wa(a);return Ga(a,c,d?Ha(a,b,d,"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),n.cssHooks.marginRight=ya(k.reliableMarginRight,function(a,b){return b?n.swap(a,{display:"inline-block"},xa,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++){e[a+R[d]+b]=f[d]||f[d-2]||f[0]}return e}},ua.test(a)||(n.cssHooks[a+b].set=Ga)}),n.fn.extend({css:function(a,b){return J(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=wa(a),e=b.length;e>g;g++){f[b[g]]=n.css(a,b[g],!1,d)}return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Ja(this,!0)},hide:function(){return Ja(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){S(this)?n(this).show():n(this).hide()})}});function Ka(a,b,c,d,e){return new Ka.prototype.init(a,b,c,d,e)}n.Tween=Ka,Ka.prototype={constructor:Ka,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Ka.propHooks[this.prop];return a&&a.get?a.get(this):Ka.propHooks._default.get(this)},run:function(a){var b,c=Ka.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Ka.propHooks._default.set(this),this}},Ka.prototype.init.prototype=Ka.prototype,Ka.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Ka.propHooks.scrollTop=Ka.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return 0.5-Math.cos(a*Math.PI)/2}},n.fx=Ka.prototype.init,n.fx.step={};var La,Ma,Na=/^(?:toggle|show|hide)$/,Oa=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),Pa=/queueHooks$/,Qa=[Va],Ra={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=Oa.exec(b),f=e&&e[3]||(n.cssNumber[a]?"":"px"),g=(n.cssNumber[a]||"px"!==f&&+d)&&Oa.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do{h=h||".5",g/=h,n.style(c.elem,a,g+f)}while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function Sa(){return setTimeout(function(){La=void 0}),La=n.now()}function Ta(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b){c=R[d],e["margin"+c]=e["padding"+c]=a}return b&&(e.opacity=e.width=a),e}function Ua(a,b,c){for(var d,e=(Ra[b]||[]).concat(Ra["*"]),f=0,g=e.length;g>f;f++){if(d=e[f].call(c,b,a)){return d}}}function Va(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&S(a),q=L.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height" in b||"width" in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?L.get(a,"olddisplay")||ta(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b){if(e=b[d],Na.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d]){continue}p=!0}m[d]=q&&q[d]||n.style(a,d)}else{j=void 0}}if(n.isEmptyObject(m)){"inline"===("none"===j?ta(a.nodeName):j)&&(o.display=j)}else{q?"hidden" in q&&(p=q.hidden):q=L.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;L.remove(a,"fxshow");for(b in m){n.style(a,b,m[b])}});for(d in m){g=Ua(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}}function Wa(a,b){var c,d,e,f,g;
vendor: 7,793 bytes, line 2
2for(c in a){if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand" in g){f=g.expand(f),delete a[d];for(c in f){c in a||(a[c]=f[c],b[c]=e)}}else{b[d]=e}}}function Xa(a,b,c){var d,e,f=0,g=Qa.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e){return !1}for(var b=La||Sa(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++){j.tweens[g].run(f)}return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:La||Sa(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e){return this}for(e=!0;d>c;c++){j.tweens[c].run(1)}return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(Wa(k,j.opts.specialEasing);g>f;f++){if(d=Qa[f].call(j,a,k,j.opts)){return d}}return n.map(k,Ua,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(Xa,{tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++){c=a[d],Ra[c]=Ra[c]||[],Ra[c].unshift(b)}},prefilter:function(a,b){b?Qa.unshift(a):Qa.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(S).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=Xa(this,n.extend({},a),f);(e||L.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=L.get(this);if(e){g[e]&&g[e].stop&&d(g[e])}else{for(e in g){g[e]&&g[e].stop&&Pa.test(e)&&d(g[e])}}for(e=f.length;e--;){f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1))}(b||!c)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=L.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;){f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1))}for(b=0;g>b;b++){d[b]&&d[b].finish&&d[b].finish.call(this)}delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Ta(b,!0),a,d,e)}}),n.each({slideDown:Ta("show"),slideUp:Ta("hide"),slideToggle:Ta("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(La=n.now();b<c.length;b++){a=c[b],a()||c[b]!==a||c.splice(b--,1)}c.length||n.fx.stop(),La=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Ma||(Ma=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(Ma),Ma=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(a,b){return a=n.fx?n.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a=l.createElement("input"),b=l.createElement("select"),c=b.appendChild(l.createElement("option"));a.type="checkbox",k.checkOn=""!==a.value,k.optSelected=c.selected,b.disabled=!0,k.optDisabled=!c.disabled,a=l.createElement("input"),a.value="t",a.type="radio",k.radioValue="t"===a.value}();var Ya,Za,$a=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return J(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f){return typeof a.getAttribute===U?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?Za:Ya)),void 0===c?d&&"get" in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set" in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void n.removeAttr(a,b))}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType){while(c=f[e++]){d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)}}},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),Za={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=$a[b]||n.find.attr;$a[b]=function(a,b,d){var e,f;return d||(f=$a[b],$a[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,$a[b]=f),e}});var _a=/^(?:input|select|textarea|button)$/i;n.fn.extend({prop:function(a,b){return J(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g){return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set" in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get" in e&&null!==(d=e.get(a,b))?d:a[b]}},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||_a.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),k.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var ab=/[\t\r\n\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h="string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a)){return this.each(function(b){n(this).addClass(a.call(this,b,this.className))})}if(h){for(b=(a||"").match(E)||[];j>i;i++){if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ab," "):" ")){f=0;while(e=b[f++]){d.indexOf(" "+e+" ")<0&&(d+=e+" ")}g=n.trim(d),c.className!==g&&(c.className=g)}}}return this},removeClass:function(a){var b,c,d,e,f,g,h=0===arguments.length||"string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a)){return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))})}if(h){for(b=(a||"").match(E)||[];j>i;i++){if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ab," "):"")){f=0;while(e=b[f++]){while(d.indexOf(" "+e+" ")>=0){d=d.replace(" "+e+" "," ")}}g=a?n.trim(d):"",c.className!==g&&(c.className=g)}}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=n(this),f=a.match(E)||[];
2while(b=f[d++]){e.hasClass(b)?e.removeClass(b):e.addClass(b)}}else{(c===U||"boolean"===c)&&(this.className&&L.set(this,"__className__",this.className),this.className=this.className||a===!1?"":L.get(this,"__className__")||"")}})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++){if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ab," ").indexOf(b)>=0){return !0}}return !1}});var bb=/\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];if(arguments.length){return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set" in b&&void 0!==b.set(this,e,"value")||(this.value=e))})}if(e){return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get" in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(bb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++){if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f){return b}g.push(b)}}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--){d=e[g],(d.selected=n.inArray(d.value,f)>=0)&&(c=!0)}return c||(a.selectedIndex=-1),f}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},k.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var cb=n.now(),db=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")},n.parseXML=function(a){var b,c;if(!a||"string"!=typeof a){return null}try{c=new DOMParser,b=c.parseFromString(a,"text/xml")}catch(d){b=void 0}return(!b||b.getElementsByTagName("parsererror").length)&&n.error("Invalid XML: "+a),b};var eb=/#.*$/,fb=/([?&])_=[^&]*/,gb=/^(.*?):[ \t]*([^\r\n]*)$/gm,hb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ib=/^(?:GET|HEAD)$/,jb=/^\/\//,kb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,lb={},mb={},nb="*/".concat("*"),ob=a.location.href,pb=kb.exec(ob.toLowerCase())||[];function qb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(n.isFunction(c)){while(d=f[e++]){"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}}}function rb(a,b,c,d){var e={},f=a===mb;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function sb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b){void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c])}return d&&n.extend(!0,a,d),a}function tb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0]){i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"))}if(d){for(e in h){if(h[e]&&h[e].test(d)){i.unshift(e);break}}}if(i[0] in c){f=i[0]}else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function ub(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1]){for(g in a.converters){j[g.toLowerCase()]=a.converters[g]}}f=k.shift();while(f){if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift()){if("*"===f){f=i}else{if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g){for(e in j){if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}}}if(g!==!0){if(g&&a["throws"]){b=g(b)}else{try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}}}}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ob,type:"GET",isLocal:hb.test(pb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":nb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML}
vendor: 9,901 bytes, line 2
2,flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?sb(sb(a,n.ajaxSettings),b):sb(n.ajaxSettings,a)},ajaxPrefilter:qb(lb),ajaxTransport:qb(mb),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!f){f={};while(b=gb.exec(e)){f[b[1].toLowerCase()]=b[2]}}b=f[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?e:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a){if(2>t){for(b in a){q[b]=[q[b],a[b]]}}else{v.always(a[v.status])}}return this},abort:function(a){var b=a||u;return c&&c.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||ob)+"").replace(eb,"").replace(jb,pb[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(h=kb.exec(k.url.toLowerCase()),k.crossDomain=!(!h||h[1]===pb[1]&&h[2]===pb[2]&&(h[3]||("http:"===h[1]?"80":"443"))===(pb[3]||("http:"===pb[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),rb(lb,k,b,v),2===t){return v}i=n.event&&k.global,i&&0===n.active++&&n.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!ib.test(k.type),d=k.url,k.hasContent||(k.data&&(d=k.url+=(db.test(d)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=fb.test(d)?d.replace(fb,"$1_="+cb++):d+(db.test(d)?"&":"?")+"_="+cb++)),k.ifModified&&(n.lastModified[d]&&v.setRequestHeader("If-Modified-Since",n.lastModified[d]),n.etag[d]&&v.setRequestHeader("If-None-Match",n.etag[d])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+nb+"; q=0.01":""):k.accepts["*"]);for(j in k.headers){v.setRequestHeader(j,k.headers[j])}if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t)){return v.abort()}u="abort";for(j in {success:1,error:1,complete:1}){v[j](k[j])}if(c=rb(mb,k,b,v)){v.readyState=1,i&&m.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,c.send(r,x)}catch(w){if(!(2>t)){throw w}x(-1,w)}}else{x(-1,"No Transport")}function x(a,b,f,h){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),c=void 0,e=h||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,f&&(u=tb(k,v,f)),u=ub(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(n.lastModified[d]=w),w=v.getResponseHeader("etag"),w&&(n.etag[d]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,i&&m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),i&&(m.trigger("ajaxComplete",[v,k]),--n.active||n.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild){a=a.firstElementChild}return a}).append(this)),this)},wrapInner:function(a){return this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},n.expr.filters.visible=function(a){return !n.expr.filters.hidden(a)};var vb=/%20/g,wb=/\[\]$/,xb=/\r?\n/g,yb=/^(?:submit|button|image|reset|file)$/i,zb=/^(?:input|select|textarea|keygen)/i;function Ab(a,b,c,d){var e;if(n.isArray(b)){n.each(b,function(b,e){c||wb.test(a)?d(a,e):Ab(a+"["+("object"==typeof e?b:"")+"]",e,c,d)})}else{if(c||"object"!==n.type(b)){d(a,b)}else{for(e in b){Ab(a+"["+e+"]",b[e],c,d)}}}}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a)){n.each(a,function(){e(this.name,this.value)})}else{for(c in a){Ab(c,a[c],b,e)}}return d.join("&").replace(vb,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&zb.test(this.nodeName)&&!yb.test(a)&&(this.checked||!T.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(xb,"\r\n")}}):{name:b.name,value:c.replace(xb,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};var Bb=0,Cb={},Db={0:200,1223:204},Eb=n.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Cb){Cb[a]()}}),k.cors=!!Eb&&"withCredentials" in Eb,k.ajax=Eb=!!Eb,n.ajaxTransport(function(a){var b;return k.cors||Eb&&!a.crossDomain?{send:function(c,d){var e,f=a.xhr(),g=++Bb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields){for(e in a.xhrFields){f[e]=a.xhrFields[e]}}a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c){f.setRequestHeader(e,c[e])}b=function(a){return function(){b&&(delete Cb[g],b=f.onload=f.onerror=null,"abort"===a?f.abort():"error"===a?d(f.status,f.statusText):d(Db[f.status]||f.status,f.statusText,"string"==typeof f.responseText?{text:f.responseText}:void 0,f.getAllResponseHeaders()))}},f.onload=b(),f.onerror=b("error"),b=Cb[g]=b("abort");try{f.send(a.hasContent&&a.data||null)}catch(h){if(b){throw h}}},abort:function(){b&&b()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=n("<script>").prop({async:!0,charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),l.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Fb=[],Gb=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Fb.pop()||n.expando+"_"+cb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Gb.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gb.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Gb,"$1"+e):b.jsonp!==!1&&(b.url+=(db.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Fb.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a){return null}"boolean"==typeof b&&(c=b,b=!1),b=b||l;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=n.buildFragment([a],b,e),e&&e.length&&n(e).remove(),n.merge([],d.childNodes))};var Hb=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&Hb){return Hb.apply(this,arguments)}var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=n.trim(a.slice(h)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e,dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,f||[a.responseText,b,a])}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var Ib=a.document.documentElement;function Jb(a){return n.isWindow(a)?a:9===a.nodeType&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using" in b?b.using.call(a,m):l.css(m)}}
2,n.fn.extend({offset:function(a){if(arguments.length){return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)})}var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f){return b=f.documentElement,n.contains(b,d)?(typeof d.getBoundingClientRect!==U&&(e=d.getBoundingClientRect()),c=Jb(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e}},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===n.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(d=a.offset()),d.top+=n.css(a[0],"borderTopWidth",!0),d.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-n.css(c,"marginTop",!0),left:b.left-d.left-n.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||Ib;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position")){a=a.offsetParent}return a||Ib})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var d="pageYOffset"===c;n.fn[b]=function(e){return J(this,function(b,e,f){var g=Jb(b);return void 0===f?g?g[c]:b[e]:void (g?g.scrollTo(d?a.pageXOffset:f,d?f:a.pageYOffset):b[e]=f)},b,e,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=ya(k.pixelPosition,function(a,c){return c?(c=xa(a,b),va.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return J(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Kb=a.jQuery,Lb=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=Lb),b&&a.jQuery===n&&(a.jQuery=Kb),n},typeof b===U&&(a.jQuery=a.$=n),n}); 3/*js/jquery-ui/js/jquery-ui-1.11.4.custom.min.js*//* jQuery UI - v1.11.4 - 2015-05-03 4* http://jqueryui.com 5* Includes: core.js, widget.js, mouse.js, position.js, draggable.js, droppable.js, resizable.js, selectable.js, sortable.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, menu.js, progressbar.js, selectmenu.js, slider.js, spinner.js, tabs.js, tooltip.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.js, effect-fold.js, effect-highlight.js, effect-puff.js, effect-pulsate.js, effect-scale.js, effect-shake.js, effect-size.js, effect-slide.js, effect-transfer.js 6* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */ 7(function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){function t(t,s){var a,n,r,o=t.nodeName.toLowerCase();return"area"===o?(a=t.parentNode,n=a.name,t.href&&n&&"map"===a.nodeName.toLowerCase()?(r=e("img[usemap='#"+n+"']")[0],!!r&&i(r)):!1):(/^(input|select|textarea|button|object)$/.test(o)?!t.disabled:"a"===o?t.href||s:s)&&i(t)}function i(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}function s(e){for(var t,i;e.length&&e[0]!==document;){if(t=e.css("position"),("absolute"===t||"relative"===t||"fixed"===t)&&(i=parseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i)){return i}e=e.parent()}return 0}function a(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
vendor: 5,561 bytes, line 7
7ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=n(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.delegate(i,"mouseout",function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",r)}function r(){e.datepicker._isDisabledDatepicker(v.inline?v.dpDiv.parent()[0]:v.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function o(t,i){e.extend(t,i);for(var s in i){null==i[s]&&(t[s]=i[s])}return t}function h(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}e.ui=e.ui||{},e.extend(e.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({scrollParent:function(t){var i=this.css("position"),s="absolute"===i,a=t?/(auto|scroll|hidden)/:/(auto|scroll)/,n=this.parents().filter(function(){var t=e(this);return s&&"static"===t.css("position")?!1:a.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==i&&n.length?n:e(this[0].ownerDocument||document)},uniqueId:function(){var e=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return !!e.data(i,t)}}):function(t,i,s){return !!e.data(t,s[3])},focusable:function(i){return t(i,!isNaN(e.attr(i,"tabindex")))},tabbable:function(i){var s=e.attr(i,"tabindex"),a=isNaN(s);return(a||s>=0)&&t(i,!a)}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(t,i){function s(t,i,s,n){return e.each(a,function(){i-=parseFloat(e.css(t,"padding"+this))||0,s&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),n&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var a="Width"===i?["Left","Right"]:["Top","Bottom"],n=i.toLowerCase(),r={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+i]=function(t){return void 0===t?r["inner"+i].call(this):this.each(function(){e(this).css(n,s(this,t)+"px")})},e.fn["outer"+i]=function(t,a){return"number"!=typeof t?r["outer"+i].call(this,t):this.each(function(){e(this).css(n,s(this,t,!0,a)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.fn.extend({focus:function(t){return function(i,s){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),s&&s.call(t)},i)}):t.apply(this,arguments)}}(e.fn.focus),disableSelection:function(){var e="onselectstart" in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(e+".ui-disableSelection",function(e){e.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(t){if(void 0!==t){return this.css("zIndex",t)}if(this.length){for(var i,s,a=e(this[0]);a.length&&a[0]!==document;){if(i=a.css("position"),("absolute"===i||"relative"===i||"fixed"===i)&&(s=parseInt(a.css("zIndex"),10),!isNaN(s)&&0!==s)){return s}a=a.parent()}}return 0}}),e.ui.plugin={add:function(t,i,s){var a,n=e.ui[t].prototype;for(a in s){n.plugins[a]=n.plugins[a]||[],n.plugins[a].push([i,s[a]])}},call:function(e,t,i,s){var a,n=e.plugins[t];if(n&&(s||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)){for(a=0;n.length>a;a++){e.options[n[a][0]]&&n[a][1].apply(e.element,i)}}}};var l=0,u=Array.prototype.slice;e.cleanData=function(t){return function(i){var s,a,n;for(n=0;null!=(a=i[n]);
vendor: 21,024 bytes, line 7
7n++){try{s=e._data(a,"events"),s&&s.remove&&e(a).triggerHandler("remove")}catch(r){}}t(i)}}(e.cleanData),e.widget=function(t,i,s){var a,n,r,o,h={},l=t.split(".")[0];return t=t.split(".")[1],a=l+"-"+t,s||(s=i,i=e.Widget),e.expr[":"][a.toLowerCase()]=function(t){return !!e.data(t,a)},e[l]=e[l]||{},n=e[l][t],r=e[l][t]=function(e,t){return this._createWidget?(arguments.length&&this._createWidget(e,t),void 0):new r(e,t)},e.extend(r,n,{version:s.version,_proto:e.extend({},s),_childConstructors:[]}),o=new i,o.options=e.widget.extend({},o.options),e.each(s,function(t,s){return e.isFunction(s)?(h[t]=function(){var e=function(){return i.prototype[t].apply(this,arguments)},a=function(e){return i.prototype[t].apply(this,e)};return function(){var t,i=this._super,n=this._superApply;return this._super=e,this._superApply=a,t=s.apply(this,arguments),this._super=i,this._superApply=n,t}}(),void 0):(h[t]=s,void 0)}),r.prototype=e.widget.extend(o,{widgetEventPrefix:n?o.widgetEventPrefix||t:t},h,{constructor:r,namespace:l,widgetName:t,widgetFullName:a}),n?(e.each(n._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,r,i._proto)}),delete n._childConstructors):i._childConstructors.push(r),e.widget.bridge(t,r),r},e.widget.extend=function(t){for(var i,s,a=u.call(arguments,1),n=0,r=a.length;r>n;n++){for(i in a[n]){s=a[n][i],a[n].hasOwnProperty(i)&&void 0!==s&&(t[i]=e.isPlainObject(s)?e.isPlainObject(t[i])?e.widget.extend({},t[i],s):e.widget.extend({},s):s)}}return t},e.widget.bridge=function(t,i){var s=i.prototype.widgetFullName||t;e.fn[t]=function(a){var n="string"==typeof a,r=u.call(arguments,1),o=this;return n?this.each(function(){var i,n=e.data(this,s);return"instance"===a?(o=n,!1):n?e.isFunction(n[a])&&"_"!==a.charAt(0)?(i=n[a].apply(n,r),i!==n&&void 0!==i?(o=i&&i.jquery?o.pushStack(i.get()):i,!1):void 0):e.error("no such method '"+a+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+a+"'")}):(r.length&&(a=e.widget.extend.apply(null,[a].concat(r))),this.each(function(){var t=e.data(this,s);t?(t.option(a||{}),t._init&&t._init()):e.data(this,s,new i(a,this))})),o}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=l++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var s,a,n,r=t;if(0===arguments.length){return e.widget.extend({},this.options)}if("string"==typeof t){if(r={},s=t.split("."),t=s.shift(),s.length){for(a=r[t]=e.widget.extend({},this.options[t]),n=0;s.length-1>n;n++){a[s[n]]=a[s[n]]||{},a=a[s[n]]}if(t=s.pop(),1===arguments.length){return void 0===a[t]?null:a[t]}a[t]=i}else{if(1===arguments.length){return void 0===this.options[t]?null:this.options[t]}r[t]=i}}return this._setOptions(r),this},_setOptions:function(e){var t;for(t in e){this._setOption(t,e[t])}return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(t,i,s){var a,n=this;"boolean"!=typeof t&&(s=i,i=t,t=!1),s?(i=a=e(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,a=this.widget()),e.each(s,function(s,r){function o(){return t||n.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof r?n[r]:r).apply(n,arguments):void 0}"string"!=typeof r&&(o.guid=r.guid=r.guid||o.guid||e.guid++);var h=s.match(/^([\w:-]*)\s*(.*)$/),l=h[1]+n.eventNamespace,u=h[2];u?a.delegate(u,l,o):i.bind(l,o)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(i).undelegate(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){function i(){return("string"==typeof e?s[e]:e).apply(s,arguments)}var s=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,s){var a,n,r=this.options[t];if(s=s||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],n=i.originalEvent){for(a in n){a in i||(i[a]=n[a])}}return this.element.trigger(i,s),!(e.isFunction(r)&&r.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(s,a,n){"string"==typeof a&&(a={effect:a});var r,o=a?a===!0||"number"==typeof a?i:a.effect||i:t;a=a||{},"number"==typeof a&&(a={duration:a}),r=!e.isEmptyObject(a),a.complete=n,a.delay&&s.delay(a.delay),r&&e.effects&&e.effects.effect[o]?s[t](a):o!==t&&s[o]?s[o](a.duration,a.easing,n):s.queue(function(i){e(this)[t](),n&&n.call(s[0]),i()})}}),e.widget;var d=!1;e(document).mouseup(function(){d=!1}),e.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(i){return !0===e.data(i.target,t.widgetName+".preventClickEvent")?(e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!d){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var i=this,s=1===t.which,a="string"==typeof this.options.cancel&&t.target.nodeName?e(t.target).closest(this.options.cancel).length:!1;return s&&!a&&this._mouseCapture(t)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(t)!==!1,!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),d=!0,!0)):!0}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button){return this._mouseUp(t)}if(!t.which){return this._mouseUp(t)}}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),d=!1,!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return !0}}),function(){function t(e,t,i){return[parseFloat(e[0])*(p.test(e[0])?t/100:1),parseFloat(e[1])*(p.test(e[1])?i/100:1)]}function i(t,i){return parseInt(e.css(t,i),10)||0}function s(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}e.ui=e.ui||{};var a,n,r=Math.max,o=Math.abs,h=Math.round,l=/left|center|right/,u=/top|center|bottom/,d=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,p=/%$/,f=e.fn.position;e.position={scrollbarWidth:function(){if(void 0!==a){return a}var t,i,s=e("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),n=s.children()[0];return e("body").append(s),t=n.offsetWidth,s.css("overflow","scroll"),i=n.offsetWidth,t===i&&(i=s[0].clientWidth),s.remove(),a=t-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),s=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),a="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth,n="scroll"===s||"auto"===s&&t.height<t.element[0].scrollHeight;return{width:n?e.position.scrollbarWidth():0,height:a?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=e(t||window),s=e.isWindow(i[0]),a=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:s,isDocument:a,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:s||a?i.width():i.outerWidth(),height:s||a?i.height():i.outerHeight()}}},e.fn.position=function(a){if(!a||!a.of){return f.apply(this,arguments)}a=e.extend({},a);var p,m,g,v,y,b,_=e(a.of),x=e.position.getWithinInfo(a.within),k=e.position.getScrollInfo(x),w=(a.collision||"flip").split(" "),T={};return b=s(_),_[0].preventDefault&&(a.at="left top"),m=b.width,g=b.height,v=b.offset,y=e.extend({},v),e.each(["my","at"],function(){var e,t,i=(a[this]||"").split(" ");1===i.length&&(i=l.test(i[0])?i.concat(["center"]):u.test(i[0])?["center"].concat(i):["center","center"]),i[0]=l.test(i[0])?i[0]:"center",i[1]=u.test(i[1])?i[1]:"center",e=d.exec(i[0]),t=d.exec(i[1]),T[this]=[e?e[0]:0,t?t[0]:0],a[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===a.at[0]?y.left+=m:"center"===a.at[0]&&(y.left+=m/2),"bottom"===a.at[1]?y.top+=g:"center"===a.at[1]&&(y.top+=g/2),p=t(T.at,m,g),y.left+=p[0],y.top+=p[1],this.each(function(){var s,l,u=e(this),d=u.outerWidth(),c=u.outerHeight(),f=i(this,"marginLeft"),b=i(this,"marginTop"),D=d+f+i(this,"marginRight")+k.width,S=c+b+i(this,"marginBottom")+k.height,M=e.extend({},y),N=t(T.my,u.outerWidth(),u.outerHeight());"right"===a.my[0]?M.left-=d:"center"===a.my[0]&&(M.left-=d/2),"bottom"===a.my[1]?M.top-=c:"center"===a.my[1]&&(M.top-=c/2),M.left+=N[0],M.top+=N[1],n||(M.left=h(M.left),M.top=h(M.top)),s={marginLeft:f,marginTop:b},e.each(["left","top"],function(t,i){e.ui.position[w[t]]&&e.ui.position[w[t]][i](M,{targetWidth:m,targetHeight:g,elemWidth:d,elemHeight:c,collisionPosition:s,collisionWidth:D,collisionHeight:S,offset:[p[0]+N[0],p[1]+N[1]],my:a.my,at:a.at,within:x,elem:u})}),a.using&&(l=function(e){var t=v.left-M.left,i=t+m-d,s=v.top-M.top,n=s+g-c,h={target:{element:_,left:v.left,top:v.top,width:m,height:g},element:{element:u,left:M.left,top:M.top,width:d,height:c},horizontal:0>i?"left":t>0?"right":"center",vertical:0>n?"top":s>0?"bottom":"middle"};d>m&&m>o(t+i)&&(h.horizontal="center"),c>g&&g>o(s+n)&&(h.vertical="middle"),h.important=r(o(t),o(i))>r(o(s),o(n))?"horizontal":"vertical",a.using.call(this,e,h)}),u.offset(e.extend(M,{using:l}))})},e.ui.position={fit:{left:function(e,t){var i,s=t.within,a=s.isWindow?s.scrollLeft:s.offset.left,n=s.width,o=e.left-t.collisionPosition.marginLeft,h=a-o,l=o+t.collisionWidth-n-a;t.collisionWidth>n?h>0&&0>=l?(i=e.left+h+t.collisionWidth-n-a,e.left+=h-i):e.left=l>0&&0>=h?a:h>l?a+n-t.collisionWidth:a:h>0?e.left+=h:l>0?e.left-=l:e.left=r(e.left-o,e.left)},top:function(e,t){var i,s=t.within,a=s.isWindow?s.scrollTop:s.offset.top,n=t.within.height,o=e.top-t.collisionPosition.marginTop,h=a-o,l=o+t.collisionHeight-n-a;t.collisionHeight>n?h>0&&0>=l?(i=e.top+h+t.collisionHeight-n-a,e.top+=h-i):e.top=l>0&&0>=h?a:h>l?a+n-t.collisionHeight:a:h>0?e.top+=h:l>0?e.top-=l:e.top=r(e.top-o,e.top)}},flip:{left:function(e,t){var i,s,a=t.within,n=a.offset.left+a.scrollLeft,r=a.width,h=a.isWindow?a.scrollLeft:a.offset.left,l=e.left-t.collisionPosition.marginLeft,u=l-h,d=l+t.collisionWidth-r-h,c="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];0>u?(i=e.left+c+p+f+t.collisionWidth-r-n,(0>i||o(u)>i)&&(e.left+=c+p+f)):d>0&&(s=e.left-t.collisionPosition.marginLeft+c+p+f-h,(s>0||d>o(s))&&(e.left+=c+p+f))},top:function(e,t){var i,s,a=t.within,n=a.offset.top+a.scrollTop,r=a.height,h=a.isWindow?a.scrollTop:a.offset.top,l=e.top-t.collisionPosition.marginTop,u=l-h,d=l+t.collisionHeight-r-h,c="top"===t.my[1],p=c?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,f="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,m=-2*t.offset[1];0>u?(s=e.top+p+f+m+t.collisionHeight-r-n,(0>s||o(u)>s)&&(e.top+=p+f+m)):d>0&&(i=e.top-t.collisionPosition.marginTop+p+f+m-h,(i>0||d>o(i))&&(e.top+=p+f+m))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,s,a,r,o=document.getElementsByTagName("body")[0],h=document.createElement("div");t=document.createElement(o?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},o&&e.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"});for(r in s){t.style[r]=s[r]}t.appendChild(h),i=o||document.documentElement,i.insertBefore(t,i.firstChild),h.style.cssText="position: absolute; left: 10.7432222px;",a=e(h).offset().left,n=a>10&&11>a,t.innerHTML="",i.removeChild(t)}()}(),e.ui.position,e.widget("ui.draggable",e.ui.mouse,{version:"1.11.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?(this.destroyOnClear=!0,void 0):(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),this._mouseDestroy(),void 0)},_mouseCapture:function(t){var i=this.options;return this._blurActiveElement(t),this.helper||i.disabled||e(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),this.handle?(this._blockFrames(i.iframeFix===!0?"iframe":i.iframeFix),!0):!1)},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=this.document[0];if(this.handleElement.is(t.target)){try{i.activeElement&&"body"!==i.activeElement.nodeName.toLowerCase()&&e(i.activeElement).blur()}catch(s){}}},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._normalizeRightBottom(),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(this._trigger("drag",t,s)===!1){return this._mouseUp({}),!1}this.position=s.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,s=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(s=e.ui.ddmanager.drop(this,t)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||this.options.revert===!0||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",t)!==!1&&i._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.focus(),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){return this.options.handle?!!e(t.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(t){var i=this.options,s=e.isFunction(i.helper),a=s?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return a.parents("body").length||a.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s&&a[0]===this.element[0]&&this._setPositionRelative(),a[0]===this.element[0]||/(fixed|absolute)/.test(a.css("position"))||a.css("position","absolute"),a},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}
vendor: 4,667 bytes, line 7
7),"left" in t&&(this.offset.click.left=t.left+this.margins.left),"right" in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top" in t&&(this.offset.click.top=t.top+this.margins.top),"bottom" in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition){return{top:0,left:0}}var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,s,a=this.options,n=this.document[0];return this.relativeContainer=null,a.containment?"window"===a.containment?(this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):"document"===a.containment?(this.containment=[0,0,e(n).width()-this.helperProportions.width-this.margins.left,(e(n).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):a.containment.constructor===Array?(this.containment=a.containment,void 0):("parent"===a.containment&&(a.containment=this.helper[0].parentNode),i=e(a.containment),s=i[0],s&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i),void 0):(this.containment=null,void 0)},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,s,a,n,r=this.options,o=this._isRootNode(this.scrollParent[0]),h=e.pageX,l=e.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,e.pageX-this.offset.click.left<i[0]&&(h=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(l=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(h=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(l=i[3]+this.offset.click.top)),r.grid&&(a=r.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,l=i?a-this.offset.click.top>=i[1]||a-this.offset.click.top>i[3]?a:a-this.offset.click.top>=i[1]?a-r.grid[1]:a+r.grid[1]:a,n=r.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)
7/r.grid[0])*r.grid[0]:this.originalPageX,h=i?n-this.offset.click.left>=i[0]||n-this.offset.click.left>i[2]?n:n-this.offset.click.left>=i[0]?n-r.grid[0]:n+r.grid[0]:n),"y"===r.axis&&(h=this.originalPageX),"x"===r.axis&&(l=this.originalPageY)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_normalizeRightBottom:function(){"y"!==this.options.axis&&"auto"!==this.helper.css("right")&&(this.helper.width(this.helper.width()),this.helper.css("right","auto")),"x"!==this.options.axis&&"auto"!==this.helper.css("bottom")&&(this.helper.height(this.helper.height()),this.helper.css("bottom","auto"))},_trigger:function(t,i,s){return s=s||this._uiHash(),e.ui.plugin.call(this,t,[i,s,this],!0),/^(drag|start|stop
vendor: 4,820 bytes, line 7
7)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,s){var a=e.extend({},i,{item:s.element});s.sortables=[],e(s.options.connectToSortable).each(function(){var i=e(this).sortable("instance");i&&!i.options.disabled&&(s.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,a))})},stop:function(t,i,s){var a=e.extend({},i,{item:s.element});s.cancelHelperRemoval=!1,e.each(s.sortables,function(){var e=this;e.isOver?(e.isOver=0,s.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,a))})},drag:function(t,i,s){e.each(s.sortables,function(){var a=!1,n=this;n.positionAbs=s.positionAbs,n.helperProportions=s.helperProportions,n.offset.click=s.offset.click,n._intersectsWith(n.containerCache)&&(a=!0,e.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==n&&this._intersectsWith(this.containerCache)&&e.contains(n.element[0],this.element[0])&&(a=!1),a})),a?(n.isOver||(n.isOver=1,s._parent=i.helper.parent(),n.currentItem=i.helper.appendTo(n.element).data("ui-sortable-item",!0),n.options._helper=n.options.helper,n.options.helper=function(){return i.helper[0]},t.target=n.currentItem[0],n._mouseCapture(t,!0),n._mouseStart(t,!0,!0),n.offset.click.top=s.offset.click.top,n.offset.click.left=s.offset.click.left,n.offset.parent.left-=s.offset.parent.left-n.offset.parent.left,n.offset.parent.top-=s.offset.parent.top-n.offset.parent.top,s._trigger("toSortable",t),s.dropped=n.element,e.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,n.fromOutside=s),n.currentItem&&(n._mouseDrag(t),i.position=n.position)):n.isOver&&(n.isOver=0,n.cancelHelperRemoval=!0,n.options._revert=n.options.revert,n.options.revert=!1,n._trigger("out",t,n._uiHash(n)),n._mouseStop(t,!0),n.options.revert=n.options._revert,n.options.helper=n.options._helper,n.placeholder&&n.placeholder.remove(),i.helper.appendTo(s._parent),s._refreshOffsets(t),i.position=s._generatePosition(t,!0),s._trigger("fromSortable",t),s.dropped=!1,e.each(s.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,i,s){var a=e("body"),n=s.options;a.css("cursor")&&(n._cursor=a.css("cursor")),a.css("cursor",n.cursor)},stop:function(t,i,s){var a=s.options;a._cursor&&e("body").css("cursor",a._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i,s){var a=e(i.helper),n=s.options;a.css("opacity")&&(n._opacity=a.css("opacity")),a.css("opacity",n.opacity)},stop:function(t,i,s){var a=s.options;a._opacity&&e(i.helper).css("opacity",a._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,s){var a=s.options,n=!1,r=s.scrollParentNotHidden[0],o=s.document[0];r!==o&&"HTML"!==r.tagName?(a.axis&&"x"===a.axis||(s.overflowOffset.top+r.offsetHeight-t.pageY<a.scrollSensitivity?r.scrollTop=n=r.scrollTop+a.scrollSpeed:t.pageY-s.overflowOffset.top<a.scrollSensitivity&&(r.scrollTop=n=r.scrollTop-a.scrollSpeed)),a.axis&&"y"===a.axis||(s.overflowOffset.left+r.offsetWidth-t.pageX<a.scrollSensitivity?r.scrollLeft=n=r.scrollLeft+a.scrollSpeed:t.pageX-s.overflowOffset.left<a.scrollSensitivity&&(r.scrollLeft=n=r.scrollLeft-a.scrollSpeed))):(a.axis&&"x"===a.axis||(t.pageY-e(o).scrollTop()<a.scrollSensitivity?n=e(o).scrollTop(e(o).scrollTop()-a.scrollSpeed):e(window).height()-(t.pageY-e(o).scrollTop())<a.scrollSensitivity&&(n=e(o).scrollTop(e(o).scrollTop()+a.scrollSpeed))),a.axis&&"y"===a.axis||(t.pageX-e(o).scrollLeft()<a.scrollSensitivity?n=e(o).scrollLeft(e(o).scrollLeft()-a.scrollSpeed):e(window).width()-(t.pageX-e(o).scrollLeft())<a.scrollSensitivity&&(n=e(o).scrollLeft(e(o).scrollLeft()+a.scrollSpeed)))),n!==!1&&e.ui.ddmanager&&!a.dropBehaviour&&e.ui.ddmanager.prepareOffsets(s,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,i,s){var a=s.options;s.snapElements=[],e(a.snap.constructor!==String?a.snap.items||":data(ui-draggable)":a.snap).each(function(){var t=e(this),i=t.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left
vendor: 40,523 bytes, line 7
7:i.left})})},drag:function(t,i,s){var a,n,r,o,h,l,u,d,c,p,f=s.options,m=f.snapTolerance,g=i.offset.left,v=g+s.helperProportions.width,y=i.offset.top,b=y+s.helperProportions.height;for(c=s.snapElements.length-1;c>=0;c--){h=s.snapElements[c].left-s.margins.left,l=h+s.snapElements[c].width,u=s.snapElements[c].top-s.margins.top,d=u+s.snapElements[c].height,h-m>v||g>l+m||u-m>b||y>d+m||!e.contains(s.snapElements[c].item.ownerDocument,s.snapElements[c].item)?(s.snapElements[c].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,t,e.extend(s._uiHash(),{snapItem:s.snapElements[c].item})),s.snapElements[c].snapping=!1):("inner"!==f.snapMode&&(a=m>=Math.abs(u-b),n=m>=Math.abs(d-y),r=m>=Math.abs(h-v),o=m>=Math.abs(l-g),a&&(i.position.top=s._convertPositionTo("relative",{top:u-s.helperProportions.height,left:0}).top),n&&(i.position.top=s._convertPositionTo("relative",{top:d,left:0}).top),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h-s.helperProportions.width}).left),o&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l}).left)),p=a||n||r||o,"outer"!==f.snapMode&&(a=m>=Math.abs(u-y),n=m>=Math.abs(d-b),r=m>=Math.abs(h-g),o=m>=Math.abs(l-v),a&&(i.position.top=s._convertPositionTo("relative",{top:u,left:0}).top),n&&(i.position.top=s._convertPositionTo("relative",{top:d-s.helperProportions.height,left:0}).top),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h}).left),o&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left)),!s.snapElements[c].snapping&&(a||n||r||o||p)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,t,e.extend(s._uiHash(),{snapItem:s.snapElements[c].item})),s.snapElements[c].snapping=a||n||r||o||p)}}}),e.ui.plugin.add("draggable","stack",{start:function(t,i,s){var a,n=s.options,r=e.makeArray(e(n.stack)).sort(function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)});r.length&&(a=parseInt(e(r[0]).css("zIndex"),10)||0,e(r).each(function(t){e(this).css("zIndex",a+t)}),this.css("zIndex",a+r.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i,s){var a=e(i.helper),n=s.options;a.css("zIndex")&&(n._zIndex=a.css("zIndex")),a.css("zIndex",n.zIndex)},stop:function(t,i,s){var a=s.options;a._zIndex&&e(i.helper).css("zIndex",a._zIndex)}}),e.ui.draggable,e.widget("ui.droppable",{version:"1.11.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,i=this.options,s=i.accept;this.isover=!1,this.isout=!0,this.accept=e.isFunction(s)?s:function(e){return e.is(s)},this.proportions=function(){return arguments.length?(t=arguments[0],void 0):t?t:t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(i.scope),i.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;e.length>t;t++){e[t]===this&&e.splice(t,1)}},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(t,i){if("accept"===t){this.accept=e.isFunction(i)?i:function(e){return e.is(i)}}else{if("scope"===t){var s=e.ui.ddmanager.droppables[this.options.scope];this._splice(s),this._addToManager(i)}}this._super(t,i)},_activate:function(t){var i=e.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=e.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var s=i||e.ui.ddmanager.current,a=!1;return s&&(s.currentItem||s.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=e(this).droppable("instance");return i.options.greedy&&!i.options.disabled&&i.options.scope===s.options.scope&&i.accept.call(i.element[0],s.currentItem||s.element)&&e.ui.intersect(s,e.extend(i,{offset:i.element.offset()}),i.options.tolerance,t)?(a=!0,!1):void 0}),a?!1:this.accept.call(this.element[0],s.currentItem||s.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",t,this.ui(s)),this.element):!1):!1},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}}}),e.ui.intersect=function(){function e(e,t,i){return e>=t&&t+i>e}return function(t,i,s,a){if(!i.offset){return !1}var n=(t.positionAbs||t.position.absolute).left+t.margins.left,r=(t.positionAbs||t.position.absolute).top+t.margins.top,o=n+t.helperProportions.width,h=r+t.helperProportions.height,l=i.offset.left,u=i.offset.top,d=l+i.proportions().width,c=u+i.proportions().height;switch(s){case"fit":return n>=l&&d>=o&&r>=u&&c>=h;case"intersect":return n+t.helperProportions.width/2>l&&d>o-t.helperProportions.width/2&&r+t.helperProportions.height/2>u&&c>h-t.helperProportions.height/2;case"pointer":return e(a.pageY,u,i.proportions().height)&&e(a.pageX,l,i.proportions().width);case"touch":return(r>=u&&c>=r||h>=u&&c>=h||u>r&&h>c)&&(n>=l&&d>=n||o>=l&&d>=o||l>n&&o>d);default:return !1}}}(),e.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,i){var s,a,n=e.ui.ddmanager.droppables[t.options.scope]||[],r=i?i.type:null,o=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(s=0;n.length>s;s++){if(!(n[s].options.disabled||t&&!n[s].accept.call(n[s].element[0],t.currentItem||t.element))){for(a=0;o.length>a;a++){if(o[a]===n[s].element[0]){n[s].proportions().height=0;continue e}}n[s].visible="none"!==n[s].element.css("display"),n[s].visible&&("mousedown"===r&&n[s]._activate.call(n[s],i),n[s].offset=n[s].element.offset(),n[s].proportions({width:n[s].element[0].offsetWidth,height:n[s].element[0].offsetHeight}))}}},drop:function(t,i){var s=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance,i)&&(s=this._drop.call(this,i)||s),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),s},dragStart:function(t,i){t.element.parentsUntil("body").bind("scroll.droppable",function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,i),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var s,a,n,r=e.ui.intersect(t,this,this.options.tolerance,i),o=!r&&this.isover?"isout":r&&!this.isover?"isover":null;o&&(this.options.greedy&&(a=this.options.scope,n=this.element.parents(":data(ui-droppable)").filter(function(){return e(this).droppable("instance").options.scope===a}),n.length&&(s=e(n[0]).droppable("instance"),s.greedyChild="isover"===o)),s&&"isover"===o&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[o]=!0,this["isout"===o?"isover":"isout"]=!1,this["isover"===o?"_over":"_out"].call(this,i),s&&"isout"===o&&(s.isout=!1,s.isover=!0,s._over.call(s,i)))}})},dragStop:function(t,i){t.element.parentsUntil("body").unbind("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)}},e.ui.droppable,e.widget("ui.resizable",e.ui.mouse,{version:"1.11.4",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseInt(e,10)||0},_isNumber:function(e){return !isNaN(parseInt(e,10))},_hasScroll:function(t,i){if("hidden"===e(t).css("overflow")){return !1}var s=i&&"left"===i?"scrollLeft":"scrollTop",a=!1;return t[s]>0?!0:(t[s]=1,a=t[s]>0,t[s]=0,a)},_create:function(){var t,i,s,a,n,r=this,o=this.options;if(this.element.addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!o.aspectRatio,aspectRatio:o.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:o.helper||o.ghost||o.animate?o.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=o.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this.handles.constructor===String){for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),t=this.handles.split(","),this.handles={},i=0;t.length>i;i++){s=e.trim(t[i]),n="ui-resizable-"+s,a=e("<div class='ui-resizable-handle "+n+"'></div>"),a.css({zIndex:o.zIndex}),"se"===s&&a.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[s]=".ui-resizable-"+s,this.element.append(a)}}this._renderAxis=function(t){var i,s,a,n;t=t||this.element;for(i in this.handles){this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=e(this.handles[i]),this._on(this.handles[i],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=e(this.handles[i],this.element),n=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),a=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(a,n),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])}},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.mouseover(function(){r.resizing||(this.className&&(a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=a&&a[1]?a[1]:"se")}),o.autoHide&&(this._handles.hide(),e(this.element).addClass("ui-resizable-autohide").mouseenter(function(){o.disabled||(e(this).removeClass("ui-resizable-autohide"),r._handles.show())}).mouseleave(function(){o.disabled||r.resizing||(e(this).addClass("ui-resizable-autohide"),r._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,i=function(t){e(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(t){var i,s,a=!1;for(i in this.handles){s=e(this.handles[i])[0],(s===t.target||e.contains(s,t.target))&&(a=!0)}return !this.options.disabled&&a},_mouseStart:function(t){var i,s,a,n=this.options,r=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),n.containment&&(i+=e(n.containment).scrollLeft()||0,s+=e(n.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:r.width(),height:r.height()},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof n.aspectRatio?n.aspectRatio:this.originalSize.width/this.originalSize.height||1,a=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===a?this.axis+"-resize":a),r.addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,s,a=this.originalMousePosition,n=this.axis,r=t.pageX-a.left||0,o=t.pageY-a.top||0,h=this._change[n];return this._updatePrevProperties(),h?(i=h.apply(this,[t,r,o]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1):!1},_mouseStop:function(t){this.resizing=!1;var i,s,a,n,r,o,h,l=this.options,u=this;return this._helper&&(i=this._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),a=s&&this._hasScroll(i[0],"left")?0:u.sizeDiff.height,n=s?0:u.sizeDiff.width,r={width:u.helper.width()-n,height:u.helper.height()-a},o=parseInt(u.element.css("left"),10)+(u.position.left-u.originalPosition.left)||null,h=parseInt(u.element.css("top"),10)+(u.position.top-u.originalPosition.top)||null,l.animate||this.element.css(e.extend(r,{top:h,left:o})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!l.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,i,s,a,n,r=this.options;n={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:1/0,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||e)&&(t=n.minHeight*this.aspectRatio,s=n.minWidth/this.aspectRatio,i=n.maxHeight*this.aspectRatio,a=n.maxWidth/this.aspectRatio,t>n.minWidth&&(n.minWidth=t),s>n.minHeight&&(n.minHeight=s),n.maxWidth>i&&(n.maxWidth=i),n.maxHeight>a&&(n.maxHeight=a)),this._vBoundaries=n},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,i=this.size,s=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===s&&(e.left=t.left+(i.width-e.width),e.top=null),"nw"===s&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,s=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,a=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,n=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,r=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,o=this.originalPosition.left+this.originalSize.width,h=this.position.top+this.size.height,l=/sw|nw|w/.test(i),u=/nw|ne|n/.test(i);return n&&(e.width=t.minWidth),r&&(e.height=t.minHeight),s&&(e.width=t.maxWidth),a&&(e.height=t.maxHeight),n&&l&&(e.left=o-t.minWidth),s&&l&&(e.left=o-t.maxWidth),r&&u&&(e.top=h-t.minHeight),a&&u&&(e.top=h-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,i=[],s=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],a=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];4>t;t++){i[t]=parseInt(s[t],10)||0,i[t]+=parseInt(a[t],10)||0}return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){for(var e,t=0,i=this.helper||this.element;this._proportionallyResizeElements.length>t;t++){e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})}}},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize,s=this.originalPosition;return{left:s.left+t,width:i.width-t}},n:function(e,t,i){var s=this.originalSize,a=this.originalPosition;return{top:a.top+i,height:s.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i,s){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,s]))},sw:function(t,i,s){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,s]))},ne:function(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,s]))},nw:function(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,s]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var i=e(this).resizable("instance"),s=i.options,a=i._proportionallyResizeElements,n=a.length&&/textarea/i.test(a[0].nodeName),r=n&&i._hasScroll(a[0],"left")?0:i.sizeDiff.height,o=n?0:i.sizeDiff.width,h={width:i.size.width-o,height:i.size.height-r},l=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,u=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(h,u&&l?{top:u,left:l}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};a&&a.length&&e(a[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,i,s,a,n,r,o,h=e(this).resizable("instance"),l=h.options,u=h.element,d=l.containment,c=d instanceof e?d.get(0):/parent/.test(d)?u.parent().get(0):d;c&&(h.containerElement=e(c),/document/.test(d)||d===document?(h.containerOffset={left:0,top:0},h.containerPosition={left:0,top:0},h.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(c),i=[],e(["Top","Right","Left","Bottom"]).each(function(e,s){i[e]=h._num(t.css("padding"+s))}),h.containerOffset=t.offset(),h.containerPosition=t.position(),h.containerSize={height:t.innerHeight()-i[3],width:t.innerWidth()-i[1]},s=h.containerOffset,a=h.containerSize.height,n=h.containerSize.width,r=h._hasScroll(c,"left")?c.scrollWidth:n,o=h._hasScroll(c)?c.scrollHeight:a,h.parentData={element:c,left:s.left,top:s.top,width:r,height:o}))},resize:function(t){var i,s,a,n,r=e(this).resizable("instance"),o=r.options,h=r.containerOffset,l=r.position,u=r._aspectRatio||t.shiftKey,d={top:0,left:0},c=r.containerElement,p=!0;c[0]!==document&&/static/.test(c.css("position"))&&(d=h),l.left<(r._helper?h.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-h.left:r.position.left-d.left),u&&(r.size.height=r.size.width/r.aspectRatio,p=!1),r.position.left=o.helper?h.left:0),l.top<(r._helper?h.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-h.top:r.position.top),u&&(r.size.width=r.size.height*r.aspectRatio,p=!1),r.position.top=r._helper?h.top:0),a=r.containerElement.get(0)===r.element.parent().get(0),n=/relative|absolute/.test(r.containerElement.css("position")),a&&n?(r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top):(r.offset.left=r.element.offset().left,r.offset.top=r.element.offset().top),i=Math.abs(r.sizeDiff.width+(r._helper?r.offset.left-d.left:r.offset.left-h.left)),s=Math.abs(r.sizeDiff.height+(r._helper?r.offset.top-d.top:r.offset.top-h.top)),i+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-i,u&&(r.size.height=r.size.width/r.aspectRatio,p=!1)),s+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-s,u&&(r.size.width=r.size.height*r.aspectRatio,p=!1)),p||(r.position.left=r.prevPosition.left,r.position.top=r.prevPosition.top,r.size.width=r.prevSize.width,r.size.height=r.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),i=t.options,s=t.containerOffset,a=t.containerPosition,n=t.containerElement,r=e(t.helper),o=r.offset(),h=r.outerWidth()-t.sizeDiff.width,l=r.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(n.css("position"))&&e(this).css({left:o.left-a.left-s.left,width:h,height:l}),t._helper&&!i.animate&&/static/.test(n.css("position"))&&e(this).css({left:o.left-a.left-s.left,width:h,height:l})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance"),i=t.options;e(i.alsoResize).each(function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})},resize:function(t,i){var s=e(this).resizable("instance"),a=s.options,n=s.originalSize,r=s.originalPosition,o={height:s.size.height-n.height||0,width:s.size.width-n.width||0,top:s.position.top-r.top||0,left:s.position.left-r.left||0};e(a.alsoResize).each(function(){var t=e(this),s=e(this).data("ui-resizable-alsoresize"),a={},n=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(n,function(e,t){var i=(s[t]||0)+(o[t]||0);i&&i>=0&&(a[t]=i||null)}),t.css(a)})},stop:function(){e(this).removeData("resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),i=t.options,s=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:0.25,display:"block",position:"relative",height:s.height,width:s.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t,i=e(this).resizable("instance"),s=i.options,a=i.size,n=i.originalSize,r=i.originalPosition,o=i.axis,h="number"==typeof s.grid?[s.grid,s.grid]:s.grid,l=h[0]||1,u=h[1]||1,d=Math.round((a.width-n.width)/l)*l,c=Math.round((a.height-n.height)/u)*u,p=n.width+d,f=n.height+c,m=s.maxWidth&&p>s.maxWidth,g=s.maxHeight&&f>s.maxHeight,v=s.minWidth&&s.minWidth>p,y=s.minHeight&&s.minHeight>f;s.grid=h,v&&(p+=l),y&&(f+=u),m&&(p-=l),g&&(f-=u),/^(se|s|e)$/.test(o)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(o)?(i.size.width=p,i.size.height=f,i.position.top=r.top-c):/^(sw)$/.test(o)?(i.size.width=p,i.size.height=f,i.position.left=r.left-d):((0>=f-u||0>=p-l)&&(t=i._getPaddingPlusBorderDimensions(this)),f-u>0?(i.size.height=f,i.position.top=r.top-c):(f=u-t.height,i.size.height=f,i.position.top=r.top+n.height-f),p-l>0?(i.size.width=p,i.position.left=r.left-d):(p=l-t.width,i.size.width=p,i.position.left=r.left+n.width-p))}}),e.ui.resizable,e.widget("ui.selectable",e.ui.mouse,{version:"1.11.4",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){t=e(i.options.filter,i.element[0]),t.addClass("ui-selectee"),t.each(function(){var t=e(this),i=t.offset();e.data(this,"selectable-item",{element:this,$element:t,left:i.left,top:i.top,right:i.left+t.outerWidth(),bottom:i.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=t.addClass("ui-selectee"),this._mouseInit(),this.helper=e("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(t){var i=this,s=this.options;this.opos=[t.pageX,t.pageY],this.options.disabled||(this.selectees=e(s.filter,this.element[0]),this._trigger("start",t),e(s.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var s=e.data(this,"selectable-item");s.startselected=!0,t.metaKey||t.ctrlKey||(s.$element.removeClass("ui-selected"),s.selected=!1,s.$element.addClass("ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",t,{unselecting:s.element}))}),e(t.target).parents().addBack().each(function(){var s,a=e.data(this,"selectable-item");return a?(s=!t.metaKey&&!t.ctrlKey||!a.$element.hasClass("ui-selected"),a.$element.removeClass(s?"ui-unselecting":"ui-selected").addClass(s?"ui-selecting":"ui-unselecting"),a.unselecting=!s,a.selecting=s,a.selected=s,s?i._trigger("selecting",t,{selecting:a.element}):i._trigger("unselecting",t,{unselecting:a.element}),!1):void 0}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var i,s=this,a=this.options,n=this.opos[0],r=this.opos[1],o=t.pageX,h=t.pageY;return n>o&&(i=o,o=n,n=i),r>h&&(i=h,h=r,r=i),this.helper.css({left:n,top:r,width:o-n,height:h-r}),this.selectees.each(function(){var i=e.data(this,"selectable-item"),l=!1;i&&i.element!==s.element[0]&&("touch"===a.tolerance?l=!(i.left>o||n>i.right||i.top>h||r>i.bottom):"fit"===a.tolerance&&(l=i.left>n&&o>i.right&&i.top>r&&h>i.bottom),l?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,s._trigger("selecting",t,{selecting:i.element}))):(i.selecting&&((t.metaKey||t.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),s._trigger("unselecting",t,{unselecting:i.element}))),i.selected&&(t.metaKey||t.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,s._trigger("unselecting",t,{unselecting:i.element})))))}),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,e(".ui-unselecting",this.element[0]).each(function(){var s=e.data(this,"selectable-item");s.$element.removeClass("ui-unselecting"),s.unselecting=!1,s.startselected=!1,i._trigger("unselected",t,{unselected:s.element})}),e(".ui-selecting",this.element[0]).each(function(){var s=e.data(this,"selectable-item");s.$element.removeClass("ui-selecting").addClass("ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,i._trigger("selected",t,{selected:s.element})}),this._trigger("stop",t),this.helper.remove(),!1}}),e.widget("ui.sortable",e.ui.mouse,{version:"1.11.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,i){return e>=t&&t+i>e},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle"),e.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle"),this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--){this.items[e].item.removeData(this.widgetName+"-item")}return this},_mouseCapture:function(t,i){var s=null,a=!1,n=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(t),e(t.target).parents().each(function(){return e.data(this,n.widgetName+"-item")===n?(s=e(this),!1):void 0}),e.data(t.target,n.widgetName+"-item")===n&&(s=e(t.target)),s?!this.options.handle||i||(e(this.options.handle,s).find("*").addBack().each(function(){this===t.target&&(a=!0)}),a)?(this.currentItem=s,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:function(t,i,s){var a,n,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(n=this.document.find("body"),this.storedCursor=n.css("cursor"),n.css("cursor",r.cursor),this.storedStylesheet=e("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(n)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s){for(a=this.containers.length-1;a>=0;a--){this.containers[a]._trigger("activate",t,this._uiHash(this))}}return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var i,s,a,n,r=this.options,o=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<r.scrollSensitivity?this.scrollParent[0].scrollTop=o=this.scrollParent[0].scrollTop+r.scrollSpeed:t.pageY-this.overflowOffset.top<r.scrollSensitivity&&(this.scrollParent[0].scrollTop=o=this.scrollParent[0].scrollTop-r.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<r.scrollSensitivity?this.scrollParent[0].scrollLeft=o=this.scrollParent[0].scrollLeft+r.scrollSpeed:t.pageX-this.overflowOffset.left<r.scrollSensitivity&&(this.scrollParent[0].scrollLeft=o=this.scrollParent[0].scrollLeft-r.scrollSpeed)):(t.pageY-this.document.scrollTop()<r.scrollSensitivity?o=this.document.scrollTop(this.document.scrollTop()-r.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<r.scrollSensitivity&&(o=this.document.scrollTop(this.document.scrollTop()+r.scrollSpeed)),t.pageX-this.document.scrollLeft()<r.scrollSensitivity?o=this.document.scrollLeft(this.document.scrollLeft()-r.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<r.scrollSensitivity&&(o=this.document.scrollLeft(this.document.scrollLeft()+r.scrollSpeed))),o!==!1&&e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--){if(s=this.items[i],a=s.item[0],n=this._intersectsWithPointer(s),n&&s.instance===this.currentContainer&&a!==this.currentItem[0]&&this.placeholder[1===n?"next":"prev"]()[0]!==a&&!e.contains(this.placeholder[0],a)&&("semi-dynamic"===this.options.type?!e.contains(this.element[0],a):!0)){if(this.direction=1===n?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(s)){break}this._rearrange(t,s),this._trigger("change",t,this._uiHash());break}}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var s=this,a=this.placeholder.offset(),n=this.options.axis,r={};n&&"x"!==n||(r.left=a.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),n&&"y"!==n||(r.top=a.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){s._clear(t)})}else{this._clear(t,i)}return !1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--){this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),s=[];return t=t||{},e(i).each(function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);i&&s.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))}),!s.length&&t.key&&s.push(t.key+"="),s.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),s=[];return t=t||{},i.each(function(){s.push(e(t.item||this).attr(t.attribute||"id")||"")}),s},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,s=this.positionAbs.top,a=s+this.helperProportions.height,n=e.left,r=n+e.width,o=e.top,h=o+e.height,l=this.offset.click.top,u=this.offset.click.left,d="x"===this.options.axis||s+l>o&&h>s+l,c="y"===this.options.axis||t+u>n&&r>t+u,p=d&&c;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?p:t+this.helperProportions.width/2>n&&r>i-this.helperProportions.width/2&&s+this.helperProportions.height/2>o&&h>a-this.helperProportions.height/2},_intersectsWithPointer:function(e){var t="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),i="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),s=t&&i,a=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection();return s?this.floating?n&&"right"===n||"down"===a?2:1:a&&("down"===a?2:1):!1},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),s=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return this.floating&&a?"right"===a&&i||"left"===a&&!i:s&&("down"===s&&t||"up"===s&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;
7return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){function i(){o.push(this)}var s,a,n,r,o=[],h=[],l=this._connectWith();if(l&&t){for(s=l.length-1;s>=0;s--){for(n=e(l[s],this.document[0]),a=n.length-1;a>=0;a--){r=e.data(n[a],this.widgetFullName),r&&r!==this&&!r.options.disabled&&h.push([e.isFunction(r.options.items)?r.options.items.call(r.element):e(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r])}}}for(h.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),s=h.length-1;s>=0;s--){h[s][0].each(i)}return e(o)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var i=0;t.length>i;i++){if(t[i]===e.item[0]){return !1}}return !0})},_refreshItems:function(t){this.items=[],this.containers=[this];var i,s,a,n,r,o,h,l,u=this.items,d=[[e.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],c=this._connectWith();if(c&&this.ready){for(i=c.length-1;i>=0;i--){for(a=e(c[i],this.document[0]),s=a.length-1;s>=0;s--){n=e.data(a[s],this.widgetFullName),n&&n!==this&&!n.options.disabled&&(d.push([e.isFunction(n.options.items)?n.options.items.call(n.element[0],t,{item:this.currentItem}):e(n.options.items,n.element),n]),this.containers.push(n))}}}for(i=d.length-1;i>=0;i--){for(r=d[i][1],o=d[i][0],s=0,l=o.length;l>s;s++){h=e(o[s]),h.data(this.widgetName+"-item",r),u.push({item:h,instance:r,width:0,height:0,left:0,top:0})}}},refreshPositions:function(t){this.floating=this.items.length?"x"===this.options.axis||this._isFloating(this.items[0].item):!1,this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,s,a,n;for(i=this.items.length-1;i>=0;i--){s=this.items[i],s.instance!==this.currentContainer&&this.currentContainer&&s.item[0]!==this.currentItem[0]||(a=this.options.toleranceElement?e(this.options.toleranceElement,s.item):s.item,t||(s.width=a.outerWidth(),s.height=a.outerHeight()),n=a.offset(),s.left=n.left,s.top=n.top)}
vendor: 27,194 bytes, line 7
7if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(i=this.containers.length-1;i>=0;i--){n=this.containers[i].element.offset(),this.containers[i].containerCache.left=n.left,this.containers[i].containerCache.top=n.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight()}}return this},_createPlaceholder:function(t){t=t||this;var i,s=t.options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,s.placeholder={element:function(){var s=t.currentItem[0].nodeName.toLowerCase(),a=e("<"+s+">",t.document[0]).addClass(i||t.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tbody"===s?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(a)):"tr"===s?t._createTrPlaceholder(t.currentItem,a):"img"===s&&a.attr("src",t.currentItem.attr("src")),i||a.css("visibility","hidden"),a},update:function(e,a){(!i||s.forcePlaceholderSize)&&(a.height()||a.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),a.width()||a.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(s.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),s.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var s=this;t.children().each(function(){e("<td> </td>",s.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(t){var i,s,a,n,r,o,h,l,u,d,c=null,p=null;for(i=this.containers.length-1;i>=0;i--){if(!e.contains(this.currentItem[0],this.containers[i].element[0])){if(this._intersectsWith(this.containers[i].containerCache)){if(c&&e.contains(this.containers[i].element[0],c.element[0])){continue}c=this.containers[i],p=i}else{this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",t,this._uiHash(this)),this.containers[i].containerCache.over=0)}}}if(c){if(1===this.containers.length){this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1)}else{for(a=10000,n=null,u=c.floating||this._isFloating(this.currentItem),r=u?"left":"top",o=u?"width":"height",d=u?"clientX":"clientY",s=this.items.length-1;s>=0;s--){e.contains(this.containers[p].element[0],this.items[s].item[0])&&this.items[s].item[0]!==this.currentItem[0]&&(h=this.items[s].item.offset()[r],l=!1,t[d]-h>this.items[s][o]/2&&(l=!0),a>Math.abs(t[d]-h)&&(a=Math.abs(t[d]-h),n=this.items[s],this.direction=l?"up":"down"))}if(!n&&!this.options.dropOnEmpty){return}if(this.currentContainer===this.containers[p]){return this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1),void 0}n?this._rearrange(t,n,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1}}},_createHelper:function(t){var i=this.options,s=e.isFunction(i.helper)?e(i.helper.apply(this.element[0],[t,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return s.parents("body").length||e("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(s[0]),s[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!s[0].style.width||i.forceHelperSize)&&s.width(this.currentItem.width()),(!s[0].style.height||i.forceHelperSize)&&s.height(this.currentItem.height()),s},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left" in t&&(this.offset.click.left=t.left+this.margins.left),"right" in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top" in t&&(this.offset.click.top=t.top+this.margins.top),"bottom" in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,s,a=this.options;"parent"===a.containment&&(a.containment=this.helper[0].parentNode),("document"===a.containment||"window"===a.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===a.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===a.containment?this.document.width():this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(a.containment)||(t=e(a.containment)[0],i=e(a.containment).offset(),s="hidden"!==e(t).css("overflow"),this.containment=[i.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(s?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(s?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var s="absolute"===t?1:-1,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,n=/(html|body)/i.test(a[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():n?0:a.scrollTop())*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():n?0:a.scrollLeft())*s}},_generatePosition:function(t){var i,s,a=this.options,n=t.pageX,r=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(n=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(n=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),a.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/a.grid[1])*a.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-a.grid[1]:i+a.grid[1]:i,s=this.originalPageX+Math.round((n-this.originalPageX)/a.grid[0])*a.grid[0],n=this.containment?s-this.offset.click.left>=this.containment[0]&&s-this.offset.click.left<=this.containment[2]?s:s-this.offset.click.left>=this.containment[0]?s-a.grid[0]:s+a.grid[0]:s)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():h?0:o.scrollTop()),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():h?0:o.scrollLeft())}},_rearrange:function(e,t,i,s){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var a=this.counter;this._delay(function(){a===this.counter&&this.refreshPositions(!s)})},_clear:function(e,t){function i(e,t,i){return function(s){i._trigger(e,s,t._uiHash(t))}}this.reverting=!1;var s,a=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(s in this._storedCSS){("auto"===this._storedCSS[s]||"static"===this._storedCSS[s])&&(this._storedCSS[s]="")}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(this.fromOutside&&!t&&a.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||a.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(t||(a.push(function(e){this._trigger("remove",e,this._uiHash())}),a.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),a.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),s=this.containers.length-1;s>=0;s--){t||a.push(i("deactivate",this,this.containers[s])),this.containers[s].containerCache.over&&(a.push(i("out",this,this.containers[s])),this.containers[s].containerCache.over=0)}if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(s=0;a.length>s;s++){a[s].call(this,e)}this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){e.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||e([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}}),e.widget("ui.accordion",{version:"1.11.4",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=e(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),t.collapsible||t.active!==!1&&null!=t.active||(t.active=0),this._processPanels(),0>t.active&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():e()}},_createIcons:function(){var t=this.options.icons;t&&(e("<span>").addClass("ui-accordion-header-icon ui-icon "+t.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(t.header).addClass(t.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){return"active"===e?(this._activate(t),void 0):("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||this.options.active!==!1||this._activate(0),"icons"===e&&(this._destroyIcons(),t&&this._createIcons()),"disabled"===e&&(this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!t)),void 0)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=e.ui.keyCode,s=this.headers.length,a=this.headers.index(t.target),n=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:n=this.headers[(a+1)%s];break;case i.LEFT:case i.UP:n=this.headers[(a-1+s)%s];break;case i.SPACE:case i.ENTER:this._eventHandler(t);break;case i.HOME:n=this.headers[0];break;case i.END:n=this.headers[s-1]}n&&(e(t.target).attr("tabIndex",-1),e(n).attr("tabIndex",0),n.focus(),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===e.ui.keyCode.UP&&t.ctrlKey&&e(t.currentTarget).prev().focus()},refresh:function(){var t=this.options;this._processPanels(),t.active===!1&&t.collapsible===!0||!this.headers.length?(t.active=!1,this.active=e()):t.active===!1?this._activate(0):this.active.length&&!e.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=e()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.panels=this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide(),t&&(this._off(e.not(this.headers)),this._off(t.not(this.panels)))},_refresh:function(){var t,i=this.options,s=i.heightStyle,a=this.element.parent();this.active=this._findActive(i.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(){var t=e(this),i=t.uniqueId().attr("id"),s=t.next(),a=s.uniqueId().attr("id");t.attr("aria-controls",a),s.attr("aria-labelledby",i)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===s?(t=a.height(),this.element.siblings(":visible").each(function(){var i=e(this),s=i.css("position");"absolute"!==s&&"fixed"!==s&&(t-=i.outerHeight(!0))}),this.headers.each(function(){t-=e(this).outerHeight(!0)}),this.headers.next().each(function(){e(this).height(Math.max(0,t-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===s&&(t=0,this.headers.next().each(function(){t=Math.max(t,e(this).css("height","").height())}).height(t))},_activate:function(t){var i=this._findActive(t)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):e()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&e.each(t.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var i=this.options,s=this.active,a=e(t.currentTarget),n=a[0]===s[0],r=n&&i.collapsible,o=r?e():a.next(),h=s.next(),l={oldHeader:s,oldPanel:h,newHeader:r?e():a,newPanel:o};t.preventDefault(),n&&!i.collapsible||this._trigger("beforeActivate",t,l)===!1||(i.active=r?!1:this.headers.index(a),this.active=n?e():a,this._toggle(l),s.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&s.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),n||(a.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&a.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),a.next().addClass("ui-accordion-content-active")))},_toggle:function(t){var i=t.newPanel,s=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=s,this.options.animate?this._animate(i,s,t):(s.hide(),i.show(),this._toggleComplete(t)),s.attr({"aria-hidden":"true"}),s.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&s.length?s.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter(function(){return 0===parseInt(e(this).attr("tabIndex"),10)}).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,t,i){var s,a,n,r=this,o=0,h=e.css("box-sizing"),l=e.length&&(!t.length||e.index()<t.index()),u=this.options.animate||{},d=l&&u.down||u,c=function(){r._toggleComplete(i)};return"number"==typeof d&&(n=d),"string"==typeof d&&(a=d),a=a||d.easing||u.easing,n=n||d.duration||u.duration,t.length?e.length?(s=e.show().outerHeight(),t.animate(this.hideProps,{duration:n,easing:a,step:function(e,t){t.now=Math.round(e)}}),e.hide().animate(this.showProps,{duration:n,easing:a,complete:c,step:function(e,i){i.now=Math.round(e),"height"!==i.prop?"content-box"===h&&(o+=i.now):"content"!==r.options.heightStyle&&(i.now=Math.round(s-t.outerHeight()-o),o=0)}}),void 0):t.animate(this.hideProps,n,a,c):e.animate(this.showProps,n,a,c)},_toggleComplete:function(e){var t=e.oldPanel;t.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,e)}}),e.widget("ui.menu",{version:"1.11.4",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(t){var i=e(t.target);!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&e(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){if(!this.previousFilter){var i=e(t.currentTarget);i.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(t,i)}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this.element.find(this.options.items).eq(0);t||this.focus(e,i)},blur:function(t){this._delay(function(){e.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=e(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){var i,s,a,n,r=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:r=!1,s=this.previousFilter||"",a=String.fromCharCode(t.keyCode),n=!1,clearTimeout(this.filterTimer),a===s?n=!0:a=s+a,i=this._filterMenuItems(a),i=n&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(a=String.fromCharCode(t.keyCode),i=this._filterMenuItems(a)),i.length?(this.focus(t,i),this.previousFilter=a,this.filterTimer=this._delay(function(){delete this.previousFilter},1000)):delete this.previousFilter}r&&t.preventDefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(e):this.select(e))},refresh:function(){var t,i,s=this,a=this.options.icons.submenu,n=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),n.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),i=t.parent(),s=e("<span>").addClass("ui-menu-icon ui-icon "+a).data("ui-menu-submenu-carat",!0);i.attr("aria-haspopup","true").prepend(s),t.attr("aria-labelledby",i.attr("id"))}),t=n.add(this.element),i=t.find(this.options.items),i.not(".ui-menu-item").each(function(){var t=e(this);s._isDivider(t)&&t.addClass("ui-widget-content ui-menu-divider")}),i.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){"icons"===e&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this._super(e,t)},focus:function(e,t){var i,s;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),s=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=t.children(".ui-menu"),i.length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var i,s,a,n,r,o;this._hasScroll()&&(i=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,a=t.offset().top-this.activeMenu.offset().top-i-s,n=this.activeMenu.scrollTop(),r=this.activeMenu.height(),o=t.outerHeight(),0>a?this.activeMenu.scrollTop(n+a):a+o>r&&this.activeMenu.scrollTop(n+a-r+o))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",e,{item:this.active}))},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(t){var i=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(t),this.activeMenu=s},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
7se").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(t){return !e(t.target).closest(".ui-menu").length},_isDivider:function(e){return !/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,i){var s;this.active&&(s="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[t]()),this.focus(i,s)},nextPage:function(t){var i,s,a;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,a=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=e(this),0>i.offset().top-s-a}),this.focus(t,i)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(t),void 0)},previousPage:function(t){var i,s,a;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,a=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=e(this),i.offset().top-s+a>0}),this.focus(t,i)):this.focus(t,this.activeMenu.find(this.options.items).first())),void 0):(this.next(t),void 0)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,i)},_filterMenuItems:function(t){var i=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.test(e.trim(e(this).text()))})}}),e.widget("ui.autocomplete",{version:"1.11.4",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var t,i,s,a=this.element[0].nodeName.toLowerCase(),n="textarea"===a,r="input"===a;this.isMultiLine=n?!0:r?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[n||r?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(a){if(this.element.prop("readOnly")){return t=!0,s=!0,i=!0,void 0}t=!1,s=!1,i=!1;var n=e.ui.keyCode;switch(a.keyCode){case n.PAGE_UP:t=!0,this._move("previousPage",a);break;case n.PAGE_DOWN:t=!0,this._move("nextPage",a);break;case n.UP:t=!0,this._keyEvent("previous",a);break;case n.DOWN:t=!0,this._keyEvent("next",a);break;case n.ENTER:this.menu.active&&(t=!0,a.preventDefault(),this.menu.select(a));break;case n.TAB:this.menu.active&&this.menu.select(a);break;case n.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(a),a.preventDefault());break;default:i=!0,this._searchTimeout(a)}},keypress:function(s){if(t){return t=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),void 0}if(!i){var a=e.ui.keyCode;switch(s.keyCode){case a.PAGE_UP:this._move("previousPage",s);break;case a.PAGE_DOWN:this._move("nextPage",s);break;case a.UP:this._keyEvent("previous",s);break;case a.DOWN:this._keyEvent("next",s)}}},input:function(e){return s?(s=!1,e.preventDefault(),void 0):(this._searchTimeout(e),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value(
vendor: 123,214 bytes, line 7
7)},blur:function(e){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(e),this._change(e),void 0)}}),this._initSource(),this.menu=e("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];e(t.target).closest(".ui-menu-item").length||this._delay(function(){var t=this;this.document.one("mousedown",function(s){s.target===t.element[0]||s.target===i||e.contains(i,s.target)||t.close()})})},menufocus:function(t,i){var s,a;return this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)}),void 0):(a=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:a})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(a.value),s=i.item.attr("aria-label")||a.value,s&&e.trim(s).length&&(this.liveRegion.children().hide(),e("<div>").text(s).appendTo(this.liveRegion)),void 0)},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=e("<span>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,i,s=this;e.isArray(this.options.source)?(t=this.options.source,this.source=function(i,s){s(e.ui.autocomplete.filter(t,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,a){s.xhr&&s.xhr.abort(),s.xhr=e.ajax({url:i,data:t,dataType:"json",success:function(e){a(e)},error:function(){a([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),i=this.menu.element.is(":visible"),s=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;(!t||t&&!i&&!s)&&(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):this._trigger("search",t)!==!1?this._search(e):void 0},_search:function(e){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return e.proxy(function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,function(t){return"string"==typeof t?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var s=this;e.each(i,function(e,i){s._renderItemData(t,i)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return e("<li>").text(i.label).appendTo(t)},_move:function(e,t){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[e](t),void 0):(this.search(null,t),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,t),t.preventDefault())}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var s=RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,function(e){return s.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),e("<div>").text(i).appendTo(this.liveRegion))}}),e.ui.autocomplete;var c,p="ui-button ui-widget ui-state-default ui-corner-all",f="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",m=function(){var t=e(this);setTimeout(function(){t.find(":ui-button").button("refresh")},1)},g=function(t){var i=t.name,s=t.form,a=e([]);return i&&(i=i.replace(/'/g,"\\'"),a=s?e(s).find("[name='"+i+"'][type=radio]"):e("[name='"+i+"'][type=radio]",t.ownerDocument).filter(function(){return !this.form})),a};e.widget("ui.button",{version:"1.11.4",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,m),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var t=this,i=this.options,s="checkbox"===this.type||"radio"===this.type,a=s?"":"ui-state-active";null===i.label&&(i.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(p).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){i.disabled||this===c&&e(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){i.disabled||e(this).removeClass(a)}).bind("click"+this.eventNamespace,function(e){i.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}),this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}}),s&&this.element.bind("change"+this.eventNamespace,function(){t.refresh()}),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){return i.disabled?!1:void 0}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(i.disabled){return !1}e(this).addClass("ui-state-active"),t.buttonElement.attr("aria-pressed","true");var s=t.element[0];g(s).not(s).map(function(){return e(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return i.disabled?!1:(e(this).addClass("ui-state-active"),c=this,t.document.one("mouseup",function(){c=null}),void 0)}).bind("mouseup"+this.eventNamespace,function(){return i.disabled?!1:(e(this).removeClass("ui-state-active"),void 0)}).bind("keydown"+this.eventNamespace,function(t){return i.disabled?!1:((t.keyCode===e.ui.keyCode.SPACE||t.keyCode===e.ui.keyCode.ENTER)&&e(this).addClass("ui-state-active"),void 0)}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){e(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(t){t.keyCode===e.ui.keyCode.SPACE&&e(this).click()})),this._setOption("disabled",i.disabled),this._resetButton()},_determineButtonType:function(){var e,t,i;this.type=this.element.is("[type=checkbox]")?"checkbox":this.element.is("[type=radio]")?"radio":this.element.is("input")?"input":"button","checkbox"===this.type||"radio"===this.type?(e=this.element.parents().last(),t="label[for='"+this.element.attr("id")+"']",this.buttonElement=e.find(t),this.buttonElement.length||(e=e.length?e.siblings():this.element.siblings(),this.buttonElement=e.filter(t),this.buttonElement.length||(this.buttonElement=e.find(t))),this.element.addClass("ui-helper-hidden-accessible"),i=this.element.is(":checked"),i&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(p+" ui-state-active "+f).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(e,t){return this._super(e,t),"disabled"===e?(this.widget().toggleClass("ui-state-disabled",!!t),this.element.prop("disabled",!!t),t&&("checkbox"===this.type||"radio"===this.type?this.buttonElement.removeClass("ui-state-focus"):this.buttonElement.removeClass("ui-state-focus ui-state-active")),void 0):(this._resetButton(),void 0)},refresh:function(){var t=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOption("disabled",t),"radio"===this.type?g(this.element[0]).each(function(){e(this).is(":checked")?e(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):e(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type){return this.options.label&&this.element.val(this.options.label),void 0}var t=this.buttonElement.removeClass(f),i=e("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(t.empty()).text(),s=this.options.icons,a=s.primary&&s.secondary,n=[];s.primary||s.secondary?(this.options.text&&n.push("ui-button-text-icon"+(a?"s":s.primary?"-primary":"-secondary")),s.primary&&t.prepend("<span class='ui-button-icon-primary ui-icon "+s.primary+"'></span>"),s.secondary&&t.append("<span class='ui-button-icon-secondary ui-icon "+s.secondary+"'></span>"),this.options.text||(n.push(a?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||t.attr("title",e.trim(i)))):n.push("ui-button-text-only"),t.addClass(n.join(" "))}}),e.widget("ui.buttonset",{version:"1.11.4",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(e,t){"disabled"===e&&this.buttons.button("option",e,t),this._super(e,t)},refresh:function(){var t="rtl"===this.element.css("direction"),i=this.element.find(this.options.items),s=i.filter(":ui-button");i.not(":ui-button").button(),s.button("refresh"),this.buttons=i.map(function(){return e(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(t?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(t?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return e(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}}),e.ui.button,e.extend(e.ui,{datepicker:{version:"1.11.4"}});var v;e.extend(a.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return o(this._defaults,e||{}),this},_attachDatepicker:function(t,i){var s,a,n;s=t.nodeName.toLowerCase(),a="div"===s||"span"===s,t.id||(this.uuid+=1,t.id="dp"+this.uuid),n=this._newInst(e(t),a),n.settings=e.extend({},i||{}),"input"===s?this._connectDatepicker(t,n):a&&this._inlineDatepicker(t,n)},_newInst:function(t,i){var s=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:s,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,i){var s=e(t);i.append=e([]),i.trigger=e([]),s.hasClass(this.markerClassName)||(this._attachments(s,i),s.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),e.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var s,a,n,r=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=e("<span class='"+this._appendClass+"'>"+r+"</span>"),t[o?"before":"after"](i.append)),t.unbind("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),s=this._get(i,"showOn"),("focus"===s||"both"===s)&&t.focus(this._showDatepicker),("button"===s||"both"===s)&&(a=this._get(i,"buttonText"),n=this._get(i,"buttonImage"),i.trigger=e(this._get(i,"buttonImageOnly")?e("<img/>").addClass(this._triggerClass).attr({src:n,alt:a,title:a}):e("<button type='button'></button>").addClass(this._triggerClass).html(n?e("<img/>").attr({src:n,alt:a,title:a}):a)),t[o?"before":"after"](i.trigger),i.trigger.click(function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,s,a,n=new Date(2009,11,20),r=this._get(e,"dateFormat");r.match(/[DM]/)&&(t=function(e){for(i=0,s=0,a=0;e.length>a;a++){e[a].length>i&&(i=e[a].length,s=a)}return s},n.setMonth(t(this._get(e,r.match(/MM/)?"monthNames":"monthNamesShort"))),n.setDate(t(this._get(e,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-n.getDay())),e.input.attr("size",this._formatDate(e,n).length)}},_inlineDatepicker:function(t,i){var s=e(t);s.hasClass(this.markerClassName)||(s.addClass(this.markerClassName).append(i.dpDiv),e.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,s,a,n){var r,h,l,u,d,c=this._dialogInst;return c||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),e("body").append(this._dialogInput),c=this._dialogInst=this._newInst(this._dialogInput,!1),c.settings={},e.data(this._dialogInput[0],"datepicker",c)),o(c.settings,a||{}),i=i&&i.constructor===Date?this._formatDate(c,i):i,this._dialogInput.val(i),this._pos=n?n.length?n:[n.pageX,n.pageY]:null,this._pos||(h=document.documentElement.clientWidth,l=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[h/2-100+u,l/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),c.settings.onSelect=s,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",c),this},_destroyDatepicker:function(t){var i,s=e(t),a=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===i?(a.append.remove(),a.trigger.remove(),s.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===i||"span"===i)&&s.removeClass(this.markerClassName).empty(),v===a&&(v=null))},_enableDatepicker:function(t){var i,s,a=e(t),n=e.data(t,"datepicker");a.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),"input"===i?(t.disabled=!1,n.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&(s=a.children("."+this._inlineClass),s.children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var i,s,a=e(t),n=e.data(t,"datepicker");a.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),"input"===i?(t.disabled=!0,n.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&(s=a.children("."+this._inlineClass),s.children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e){return !1}for(var t=0;this._disabledInputs.length>t;t++){if(this._disabledInputs[t]===e){return !0}}return !1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,i,s){var a,n,r,h,l=this._getInst(t);return 2===arguments.length&&"string"==typeof i?"defaults"===i?e.extend({},e.datepicker._defaults):l?"all"===i?e.extend({},l.settings):this._get(l,i):null:(a=i||{},"string"==typeof i&&(a={},a[i]=s),l&&(this._curInst===l&&this._hideDatepicker(),n=this._getDateDatepicker(t,!0),r=this._getMinMaxDate(l,"min"),h=this._getMinMaxDate(l,"max"),o(l.settings,a),null!==r&&void 0!==a.dateFormat&&void 0===a.minDate&&(l.settings.minDate=this._formatDate(l,r)),null!==h&&void 0!==a.dateFormat&&void 0===a.maxDate&&(l.settings.maxDate=this._formatDate(l,h)),"disabled" in a&&(a.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),l),this._autoSize(l),this._setDate(l,n),this._updateAlternate(l),this._updateDatepicker(l)),void 0)},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var i,s,a,n=e.datepicker._getInst(t.target),r=!0,o=n.dpDiv.is(".ui-datepicker-rtl");if(n._keyEvent=!0,e.datepicker._datepickerShowing){switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),r=!1;break;case 13:return a=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",n.dpDiv),a[0]&&e.datepicker._selectDay(t.target,n.selectedMonth,n.selectedYear,a[0]),i=e.datepicker._get(n,"onSelect"),i?(s=e.datepicker._formatDate(n),i.apply(n.input?n.input[0]:null,[s,n])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(n,"stepBigMonths"):-e.datepicker._get(n,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(n,"stepBigMonths"):+e.datepicker._get(n,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?1:-1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(n,"stepBigMonths"):-e.datepicker._get(n,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?-1:1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(n,"stepBigMonths"):+e.datepicker._get(n,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),r=t.ctrlKey||t.metaKey;break;default:r=!1}}else{36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):r=!1}r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,s,a=e.datepicker._getInst(t.target);return e.datepicker._get(a,"constrainInput")?(i=e.datepicker._possibleChars(e.datepicker._get(a,"dateFormat")),s=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||" ">s||!i||i.indexOf(s)>-1):void 0},_doKeyUp:function(t){var i,s=e.datepicker._getInst(t.target);if(s.input.val()!==s.lastVal){try{i=e.datepicker.parseDate(e.datepicker._get(s,"dateFormat"),s.input?s.input.val():null,e.datepicker._getFormatConfig(s)),i&&(e.datepicker._setDateFromField(s),e.datepicker._updateAlternate(s),e.datepicker._updateDatepicker(s))}catch(a){}}return !0},_showDatepicker:function(t){if(t=t.target||t,"input"!==t.nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),!e.datepicker._isDisabledDatepicker(t)&&e.datepicker._lastInput!==t){var i,a,n,r,h,l,u;i=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==i&&(e.datepicker._curInst.dpDiv.stop(!0,!0),i&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),a=e.datepicker._get(i,"beforeShow"),n=a?a.apply(t,[t,i]):{},n!==!1&&(o(i.settings,n),i.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(i),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),r=!1,e(t).parents().each(function(){return r|="fixed"===e(this).css("position"),!r}),h={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(i),h=e.datepicker._checkOffset(i,h,r),i.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":r?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"}),i.inline||(l=e.datepicker._get(i,"showAnim"),u=e.datepicker._get(i,"duration"),i.dpDiv.css("z-index",s(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[l]?i.dpDiv.show(l,e.datepicker._get(i,"showOptions"),u):i.dpDiv[l||"show"](l?u:null),e.datepicker._shouldFocusInput(i)&&i.input.focus(),e.datepicker._curInst=i))}},_updateDatepicker:function(t){this.maxRows=4,v=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var i,s=this._getNumberOfMonths(t),a=s[1],n=17,o=t.dpDiv.find("."+this._dayOverClass+" a");o.length>0&&r.apply(o.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),a>1&&t.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",n*a+"em"),t.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.focus(),t.yearshtml&&(i=t.yearshtml,setTimeout(function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),i=t.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,i,s){var a=t.dpDiv.outerWidth(),n=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,h=document.documentElement.clientWidth+(s?0:e(document).scrollLeft()),l=document.documentElement.clientHeight+(s?0:e(document).scrollTop());return i.left-=this._get(t,"isRTL")?a-r:0,i.left-=s&&i.left===t.input.offset().left?e(document).scrollLeft():0,i.top-=s&&i.top===t.input.offset().top+o?e(document).scrollTop():0,i.left-=Math.min(i.left,i.left+a>h&&h>a?Math.abs(i.left+a-h):0),i.top-=Math.min(i.top,i.top+n>l&&l>n?Math.abs(n+o):0),i},_findPos:function(t){for(var i,s=this._getInst(t),a=this._get(s,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.filters.hidden(t));){t=t[a?"previousSibling":"nextSibling"]}return i=e(t).offset(),[i.left,i.top]},_hideDatepicker:function(t){var i,s,a,n,r=this._curInst;!r||t&&r!==e.data(t,"datepicker")||this._datepickerShowing&&(i=this._get(r,"showAnim"),s=this._get(r,"duration"),a=function(){e.datepicker._tidyDialog(r)},e.effects&&(e.effects.effect[i]||e.effects[i])?r.dpDiv.hide(i,e.datepicker._get(r,"showOptions"),s,a):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?s:null,a),i||a(),this._datepickerShowing=!1,n=this._get(r,"onClose"),n&&n.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var i=e(t.target),s=e.datepicker._getInst(i[0]);(i[0].id!==e.datepicker._mainDivId&&0===i.parents("#"+e.datepicker._mainDivId).length&&!i.hasClass(e.datepicker.markerClassName)&&!i.closest("."+e.datepicker._triggerClass).length&&e.datepicker._datepickerShowing&&(!e.datepicker._inDialog||!e.blockUI)||i.hasClass(e.datepicker.markerClassName)&&e.datepicker._curInst!==s)&&e.datepicker._hideDatepicker()}},_adjustDate:function(t,i,s){var a=e(t),n=this._getInst(a[0]);this._isDisabledDatepicker(a[0])||(this._adjustInstDate(n,i+("M"===s?this._get(n,"showCurrentAtPos"):0),s),this._updateDatepicker(n))},_gotoToday:function(t){var i,s=e(t),a=this._getInst(s[0]);this._get(a,"gotoCurrent")&&a.currentDay?(a.selectedDay=a.currentDay,a.drawMonth=a.selectedMonth=a.currentMonth,a.drawYear=a.selectedYear=a.currentYear):(i=new Date,a.selectedDay=i.getDate(),a.drawMonth=a.selectedMonth=i.getMonth(),a.drawYear=a.selectedYear=i.getFullYear()),this._notifyChange(a),this._adjustDate(s)},_selectMonthYear:function(t,i,s){var a=e(t),n=this._getInst(a[0]);n["selected"+("M"===s?"Month":"Year")]=n["draw"+("M"===s?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(n),this._adjustDate(a)},_selectDay:function(t,i,s,a){var n,r=e(t);e(a).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||(n=this._getInst(r[0]),n.selectedDay=n.currentDay=e("a",a).html(),n.selectedMonth=n.currentMonth=i,n.selectedYear=n.currentYear=s,this._selectDate(t,this._formatDate(n,n.currentDay,n.currentMonth,n.currentYear)))},_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function(t,i){var s,a=e(t),n=this._getInst(a[0]);i=null!=i?i:this._formatDate(n),n.input&&n.input.val(i),this._updateAlternate(n),s=this._get(n,"onSelect"),s?s.apply(n.input?n.input[0]:null,[i,n]):n.input&&n.input.trigger("change"),n.inline?this._updateDatepicker(n):(this._hideDatepicker(),this._lastInput=n.input[0],"object"!=typeof n.input[0]&&n.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var i,s,a,n=this._get(t,"altField");n&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),s=this._getDate(t),a=this.formatDate(i,s,this._getFormatConfig(t)),e(n).each(function(){e(this).val(a)}))},noWeekends:function(e){var t=e.getDay();return[t>0&&6>t,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/86400000)/7)+1},parseDate:function(t,i,s){if(null==t||null==i){throw"Invalid arguments"}if(i="object"==typeof i?""+i:i+"",""===i){return null}var a,n,r,o,h=0,l=(s?s.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof l?l:(new Date).getFullYear()%100+parseInt(l,10),d=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,c=(s?s.dayNames:null)||this._defaults.dayNames,p=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,f=(s?s.monthNames:null)||this._defaults.monthNames,m=-1,g=-1,v=-1,y=-1,b=!1,_=function(e){var i=t.length>a+1&&t.charAt(a+1)===e;return i&&a++,i},x=function(e){var t=_(e),s="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,a="y"===e?s:1,n=RegExp("^\\d{"+a+","+s+"}"),r=i.substring(h).match(n);if(!r){throw"Missing number at position "+h}return h+=r[0].length,parseInt(r[0],10)},k=function(t,s,a){var n=-1,r=e.map(_(t)?a:s,function(e,t){return[[t,e]]}).sort(function(e,t){return -(e[1].length-t[1].length)});if(e.each(r,function(e,t){var s=t[1];return i.substr(h,s.length).toLowerCase()===s.toLowerCase()?(n=t[0],h+=s.length,!1):void 0}),-1!==n){return n+1}throw"Unknown name at position "+h},w=function(){if(i.charAt(h)!==t.charAt(a)){throw"Unexpected literal at position "+h}h++};for(a=0;t.length>a;a++){if(b){"'"!==t.charAt(a)||_("'")?w():b=!1}else{switch(t.charAt(a)){case"d":v=x("d");break;case"D":k("D",d,c);break;case"o":y=x("o");break;case"m":g=x("m");break;case"M":g=k("M",p,f);break;case"y":m=x("y");break;case"@":o=new Date(x("@")),m=o.getFullYear(),g=o.getMonth()+1,v=o.getDate();break;case"!":o=new Date((x("!")-this._ticksTo1970)/10000),m=o.getFullYear(),g=o.getMonth()+1,v=o.getDate();break;case"'":_("'")?w():b=!0;break;default:w()}}}if(i.length>h&&(r=i.substr(h),!/^\s+/.test(r))){throw"Extra/unparsed characters found in date: "+r}if(-1===m?m=(new Date).getFullYear():100>m&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u>=m?0:-100)),y>-1){for(g=1,v=y;;){if(n=this._getDaysInMonth(m,g-1),n>=v){break}g++,v-=n}}if(o=this._daylightSavingAdjust(new Date(m,g-1,v)),o.getFullYear()!==m||o.getMonth()+1!==g||o.getDate()!==v){throw"Invalid date"}return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:10000000*60*60*24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(e,t,i){if(!t){return""}var s,a=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,n=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,h=function(t){var i=e.length>s+1&&e.charAt(s+1)===t;return i&&s++,i},l=function(e,t,i){var s=""+t;if(h(e)){for(;i>s.length;){s="0"+s}}return s},u=function(e,t,i,s){return h(e)?s[t]:i[t]},d="",c=!1;if(t){for(s=0;e.length>s;s++){if(c){"'"!==e.charAt(s)||h("'")?d+=e.charAt(s):c=!1}else{switch(e.charAt(s)){case"d":d+=l("d",t.getDate(),2);break;case"D":d+=u("D",t.getDay(),a,n);break;case"o":d+=l("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/86400000),3);break;case"m":d+=l("m",t.getMonth()+1,2);break;case"M":d+=u("M",t.getMonth(),r,o);break;case"y":d+=h("y")?t.getFullYear():(10>t.getYear()%100?"0":"")+t.getYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=10000*t.getTime()+this._ticksTo1970;break;case"'":h("'")?d+="'":c=!0;break;default:d+=e.charAt(s)}}}}return d},_possibleChars:function(e){var t,i="",s=!1,a=function(i){var s=e.length>t+1&&e.charAt(t+1)===i;return s&&t++,s};for(t=0;e.length>t;t++){if(s){"'"!==e.charAt(t)||a("'")?i+=e.charAt(t):s=!1}else{switch(e.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":a("'")?i+="'":s=!0;break;default:i+=e.charAt(t)}}}return i},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),s=e.lastVal=e.input?e.input.val():null,a=this._getDefaultDate(e),n=a,r=this._getFormatConfig(e);try{n=this.parseDate(i,s,r)||a}catch(o){s=t?"":s}e.selectedDay=n.getDate(),e.drawMonth=e.selectedMonth=n.getMonth(),e.drawYear=e.selectedYear=n.getFullYear(),e.currentDay=s?n.getDate():0,e.currentMonth=s?n.getMonth():0,e.currentYear=s?n.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,s){var a=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},n=function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(s){}for(var a=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,n=a.getFullYear(),r=a.getMonth(),o=a.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=h.exec(i);l;){switch(l[2]||"d"){case"d":case"D":o+=parseInt(l[1],10);break;case"w":case"W":o+=7*parseInt(l[1],10);break;case"m":case"M":r+=parseInt(l[1],10),o=Math.min(o,e.datepicker._getDaysInMonth(n,r));break;case"y":case"Y":n+=parseInt(l[1],10),o=Math.min(o,e.datepicker._getDaysInMonth(n,r))}l=h.exec(i)}return new Date(n,r,o)},r=null==i||""===i?s:"string"==typeof i?n(i):"number"==typeof i?isNaN(i)?s:a(i):new Date(i.getTime());return r=r&&"Invalid Date"==""+r?s:r,r&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var s=!t,a=e.selectedMonth,n=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),a===e.selectedMonth&&n===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(s?"":this._formatDate(e))},_getDate:function(e){var t=!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return t},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),s="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(s,-i,"M")},next:function(){e.datepicker._adjustDate(s,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(s)},selectDay:function(){return e.datepicker._selectDay(s,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(s,this,"Y"),!1}};e(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,i,s,a,n,r,o,h,l,u,d,c,p,f,m,g,v,y,b,_,x,k,w,T,D,S,M,N,C,A,I,P,F,H,z,j,E,O,L,W=new Date,R=this._daylightSavingAdjust(new Date(W.getFullYear(),W.getMonth(),W.getDate())),Y=this._get(e,"isRTL"),J=this._get(e,"showButtonPanel"),B=this._get(e,"hideIfNoPrevNext"),K=this._get(e,"navigationAsDateFormat"),V=this._getNumberOfMonths(e),q=this._get(e,"showCurrentAtPos"),U=this._get(e,"stepMonths"),G=1!==V[0]||1!==V[1],Q=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(e,"min"),$=this._getMinMaxDate(e,"max"),Z=e.drawMonth-q,et=e.drawYear;if(0>Z&&(Z+=12,et--),$){for(t=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth()-V[0]*V[1]+1,$.getDate())),t=X&&X>t?X:t;this._daylightSavingAdjust(new Date(et,Z,1))>t;){Z--,0>Z&&(Z=11,et--)}}for(e.drawMonth=Z,e.drawYear=et,i=this._get(e,"prevText"),i=K?this.formatDate(i,this._daylightSavingAdjust(new Date(et,Z-U,1)),this._getFormatConfig(e)):i,s=this._canAdjustMonth(e,-1,et,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>":B?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>",a=this._get(e,"nextText"),a=K?this.formatDate(a,this._daylightSavingAdjust(new Date(et,Z+U,1)),this._getFormatConfig(e)):a,n=this._canAdjustMonth(e,1,et,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+a+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+a+"</span></a>":B?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+a+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+a+"</span></a>",r=this._get(e,"currentText"),o=this._get(e,"gotoCurrent")&&e.currentDay?Q:R,r=K?this.formatDate(r,o,this._getFormatConfig(e)):r,h=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",l=J?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Y?h:"")+(this._isInRange(e,o)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+r+"</button>":"")+(Y?"":h)+"</div>":"",u=parseInt(this._get(e,"firstDay"),10),u=isNaN(u)?0:u,d=this._get(e,"showWeek"),c=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),f=this._get(e,"monthNames"),m=this._get(e,"monthNamesShort"),g=this._get(e,"beforeShowDay"),v=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),b=this._getDefaultDate(e),_="",k=0;V[0]>k;k++){for(w="",this.maxRows=4,T=0;V[1]>T;T++){if(D=this._daylightSavingAdjust(new Date(et,Z,e.selectedDay)),S=" ui-corner-all",M="",G){if(M+="<div class='ui-datepicker-group",V[1]>1){switch(T){case 0:M+=" ui-datepicker-group-first",S=" ui-corner-"+(Y?"right":"left");break;case V[1]-1:M+=" ui-datepicker-group-last",S=" ui-corner-"+(Y?"left":"right");break;default:M+=" ui-datepicker-group-middle",S=""}}M+="'>"}for(M+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+S+"'>"+(/all|left/.test(S)&&0===k?Y?n:s:"")+(/all|right/.test(S)&&0===k?Y?s:n:"")+this._generateMonthYearHeader(e,Z,et,X,$,k>0||T>0,f,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",N=d?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",x=0;7>x;x++){C=(x+u)%7,N+="<th scope='col'"+((x+u+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+c[C]+"'>"+p[C]+"</span></th>"}for(M+=N+"</tr></thead><tbody>",A=this._getDaysInMonth(et,Z),et===e.selectedYear&&Z===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,A)),I=(this._getFirstDayOfMonth(et,Z)-u+7)%7,P=Math.ceil((I+A)/7),F=G?this.maxRows>P?this.maxRows:P:P,this.maxRows=F,H=this._daylightSavingAdjust(new Date(et,Z,1-I)),z=0;F>z;z++){for(M+="<tr>",j=d?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(H)+"</td>":"",x=0;7>x;x++){E=g?g.apply(e.input?e.input[0]:null,[H]):[!0,""],O=H.getMonth()!==Z,L=O&&!y||!E[0]||X&&X>H||$&&H>$,j+="<td class='"+((x+u+6)%7>=5?" ui-datepicker-week-end":"")+(O?" ui-datepicker-other-month":"")+(H.getTime()===D.getTime()&&Z===e.selectedMonth&&e._keyEvent||b.getTime()===H.getTime()&&b.getTime()===D.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(O&&!v?"":" "+E[1]+(H.getTime()===Q.getTime()?" "+this._currentClass:"")+(H.getTime()===R.getTime()?" ui-datepicker-today":""))+"'"+(O&&!v||!E[2]?"":" title='"+E[2].replace(/'/g,"'")+"'")+(L?"":" data-handler='selectDay' data-event='click' data-month='"+H.getMonth()+"' data-year='"+H.getFullYear()+"'")+">"+(O&&!v?" ":L?"<span class='ui-state-default'>"+H.getDate()+"</span>":"<a class='ui-state-default"+(H.getTime()===R.getTime()?" ui-state-highlight":"")+(H.getTime()===Q.getTime()?" ui-state-active":"")+(O?" ui-priority-secondary":"")+"' href='#'>"+H.getDate()+"</a>")+"</td>",H.setDate(H.getDate()+1),H=this._daylightSavingAdjust(H)}M+=j+"</tr>"}Z++,Z>11&&(Z=0,et++),M+="</tbody></table>"+(G?"</div>"+(V[0]>0&&T===V[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),w+=M}_+=w}return _+=l,e._keyEvent=!1,_},_generateMonthYearHeader:function(e,t,i,s,a,n,r,o){var h,l,u,d,c,p,f,m,g=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",_="";if(n||!g){_+="<span class='ui-datepicker-month'>"+r[t]+"</span>"}else{for(h=s&&s.getFullYear()===i,l=a&&a.getFullYear()===i,_+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",u=0;12>u;u++){(!h||u>=s.getMonth())&&(!l||a.getMonth()>=u)&&(_+="<option value='"+u+"'"+(u===t?" selected='selected'":"")+">"+o[u]+"</option>")}_+="</select>"}if(y||(b+=_+(!n&&g&&v?"":" ")),!e.yearshtml){if(e.yearshtml="",n||!v){b+="<span class='ui-datepicker-year'>"+i+"</span>"}else{for(d=this._get(e,"yearRange").split(":"),c=(new Date).getFullYear(),p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?c+parseInt(e,10):parseInt(e,10);return isNaN(t)?c:t},f=p(d[0]),m=Math.max(f,p(d[1]||"")),f=s?Math.max(f,s.getFullYear()):f,m=a?Math.min(m,a.getFullYear()):m,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";m>=f;f++){e.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>"}e.yearshtml+="</select>",b+=e.yearshtml,e.yearshtml=null}}return b+=this._get(e,"yearSuffix"),y&&(b+=(!n&&g&&v?"":" ")+_),b+="</div>"},_adjustInstDate:function(e,t,i){var s=e.drawYear+("Y"===i?t:0),a=e.drawMonth+("M"===i?t:0),n=Math.min(e.selectedDay,this._getDaysInMonth(s,a))+("D"===i?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(s,a,n)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),a=i&&i>t?i:t;return s&&a>s?s:a},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,s){var a=this._getNumberOfMonths(e),n=this._daylightSavingAdjust(new Date(i,s+(0>t?t:a[0]*a[1]),1));return 0>t&&n.setDate(this._getDaysInMonth(n.getFullYear(),n.getMonth())),this._isInRange(e,n)},_isInRange:function(e,t){var i,s,a=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),r=null,o=null,h=this._get(e,"yearRange");return h&&(i=h.split(":"),s=(new Date).getFullYear(),r=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=s),i[1].match(/[+\-].*/)&&(o+=s)),(!a||t.getTime()>=a.getTime())&&(!n||t.getTime()<=n.getTime())&&(!r||t.getFullYear()>=r)&&(!o||o>=t.getFullYear())},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,s){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var a=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(s,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),a,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length){return this}e.datepicker.initialized||(e(document).mousedown(e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i))},e.datepicker=new a,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.11.4",e.datepicker,e.widget("ui.dialog",{version:"1.11.4",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"Close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var i=e(this).css(t).offset().top;0>i&&e(this).css("top",t.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&e.fn.draggable&&this._makeDraggable(),this.options.resizable&&e.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?e(t):this.document.find(t||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),e=t.parent.children().eq(t.index),e.length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:e.noop,enable:e.noop,close:function(t){var i,s=this;if(this._isOpen&&this._trigger("beforeClose",t)!==!1){if(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),!this.opener.filter(":focusable").focus().length){try{i=this.document[0].activeElement,i&&"body"!==i.nodeName.toLowerCase()&&e(i).blur()}catch(a){}}this._hide(this.uiDialog,this.options.hide,function(){s._trigger("close",t)})}},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,i){var s=!1,a=this.uiDialog.siblings(".ui-front:visible").map(function(){return +e(this).css("z-index")}).get(),n=Math.max.apply(null,a);return n>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",n+1),s=!0),s&&!i&&this._trigger("focus",t),s},open:function(){var t=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),void 0):(this._isOpen=!0,this.opener=e(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"),void 0)},_focusTabbable:function(){var e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).focus()},_keepFocus:function(t){function i(){var t=this.document[0].activeElement,i=this.uiDialog[0]===t||e.contains(this.uiDialog[0],t);i||this._focusTabbable()}t.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=e("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE){return t.preventDefault(),this.close(t),void 0}if(t.keyCode===e.ui.keyCode.TAB&&!t.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),s=i.filter(":first"),a=i.filter(":last");t.target!==a[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==s[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){a.focus()}),t.preventDefault()):(this._delay(function(){s.focus()}),t.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=e("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(t){e(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=e("<button type='button'></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault(),this.close(e)}}),t=e("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(t),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(e){this.options.title||e.html(" "),e.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=e("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=e("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var t=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),e.isEmptyObject(i)||e.isArray(i)&&!i.length?(this.uiDialog.removeClass("ui-dialog-buttons"),void 0):(e.each(i,function(i,s){var a,n;s=e.isFunction(s)?{click:s,text:i}:s,s=e.extend({type:"button"},s),a=s.click,s.click=function(){a.apply(t.element[0],arguments)},n={icons:s.icons,text:s.showText},delete s.icons,delete s.showText,e("<button></button>",s).button(n).appendTo(t.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),void 0)},_makeDraggable:function(){function t(e){return{position:e.position,offset:e.offset}}var i=this,s=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(s,a){e(this).addClass("ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",s,t(a))},drag:function(e,s){i._trigger("drag",e,t(s))},stop:function(a,n){var r=n.offset.left-i.document.scrollLeft(),o=n.offset.top-i.document.scrollTop();s.position={my:"left top",at:"left"+(r>=0?"+":"")+r+" top"+(o>=0?"+":"")+o,of:i.window},e(this).removeClass("ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",a,t(n))}})},_makeResizable:function(){function t(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}var i=this,s=this.options,a=s.resizable,n=this.uiDialog.css("position"),r="string"==typeof a?a:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:s.maxWidth,maxHeight:s.maxHeight,minWidth:s.minWidth,minHeight:this._minHeight(),handles:r,start:function(s,a){e(this).addClass("ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",s,t(a))},resize:function(e,s){i._trigger("resize",e,t(s))},stop:function(a,n){var r=i.uiDialog.offset(),o=r.left-i.document.scrollLeft(),h=r.top-i.document.scrollTop();s.height=i.uiDialog.height(),s.width=i.uiDialog.width(),s.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" top"+(h>=0?"+":"")+h,of:i.window},e(this).removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",a,t(n))}}).css("position",n)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=e(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),i=e.inArray(this,t);-1!==i&&t.splice(i,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-instances",e)),e},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(t){var i=this,s=!1,a={};e.each(t,function(e,t){i._setOption(e,t),e in i.sizeRelatedOptions&&(s=!0),e in i.resizableRelatedOptions&&(a[e]=t)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",a)},_setOption:function(e,t){var i,s,a=this.uiDialog;"dialogClass"===e&&a.removeClass(this.options.dialogClass).addClass(t),"disabled"!==e&&(this._super(e,t),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:""+t}),"draggable"===e&&(i=a.is(":data(ui-draggable)"),i&&!t&&a.draggable("destroy"),!i&&t&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&(s=a.is(":data(ui-resizable)"),s&&!t&&a.resizable("destroy"),s&&"string"==typeof t&&a.resizable("option","handles",t),s||t===!1||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,t,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),e=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),t=Math.max(0,s.minHeight-e),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-e):"none","auto"===s.height?this.element.css({minHeight:t,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=e(this);return e("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return e(t.target).closest(".ui-dialog").length?!0:!!e(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay(function(){t=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(e){t||this._allowInteraction(e)||(e.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=e("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):this.document.unbind("focusin").removeData("ui-dialog-overlays"),this.overlay.remove(),this.overlay=null}}}),e.widget("ui.progressbar",{version:"1.11.4",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=e("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(e){return void 0===e?this.options.value:(this.options.value=this._constrainedValue(e),this._refreshValue(),void 0)},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=e===!1,"number"!=typeof e&&(e=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(e,t){"max"===e&&(t=Math.max(this.min,t)),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this._super(e,t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(i.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=e("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),e.widget("ui.selectmenu",{version:"1.11.4",defaultElement:"<select>",options:{appendTo:null,disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:null,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this.options.disabled&&this.disable()},_drawButton:function(){var t=this;this.label=e("label[for='"+this.ids.element+"']").attr("for",this.ids.button),this._on(this.label,{click:function(e){this.button.focus(),e.preventDefault()}}),this.element.hide(),this.button=e("<span>",{"class":"ui-selectmenu-button ui-widget ui-state-default ui-corner-all",tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true"}).insertAfter(this.element),e("<span>",{"class":"ui-icon "+this.options.icons.button}).prependTo(this.button),this.buttonText=e("<span>",{"class":"ui-selectmenu-text"}).appendTo(this.button),this._setText(this.buttonText,this.element.find("option:selected").text()),this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){t.menuItems||t._refreshMenu()}),this._hoverable(this.button),this._focusable(this.button)},_drawMenu:function(){var t=this;this.menu=e("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=e("<div>",{"class":"ui-selectmenu-menu ui-front"}).append(this.menu).appendTo(this._appendTo()),this.menuInstance=this.menu.menu({role:"listbox",select:function(e,i){e.preventDefault(),t._setSelection(),t._select(i.item.data("ui-selectmenu-item"),e)},focus:function(e,i){var s=i.item.data("ui-selectmenu-item");null!=t.focusIndex&&s.index!==t.focusIndex&&(t._trigger("focus",e,{item:s}),t.isOpen||t._select(s,e)),t.focusIndex=s.index,t.button.attr("aria-activedescendant",t.menuItems.eq(s.index).attr("id"))}}).menu("instance"),this.menu.addClass("ui-corner-bottom").removeClass("ui-corner-all"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return !1},this.menuInstance._isDivider=function(){return !1}},refresh:function(){this._refreshMenu(),this._setText(this.buttonText,this._getSelectedItem().text()),this.options.width||this._resizeButton()},_refreshMenu:function(){this.menu.empty();var e,t=this.element.find("option");t.length&&(this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup"),e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(e){this.options.disabled||(this.menuItems?(this.menu.find(".ui-state-focus").removeClass("ui-state-focus"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",e))},_position:function(){this.menuWrap.position(e.extend({of:this.button},this.options.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",e))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderMenu:function(t,i){var s=this,a="";e.each(i,function(i,n){n.optgroup!==a&&(e("<li>",{"class":"ui-selectmenu-optgroup ui-menu-divider"+(n.element.parent("optgroup").prop("disabled")?" ui-state-disabled":""),text:n.optgroup}).appendTo(t),a=n.optgroup),s._renderItemData(t,n)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-selectmenu-item",t)},_renderItem:function(t,i){var s=e("<li>");return i.disabled&&s.addClass("ui-state-disabled"),this._setText(s,i.label),s.appendTo(t)},_setText:function(e,t){t?e.text(t):e.html(" ")},_move:function(e,t){var i,s,a=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex):(i=this.menuItems.eq(this.element[0].selectedIndex),a+=":not(.ui-state-disabled)"),s="first"===e||"last"===e?i["first"===e?"prevAll":"nextAll"](a).eq(-1):i[e+"All"](a).eq(0),s.length&&this.menuInstance.focus(t,s)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex)},_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;this.range&&(window.getSelection?(e=window.getSelection(),e.removeAllRanges(),e.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){this.isOpen&&(e(t.target).closest(".ui-selectmenu-menu, #"+this.ids.button).length||this.close(t))}},_buttonEvents:{mousedown:function(){var e;window.getSelection?(e=window.getSelection(),e.rangeCount&&(this.range=e.getRangeAt(0))):this.range=document.selection.createRange()},click:function(e){this._setSelection(),this._toggle(e)},keydown:function(t){var i=!0;switch(t.keyCode){case e.ui.keyCode.TAB:case e.ui.keyCode.ESCAPE:this.close(t),i=!1;break;case e.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case e.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case e.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case e.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case e.ui.keyCode.LEFT:this._move("prev",t);break;case e.ui.keyCode.RIGHT:this._move("next",t);break;case e.ui.keyCode.HOME:case e.ui.keyCode.PAGE_UP:this._move("first",t);break;case e.ui.keyCode.END:case e.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),i=!1}i&&t.preventDefault()}},_selectFocusedItem:function(e){var t=this.menuItems.eq(this.focusIndex);t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),e)},_select:function(e,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this._setText(this.buttonText,e.label),this._setAria(e),this._trigger("select",t,{item:e}),e.index!==i&&this._trigger("change",t,{item:e}),this.close(t)},_setAria:function(e){var t=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(e,t){"icons"===e&&this.button.find("span.ui-icon").removeClass(this.options.icons.button).addClass(t.button),this._super(e,t),"appendTo"===e&&this.menuWrap.appendTo(this._appendTo()),"disabled"===e&&(this.menuInstance.option("disabled",t),this.button.toggleClass("ui-state-disabled",t).attr("aria-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)),"width"===e&&this._resizeButton()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front")),t.length||(t=this.document[0].body),t},_toggleAttr:function(){this.button.toggleClass("ui-corner-top",this.isOpen).toggleClass("ui-corner-all",!this.isOpen).attr("aria-expanded",this.isOpen),this.menuWrap.toggleClass("ui-selectmenu-open",this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;e||(e=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(e)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){return{disabled:this.element.prop("disabled")}},_parseOptions:function(t){var i=[];t.each(function(t,s){var a=e(s),n=a.parent("optgroup");i.push({element:a,index:t,value:a.val(),label:a.text(),optgroup:n.attr("label")||"",disabled:n.prop("disabled")||a.prop("disabled")})}),this.items=i},_destroy:function(){this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.label.attr("for",this.ids.element)}}),e.widget("ui.slider",e.ui.mouse,{version:"1.11.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,i,s=this.options,a=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),n="<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>",r=[];for(i=s.values&&s.values.length||1,a.length>i&&(a.slice(i).remove(),a=a.slice(0,i)),t=a.length;i>t;t++){r.push(n)}this.handles=a.add(e(r.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(t){e(this).data("ui-slider-handle-index",t)})},_createRange:function(){var t=this.options,i="";t.range?(t.range===!0&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:e.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=e("<div></div>").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===t.range||"max"===t.range?" ui-slider-range-"+t.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(t){var i,s,a,n,r,o,h,l,u=this,d=this.options;return d.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:t.pageX,y:t.pageY},s=this._normValueFromMouse(i),a=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var i=Math.abs(s-u.values(t));(a>i||a===i&&(t===u._lastChangedValue||u.values(t)===d.min))&&(a=i,n=e(this),r=t)}),o=this._start(t,r),o===!1?!1:(this._mouseSliding=!0,this._handleIndex=r,n.addClass("ui-state-active").focus(),h=n.offset(),l=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:t.pageX-h.left-n.width()/2,top:t.pageY-h.top-n.height()/2-(parseInt(n.css("borderTopWidth"),10)||0)-(parseInt(n.css("borderBottomWidth"),10)||0)+(parseInt(n.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,r,s),this._animateOff=!0,!0))},_mouseStart:function(){return !0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,i),!1},_mouseStop:function(e){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,i,s,a,n;return"horizontal"===this.orientation?(t=this.elementSize.width,i=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,i=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),s=i/t,s>1&&(s=1),0>s&&(s=0),"vertical"===this.orientation&&(s=1-s),a=this._valueMax()-this._valueMin(),n=this._valueMin()+s*a,this._trimAlignValue(n)},_start:function(e,t){var i={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("start",e,i)},_slide:function(e,t,i){var s,a,n;this.options.values&&this.options.values.length?(s=this.values(t?0:1),2===this.options.values.length&&this.options.range===!0&&(0===t&&i>s||1===t&&s>i)&&(i=s),i!==this.values(t)&&(a=this.values(),a[t]=i,n=this._trigger("slide",e,{handle:this.handles[t],value:i,values:a}),s=this.values(t?0:1),n!==!1&&this.values(t,i))):i!==this.value()&&(n=this._trigger("slide",e,{handle:this.handles[t],value:i}),n!==!1&&this.value(i))},_stop:function(e,t){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("stop",e,i)},_change:function(e,t){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._lastChangedValue=t,this._trigger("change",e,i)}},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(t,i){var s,a,n;if(arguments.length>1){return this.options.values[t]=this._trimAlignValue(i),this._refreshValue(),this._change(null,t),void 0}if(!arguments.length){return this._values()}if(!e.isArray(arguments[0])){return this.options.values&&this.options.values.length?this._values(t):this.value()}for(s=this.options.values,a=arguments[0],n=0;s.length>n;n+=1){s[n]=this._trimAlignValue(a[n]),this._change(null,n)}this._refreshValue()},_setOption:function(t,i){var s,a=0;switch("range"===t&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),e.isArray(this.options.values)&&(a=this.options.values.length),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!i),this._super(t,i),t){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue(),this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),s=0;a>s;s+=1){this._change(null,s)}this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e)},_values:function(e){var t,i,s;if(arguments.length){return t=this.options.values[e],t=this._trimAlignValue(t)}if(this.options.values&&this.options.values.length){for(i=this.options.values.slice(),s=0;i.length>s;s+=1){i[s]=this._trimAlignValue(i[s])}return i}return[]},_trimAlignValue:function(e){if(this._valueMin()>=e){return this._valueMin()}if(e>=this._valueMax()){return this._valueMax()}var t=this.options.step>0?this.options.step:1,i=(e-this._valueMin())%t,s=e-i;return 2*Math.abs(i)>=t&&(s+=i>0?t:-t),parseFloat(s.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step,s=Math.floor(+(e-t).toFixed(this._precision())/i)*i;e=s+t,this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=""+e,i=t.indexOf(".");return -1===i?0:t.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshValue:function(){var t,i,s,a,n,r=this.options.range,o=this.options,h=this,l=this._animateOff?!1:o.animate,u={};this.options.values&&this.options.values.length?this.handles.each(function(s){i=100*((h.values(s)-h._valueMin())/(h._valueMax()-h._valueMin())),u["horizontal"===h.orientation?"left":"bottom"]=i+"%",e(this).stop(1,1)[l?"animate":"css"](u,o.animate),h.options.range===!0&&("horizontal"===h.orientation?(0===s&&h.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},o.animate),1===s&&h.range[l?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:o.animate})):(0===s&&h.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},o.animate),1===s&&h.range[l?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:o.animate}))),t=i}):(s=this.value(),a=this._valueMin(),n=this._valueMax(),i=n!==a?100*((s-a)/(n-a)):0,u["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](u,o.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},o.animate),"max"===r&&"horizontal"===this.orientation&&this.range[l?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:o.animate}),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},o.animate),"max"===r&&"vertical"===this.orientation&&this.range[l?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:o.animate}))},_handleEvents:{keydown:function(t){var i,s,a,n,r=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,e(t.target).addClass("ui-state-active"),i=this._start(t,r),i===!1)){return}}switch(n=this.options.step,s=a=this.options.values&&this.options.values.length?this.values(r):this.value(),t.keyCode){case e.ui.keyCode.HOME:a=this._valueMin();break;case e.ui.keyCode.END:a=this._valueMax();break;case e.ui.keyCode.PAGE_UP:a=this._trimAlignValue(s+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:a=this._trimAlignValue(s-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(s===this._valueMax()){return}a=this._trimAlignValue(s+n);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(s===this._valueMin()){return}a=this._trimAlignValue(s-n)}this._slide(t,r,a)},keyup:function(t){var i=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),e(t.target).removeClass("ui-state-active"))}}}),e.widget("ui.spinner",{version:"1.11.4",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t={},i=this.element;return e.each(["min","max","step"],function(e,s){var a=i.attr(s);void 0!==a&&a.length&&(t[s]=a)}),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e),void 0)},mousewheel:function(e,t){if(t){if(!this.spinning&&!this._start(e)){return !1}this._spin((t>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()}},"mousedown .ui-spinner-button":function(t){function i(){var e=this.element[0]===this.document[0].activeElement;e||(this.element.focus(),this.previous=s,this._delay(function(){this.previous=s}))}var s;s=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(t)!==!1&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){return e(t.currentTarget).hasClass("ui-state-active")?this._start(t)===!1?!1:(this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var e=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=e.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(0.5*e.height())&&e.height()>0&&e.height(e.height()),this.options.disabled&&this.disable()},_keydown:function(t){var i=this.options,s=e.ui.keyCode;switch(t.keyCode){case s.UP:return this._repeat(null,1,t),!0;case s.DOWN:return this._repeat(null,-1,t),!0;case s.PAGE_UP:return this._repeat(null,i.page,t),!0;case s.PAGE_DOWN:return this._repeat(null,-i.page,t),!0}return !1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>▲</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>▼</span></a>"},_start:function(e){return this.spinning||this._trigger("start",e)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(e,t,i){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,i)},e),this._spin(t*this.options.step,i)},_spin:function(e,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+e*this._increment(this.counter)),this.spinning&&this._trigger("spin",t,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?e.isFunction(i)?i(t):Math.floor(t*t*t/50000-t*t/500+17*t/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=""+e,i=t.indexOf(".");return -1===i?0:t.length-i-1},_adjustValue:function(e){var t,i,s=this.options;return t=null!==s.min?s.min:0,i=e-t,i=Math.round(i/s.step)*s.step,e=t+i,e=parseFloat(e.toFixed(this._precision())),null!==s.max&&e>s.max?s.max:null!==s.min&&s.min>e?s.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){if("culture"===e||"numberFormat"===e){var i=this._parse(this.element.val());return this.options[e]=t,this.element.val(this._format(i)),void 0}("max"===e||"min"===e||"step"===e)&&"string"==typeof t&&(t=this._parse(t)),"icons"===e&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(t.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(t.down)),this._super(e,t),"disabled"===e&&(this.widget().toggleClass("ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable"))},_setOptions:h(function(e){this._super(e)}),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return null===e?!1:e===this._adjustValue(e)},_value:function(e,t){var i;""!==e&&(i=this._parse(e),null!==i&&(t||(i=this._adjustValue(i)),e=this._format(i))),this.element.val(e),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:h(function(e){this._stepUp(e)}),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:h(function(e){this._stepDown(e)}),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:h(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:h(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){return arguments.length?(h(this._value).call(this,e),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),e.widget("ui.tabs",{version:"1.11.4",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var e=/#.*$/;return function(t){var i,s;t=t.cloneNode(!1),i=t.href.replace(e,""),s=location.href.replace(e,"");try{i=decodeURIComponent(i)}catch(a){}try{s=decodeURIComponent(s)}catch(a){}return t.hash.length>1&&i===s}}(),_create:function(){var t=this,i=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible),this._processTabs(),i.active=this._initialActive(),e.isArray(i.disabled)&&(i.disabled=e.unique(i.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(i.active):e(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,s=location.hash.substring(1);return null===t&&(s&&this.tabs.each(function(i,a){return e(a).attr("aria-controls")===s?(t=i,!1):void 0}),null===t&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===t||-1===t)&&(t=this.tabs.length?0:!1)),t!==!1&&(t=this.tabs.index(this.tabs.eq(t)),-1===t&&(t=i?!1:0)),!i&&t===!1&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var i=e(this.document[0].activeElement).closest("li"),s=this.tabs.index(i),a=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:s++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:a=!1,s--;break;case e.ui.keyCode.END:s=this.anchors.length-1;break;case e.ui.keyCode.HOME:s=0;break;case e.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),this._activate(s),void 0;case e.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),this._activate(s===this.options.active?!1:s),void 0;default:return}t.preventDefault(),clearTimeout(this.activating),s=this._focusNextTab(s,a),t.ctrlKey||t.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(s).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",s)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.focus())},_handlePageNav:function(t){return t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){function s(){return t>a&&(t=0),0>t&&(t=a),t}for(var a=this.tabs.length-1;-1!==e.inArray(s(),this.options.disabled);){t=i?t+1:t-1}return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).focus(),e},_setOption:function(e,t){return"active"===e?(this._activate(t),void 0):"disabled"===e?(this._setupDisabled(t),void 0):(this._super(e,t),"collapsible"===e&&(this.element.toggleClass("ui-tabs-collapsible",t),t||this.options.active!==!1||this._activate(0)),"event"===e&&this._setupEvents(t),"heightStyle"===e&&this._setupHeightStyle(t),void 0)},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=e.map(i.filter(".ui-state-disabled"),function(e){return i.index(e)}),this._processTabs(),t.active!==!1&&this.anchors.length?this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=e()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,i=this.tabs,s=this.anchors,a=this.panels;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist").delegate("> li","mousedown"+this.eventNamespace,function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){e(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return e("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=e(),this.anchors.each(function(i,s){var a,n,r,o=e(s).uniqueId().attr("id"),h=e(s).closest("li"),l=h.attr("aria-controls");t._isLocal(s)?(a=s.hash,r=a.substring(1),n=t.element.find(t._sanitizeSelector(a))):(r=h.attr("aria-controls")||e({}).uniqueId()[0].id,a="#"+r,n=t.element.find(a),n.length||(n=t._createPanel(r),n.insertAfter(t.panels[i-1]||t.tablist)),n.attr("aria-live","polite")),n.length&&(t.panels=t.panels.add(n)),l&&h.data("ui-tabs-aria-controls",l),h.attr({"aria-controls":r,"aria-labelledby":o}),n.attr("aria-labelledby",o)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel"),i&&(this._off(i.not(this.tabs)),this._off(s.not(this.anchors)),this._off(a.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(t){return e("<div>").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(t){e.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var i,s=0;i=this.tabs[s];s++){t===!0||-1!==e.inArray(s,t)?e(i).addClass("ui-state-disabled").attr("aria-disabled","true"):e(i).removeClass("ui-state-disabled").removeAttr("aria-disabled")}this.options.disabled=t},_setupEvents:function(t){var i={};t&&e.each(t.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(e){e.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,s=this.element.parent();"fill"===t?(i=s.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=e(this),s=t.css("position");"absolute"!==s&&"fixed"!==s&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=e(this).outerHeight(!0)}),this.panels.each(function(){e(this).height(Math.max(0,i-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,e(this).height("").height())}).height(i))},_eventHandler:function(t){var i=this.options,s=this.active,a=e(t.currentTarget),n=a.closest("li"),r=n[0]===s[0],o=r&&i.collapsible,h=o?e():this._getPanelForTab(n),l=s.length?this._getPanelForTab(s):e(),u={oldTab:s,oldPanel:l,newTab:o?e():n,newPanel:h};t.preventDefault(),n.hasClass("ui-state-disabled")||n.hasClass("ui-tabs-loading")||this.running||r&&!i.collapsible||this._trigger("beforeActivate",t,u)===!1||(i.active=o?!1:this.tabs.index(n),this.active=r?e():n,this.xhr&&this.xhr.abort(),l.length||h.length||e.error("jQuery UI Tabs: Mismatching fragment identifier."),h.length&&this.load(this.tabs.index(n),t),this._toggle(t,u))},_toggle:function(t,i){function s(){n.running=!1,n._trigger("activate",t,i)}function a(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),r.length&&n.options.show?n._show(r,n.options.show,s):(r.show(),s())}var n=this,r=i.newPanel,o=i.oldPanel;this.running=!0,o.length&&this.options.hide?this._hide(o,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),a()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),o.hide(),a()),o.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),r.length&&o.length?i.oldTab.attr("tabIndex",-1):r.length&&this.tabs.filter(function(){return 0===e(this).attr("tabIndex")}).attr("tabIndex",-1),r.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var i,s=this._findActive(t);s[0]!==this.active[0]&&(s.length||(s=this.active),i=s.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return t===!1?e():this.tabs.eq(t)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+e+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tablist.unbind(this.eventNamespace),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var t=e(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;i!==!1&&(void 0===t?i=!1:(t=this._getIndex(t),i=e.isArray(i)?e.map(i,function(e){return e!==t?e:null}):e.map(this.tabs,function(e,i){return i!==t?i:null})),this._setupDisabled(i))},disable:function(t){var i=this.options.disabled;if(i!==!0){if(void 0===t){i=!0}else{if(t=this._getIndex(t),-1!==e.inArray(t,i)){return}i=e.isArray(i)?e.merge([t],i).sort():[t]}this._setupDisabled(i)}},load:function(t,i){t=this._getIndex(t);var s=this,a=this.tabs.eq(t),n=a.find(".ui-tabs-anchor"),r=this._getPanelForTab(a),o={tab:a,panel:r},h=function(e,t){"abort"===t&&s.panels.stop(!1,!0),a.removeClass("ui-tabs-loading"),r.removeAttr("aria-busy"),e===s.xhr&&delete s.xhr};this._isLocal(n[0])||(this.xhr=e.ajax(this._ajaxSettings(n,i,o)),this.xhr&&"canceled"!==this.xhr.statusText&&(a.addClass("ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.done(function(e,t,a){setTimeout(function(){r.html(e),s._trigger("load",i,o),h(a,t)},1)}).fail(function(e,t){setTimeout(function(){h(e,t)},1)})))},_ajaxSettings:function(t,i,s){var a=this;return{url:t.attr("href"),beforeSend:function(t,n){return a._trigger("beforeLoad",i,e.extend({jqXHR:t,ajaxSettings:n},s))}}},_getPanelForTab:function(t){var i=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),e.widget("ui.tooltip",{version:"1.11.4",options:{content:function(){var t=e(this).attr("title")||"";return e("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_addDescribedBy:function(t,i){var s=(t.attr("aria-describedby")||"").split(/\s+/);s.push(i),t.data("ui-tooltip-id",i).attr("aria-describedby",e.trim(s.join(" ")))},_removeDescribedBy:function(t){var i=t.data("ui-tooltip-id"),s=(t.attr("aria-describedby")||"").split(/\s+/),a=e.inArray(i,s);-1!==a&&s.splice(a,1),t.removeData("ui-tooltip-id"),s=e.trim(s.join(" ")),s?t.attr("aria-describedby",s):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable(),this.liveRegion=e("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(t,i){var s=this;return"disabled"===t?(this[i?"_disable":"_enable"](),this.options[t]=i,void 0):(this._super(t,i),"content"===t&&e.each(this.tooltips,function(e,t){s._updateContent(t.element)}),void 0)},_disable:function(){var t=this;e.each(this.tooltips,function(i,s){var a=e.Event("blur");a.target=a.currentTarget=s.element[0],t.close(a,!0)}),this.element.find(this.options.items).addBack().each(function(){var t=e(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var i=this,s=e(t?t.target:this.element).closest(this.options.items);s.length&&!s.data("ui-tooltip-id")&&(s.attr("title")&&s.data("ui-tooltip-title",s.attr("title")),s.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&s.parents().each(function(){var t,s=e(this);s.data("ui-tooltip-open")&&(t=e.Event("blur"),t.target=t.currentTarget=this,i.close(t,!0)),s.attr("title")&&(s.uniqueId(),i.parents[this.id]={element:this,title:s.attr("title")},s.attr("title",""))}),this._registerCloseHandlers(t,s),this._updateContent(s,t))},_updateContent:function(e,t){var i,s=this.options.content,a=this,n=t?t.type:null;return"string"==typeof s?this._open(t,e,s):(i=s.call(e[0],function(i){a._delay(function(){e.data("ui-tooltip-open")&&(t&&(t.type=n),this._open(t,e,i))})}),i&&this._open(t,e,i),void 0)},_open:function(t,i,s){function a(e){l.of=e,r.is(":hidden")||r.position(l)}var n,r,o,h,l=e.extend({},this.options.position);if(s){if(n=this._find(i)){return n.tooltip.find(".ui-tooltip-content").html(s),void 0}i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title")),n=this._tooltip(i),r=n.tooltip,this._addDescribedBy(i,r.attr("id")),r.find(".ui-tooltip-content").html(s),this.liveRegion.children().hide(),s.clone?(h=s.clone(),h.removeAttr("id").find("[id]").removeAttr("id")):h=s,e("<div>").html(h).appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:a}),a(t)):r.position(e.extend({of:i},this.options.position)),r.hide(),this._show(r,this.options.show),this.options.show&&this.options.show.delay&&(o=this.delayedShow=setInterval(function(){r.is(":visible")&&(a(l.of),clearInterval(o))},e.fx.interval)),this._trigger("open",t,{tooltip:r})}},_registerCloseHandlers:function(t,i){var s={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var s=e.Event(t);s.currentTarget=i[0],this.close(s,!0)}}};i[0]!==this.element[0]&&(s.remove=function(){this._removeTooltip(this._find(i).tooltip)}),t&&"mouseover"!==t.type||(s.mouseleave="close"),t&&"focusin"!==t.type||(s.focusout="close"),this._on(!0,i,s)},close:function(t){var i,s=this,a=e(t?t.currentTarget:this.element),n=this._find(a);return n?(i=n.tooltip,n.closing||(clearInterval(this.delayedShow),a.data("ui-tooltip-title")&&!a.attr("title")&&a.attr("title",a.data("ui-tooltip-title")),this._removeDescribedBy(a),n.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){s._removeTooltip(e(this))}),a.removeData("ui-tooltip-open"),this._off(a,"mouseleave focusout keyup"),a[0]!==this.element[0]&&this._off(a,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&e.each(this.parents,function(t,i){e(i.element).attr("title",i.title),delete s.parents[t]}),n.closing=!0,this._trigger("close",t,{tooltip:i}),n.hiding||(n.closing=!1)),void 0):(a.removeData("ui-tooltip-open"),void 0)},_tooltip:function(t){var i=e("<div>").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),s=i.uniqueId().attr("id");return e("<div>").addClass("ui-tooltip-content").appendTo(i),i.appendTo(this.document[0].body),this.tooltips[s]={element:t,tooltip:i}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_destroy:function(){var t=this;e.each(this.tooltips,function(i,s){var a=e.Event("blur"),n=s.element;a.target=a.currentTarget=n[0],t.close(a,!0),e("#"+i).remove(),n.data("ui-tooltip-title")&&(n.attr("title")||n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}});var y="ui-effects-",b=e;e.effects={effect:{}},function(e,t){function i(e,t,i){var s=d[t.type]||{};return null==e?i||!t.def?null:t.def:(e=s.floor?~~e:parseFloat(e),isNaN(e)?t.def:s.mod?(e+s.mod)%s.mod:0>e?0:e>s.max?s.max:e)}function s(i){var s=l(),a=s._rgba=[];return i=i.toLowerCase(),f(h,function(e,n){var r,o=n.re.exec(i),h=o&&n.parse(o),l=n.space||"rgba";return h?(r=s[l](h),s[u[l].cache]=r[u[l].cache],a=s._rgba=r._rgba,!1):t}),a.length?("0,0,0,0"===a.join()&&e.extend(a,n.transparent),s):n[i]}function a(e,t,i){return i=(i+1)%1,1>6*i?e+6*(t-e)*i:1>2*i?t:2>3*i?e+6*(t-e)*(2/3-i):e}var n,r="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",o=/^([\-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],l=e.Color=function(t,i,s,a){return new e.Color.fn.parse(t,i,s,a)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},d={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},c=l.support={},p=e("<p>")[0],f=e.each;p.style.cssText="background-color:rgba(1,1,1,.5)",c.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(u,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),l.fn=e.extend(l.prototype,{parse:function(a,r,o,h){if(a===t){return this._rgba=[null,null,null,null],this}(a.jquery||a.nodeType)&&(a=e(a).css(r),r=t);var d=this,c=e.type(a),p=this._rgba=[];return r!==t&&(a=[a,r,o,h],c="array"),"string"===c?this.parse(s(a)||n._default):"array"===c?(f(u.rgba.props,function(e,t){p[t.idx]=i(a[t.idx],t)}),this):"object"===c?(a instanceof l?f(u,function(e,t){a[t.cache]&&(d[t.cache]=a[t.cache].slice())}):f(u,function(t,s){var n=s.cache;f(s.props,function(e,t){if(!d[n]&&s.to){if("alpha"===e||null==a[e]){return}d[n]=s.to(d._rgba)}d[n][t.idx]=i(a[e],t,!0)}),d[n]&&0>e.inArray(null,d[n].slice(0,3))&&(d[n][3]=1,s.from&&(d._rgba=s.from(d[n])))}),this):t},is:function(e){var i=l(e),s=!0,a=this;return f(u,function(e,n){var r,o=i[n.cache];return o&&(r=a[n.cache]||n.to&&n.to(a._rgba)||[],f(n.props,function(e,i){return null!=o[i.idx]?s=o[i.idx]===r[i.idx]:t})),s}),s},_space:function(){var e=[],t=this;return f(u,function(i,s){t[s.cache]&&e.push(i)}),e.pop()},transition:function(e,t){var s=l(e),a=s._space(),n=u[a],r=0===this.alpha()?l("transparent"):this,o=r[n.cache]||n.to(r._rgba),h=o.slice();return s=s[n.cache],f(n.props,function(e,a){var n=a.idx,r=o[n],l=s[n],u=d[a.type]||{};null!==l&&(null===r?h[n]=l:(u.mod&&(l-r>u.mod/2?r+=u.mod:r-l>u.mod/2&&(r-=u.mod)),h[n]=i((l-r)*t+r,a)))}),this[a](h)},blend:function(t){if(1===this._rgba[3]){return this}var i=this._rgba.slice(),s=i.pop(),a=l(t)._rgba;return l(e.map(i,function(e,t){return(1-s)*a[t]+s*e}))},toRgbaString:function(){var t="rgba(",i=e.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===i[3]&&(i.pop(),t="rgb("),t+i.join()+")"},toHslaString:function(){var t="hsla(",i=e.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&3>t&&(e=Math.round(100*e)+"%"),e});return 1===i[3]&&(i.pop(),t="hsl("),t+i.join()+")"},toHexString:function(t){var i=this._rgba.slice(),s=i.pop();return t&&i.push(~~(255*s)),"#"+e.map(i,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,u.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2]){return[null,null,null,e[3]]}var t,i,s=e[0]/255,a=e[1]/255,n=e[2]/255,r=e[3],o=Math.max(s,a,n),h=Math.min(s,a,n),l=o-h,u=o+h,d=0.5*u;return t=h===o?0:s===o?60*(a-n)/l+360:a===o?60*(n-s)/l+120:60*(s-a)/l+240,i=0===l?0:0.5>=d?l/u:l/(2-u),[Math.round(t)%360,i,d,null==r?1:r]},u.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2]){return[null,null,null,e[3]]}var t=e[0]/360,i=e[1],s=e[2],n=e[3],r=0.5>=s?s*(1+i):s+i-s*i,o=2*s-r;return[Math.round(255*a(o,r,t+1/3)),Math.round(255*a(o,r,t)),Math.round(255*a(o,r,t-1/3)),n]},f(u,function(s,a){var n=a.props,r=a.cache,h=a.to,u=a.from;l.fn[s]=function(s){if(h&&!this[r]&&(this[r]=h(this._rgba)),s===t){return this[r].slice()}var a,o=e.type(s),d="array"===o||"object"===o?s:arguments,c=this[r].slice();return f(n,function(e,t){var s=d["object"===o?e:t.idx];null==s&&(s=c[t.idx]),c[t.idx]=i(s,t)}),u?(a=l(u(c)),a[r]=c,a):l(c)},f(n,function(t,i){l.fn[t]||(l.fn[t]=function(a){var n,r=e.type(a),h="alpha"===t?this._hsla?"hsla":"rgba":s,l=this[h](),u=l[i.idx];return"undefined"===r?u:("function"===r&&(a=a.call(this,u),r=e.type(a)),null==a&&i.empty?this:("string"===r&&(n=o.exec(a),n&&(a=u+parseFloat(n[2])*("+"===n[1]?1:-1))),l[i.idx]=a,this[h](l)))})})}),l.hook=function(t){var i=t.split(" ");f(i,function(t,i){e.cssHooks[i]={set:function(t,a){var n,r,o="";if("transparent"!==a&&("string"!==e.type(a)||(n=s(a)))){if(a=l(n||a),!c.rgba&&1!==a._rgba[3]){for(r="backgroundColor"===i?t.parentNode:t;(""===o||"transparent"===o)&&r&&r.style;){try{o=e.css(r,"backgroundColor"),r=r.parentNode}catch(h){}}a=a.blend(o&&"transparent"!==o?o:"_default")}a=a.toRgbaString()}try{t.style[i]=a}catch(h){}}},e.fx.step[i]=function(t){t.colorInit||(t.start=l(t.elem,i),t.end=l(t.end),t.colorInit=!0),e.cssHooks[i].set(t.elem,t.start.transition(t.end,t.pos))}})},l.hook(r),e.cssHooks.borderColor={expand:function(e){var t={};return f(["Top","Right","Bottom","Left"],function(i,s){t["border"+s+"Color"]=e}),t}},n=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(b),function(){function t(t){var i,s,a=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,n={};if(a&&a.length&&a[0]&&a[a[0]]){for(s=a.length;s--;){i=a[s],"string"==typeof a[i]&&(n[e.camelCase(i)]=a[i])}}else{for(i in a){"string"==typeof a[i]&&(n[i]=a[i])}}return n}function i(t,i){var s,n,r={};for(s in i){n=i[s],t[s]!==n&&(a[s]||(e.fx.step[s]||!isNaN(parseFloat(n)))&&(r[s]=n))}return r}var s=["add","remove","toggle"],a={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(b.style(e.elem,i,e.end),e.setAttr=!0)}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(a,n,r,o){var h=e.speed(n,r,o);return this.queue(function(){var n,r=e(this),o=r.attr("class")||"",l=h.children?r.find("*").addBack():r;l=l.map(function(){var i=e(this);return{el:i,start:t(this)}}),n=function(){e.each(s,function(e,t){a[t]&&r[t+"Class"](a[t])})},n(),l=l.map(function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this}),r.attr("class",o),l=l.map(function(){var t=this,i=e.Deferred(),s=e.extend({},h,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,s),i.promise()}),e.when.apply(e,l.get()).done(function(){n(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),h.complete.call(r[0])})})},e.fn.extend({addClass:function(t){return function(i,s,a,n){return s?e.effects.animateClass.call(this,{add:i},s,a,n):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(i,s,a,n){return arguments.length>1?e.effects.animateClass.call(this,{remove:i},s,a,n):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(i,s,a,n,r){return"boolean"==typeof s||void 0===s?a?e.effects.animateClass.call(this,s?{add:i}:{remove:i},a,n,r):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:i},s,a,n)}}(e.fn.toggleClass),switchClass:function(t,i,s,a,n){return e.effects.animateClass.call(this,{add:i,remove:t},s,a,n)}})}(),function(){function t(t,i,s,a){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),e.isFunction(i)&&(a=i,s=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(a=s,s=i,i={}),e.isFunction(s)&&(a=s,s=null),i&&e.extend(t,i),s=s||i.duration,t.duration=e.fx.off?0:"number"==typeof s?s:s in e.fx.speeds?e.fx.speeds[s]:e.fx.speeds._default,t.complete=a||i.complete,t}function i(t){return !t||"number"==typeof t||e.fx.speeds[t]?!0:"string"!=typeof t||e.effects.effect[t]?e.isFunction(t)?!0:"object"!=typeof t||t.effect?!1:!0:!0}e.extend(e.effects,{version:"1.11.4",save:function(e,t){for(var i=0;t.length>i;i++){null!==t[i]&&e.data(y+t[i],e[0].style[t[i]])}},restore:function(e,t){var i,s;for(s=0;t.length>s;s++){null!==t[s]&&(i=e.data(y+t[s]),void 0===i&&(i=""),e.css(t[s],i))}},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},getBaseline:function(e,t){var i,s;switch(e[0]){case"top":i=0;break;case"middle":i=0.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":s=0;break;case"center":s=0.5;break;case"right":s=1;break;default:s=e[1]/t.width}return{x:s,y:i}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper")){return t.parent()}var i={width:t.outerWidth(!0),height:t.outerHeight(!0),"float":t.css("float")},s=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),a={width:t.width(),height:t.height()},n=document.activeElement;try{n.id}catch(r){n=document.body}return t.wrap(s),(t[0]===n||e.contains(t[0],n))&&e(n).focus(),s=t.parent(),"static"===t.css("position")?(s.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,s){i[s]=t.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(a),s.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).focus()),t},setTransition:function(t,i,s,a){return a=a||{},e.each(i,function(e,i){var n=t.cssUnit(i);n[0]>0&&(a[i]=n[0]*s+n[1])}),a}}),e.fn.extend({effect:function(){function i(t){function i(){e.isFunction(n)&&n.call(a[0]),e.isFunction(t)&&t()}var a=e(this),n=s.complete,o=s.mode;(a.is(":hidden")?"hide"===o:"show"===o)?(a[o](),i()):r.call(a[0],s,i)}var s=t.apply(this,arguments),a=s.mode,n=s.queue,r=e.effects.effect[s.effect];return e.fx.off||!r?a?this[a](s.duration,s.complete):this.each(function(){s.complete&&s.complete.call(this)}):n===!1?this.each(i):this.queue(n||"fx",i)},show:function(e){return function(s){if(i(s)){return e.apply(this,arguments)}var a=t.apply(this,arguments);return a.mode="show",this.effect.call(this,a)}}(e.fn.show),hide:function(e){return function(s){if(i(s)){return e.apply(this,arguments)}var a=t.apply(this,arguments);return a.mode="hide",this.effect.call(this,a)}}(e.fn.hide),toggle:function(e){return function(s){if(i(s)||"boolean"==typeof s){return e.apply(this,arguments)}var a=t.apply(this,arguments);return a.mode="toggle",this.effect.call(this,a)}}(e.fn.toggle),cssUnit:function(t){var i=this.css(t),s=[];return e.each(["em","px","%","pt"],function(e,t){i.indexOf(t)>0&&(s=[parseFloat(i),t])}),s}})}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,i){t[i]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>e;){}return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return 0.5>e?i(2*e)/2:1-i(-2*e+2)/2}})}(),e.effects,e.effects.effect.blind=function(t,i){var s,a,n,r=e(this),o=/up|down|vertical/,h=/up|left|vertical|horizontal/,l=["position","top","bottom","left","right","height","width"],u=e.effects.setMode(r,t.mode||"hide"),d=t.direction||"up",c=o.test(d),p=c?"height":"width",f=c?"top":"left",m=h.test(d),g={},v="show"===u;r.parent().is(".ui-effects-wrapper")?e.effects.save(r.parent(),l):e.effects.save(r,l),r.show(),s=e.effects.createWrapper(r).css({overflow:"hidden"}),a=s[p](),n=parseFloat(s.css(f))||0,g[p]=v?a:0,m||(r.css(c?"bottom":"right",0).css(c?"top":"left","auto").css({position:"absolute"}),g[f]=v?n:a+n),v&&(s.css(p,0),m||s.css(f,n+a)),s.animate(g,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){"hide"===u&&r.hide(),e.effects.restore(r,l),e.effects.removeWrapper(r),i()}})},e.effects.effect.bounce=function(t,i){var s,a,n,r=e(this),o=["position","top","bottom","left","right","height","width"],h=e.effects.setMode(r,t.mode||"effect"),l="hide"===h,u="show"===h,d=t.direction||"up",c=t.distance,p=t.times||5,f=2*p+(u||l?1:0),m=t.duration/f,g=t.easing,v="up"===d||"down"===d?"top":"left",y="up"===d||"left"===d,b=r.queue(),_=b.length;for((u||l)&&o.push("opacity"),e.effects.save(r,o),r.show(),e.effects.createWrapper(r),c||(c=r["top"===v?"outerHeight":"outerWidth"]()/3),u&&(n={opacity:1},n[v]=0,r.css("opacity",0).css(v,y?2*-c:2*c).animate(n,m,g)),l&&(c/=Math.pow(2,p-1)),n={},n[v]=0,s=0;p>s;s++){a={},a[v]=(y?"-=":"+=")+c,r.animate(a,m,g).animate(n,m,g),c=l?2*c:c/2}l&&(a={opacity:0},a[v]=(y?"-=":"+=")+c,r.animate(a,m,g)),r.queue(function(){l&&r.hide(),e.effects.restore(r,o),e.effects.removeWrapper(r),i()}),_>1&&b.splice.apply(b,[1,0].concat(b.splice(_,f+1))),r.dequeue()},e.effects.effect.clip=function(t,i){var s,a,n,r=e(this),o=["position","top","bottom","left","right","height","width"],h=e.effects.setMode(r,t.mode||"hide"),l="show"===h,u=t.direction||"vertical",d="vertical"===u,c=d?"height":"width",p=d?"top":"left",f={};e.effects.save(r,o),r.show(),s=e.effects.createWrapper(r).css({overflow:"hidden"}),a="IMG"===r[0].tagName?s:r,n=a[c](),l&&(a.css(c,0),a.css(p,n/2)),f[c]=l?n:0,f[p]=l?0:n/2,a.animate(f,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){l||r.hide(),e.effects.restore(r,o),e.effects.removeWrapper(r),i()}})},e.effects.effect.drop=function(t,i){var s,a=e(this),n=["position","top","bottom","left","right","opacity","height","width"],r=e.effects.setMode(a,t.mode||"hide"),o="show"===r,h=t.direction||"left",l="up"===h||"down"===h?"top":"left",u="up"===h||"left"===h?"pos":"neg",d={opacity:o?1:0};e.effects.save(a,n),a.show(),e.effects.createWrapper(a),s=t.distance||a["top"===l?"outerHeight":"outerWidth"](!0)/2,o&&a.css("opacity",0).css(l,"pos"===u?-s:s),d[l]=(o?"pos"===u?"+=":"-=":"pos"===u?"-=":"+=")+s,a.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===r&&a.hide(),e.effects.restore(a,n),e.effects.removeWrapper(a),i()}})},e.effects.effect.explode=function(t,i){function s(){b.push(this),b.length===d*c&&a()}function a(){p.css({visibility:"visible"}),e(b).remove(),m||p.hide(),i()}var n,r,o,h,l,u,d=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=d,p=e(this),f=e.effects.setMode(p,t.mode||"hide"),m="show"===f,g=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/c),y=Math.ceil(p.outerHeight()/d),b=[];for(n=0;d>n;n++){for(h=g.top+n*y,u=n-(d-1)/2,r=0;c>r;r++){o=g.left+r*v,l=r-(c-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-r*v,top:-n*y}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:y,left:o+(m?l*v:0),top:h+(m?u*y:0),opacity:m?0:1}).animate({left:o+(m?0:l*v),top:h+(m?0:u*y),opacity:m?1:0},t.duration||500,t.easing,s)}}},e.effects.effect.fade=function(t,i){var s=e(this),a=e.effects.setMode(s,t.mode||"toggle");s.animate({opacity:a},{queue:!1,duration:t.duration,easing:t.easing,complete:i})},e.effects.effect.fold=function(t,i){var s,a,n=e(this),r=["position","top","bottom","left","right","height","width"],o=e.effects.setMode(n,t.mode||"hide"),h="show"===o,l="hide"===o,u=t.size||15,d=/([0-9]+)%/.exec(u),c=!!t.horizFirst,p=h!==c,f=p?["width","height"]:["height","width"],m=t.duration/2,g={},v={};e.effects.save(n,r),n.show(),s=e.effects.createWrapper(n).css({overflow:"hidden"}),a=p?[s.width(),s.height()]:[s.height(),s.width()],d&&(u=parseInt(d[1],10)/100*a[l?0:1]),h&&s.css(c?{height:0,width:u}:{height:u,width:0}),g[f[0]]=h?a[0]:u,v[f[1]]=h?a[1]:0,s.animate(g,m,t.easing).animate(v,m,t.easing,function(){l&&n.hide(),e.effects.restore(n,r),e.effects.removeWrapper(n),i()})},e.effects.effect.highlight=function(t,i){var s=e(this),a=["backgroundImage","backgroundColor","opacity"],n=e.effects.setMode(s,t.mode||"show"),r={backgroundColor:s.css("backgroundColor")};"hide"===n&&(r.opacity=0),e.effects.save(s,a),s.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===n&&s.hide(),e.effects.restore(s,a),i()}})},e.effects.effect.size=function(t,i){var s,a,n,r=e(this),o=["position","top","bottom","left","right","width","height","overflow","opacity"],h=["position","top","bottom","left","right","overflow","opacity"],l=["width","height","overflow"],u=["fontSize"],d=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=e.effects.setMode(r,t.mode||"effect"),f=t.restore||"effect"!==p,m=t.scale||"both",g=t.origin||["middle","center"],v=r.css("position"),y=f?o:h,b={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&r.show(),s={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},"toggle"===t.mode&&"show"===p?(r.from=t.to||b,r.to=t.from||s):(r.from=t.from||("show"===p?b:s),r.to=t.to||("hide"===p?b:s)),n={from:{y:r.from.height/s.height,x:r.from.width/s.width},to:{y:r.to.height/s.height,x:r.to.width/s.width}},("box"===m||"both"===m)&&(n.from.y!==n.to.y&&(y=y.concat(d),r.from=e.effects.setTransition(r,d,n.from.y,r.from),r.to=e.effects.setTransition(r,d,n.to.y,r.to)),n.from.x!==n.to.x&&(y=y.concat(c),r.from=e.effects.setTransition(r,c,n.from.x,r.from),r.to=e.effects.setTransition(r,c,n.to.x,r.to))),("content"===m||"both"===m)&&n.from.y!==n.to.y&&(y=y.concat(u).concat(l),r.from=e.effects.setTransition(r,u,n.from.y,r.from),r.to=e.effects.setTransition(r,u,n.to.y,r.to)),e.effects.save(r,y),r.show(),e.effects.createWrapper(r),r.css("overflow","hidden").css(r.from),g&&(a=e.effects.getBaseline(g,s),r.from.top=(s.outerHeight-r.outerHeight())*a.y,r.from.left=(s.outerWidth-r.outerWidth())*a.x,r.to.top=(s.outerHeight-r.to.outerHeight)*a.y,r.to.left=(s.outerWidth-r.to.outerWidth)*a.x),r.css(r.from),("content"===m||"both"===m)&&(d=d.concat(["marginTop","marginBottom"]).concat(u),c=c.concat(["marginLeft","marginRight"]),l=o.concat(d).concat(c),r.find("*[width]").each(function(){var i=e(this),s={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&e.effects.save(i,l),i.from={height:s.height*n.from.y,width:s.width*n.from.x,outerHeight:s.outerHeight*n.from.y,outerWidth:s.outerWidth*n.from.x},i.to={height:s.height*n.to.y,width:s.width*n.to.x,outerHeight:s.height*n.to.y,outerWidth:s.width*n.to.x},n.from.y!==n.to.y&&(i.from=e.effects.setTransition(i,d,n.from.y,i.from),i.to=e.effects.setTransition(i,d,n.to.y,i.to)),n.from.x!==n.to.x&&(i.from=e.effects.setTransition(i,c,n.from.x,i.from),i.to=e.effects.setTransition(i,c,n.to.x,i.to)),i.css(i.from),i.animate(i.to,t.duration,t.easing,function(){f&&e.effects.restore(i,l)})})),r.animate(r.to,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){0===r.to.opacity&&r.css("opacity",r.from.opacity),"hide"===p&&r.hide(),e.effects.restore(r,y),f||("static"===v?r.css({position:"relative",top:r.to.top,left
7:r.to.left}):e.each(["top","left"],function(e,t){r.css(t,function(t,i){var s=parseInt(i,10),a=e?r.to.left:r.to.top;return"auto"===i?a+"px":s+a+"px"})})),e.effects.removeWrapper(r),i()}})},e.effects.effect.scale=function(t,i){var s=e(this),a=e.extend(!0,{},t),n=e.effects.setMode(s,t.mode||"effect"),r=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"hide"===n?0:100),o=t.direction||"both",h=t.origin,l={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()},u={y:"horizontal"!==o?r/100:1,x:"vertical"!==o?r/100:1};a.effect="size",a.queue=!1,a.complete=i,"effect"!==n&&(a.origin=h||["middle","center"],a.restore=!0),a.from=t.from||("show"===n?{height:0,width:0,outerHeight:0,outerWidth:0}:l),a.to={height:l.height*u.y,width:l.width*u.x,outerHeight:l.outerHeight*u.y,outerWidth:l.outerWidth*u.x},a.fade&&("show"===n&&(a.from.opacity=0,a.to.opacity=1),"hide"===n&&(a.from.opacity=1,a.to.opacity=0)),s.effect(a)},e.effects.effect.puff=function(t,i){var s=e(this),a=e.effects.setMode(s,t.mode||"hide"),n="hide"===a,r=parseInt(t.percent,10)||150,o=r/100,h={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()};e.extend(t,{effect:"scale",queue:!1,fade:!0,mode:a,complete:i,percent:n?r:100,from:n?h:{height:h.height*o,width:h.width*o,outerHeight:h.outerHeight*o,outerWidth:h.outerWidth*o}}),s.effect(t)},e.effects.effect.pulsate=function(t,i){var s,a=e(this),n=e.effects.setMode(a,t.mode||"show"),r="show"===n,o="hide"===n,h=r||"hide"===n,l=2*(t.times||5)+(h?1:0),u=t.duration/l,d=0,c=a.queue(),p=c.length;for((r||!a.is(":visible"))&&(a.css("opacity",0).show(),d=1),s=1;l>s;s++){a.animate({opacity:d},u,t.easing),d=1-d}a.animate({opacity:d},u,t.easing),a.queue(function(){o&&a.hide(),i()}),p>1&&c.splice.apply(c,[1,0].concat(c.splice(p,l+1))),a.dequeue()},e.effects.effect.shake=function(t,i){var s,a=e(this),n=["position","top","bottom","left","right","height","width"],r=e.effects.setMode(a,t.mode||"effect"),o=t.direction||"left",h=t.distance||20,l=t.times||3,u=2*l+1,d=Math.round(t.duration/u),c="up"===o||"down"===o?"top":"left",p="up"===o||"left"===o,f={},m={},g={},v=a.queue(),y=v.length;for(e.effects.save(a,n),a.show(),e.effects.createWrapper(a),f[c]=(p?"-=":"+=")+h,m[c]=(p?"+=":"-=")+2*h,g[c]=(p?"-=":"+=")+2*h,a.animate(f,d,t.easing),s=1;l>s;s++){a.animate(m,d,t.easing).animate(g,d,t.easing)}a.animate(m,d,t.easing).animate(f,d/2,t.easing).queue(function(){"hide"===r&&a.hide(),e.effects.restore(a,n),e.effects.removeWrapper(a),i()}),y>1&&v.splice.apply(v,[1,0].concat(v.splice(y,u+1))),a.dequeue()},e.effects.effect.slide=function(t,i){var s,a=e(this),n=["position","top","bottom","left","right","width","height"],r=e.effects.setMode(a,t.mode||"show"),o="show"===r,h=t.direction||"left",l="up"===h||"down"===h?"top":"left",u="up"===h||"left"===h,d={};e.effects.save(a,n),a.show(),s=t.distance||a["top"===l?"outerHeight":"outerWidth"](!0),e.effects.createWrapper(a).css({overflow:"hidden"}),o&&a.css(l,u?isNaN(s)?"-"+s:-s:s),d[l]=(o?u?"+=":"-=":u?"-=":"+=")+s,a.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===r&&a.hide(),e.effects.restore(a,n),e.effects.removeWrapper(a),i()}})},e.effects.effect.transfer=function(t,i){var s=e(this),a=e(t.to),n="fixed"===a.css("position"),r=e("body"),o=n?r.scrollTop():0,h=n?r.scrollLeft():0,l=a.offset(),u={top:l.top-o,left:l.left-h,height:a.innerHeight(),width:a.innerWidth()},d=s.offset(),c=e("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(t.className).css({top:d.top-o,left:d.left-h,height:s.innerHeight(),width:s.innerWidth(),position:n?"fixed":"absolute"}).animate(u,t.duration,t.easing,function(){c.remove(),i()})}}); 8/*js/jquery-ui/js/jquery.ui.touch-punch.min.js*//* 9 * jQuery UI Touch Punch 0.2.3 10 * 11 * Copyright 2011â2014, Dave Furfero 12 * Dual licensed under the MIT or GPL Version 2 licenses. 13 * 14 * Depends: 15 * jquery.ui.widget.js 16 * jquery.ui.mouse.js 17 */ 18!function(a){function f(a,b){if(!(a.originalEvent.touches.length>1)){a.preventDefault();var c=a.originalEvent.changedTouches[0],d=document.createEvent("MouseEvents");d.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(d)}}if(a.support.touch="ontouchend" in document,a.support.touch){var e,b=a.ui.mouse.prototype,c=b._mouseInit,d=b._mouseDestroy;b._touchStart=function(a){var b=this;!e&&b._mouseCapture(a.originalEvent.changedTouches[0])&&(e=!0,b._touchMoved=!1,f(a,"mouseover"),f(a,"mousemove"),f(a,"mousedown"))},b._touchMove=function(a){e&&(this._touchMoved=!0,f(a,"mousemove"))},b._touchEnd=function(a){e&&(f(a,"mouseup"),f(a,"mouseout"),this._touchMoved||f(a,"click"),e=!1)},b._mouseInit=function(){var b=this;b.element.bind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),c.call(b)},b._mouseDestroy=function(){var b=this;b.element.unbind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),d.call(b)}}}(jQuery); 19/*js/jQuery-Timepicker.2014.04.09/jquery-ui-timepicker-addon.min.js*//* jQuery Timepicker Addon - v
191.4.4 - 2014-03-29 20* http://trentrichardson.com/examples/timepicker 21* Copyright (c) 2014 Trent Richardson; Licensed MIT */ 22(function($){if($.ui.timepicker=$.ui.timepicker||{},!$.ui.timepicker.version){$.extend($.ui,{timepicker:{version:"1.4.4"}});var Timepicker=function(){this.regional=[],this.regional[""]={currentText:"Now",closeText:"Done",amNames:["AM","A"],pmNames:["PM","P"],timeFormat:"HH:mm",timeSuffix:"",timeOnlyTitle:"Choose Time",timeText:"Time",hourText:"Hour",minuteText:"Minute",secondText:"Second",millisecText:"Millisecond",microsecText:"Microsecond",timezoneText:"Time Zone",isRTL:!1},this._defaults={showButtonPanel:!0,timeOnly:!1,timeOnlyShowDate:!1,showHour:null,showMinute:null,showSecond:null,showMillisec:null,showMicrosec:null,showTimezone:null,showTime:!0,stepHour:1,stepMinute:1,stepSecond:1,stepMillisec:1,stepMicrosec:1,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMin:0,minuteMin:0,secondMin:0,millisecMin:0,microsecMin:0,hourMax:23,minuteMax:59,secondMax:59,millisecMax:999,microsecMax:999,minDateTime:null,maxDateTime:null,maxTime:null,minTime:null,onSelect:null,hourGrid:0,minuteGrid:0,secondGrid:0,millisecGrid:0,microsecGrid:0,alwaysSetTime:!0,separator:" ",altFieldTimeOnly:!0,altTimeFormat:null,altSeparator:null,altTimeSuffix:null,pickerTimeFormat:null,pickerTimeSuffix:null,showTimepicker:!0,timezoneList:null,addSliderAccess:!1,sliderAccessArgs:null,controlType:"slider",defaultValue:null,parse:"strict"},$.extend(this._defaults,this.regional[""])};$.extend(Timepicker.prototype,{$input:null,$altInput:null,$timeObj:null,inst:null,hour_slider:null,minute_slider:null,second_slider:null,millisec_slider:null,microsec_slider:null,timezone_select:null,maxTime:null,minTime:null,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMinOriginal:null,minuteMinOriginal:null,secondMinOriginal:null,millisecMinOriginal:null,microsec
22MinOriginal:null,hourMaxOriginal:null,minuteMaxOriginal:null,secondMaxOriginal:null,millisecMaxOriginal:null,microsecMaxOriginal:null,ampm:"",formattedDate:"",formattedTime:"",formattedDateTime:"",timezoneList:null,units:["hour","minute","second","millisec","microsec"],support:{},control:null,setDefaults:function(e){return extendRemove(this._defaults,e||{}),this},_newInst:function($input,opts){var tp_inst=new Timepicker,inlineSettings={},fns={},overrides,i;for(var attrName in this._defaults){if(this._defaults.hasOwnProperty(attrName)){var attrValue=$input.attr("time:"+attrName);if(attrValue){try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}}overrides={beforeShow:function(e,t){return $.isFunction(tp_inst._defaults.evnts.beforeShow)?tp_inst._defaults.evnts.beforeShow.call($input[0],e,t,tp_inst):void 0},onChangeMonthYear:function(e,t,i){tp_inst._updateDateTime(i),$.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)&&tp_inst._defaults.evnts.onChangeMonthYear.call($input[0],e,t,i,tp_inst)},onClose:function(e,t){tp_inst.timeDefined===!0&&""!==$input.val()&&tp_inst._updateDateTime(t),$.isFunction(tp_inst._defaults.evnts.onClose)&&tp_
22inst._defaults.evnts.onClose.call($input[0],e,t,tp_inst)}};for(i in overrides){overrides.hasOwnProperty(i)&&(fns[i]=opts[i]||null)}tp_inst._defaults=$.extend({},this._defaults,inlineSettings,opts,overrides,{evnts:fns,timepicker:tp_inst}),tp_inst.amNames=$.map(tp_inst._defaults.amNames,function(e){return e.toUpperCase()}),tp_inst.pmNames=$.map(tp_inst._defaults.pmNames,function(e){return e.toUpperCase()}),tp_inst.support=detectSupport(tp_inst._defaults.timeFormat+(tp_inst._defaults.pickerTimeFormat?tp_inst._defaults.pickerTimeFormat:"")+(tp_inst._defaults.altTimeFormat?tp_inst._defaults.altTimeFormat:"")),"string"==typeof tp_inst._defaults.controlType?("slider"===tp_inst._defaults.controlType&&$.ui.slider===void 0&&(tp_inst._defaults.controlType="select"),tp_inst.control=tp_inst._controls[tp_inst._defaults.controlType]):tp_inst.control=tp_inst._defaults.controlType;var timezoneList=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-270,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,525,540,570,600,630,660,690,720,765,780,840];null!==tp_inst._defaults.timezoneList&&(timezoneList=tp_inst._defaults.timezoneList);var tzl=timezoneList.length,tzi=0,tzv=null;if(tzl>0&&"object"!=typeof timezoneList[0]){for(;tzl>tzi;tzi++){tzv=timezoneList[tzi],timezoneList[tzi]={value:tzv,label:$.timepicker.timezoneOffsetString(tzv,tp_inst.support.iso8601)}}}return tp_inst._defaults.timezoneList=timezoneList,tp_inst.timezone=null!==tp_inst._defaults.timezone?$.timepicker.timezoneOffsetNumber(tp_inst._defaults.timezone):-1*(new Date).getTimezoneOffset(),tp_inst.hour=tp_inst._defaults.hour<tp_inst._defaults.hourMin?tp_inst._defaults.hourMin:tp_inst._defaults.hour>tp_inst._defaults.hourMax?tp_inst._defaults.hourMax:tp_inst._defaults.hour,tp_inst.minute=tp_inst._defaults.minute<tp_inst._defaults.minuteMin?tp_inst._defaults.minuteMin:tp_inst._defaults.minute>tp_inst._defaults.minuteMax?tp_inst._defaults.minuteMax:tp_inst._defaults.minute,tp_inst.second=tp_inst._defaults.second<tp_inst._defaults.secondMin?tp_inst._defaults.secondMin:tp_inst._defaults.second>tp_inst._defaults.secondMax?tp_inst._defaults.secondMax:tp_inst._defaults.second,tp_inst.millisec=tp_inst._defaults.millisec<tp_inst._defaults.millisecMin?tp_inst._defaults.millisecMin:tp_inst._defaults.millisec>tp_inst._defaults.millisecMax?tp_inst._defaults.millisecMax:tp_inst._defaults.millisec,tp_inst.microsec=tp_inst._defaults.microsec<tp_inst._defaults.microsecMin?tp_inst._defaults.microsecMin:tp_inst._defaults.microsec>tp_inst._defaults.microsecMax?tp_inst._defaults.microsecMax:tp_inst._defaults.microsec,tp_inst.ampm="",tp_inst.$input=$input,tp_inst._defaults.altField&&(tp_inst.$altInput=$(tp_inst._defaults.altField).css({cursor:"pointer"}).focus(function(){$input.trigger("focus")})),(0===tp_inst._defaults.minDate||0===tp_inst._defaults.minDateTime)&&(tp_inst._defaults.minDate=new Date),(0===tp_inst._defaults.maxDate||0===tp_inst._defaults.maxDateTime)&&(tp_inst._defaults.maxDate=new Date),void 0!==tp_inst._defaults.minDate&&tp_inst._defaults.minDate instanceof Date&&(tp_inst._defaults.minDateTime=new Date(tp_inst._defaults.minDate.getTime())),void 0!==tp_inst._defaults.minDateTime&&tp_inst._defaults.minDateTime instanceof Date&&(tp_inst._defaults.minDate=new Date(tp_inst._defaults.minDateTime.getTime())),void 0!==tp_inst._defaults.maxDate&&tp_inst._defaults.maxDate instanceof Date&&(tp_inst._defaults.maxDateTime=new Date(tp_inst._defaults.maxDate.getTime())),void 0!==tp_inst._defaults.maxDateTime&&tp_inst._defaults.maxDateTime instanceof Date&&(tp_inst._defaults.maxDate=new Date(tp_inst._defaults.maxDateTime.getTime())),tp_inst.$input.bind("focus",function(){tp_inst._onFocus()}),tp_inst},_addTimePicker:function(e){var t=this.$altInput&&this._defaults.altFieldTimeOnly?this.$input.val()+" "+this.$altInput.val():this.$input.val();this.timeDefined=this._parseTime(t),this._limitMinMaxDateTime(e,!1),this._injectTimePicker()},_parseTime:function(e,t){if(this.inst||(this.inst=$.datepicker._getInst(this.$input[0])),t||!this._defaults.timeOnly){var i=$.datepicker._get(this.inst,"dateFormat");try{var s=parseDateTimeInternal(i,this._defaults.timeFormat,e,$.datepicker._getFormatConfig(this.inst),this._defaults);if(!s.timeObj){return !1}$.extend(this,s.timeObj)}catch(a){return $.timepicker.log("Error parsing the date/time string: "+a+"\ndate/time string = "+e+"\ntimeFormat = "+this._defaults.timeFormat+"\ndateFormat = "+i),!1}return !0}var n=$.datepicker.parseTime(this._defaults.timeFormat,e,this._defaults);return n?($.extend(this,n),!0):!1},_injectTimePicker:function(){var e=this.inst.dpDiv,t=this.inst.settings,i=this,s="",a="",n=null,r={},l={},o=null,c=0,u=0;if(0===e.find("div.ui-timepicker-div").length&&t.showTimepicker){var m=' style="display:none;"',d='<div class="ui-timepicker-div'+(t.isRTL?" ui-timepicker-rtl":"")+'"><dl><dt class="ui_tpicker_time_label"'+(t.showTime?"":m)+">"+t.timeText+'</dt><dd class="ui_tpicker_time"'+(t.showTime?"":m)+"></dd>";for(c=0,u=this.units.length;u>c;c++){if(s=this.units[c],a=s.substr(0,1).toUpperCase()+s.substr(1),n=null!==t["show"+a]?t["show"+a]:this.support[s],r[s]=parseInt(t[s+"Max"]-(t[s+"Max"]-t[s+"Min"])%t["step"+a],10),l[s]=0,d+='<dt class="ui_tpicker_'+s+'_label"'+(n?"":m)+">"+t[s+"Text"]+'</dt><dd class="ui_tpicker_'+s+'"><div class="ui_tpicker_'+s+'_slider"'+(n?"":m)+"></div>",n&&t[s+"Grid"]>0){if(d+='<div style="padding-left: 1px"><table class="ui-tpicker-grid-label"><tr>',"hour"===s){for(var h=t[s+"Min"];r[s]>=h;h+=parseInt(t[s+"Grid"],10)){l[s]++;var p=$.datepicker.formatTime(this.support.ampm?"hht":"HH",{hour:h},t);d+='<td data-for="'+s+'">'+p+"</td>"}}else{for(var _=t[s+"Min"];r[s]>=_;_+=parseInt(t[s+"Grid"],10)){l[s]++,d+='<td data-for="'+s+'">'+(10>_?"0":"")+_+"</td>"}}d+="</tr></table></div>"}
22d+="</dd>"}var f=null!==t.showTimezone?t.showTimezone:this.support.timezone;d+='<dt class="ui_tpicker_timezone_label"'+(f?"":m)+">"+t.timezoneText+"</dt>",d+='<dd class="ui_tpicker_timezone" '+(f?"":m)+"></dd>",d+="</dl></div>";var g=$(d);for(t.timeOnly===!0&&(g.prepend('<div class="ui-widget-header ui-helper-clearfix ui-corner-all"><div class="ui-datepicker-title">'+t.timeOnlyTitle+"</div></div>"),e.find(".ui-datepicker-header, .ui-datepicker-calendar").hide()),c=0,u=i.units.length;u>c;c++){s=i.units[c],a=s.substr(0,1).toUpperCase()+s.substr(1),n=null!==t["show"+a]?t["show"+a]:this.support[s],i[s+"_slider"]=i.control.create(i,g.find(".ui_tpicker_"+s+"_slider"),s,i[s],t[s+"Min"],r[s],t["step"+a]),n&&t[s+"Grid"]>0&&(o=100*l[s]*t[s+"Grid"]/(r[s]-t[s+"Min"]),g.find(".ui_tpicker_"+s+" table").css({width:o+"%",marginLeft:t.isRTL?"0":o/(-2*l[s])+"%",marginRight:t.isRTL?o/(-2*l[s])+"%":"0",borderCollapse:"collapse"}).find("td").click(function(){var e=$(this),t=e.html(),a=parseInt(t.replace(/[^0-9]/g),10),n=t.replace(/[^apm]/gi),r=e.data("for");"hour"===r&&(-1!==n.indexOf("p")&&12>a?a+=12:-1!==n.indexOf("a")&&12===a&&(a=0)),i.control.value(i,i[r+"_slider"],s,a),i._onTimeChange(),i._onSelectHandler()}).css({cursor:"pointer",width:100/l[s]+"%",textAlign:"center",overflow:"hidden"}))}if(this.timezone_select=g.find(".ui_tpicker_timezone").append("<select></select>").find("select"),$.fn.append.apply(this.timezone_select,$.map(t.timezoneList,function(e){return $("<option />").val("object"==typeof e?e.value:e).text("object"==typeof e?e.label:e)})),this.timezone!==void 0&&null!==this.timezone&&""!==this.timezone){var M=-1*new Date(this.inst.selectedYear,this.inst.selectedMonth,this.inst.selectedDay,12).getTimezoneOffset();M===this.timezone?selectLocalTimezone(i):this.timezone_select.val(this.timezone)}else{this.hour!==void 0&&null!==this.hour&&""!==this.hour?this.timezone_select.val(t.timezone):selectLocalTimezone(i)}this.timezone_select.change(function(){i._onTimeChange(),i._onSelectHandler()});var v=e.find(".ui-datepicker-buttonpane");if(v.length?v.before(g):e.append(g),this.$timeObj=g.find(".ui_tpicker_time"),null!==this.inst){var k=this.timeDefined;this._onTimeChange(),this.timeDefined=k}if(this._defaults.addSliderAccess){var T=this._defaults.sliderAccessArgs,D=this._defaults.isRTL;T.isRTL=D,setTimeout(function(){if(0===g.find(".ui-slider-access").length){g.find(".ui-slider:visible").sliderAccess(T);var e=g.find(".ui-slider-access:eq(0)").outerWidth(!0);e&&g.find("table:visible").each(function(){var t=$(this),i=t.outerWidth(),s=(""+t.css(D?"marginRight":"marginLeft")).replace("%",""),a=i-e,n=s*a/i+"%",r={width:a,marginRight:0,marginLeft:0};r[D?"marginRight":"marginLeft"]=n,t.css(r)})}},10)}i._limitMinMaxDateTime(this.inst,!0)}},_limitMinMaxDateTime:function(e,t){var i=this._defaults,s=new Date(e.selectedYear,e.selectedMonth,e.selectedDay);if(this._defaults.showTimepicker){if(null!==$.datepicker._get(e,"minDateTime")&&void 0!==$.datepicker._get(e,"minDateTime")&&s){var a=$.datepicker._get(e,"minDateTime"),n=new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0,0);(null===this.hourMinOriginal||null===this.minuteMinOriginal||null===this.secondMinOriginal||null===this.millisecMinOriginal||null===this.microsecMinOriginal)&&(this.hourMinOriginal=i.hourMin,this.minuteMinOriginal=i.minuteMin,this.secondMinOriginal=i.secondMin,this.millisecMinOriginal=i.millisecMin,this.microsecMinOriginal=i.microsecMin),e.settings.timeOnly||n.getTime()===s.getTime()?(this._defaults.hourMin=a.getHours(),this.hour<=this._defaults.hourMin?(this.hour=this._defaults.hourMin,this._defaults.minuteMin=a.getMinutes(),this.minute<=this._defaults.minuteMin?(this.minute=this._defaults.minuteMin,this._defaults.secondMin=a.getSeconds(),this.second<=this._defaults.secondMin?(this.second=this._defaults.secondMin,this._defaults.millisecMin=a.getMilliseconds(),this.millisec<=this._defaults.millisecMin?(this.millisec=this._defaults.millisecMin,this._defaults.microsecMin=a.getMicroseconds()):(this.microsec<this._defaults.microsecMin&&(this.microsec=this._defaults.microsecMin),this._defaults.microsec
22Min=this.microsecMinOriginal)):(this._defaults.millisecMin=this.millisecMinOriginal,this._defaults.microsecMin=this.microsecMinOriginal)):(this._defaults.secondMin=this.secondMinOriginal,this._defaults.millisecMin=this.millisecMinOriginal,this._defaults.microsecMin=this.microsecMinOriginal)):(this._defaults.minuteMin=this.minuteMinOriginal,this._defaults.secondMin=this.secondMinOriginal,this._defaults.millisecMin=this.millisecMinOriginal,this._defaults.microsecMin=this.microsecMinOriginal)):(this._defaults.hourMin=this.hourMinOriginal,this._defaults.minuteMin=this.minuteMinOriginal,this._defaults.secondMin=this.secondMinOriginal,this._defaults.millisecMin=this.millisecMinOriginal,this._defaults.microsecMin=this.microsecMinOriginal)}if(null!==$.datepicker._get(e,"maxDateTime")&&void 0!==$.datepicker._get(e,"maxDateTime")&&s){var r=$.datepicker._get(e,"maxDateTime"),l=new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0);(null===this.hourMaxOriginal||null===this.minuteMaxOriginal||null===this.secondMaxOriginal||null===this.millisecMaxOriginal)&&(this.hourMaxOriginal=i.hourMax,this.minuteMaxOriginal=i.minuteMax,this.secondMaxOriginal=i.secondMax,this.millisecMaxOriginal=i.millisecMax,this.microsecMaxOriginal=i.microsecMax),e.settings.timeOnly||l.getTime()===s.getTime()?(this._defaults.hourMax=r.getHours(),this.hour>=this._defaults.hourMax?(this.hour=this._defaults.hourMax,this._defaults.minuteMax=r.getMinutes(),this.minute>=this._defaults.minuteMax?(this.minute=this._defaults.minuteMax,this._defaults.secondMax=r.getSeconds(),this.second>=this._defaults.secondMax?(this.second=this._defaults.secondMax,this._defaults.millisecMax=r.getMilliseconds(),this.millisec>=this._defaults.millisecMax?(this.millisec=this._defaults.millisecMax,this._defaults.microsecMax=r.getMicroseconds()):(this.microsec>this._defaults.microsecMax&&(this.microsec=this._defaults.microsecMax),this._defaults.microsecMax=this.microsecMaxOriginal)):(this._defaults.millisecMax=this.millisecMaxOriginal,this._defaults.microsecMax=this.microsecMaxOriginal)):(this._defaults.secondMax=this.secondMaxOriginal,this._defaults.millisecMax=this.millisecMaxOriginal,this._defaults.microsecMax=this.microsecMaxOriginal)):(this._defaults.minuteMax=this.minuteMaxOriginal,this._defaults.secondMax=this.secondMaxOriginal,this._defaults.millisecMax=this.millisecMaxOriginal,this._defaults.microsecMax=this.microsecMaxOriginal)):(this._defaults.hourMax=this.hourMaxOriginal,this._defaults.minuteMax=this.minuteMaxOriginal,this._defaults.secondMax=this.secondMaxOriginal,this._defaults.millisecMax=this.millisecMaxOriginal,this._defaults.microsecMax=this.microsecMaxOriginal)}if(null!==e.settings.minTime){var o=new Date("01/01/1970 "+e.settings.minTime);this.hour<o.getHours()?(this.hour=this._defaults.hourMin=o.getHours(),this.minute=this._defaults.minuteMin=o.getMinutes()):this.hour===o.getHours()&&this.minute<o.getMinutes()?this.minute=this._defaults.minuteMin=o.getMinutes():this._defaults.hourMin<o.getHours()?(this._defaults.hourMin=o.getHours(),this._defaults.minuteMin=o.getMinutes()):this._defaults.minuteMin=this._defaults.hourMin===o.getHours()===this.hour&&this._defaults.minuteMin<o.getMinutes()?o.getMinutes():0}if(null!==e.settings.maxTime){var c=new Date("01/01/1970 "+e.settings.maxTime);this.hour>c.getHours()?(this.hour=this._defaults.hourMax=c.getHours(),this.minute=this._defaults.minuteMax=c.getMinutes()):this.hour===c.getHours()&&this.minute>c.getMinutes()?this.minute=this._defaults.minuteMax=c.getMinutes():this._defaults.hourMax>c.getHours()?(this._defaults.hourMax=c.getHours(),this._defaults.minuteMax=c.getMinutes()):this._defaults.minuteMax=this._defaults.hourMax===c.getHours()===this.hour&&this._defaults.minuteMax>c.getMinutes()?c.getMinutes():59}if(void 0!==t&&t===!0){var u=parseInt(this._defaults.hourMax-(this._defaults.hourMax-this._defaults.hourMin)%this._defaults.stepHour,10),m=parseInt(this._defaults.minuteMax-(this._defaults.minuteMax-this._defaults.minuteMin)%this._defaults.stepMinute,10),d=parseInt(this._defaults.secondMax-(this._defaults.secondMax-this._defaults.secondMin)%this._defaults.stepSecond,10),h=parseInt(this._defaults.millisecMax-(this._defaults.millisecMax-this._defaults.millisecMin)%this._defaults.stepMillisec,10),p=parseInt(this._defaults.microsec
22Max-(this._defaults.microsecMax-this._defaults.microsecMin)%this._defaults.stepMicrosec,10);this.hour_slider&&(this.control.options(this,this.hour_slider,"hour",{min:this._defaults.hourMin,max:u,step:this._defaults.stepHour}),this.control.value(this,this.hour_slider,"hour",this.hour-this.hour%this._defaults.stepHour)),this.minute_slider&&(this.control.options(this,this.minute_slider,"minute",{min:this._defaults.minuteMin,max:m,step:this._defaults.stepMinute}),this.control.value(this,this.minute_slider,"minute",this.minute-this.minute%this._defaults.stepMinute)),this.second_slider&&(this.control.options(this,this.second_slider,"second",{min:this._defaults.secondMin,max:d,step:this._defaults.stepSecond}),this.control.value(this,this.second_slider,"second",this.second-this.second%this._defaults.stepSecond)),this.millisec_slider&&(this.control.options(this,this.millisec_slider,"millisec",{min:this._defaults.millisecMin,max:h,step:this._defaults.stepMillisec}),this.control.value(this,this.millisec_slider,"millisec",this.millisec-this.millisec%this._defaults.stepMillisec)),this.microsec_slider&&(this.control.options(this,this.microsec_slider,"microsec",{min:this._defaults.microsecMin,max:p,step:this._defaults.stepMicrosec}),this.control.value(this,this.microsec_slider,"microsec",this.microsec-this.microsec%this._defaults.stepMicrosec))}}},_onTimeChange:function(){if(this._defaults.showTimepicker){var e=this.hour_slider?this.control.value(this,this.hour_slider,"hour"):!1,t=this.minute_slider?this.control.value(this,this.minute_slider,"minute"):!1,i=this.second_slider?this.control.value(this,this.second_slider,"second"):!1,s=this.millisec_slider?this.control.value(this,this.millisec_slider,"millisec"):!1,a=this.microsec_slider?this.control.value(this,this.microsec_slider,"microsec"):!1,n=this.timezone_select?this.timezone_select.val():!1,r=this._defaults,l=r.pickerTimeFormat||r.timeFormat,o=r.pickerTimeSuffix||r.timeSuffix;"object"==typeof e&&(e=!1),"object"==typeof t&&(t=!1),"object"==typeof i&&(i=!1),"object"==typeof s&&(s=!1),"object"==typeof a&&(a=!1),"object"==typeof n&&(n=!1),e!==!1&&(e=parseInt(e,10)),t!==!1&&(t=parseInt(t,10)),i!==!1&&(i=parseInt(i,10)),s!==!1&&(s=parseInt(s,10)),a!==!1&&(a=parseInt(a,10)),n!==!1&&(n=""+n);var c=r[12>e?"amNames":"pmNames"][0],u=e!==parseInt(this.hour,10)||t!==parseInt(this.minute,10)||i!==parseInt(this.second,10)||s!==parseInt(this.millisec,10)||a!==parseInt(this.microsec,10)||this.ampm.length>0&&12>e!=(-1!==$.inArray(this.ampm.toUpperCase(),this.amNames))||null!==this.timezone&&n!==""+this.timezone;u&&(e!==!1&&(this.hour=e),t!==!1&&(this.minute=t),i!==!1&&(this.second=i),s!==!1&&(this.millisec=s),a!==!1&&(this.microsec=a),n!==!1&&(this.timezone=n),this.inst||(this.inst=$.datepicker._getInst(this.$input[0])),this._limitMinMaxDateTime(this.inst,!0)),this.support.ampm&&(this.ampm=c),this.formattedTime=$.datepicker.formatTime(r.timeFormat,this,r),this.$timeObj&&(l===r.timeFormat?this.$timeObj.text(this.formattedTime+o):this.$timeObj.text($.datepicker.formatTime(l,this,r)+o)),this.timeDefined=!0,u&&this._updateDateTime()}},_onSelectHandler:function(){var e=this._defaults.onSelect||this.inst.settings.onSelect,t=this.$input?this.$input[0]:null;e&&t&&e.apply(t,[this.formattedDateTime,this])},_updateDateTime:function(e){e=this.inst||e;var t=e.currentYear>0?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(e.selectedYear,e.selectedMonth,e.selectedDay),i=$.datepicker._daylightSavingAdjust(t),s=$.datepicker._get(e,"dateFormat"),a=$.datepicker._getFormatConfig(e),n=null!==i&&this.timeDefined;this.formattedDate=$.datepicker.formatDate(s,null===i?new Date:i,a);var r=this.formattedDate;if(""===e.lastVal&&(e.currentYear=e.selectedYear,e.currentMonth=e.selectedMonth,e.currentDay=e.selectedDay),this._defaults.timeOnly===!0&&this._defaults.timeOnlyShowDate===!1?r=this.formattedTime:(this._defaults.timeOnly!==!0&&(this._defaults.alwaysSetTime||n)||this._defaults.timeOnly===!0&&this._defaults.timeOnlyShowDate===!0)&&(r+=this._defaults.separator+this.formattedTime+this._defaults.timeSuffix),this.formattedDateTime=r,this._defaults.showTimepicker){if(this.$altInput&&this._defaults.timeOnly===!1&&this._defaults.altFieldTimeOnly===!0){this.$altInput.val(this.formattedTime),this.$input.val(this.formattedDate)}else{if(this.$altInput){this.$input.val(r);var l="",o=this._defaults.altSeparator?this._defaults.altSeparator:this._defaults.separator,c=this._defaults.altTimeSuffix?this._defaults.altTimeSuffix:this._defaults.timeSuffix;this._defaults.timeOnly||(l=this._defaults.altFormat?$.datepicker.formatDate(this._defaults.altFormat,null===i?new Date:i,a):this.formattedDate,l&&(l+=o)),l+=this._defaults.altTimeFormat?$.datepicker.formatTime(this._defaults.altTimeFormat,this,this._defaults)+c:this.formattedTime+c,this.$altInput.val(l)}else{this.$input.val(r)}}}else{this.$input.val(this.formattedDate)}this.$input.trigger("change")},_onFocus:function(){if(!this.$input.val()&&this._defaults.defaultValue){this.$input.val(this._defaults.defaultValue);var e=$.datepicker._getInst(this.$input.get(0)),t=$.datepicker._get(e,"timepicker");if(t&&t._defaults.timeOnly&&e.input.val()!==e.lastVal){try{$.datepicker._updateDatepicker(e)}catch(i){$.timepicker.log(i)}}}},_controls:{slider:{create:function(e,t,i,s,a,n,r){var l=e._defaults.isRTL;return t.prop("slide",null).slider({orientation:"horizontal",value:l?-1*s:s,min:l?-1*n:a,max:l?-1*a:n,step:r,slide:function(t,s){e.control.value(e,$(this),i,l?-1*s.value:s.value),e._onTimeChange()},stop:function(){e._onSelectHandler()}})},options:function(e,t,i,s,a){if(e._defaults.isRTL){if("string"==typeof s){return"min"===s||"max"===s?void 0!==a?t.slider(s,-1*a):Math.abs(t.slider(s)):t.slider(s)}var n=s.min,r=s.max;return s.min=s.max=null,void 0!==n&&(s.max=-1*n),void 0!==r&&(s.min=-1*r),t.slider(s)}return"string"==typeof s&&void 0!==a?t.slider(s,a):t.slider(s)},value:function(e,t,i,s){return e._defaults.isRTL?void 0!==s?t.slider("value",-1*s):Math.abs(t.slider("value")):void 0!==s?t.slider("value",s):t.slider("value")}},select:{create:function(e,t,i,s,a,n,r){for(var l='<select class="ui-timepicker-select" data-unit="'+i+'" data-min="'+a+'" data-max="'+n+'" data-step="'+r+'">',o=e._defaults.pickerTimeFormat||e._defaults.timeFormat,c=a;n>=c;c+=r){l+='<option value="'+c+'"'+(c===s?" selected":"")+">",l+="hour"===i?$.datepicker.formatTime($.trim(o.replace(/[^ht ]/gi,"")),{hour:c},e._defaults):"millisec"===i||"microsec"===i||c>=10?c:"0"+(""+c),l+="</option>"}return l+="</select>",t.children("select").remove(),$(l).appendTo(t).change(function(){e._onTimeChange(),e._onSelectHandler()}),t},options:function(e,t,i,s,a){var n={},r=t.children("select");if("string"==typeof s){if(void 0===a){return r.data(s)}n[s]=a}else{n=s}return e.control.create(e,t,r.data("unit"),r.val(),n.min||r.data("min"),n.max||r.data("max"),n.step||r.data("step"))},value:function(e,t,i,s){var a=t.children("select");return void 0!==s?a.val(s):a.val()}}}}),$.fn.extend({timepicker:function(e){e=e||{};var t=Array.prototype.slice.call(arguments);return"object"==typeof e&&(t[0]=$.extend(e,{timeOnly:!0})),$(this).each(function(){$.fn.datetimepicker.apply($(this),t)})},datetimepicker:function(e){e=e||{};var t=arguments;return"string"==typeof e?"getDate"===e?$.fn.datepicker.apply($(this[0]),t):this.each(function(){var e=$
22(this);e.datepicker.apply(e,t)}):this.each(function(){var t=$(this);t.datepicker($.timepicker._newInst(t,e)._defaults)})}}),$.datepicker.parseDateTime=function(e,t,i,s,a){var n=parseDateTimeInternal(e,t,i,s,a);if(n.timeObj){var r=n.timeObj;n.date.setHours(r.hour,r.minute,r.second,r.millisec),n.date.setMicroseconds(r.microsec)}return n.date},$.datepicker.parseTime=function(e,t,i){var s=extendRemove(extendRemove({},$.timepicker._defaults),i||{});-1!==e.replace(/\'.*?\'/g,"").indexOf("Z");var a=function(e,t,i){var s,a=function(e,t){var i=[];return e&&$.merge(i,e),t&&$.merge(i,t),i=$.map(i,function(e){return e.replace(/[.*+?|()\[\]{}\\]/g,"\\$&")}),"("+i.join("|")+")?"},n=function(e){var t=e.toLowerCase().match(/(h{1,2}|m{1,2}|s{1,2}|l{1}|c{1}|t{1,2}|z|'.*?')/g),i={h:-1,m:-1,s:-1,l:-1,c:-1,t:-1,z:-1};if(t){for(var s=0;t.length>s;s++){-1===i[(""+t[s]).charAt(0)]&&(i[(""+t[s]).charAt(0)]=s+1)}}return i},r="^"+(""+e).replace(/([hH]{1,2}|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g,function(e){var t=e.length;switch(e.charAt(0).toLowerCase()){case"h":return 1===t?"(\\d?\\d)":"(\\d{"+t+"})";case"m":return 1===t?"(\\d?\\d)":"(\\d{"+t+"})";case"s":return 1===t?"(\\d?\\d)":"(\\d{"+t+"})";case"l":return"(\\d?\\d?\\d)";case"c":return"(\\d?\\d?\\d)";case"z":return"(z|[-+]\\d\\d:?\\d\\d|\\S+)?";case"t":return a(i.amNames,i.pmNames);default:return"("+e.replace(/\'/g,"").replace(/(\.|\$|\^|\\|\/|\(|\)|\[|\]|\?|\+|\*)/g,function(e){return"\\"+e})+")?"}}).replace(/\s/g,"\\s?")+i.timeSuffix+"$",l=n(e),o="";s=t.match(RegExp(r,"i"));var c={hour:0,minute:0,second:0,millisec:0,microsec:0};return s?(-1!==l.t&&(void 0===s[l.t]||0===s[l.t].length?(o="",c.ampm=""):(o=-1!==$.inArray(s[l.t].toUpperCase(),i.amNames)?"AM":"PM",c.ampm=i["AM"===o?"amNames":"pmNames"][0])),-1!==l.h&&(c.hour="AM"===o&&"12"===s[l.h]?0:"PM"===o&&"12"!==s[l.h]?parseInt(s[l.h],10)+12:Number(s[l.h])),-1!==l.m&&(c.minute=Number(s[l.m])),-1!==l.s&&(c.second=Number(s[l.s])),-1!==l.l&&(c.millisec=Number(s[l.l])),-1!==l.c&&(c.microsec=Number(s[l.c])),-1!==l.z&&void 0!==s[l.z]&&(c.timezone=$.timepicker.timezoneOffsetNumber(s[l.z])),c):!1},n=function(e,t,i){try{var s=new Date("2012-01-01 "+t);if(isNaN(s.getTime())&&(s=new Date("2012-01-01T"+t),isNaN(s.getTime())&&(s=new Date("01/01/2012 "+t),isNaN(s.getTime())))){throw"Unable to parse time with native Date: "+t}return{hour:s.getHours(),minute:s.getMinutes(),second:s.getSeconds(),millisec:s.getMilliseconds(),microsec:s.getMicroseconds(),timezone:-1*s.getTimezoneOffset()}}catch(n){try{return a(e,t,i)}catch(r){$.timepicker.log("Unable to parse \ntimeString: "+t+"\ntimeFormat: "+e)}}return !1};return"function"==typeof s.parse?s.parse(e,t,s):"loose"===s.parse?n(e,t,s):a(e,t,s)},$.datepicker.formatTime=function(e,t,i){i=i||{},i=$.extend({},$.timepicker._defaults,i),t=$.extend({hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null},t);var s=e,a=i.amNames[0],n=parseInt(t.hour,10);return n>11&&(a=i.pmNames[0]),s=s.replace(/(?:HH?|hh?|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g,function(e){switch(e){case"HH":return("0"+n).slice(-2);case"H":return n;case"hh":return("0"+convert24to12(n)).slice(-2);case"h":return convert24to12(n);case"mm":return("0"+t.minute).slice(-2);case"m":return t.minute;case"ss":return("0"+t.second).slice(-2);case"s":return t.second;case"l":return("00"+t.millisec).slice(-3);case"c":return("00"+t.microsec).slice(-3);case"z":return $.timepicker.timezoneOffsetString(null===t.timezone?i.timezone:t.timezone,!1);case"Z":return $.timepicker.timezoneOffsetString(null===t.timezone?i.timezone:t.timezone,!0);case"T":return a.charAt(0).toUpperCase();case"TT":return a.toUpperCase();case"t":return a.charAt(0).toLowerCase();case"tt":return a.toLowerCase();default:return e.replace(/'/g,"")}})},$.datepicker._base_selectDate=$.datepicker._selectDate,$.datepicker._selectDate=function(e,t){var i=this._getInst($(e)[0]),s=this._get(i,"timepicker");s&&i.settings.showTimepicker?(s._limitMinMaxDateTime(i,!0),i.inline=i.stay_open=!0,this._base_selectDate(e,t),i.inline=i.stay_open=!1,this._notifyChange(i),this._updateDatepicker(i)):this._base_selectDate(e,t)},$.datepicker._base_updateDatepicker=$.datepicker._updateDatepicker,$.datepicker._updateDatepicker=function(e){var t=e.input[0];if(!($.datepicker._curInst&&$.datepicker._curInst!==e&&$.datepicker._datepickerShowing&&$.datepicker._lastInput!==t||"boolean"==typeof e.stay_open&&e.stay_open!==!1)){this._base_updateDatepicker(e);var i=this._get(e,"timepicker");i&&i._addTimePicker(e)}},$.datepicker._base_doKeyPress=$.datepicker._doKeyPress,$.datepicker._doKeyPress=function(e){var t=$.datepicker._getInst(e.target),i=$.datepicker._get(t,"timepicker");if(i&&$.datepicker._get(t,"constrainInput")){var s=i.support.ampm,a=null!==i._defaults.showTimezone?i._defaults.showTimezone:i.support.timezone,n=$.datepicker._possibleChars($.datepicker._get(t,"dateFormat")),r=(""+i._defaults.timeFormat).replace(/[hms]/g,"").replace(/TT/g,
22s?"APM":"").replace(/Tt/g,s?"AaPpMm":"").replace(/tT/g,s?"AaPpMm":"").replace(/T/g,s?"AP":"").replace(/tt/g,s?"apm":"").replace(/t/g,s?"ap":"")+" "+i._defaults.separator+i._defaults.timeSuffix+(a?i._defaults.timezoneList.join(""):"")+i._defaults.amNames.join("")+i._defaults.pmNames.join("")+n,l=String.fromCharCode(void 0===e.charCode?e.keyCode:e.charCode);return e.ctrlKey||" ">l||!n||r.indexOf(l)>-1}return $.datepicker._base_doKeyPress(e)},$.datepicker._base_updateAlternate=$.datepicker._updateAlternate,$.datepicker._updateAlternate=function(e){var t=this._get(e,"timepicker");if(t){var i=t._defaults.altField;if(i){var s=(t._defaults.altFormat||t._defaults.dateFormat,this._getDate(e)),a=$.datepicker._getFormatConfig(e),n="",r=t._defaults.altSeparator?t._defaults.altSeparator:t._defaults.separator,l=t._defaults.altTimeSuffix?t._defaults.altTimeSuffix:t._defaults.timeSuffix,o=null!==t._defaults.altTimeFormat?t._defaults.altTimeFormat:t._defaults.timeFormat;n+=$.datepicker.formatTime(o,t,t._defaults)+l,t._defaults.timeOnly||t._defaults.altFieldTimeOnly||null===s||(n=t._defaults.altFormat?$.datepicker.formatDate(t._defaults.altFormat,s,a)+r+n:t.formattedDate+r+n),$(i).val(n)}}else{$.datepicker._base_updateAlternate(e)}},$.datepicker._base_doKeyUp=$.datepicker._doKeyUp,$.datepicker._doKeyUp=function(e){var t=$.datepicker._getInst(e.target),i=$.datepicker._get(t,"timepicker");if(i&&i._defaults.timeOnly&&t.input.val()!==t.lastVal){try{$.datepicker._updateDatepicker(t)}catch(s){$.timepicker.log(s)}}return $.datepicker._base_doKeyUp(e)},$.datepicker._base_gotoToday=$.datepicker._gotoToday,$.datepicker._gotoToday=function(e){var t=this._getInst($(e)[0]),i=t.dpDiv;this._base_gotoToday(e);var s=this._get(t,"timepicker");selectLocalTimezone(s);var a=new Date;this._setTime(t,a),$(".ui-datepicker-today",i).click()},$.datepicker._disableTimepickerDatepicker=function(e){var t=this._getInst(e);if(t){var i=this._get(t,"timepicker");$(e).datepicker("getDate"),i&&(t.settings.showTimepicker=!1,i._defaults.showTimepicker=!1,i._updateDateTime(t))}},$.datepicker._enableTimepickerDatepicker=function(e){var t=this._getInst(e);if(t){var i=this._get(t,"timepicker");$(e).datepicker("getDate"),i&&(t.settings.showTimepicker=!0,i._defaults.showTimepicker=!0,i._addTimePicker(t),i._updateDateTime(t))}},$.datepicker._setTime=function(e,t){var i=this._get(e,"timepicker");if(i){var s=i._defaults;i.hour=t?t.getHours():s.hour,i.minute=t?t.getMinutes():s.minute,i.second=t?t.getSeconds():s.second,i.millisec=t?t.getMilliseconds():s.millisec,i.microsec=t?t.getMicroseconds():s.microsec,i._limitMinMaxDateTime(e,!0),i._onTimeChange(),i._updateDateTime(e)}},$.datepicker._setTimeDatepicker=function(e,t,i){var s=this._getInst(e);if(s){var a=this._get(s,"timepicker");if(a){this._setDateFromField(s);var n;t&&("string"==typeof t?(a._parseTime(t,i),n=new Date,n.setHours(a.hour,a.minute,a.second,a.millisec),n.setMicroseconds(a.microsec)):(n=new Date(t.getTime()),n.setMicroseconds(t.getMicroseconds())),"Invalid Date"==""+n&&(n=void 0),this._setTime(s,n))}}},$.datepicker._base_setDateDatepicker=$.datepicker._setDateDatepicker,$.datepicker._setDateDatepicker=function(e,t){var i=this._getInst(e);if(i){"string"==typeof t&&(t=new Date(t),t.getTime()||$.timepicker.log("Error creating Date object from string."));var s,a=this._get(i,"timepicker");t instanceof Date?(s=new Date(t.getTime()),s.setMicroseconds(t.getMicroseconds())):s=t,a&&s&&(a.support.timezone||null!==a._defaults.timezone||(a.timezone=-1*s.getTimezoneOffset()),t=$.timepicker.timezoneAdjust(t,a.timezone),s=$.timepicker.timezoneAdjust(s,a.timezone)),this._updateDatepicker(i),this._base_setDateDatepicker.apply(this,arguments),this._setTimeDatepicker(e,s,!0)}},$.datepicker._base_getDateDatepicker=$.datepicker._getDateDatepicker,$.datepicker._getDateDatepicker=function(e,t){var i=this._getInst(e);if(i){var s=this._get(i,"timepicker");if(s){void 0===i.lastVal&&this._setDateFromField(i,t);var a=this._getDate(i);return a&&s._parseTime($(e).val(),s.timeOnly)&&(a.setHours(s.hour,s.minute,s.second,s.millisec),a.setMicroseconds(s.microsec),null!=s.timezone&&(s.support.timezone||null!==s._defaults.timezone||(s.timezone=-1*a.getTimezoneOffset()),a=$.timepicker.timezoneAdjust(a,s.timezone))),a}return this._base_getDateDatepicker(e,t)}},$.datepicker._base_parseDate=$.datepicker.parseDate,$.datepicker.parseDate=function(e,t,i){var s;try{s=this._base_parseDate(e,t,i)}catch(a){if(!(a.indexOf(":")>=0)){throw a}s=this._base_parseDate(e,t.substring(0,t.length-(a.length-a.indexOf(":")-2)),i),$.timepicker.log("Error parsing the date string: "+a+"\ndate string = "+t+"\ndate format = "+e)}return s},$.datepicker._base_formatDate=$.datepicker._formatDate,$.datepicker._formatDate=function(e){var t=this._get(e,"timepicker");return t?(t._updateDateTime(e),t.$input.val()):this._base_formatDate(e)},$.datepicker._base_optionDatepicker=$.datepicker._optionDatepicker,$.datepicker._optionDatepicker=function(e,t,i){var s,a=this._getInst(e);if(!a){return null}var n=this._get(a,"timepicker");if(n){var r,l=null,o=null,c=null,u=n._defaults.evnts,m={};if("string"==typeof t){if("minDate"===t||"minDateTime"===t){l=i}else{if("maxDate"===t||"maxDateTime"===t){o=i}else{if("onSelect"===t){c=i}else{if(u.hasOwnProperty(t)){if(i===void 0){return u[t]}m[t]=i,s={}}
22}}}}else{if("object"==typeof t){t.minDate?l=t.minDate:t.minDateTime?l=t.minDateTime:t.maxDate?o=t.maxDate:t.maxDateTime&&(o=t.maxDateTime);for(r in u){u.hasOwnProperty(r)&&t[r]&&(m[r]=t[r])}}}for(r in m){m.hasOwnProperty(r)&&(u[r]=m[r],s||(s=$.extend({},t)),delete s[r])}if(s&&isEmptyObject(s)){return}l?(l=0===l?new Date:new Date(l),n._defaults.minDate=l,n._defaults.minDateTime=l):o?(o=0===o?new Date:new Date(o),n._defaults.maxDate=o,n._defaults.maxDateTime=o):c&&(n._defaults.onSelect=c)}return void 0===i?this._base_optionDatepicker.call($.datepicker,e,t):this._base_optionDatepicker.call($.datepicker,e,s||t,i)};var isEmptyObject=function(e){var t;for(t in e){if(e.hasOwnProperty(t)){return !1}}return !0},extendRemove=function(e,t){$.extend(e,t);for(var i in t){(null===t[i]||void 0===t[i])&&(e[i]=t[i])}return e},detectSupport=function(e){var t=e.replace(/'.*?'/g,"").toLowerCase(),i=function(e,t){return -1!==e.indexOf(t)?!0:!1};return{hour:i(t,"h"),minute:i(t,"m"),second:i(t,"s"),millisec:i(t,"l"),microsec:i(t,"c"),timezone:i(t,"z"),ampm:i(t,"t")&&i(e,"h"),iso8601:i(e,"Z")}},convert24to12=function(e){return e%=12,0===e&&(e=12),e+""},computeEffectiveSetting=function(e,t){return e&&e[t]?e[t]:$.timepicker._defaults[t]},splitDateTime=function(e,t){var i=computeEffectiveSetting(t,"separator"),s=computeEffectiveSetting(t,"timeFormat"),a=s.split(i),n=a.length,r=e.split(i),l=r.length;return l>1?{dateString:r.splice(0,l-n).join(i),timeString:r.splice(0,n).join(i)}:{dateString:e,timeString:""}},parseDateTimeInternal=function(e,t,i,s,a){var n,r,l;if(r=splitDateTime(i,a),n=$.datepicker._base_parseDate(e,r.dateString,
22s),""===r.timeString){return{date:n}}if(l=$.datepicker.parseTime(t,r.timeString,a),!l){throw"Wrong time format"}return{date:n,timeObj:l}},selectLocalTimezone=function(e,t){if(e&&e.timezone_select){var i=t||new Date;e.timezone_select.val(-i.getTimezoneOffset())}};$.timepicker=new Timepicker,$.timepicker.timezoneOffsetString=function(e,t){if(isNaN(e)||e>840||-720>e){return e}var i=e,s=i%60,a=(i-s)/60,n=t?":":"",r=(i>=0?"+":"-")+("0"+Math.abs(a)).slice(-2)+n+("0"+Math.abs(s)).slice(-2);return"+00:00"===r?"Z":r},$.timepicker.timezoneOffsetNumber=function(e){var t=(""+e).replace(":","");return"Z"===t.toUpperCase()?0:/^(\-|\+)\d{4}$/.test(t)?("-"===t.substr(0,1)?-1:1)*(60*parseInt(t.substr(1,2),10)+parseInt(t.substr(3,2),10)):e},$.timepicker.timezoneAdjust=function(e,t){var i=$.timepicker.timezoneOffsetNumber(t);return isNaN(i)||e.setMinutes(e.getMinutes()+-e.getTimezoneOffset()-i),e},$.timepicker.timeRange=function(e,t,i){return $.timepicker.handleRange("timepicker",e,t,i)},$.timepicker.datetimeRange=function(e,t,i){$.timepicker.handleRange("datetimepicker",e,t,i)},$.timepicker.dateRange=function(e,t,i){$.timepicker.handleRange("datepicker",e,t,i)},$.timepicker.handleRange=function(e,t,i,s){function a(a,n){var r=t[e]("getDate"),l=i[e]("getDate"),o=a[e]("getDate");if(null!==r){var c=new Date(r.getTime()),u=new Date(r.getTime());c.setMilliseconds(c.getMilliseconds()+s.minInterval),u.setMilliseconds(u.getMilliseconds()+s.maxInterval),s.minInterval>0&&c>l?i[e]("setDate",c):s.maxInterval>0&&l>u?i[e]("setDate",u):r>l&&n[e]("setDate",o)}}function n(t,i,a){if(t.val()){var n=t[e].call(t,"getDate");null!==n&&s.minInterval>0&&("minDate"===a&&n.setMilliseconds(n.getMilliseconds()+s.minInterval),"maxDate"===a&&n.setMilliseconds(n.getMilliseconds()-s.minInterval)),n.getTime&&i[e].call(i,"option",a,n)}}s=$.extend({},{minInterval:0,maxInterval:0,start:{},end:{}},s);var r=!1;return"timepicker"===e&&(r=!0,e="datetimepicker"),$.fn[e].call(t,$.extend({timeOnly:r,onClose:function(){a($(this),i)},onSelect:function(){n($(this),i,"minDate")}},s,s.start)),$.fn[e].call(i,$.extend({timeOnly:r,onClose:function(){a($(this),t)},onSelect:function(){n($(this),t,"maxDate")}},s,s.end)),a(t,i),n(t,i,"minDate"),n(i,t,"maxDate"),$([t.get(0),i.get(0)])},$.timepicker.log=function(e){window.console&&window.console.log(e)},$.timepicker._util={_extendRemove:extendRemove,_isEmptyObject:isEmptyObject,_convert24to12:convert24to12,_detectSupport:detectSupport,_selectLocalTimezone:selectLocalTimezone,_computeEffectiveSetting:computeEffectiveSetting,_splitDateTime:splitDateTime,_parseDateTimeInternal:parseDateTimeInternal},Date.prototype.getMicroseconds||(Date.prototype.microseconds=0,Date.prototype.getMicroseconds=function(){return this.microseconds},Date.prototype.setMicroseconds=function(e){return this.setMilliseconds(this.getMilliseconds()+Math.floor(e/1000)),this.microseconds=e%1000,this}),$.timepicker.version="1.4.4"}})(jQuery); 23/*js/jquery-synway.1.4.js*/var SynwayTimeControl={create:function(tp_inst,obj,unit,val,min,max,step){$('<input class="ui-timepicker-input" value="'+val+'" style="width:50%">').appendTo(obj).spinner({min:min,max:max,step:step,change:function(e,ui){if
23(e.originalEvent!==undefined){tp_inst._onTimeChange()}tp_inst._onSelectHandler()},spin:function(e,ui){tp_inst.control.value(tp_inst,obj,unit,ui.value);tp_inst._onTimeChange();tp_inst._onSelectHandler()}});return obj},options:function(tp_inst,obj,unit,opts,val){if(typeof(opts)=="string"&&val!==undefined){return obj.find(".ui-timepicker-input").spinner(opts,val)}return obj.find(".ui-timepicker-input").spinner(opts)},value:function(tp_inst,obj,unit,val){if(val!==undefined){return obj.find(".ui-timepicker-input").spinner("value",val)}return obj.find(".ui-timepicker-input").spinner("value")}};function SetupFileUpload(){$("input[type=submit],input[type=reset],button,.synwaybtn,.ResponsiveFileUpload td > a").button();$("#UploadBtn").click(function(){$("#BtNewFile").trigger("click")});$("#BtNewFile").change(function(){$("#UndLos").click()})}function ManageScroll(){var r=$("#ReplaceMeViaAjax");if(r&&r.length){var o=r.offset();if(($(document).scrollTop()+$(window).height())>o.top){var ReplaceViaAjax=document.getElementById("ReplaceViaAjax");if(ReplaceViaAjax){eval(ReplaceViaAjax.value)}}}}function InitNavKatMenus(){RefreshWKButton(0);$("#section-0 .LogoBanner .header-top-menu .header-nav-wrapper .header-nav").hover(function(){var currentItem=$(this);$(this).addClass("active");$(this).parent().find("ul").hover(function(){$(currentItem).addClass("active")},function(){$(currentItem).removeClass("active")})},function(){$(this).removeClass("active")});$(".LayoutmodeSelection,#HotlineBtn").hover(function(){$(this).addClass("active")},function(){$(this).removeClass("active")});$("#section-0 .TopNav .nav1-balken-aktiv,#section-0 .TopNav .nav1-balken-inaktiv").hover(function(){$(this).addClass("active")},function(){$(this).removeClass("active")});$(document).ready(function(){$(window).scroll(ManageScroll);ManageScroll()})}function RefreshWKButton(Animation,PID){var anzahl,wert,a,w1,w2,Fehler,WarenkorbFehlerDiv;var WKDlgBtn=$("#WarenkorbDialogBtn");$("#KTRANS_WarenkorbAJAX script").each(function(){if(this.src!==undefined&&this.src!==""){$("head").append('<script type="text/javascript" src="'+this.src+'"></script>')}}).remove();Fehler=$("#SynWAYWarenkorbDIV span.Fehlerausgabe b").contents().clone();WarenkorbFehlerDiv=$("#WarenkorbFehler");if(Fehler&&Fehler.length){WarenkorbFehlerDiv.html(Fehler);WarenkorbFehlerDiv.css({display:"block"});WarenkorbFehlerDiv.effect("highlight",{},2000,null,true)}else{WarenkorbFehlerDiv.css({display:"none"})}if(Animation==1){var NeuerInhalt,flyin,flyinType,flyinContent,btn,BookingType0;BookingType0=$("#BookingType0");if(BookingType0&&BookingType0.length>0){if(!BookingType0[0].checked){BookingType0=null}}else{BookingType0=true}flyin=$("#WarenkorbFlyin");flyinContent=$("#WarenkorbFlyinContent");btn=$("#WarenkorbDialogBtn2");if(btn.length==0){btn=$("#WarenkorbDialogBtn")}flyin.addClass("ui-button ui-widget ui-state-default");flyinContent.html($("#WKNewItem").contents().clone());flyin.width("auto");var StartElement,newOffset;StartElement=$("#ajaxout");if(!PID){PID=""}if(document.getElementById("WarenkorbFlyinContent").innerHTML!=""&&(BookingType0||PID!=""||(!(StartElement&&StartElement.length>0)))){if($("body:not(.NoAnimation)").length>0){var AnimCallback=WarenkorbFlyinHideCallback;if(PID!=""||!(StartElement&&StartElement.length>0)){StartElement=$("#PDINWK"+PID);if(StartElement.length==0){if(PID!=""){StartElement=$("#"+PID+" .BGNr0")}}else{AnimCallback=WarenkorbFlyinHidePDCallback}}if(StartElement&&StartElement.length>0){newOffset=StartElement.offset();flyin.css({top:newOffset.top+(StartElement.height()/2)-20,left:newOffset.left-flyin.width()+StartElement.width()});flyin.show("drop",{direction:"right"},500,null,true);newOffset=btn.offset();flyin.animate({top:newOffset.top+btn.height()+3,left:newOffset.left},1500,AnimCallback)}}}else{$("#WarenkorbDialogBtn,#WarenkorbDialogBtn2").effect("shake",{direction:"up",distance:5},500,null,false)}}anzahl=WKDlgBtn.find(".WKAnzahlAnzeige")[0];wert=WKDlgBtn.find(".WKSummeAnzeige")[0];a=document.getElementById("WKArtikelAnzahlValue");w1=document.getElementById("WKSumText");w2=document.getElementById("WKSumValue");if(anzahl){if(a){anzahl.style.display="inline-block";anzahl.innerHTML=a.value}else{anzahl.style.display="inline-block";anzahl.innerHTML="0"}}if(wert){if(w1){wert.style.display="inline-block";if(w2){wert.innerHTML=w1.innerHTML+" "+w2.innerHTML}else{wert.innerHTML=w1.innerHTML+" 0â¬"}}else{wert.style.display="inline-block";wert.innerHTML=" 0â¬"}}$("#WarenkorbDialogBtn2").html(WKDlgBtn.contents().clone())}function WarenkorbFlyinHideCallback(){$("#WarenkorbFlyin").hide("slide",{direction:"up"},500,WarenkorbBtnShakeCallback)}function WarenkorbBtnShakeCallback(){$("#WarenkorbDialogBtn2,#WarenkorbDialogBtn").effect("shake",{direction:"up",distance:5}
23,1000,null,false)}function WarenkorbFlyinHidePDCallback(){$("#WarenkorbFlyin").hide("slide",{direction:"up"},500,WarenkorbBtnShakePDCallback)}function WarenkorbBtnShakePDCallback(){$("#WarenkorbDialogBtn").effect("shake",{direction:"up",distance:5},1000,null,false)}function StartHiddenWKTrackingScript(){var ScriptSrc=$("#WarenkorbDialog #HiddenWKTrackingScript").val();if(ScriptSrc!==undefined&&ScriptSrc!==""){$("head").append('<script type="text/javascript" src="'+ScriptSrc+'"></script>');$("#WarenkorbDialog #HiddenWKTrackingScript").val("")}}function ZurueckClickedR(){ZurueckClicked()}function WeiterClickedR(){FormStepSel(document.getElementById("FormStepperSub").value,document.getElementById("FormStepperId").value,document.getElementById("NaechsterSchritt").value*1+1);if(window.event){window.event.preventDefault()}return false}function FormStepSel(SUB,PageID,NextFormPart){var WeiterBtn,CurrentStep,fdata,elements;CurrentStep=document.getElementById("NaechsterSchritt").value*1;if(NextFormPart==CurrentStep){return}if(NextFormPart>(CurrentStep+1)){NextFormPart=CurrentStep+1}if(NextFormPart>CurrentStep){if(DoCheck){if(!DoCheck()){return}}if(!document.getElementById("FormPartWeiter")){return}}if(CurrentStep>NextFormPart){if(!document.getElementById("FormPartZurueck")){return}}fdata=new Array();elements=document.forms.namedItem("SPDBForm").elements;for(i=0;i<elements.length;i++){fdata[i*2]=elements[i].name;if(elements[i].type=="checkbox"||elements[i].type=="radiobox"){if(elements[i].checked){fdata[i*2+1]=elements[i].value}else{fdata[i*2+1]=""}}else{fdata[i*2+1]=elements[i].value}}if(CurrentStep<NextFormPart){fdata[i*2]="FWeiter";fdata[i*2+1]="FWeiter"}else{fdata[i*2]="FZurueck";fdata[i*2+1]="FZurueck"}$(".FormStepper #FormStepArea"+CurrentStep).removeClass("active");$(".FormStepper #FormStepArea"+CurrentStep).addClass("inactive");$(".FormStepper #FormStepArea"+NextFormPart).addClass("active");$(".FormStepper #FormStepArea"+NextFormPart).removeClass("unselectable");$(".FormStepper #FormStepArea"+NextFormPart).removeClass("inactive");$(".FormStepper #FormStepArea"+(NextFormPart*1+1)).addClass("inactive");$(".FormStepper #FormStepArea"+(NextFormPart*1+1)).removeClass("active");$(".FormStepper #FormStepArea"+(NextFormPart*1+1)).removeClass("unselectable");$(".FormStepper #FormStepArea"+(NextFormPart*1+2)).addClass("unselectable");$(".FormStepper #FormStepArea"+(NextFormPart*1+2)).removeClass("active");$(".FormStepper #FormStepArea"+(NextFormPart*1+2)).removeClass("inactive");$(".FormStepper #FormStepArea"+(NextFormPart*1+3)).addClass("unselectable");$(".FormStepper #FormStepArea"+(NextFormPart*1+3)).removeClass("active");$(".FormStepper #FormStepArea"+(NextFormPart*1+3)).removeClass("inactive");$("#FormStepFormPart"+NextFormPart).html('<div class="SpinnerContainer"><div class="SpinnerCell fa fa-spin fa-spinner"></div></div>');AjaxGetNextFormpart(SUB,PageID,NextFormPart,fdata);$("#FormStepFormPart"+CurrentStep).html("")}function SetupFbLoginLinkDiv(elem){if(elem!=null){hiddenselector=$('<input type="hidden" name="doFbLink" value="1" />').appendTo(elem);$(elem).css("cursor","pointer").click(function(){$(this).toggleClass("fbReference-disabled");if($(this).hasClass("fbReference-disabled")){hiddenselector.val("0")}else{hiddenselector.val("1")}})}}function ProtectWarenkorb(){var s,spinner;var h=$("#HideWarenkorb2");if(h.length==0){h=$("#HideWarenkorb");s=$("#tdWarenkorb");spinner=$("#HideWarenkorb .SpinnerContainer")}else{s=$("#KTRANS_Warenkorb_DIV");spinner=$("#HideWarenkorb2 .SpinnerContainer")}h.width(s.width());h.height(s.height());spinner.height(s.height());spinner.width(s.width());h.css("display","block")}function EnableWarenkorb(){$("#HideWarenkorb,#HideWarenkorb2").css("display","none")}function InitGallery(Fieldname,NoZoom){var WithZoom=1;if(NoZoom){WithZoom=0}$("img.gal"+Fieldname).Gallery({xoffset:50,zoomWidth:300,zoomHeight:300,WithZoom:WithZoom})}function InitGalleryAjax(JQueryArray){JQueryArray.Gallery({xoffset:50,zoomWidth:300,zoomHeight:300,WithZoom:0})}function JssorGotoUrl(slideIndex,event){var ImgID=event.target.id;var url=$("#"+ImgID).attr("href");var target=$("#"+ImgID).attr("target");if(url){if(url!=""){NavigateToUrlInTarget(url,target)}}}function closeJssorLightbox(){$("#lightbox").hide();$("#lightbox-shadow").hide();$("#TopNavSmallDiv").hide();$(".TopNavSmall").css("z-index",0);$("#lightbox").empty()}function JssorDisplayFullSizeImage(slideIndex,event){var ImgID=event.target.id;var width=1000;if($(window).width()<width){width=Math.floor($(window).width()/100)
23*100}var height=width*2/3;if($(window).height()<height+40){height=Math.floor($(window).height()/20)*20-40;width=height*3/2}var h='<div class="SliderContainer" id="BigSlider"><div class="jssorSlides" u="slides" style="width:'+width+'px;height:"+height+"px;">';var Imgs=$(event.target.parentNode.parentNode);Imgs=Imgs.find("img.uImage");if(Imgs.length==1){var NewSrc=$("#"+ImgID).attr("src");NewSrc=NewSrc.replace(/&size=\d/g,"")+"&VL="+height+"&HL="+width;jssorLightbox("<img id='GalleryFullImage' src='"+NewSrc+"' onclick='closeJssorLightbox();' />")}var i,t;for(i=0;i<Imgs.length;i++){var s=Imgs[i].src;t=s;s=s.replace(/&size=\d/g,"")+"&VL="+height+"&HL="+width;t=t.replace(/&size=\d/g,"")+"&VL=50&HL=100&size=T";h=h+'<div id="BigSliderImg'+i+'"><img u="image" src="'+s+'" alt="" class="uImage" /><img u="thumb" src="'+t+'" alt="" class="uThumb" /></div>'}h=h+'</div><span u="arrowleft" class="jssora03l jssoral"></span><span u="arrowright" class="jssora03r jssorar""></span><div u="thumbnavigator" class="jssort07 jssorThumbs"><div u="slides" class="jssorThumbSlides"><div u="prototype" class="p"><div u="thumbnailtemplate" class="i"></div><div class="o"></div></div></div></div><button id=\'CloseBigSlider\'>×</button>';jssorLightbox(h);$("#lightbox-shadow").unbind("click");$("#CloseBigSlider").button().click(function(e){closeJssorLightbox()});InitJSSORGallery("BigSlider",0,3,-1,7,width,height,100,50)}function jssorLightbox(insertContent,ajaxContentUrl){if($("#lightbox").size()==0){var theShadow=$('<div id="lightbox-shadow"><div id="lightbox"/></div>');$(theShadow).click(function(e){closeJssorLightbox()});$("body").append(theShadow)}$("#lightbox").empty();if(insertContent!=null){$("#lightbox").append(insertContent)}$("#lightbox").show();$("#lightbox-shadow").show()}function InitJSSORGallery(Fieldname,NoZoom,Arrows,Bullets,Thumbnails,width,height,thumbWidth,thumbHeight){var WithZoom=1;var Show=2;var containerId=Fieldname+"_SC";if(Fieldname=="BigSlider"){containerId=Fieldname}var SC=$("#"+containerId);var ImgS=$("#"+containerId+" img.uImage");if(NoZoom){WithZoom=0}var options={$FillMode:2,$AutoPlay:true,$SlideDuration:2500,$DragOrientation:0,$CaptionSliderOptions:undefined,$BulletNavigatorOptions:undefined,$ArrowNavigatorOptions:undefined,$ThumbnailNavigatorOptions:undefined,$AutoPlayInterval:5000,$SlideshowOptions:undefined};if(Fieldname=="HOME"){options.$DragOrientation=1}if(Fieldname=="BigSlider"){options.$DragOrientation=1;options.$AutoPlay=false;options.$FillMode=1}if(Thumbnails>0){Show=2;if(ImgS.length<=1){Show=0}if(Thumbnails==16){options.$ThumbnailNavigatorOptions={$Class:$JssorThumbnailNavigator$,$ChanceToShow:Show,$ActionMode:1,$AutoCenter:3,$Lanes:1,$SpacingX:0,$SpacingY:0,$DisplayPieces:3,$ParkingPosition:0,$Orientation:1,$DisableDrag:false}}else{if(Thumbnails==15){options.$ThumbnailNavigatorOptions={$Class:$JssorThumbnailNavigator$,$ChanceToShow:Show,$ActionMode:1,$AutoCenter:3,$Lanes:1,$SpacingX:3,$SpacingY:3,$DisplayPieces:9,$ParkingPosition:250,$Orientation:1,$DisableDrag:false}}else{if(Thumbnails==2){options.$ThumbnailNavigatorOptions={$Class:$JssorThumbnailNavigator$,$ChanceToShow:Show,$Lanes:2,$SpacingX:14,$SpacingY:12,$DisplayPieces:6,$ParkingPosition:156,$Orientation:2}}else{if(Thumbnails==3){options.$ThumbnailNavigatorOptions={$Class:$JssorThumbnailNavigator$,$ChanceToShow:Show,$ActionMode:1,$AutoCenter:3,$Lanes:1,$SpacingX:3,$SpacingY:3,$DisplayPieces:9,$ParkingPosition:260,$Orientation:1}}else{if(Thumbnails==4){options.$ThumbnailNavigatorOptions={$Class:$JssorThumbnailNavigator$,$ChanceToShow:Show,$ActionMode:1,$AutoCenter:0,$Lanes:1,$SpacingX:3,$SpacingY:3,$DisplayPieces:9,$ParkingPosition:260,$Orientation:1,$DisableDrag:false}}else{if(Thumbnails==6){options.$ThumbnailNavigatorOptions={$Class:$JssorThumbnailNavigator$,$ChanceToShow:Show,$Lanes:2,$SpacingX:14,$SpacingY:12,$DisplayPieces:6,$ParkingPosition:156,$Orientation:2}}else{if(Thumbnails==8){options.$ThumbnailNavigatorOptions={$Class:$JssorThumbnailNavigator$,$ChanceToShow:Show,$SpacingX:23,$SpacingY:23,$DisplayPieces:7,$ParkingPosition:219}}else{if(Thumbnails==9){options.$ThumbnailNavigatorOptions={$Class:$JssorThumbnailNavigator$,$ChanceToShow:Show,$PlayOrientation:2,$ActionMode:0,$DisableDrag:true}}else{if(Thumbnails==10){options.$ThumbnailNavigatorOptions={$Class:$JssorThumbnailNavigator$,$ChanceToShow:Show,$ActionMode:0,$DisableDrag:true}}else{options.$ThumbnailNavigatorOptions={$Class:$JssorThumbnailNavigator$,$ChanceToShow:Show,$ActionMode:1,$SpacingX:8,$DisplayPieces:10,$ParkingPosition:360}}}}}}}}}}}if(Bullets>0){Show=2;if(ImgS.length<=1){Show=0}options.$BulletNavigatorOptions={$Class:$JssorBulletNavigator$,$ChanceToShow:Show,$AutoCenter:1,$Steps:1,$Lanes:1,$SpacingX:10,$SpacingY:10,$Orientation:1}}if(Arrows>0){Show=1;if(ImgS.length<=1){Show=0}options.$ArrowNavigatorOptions={$Class:$JssorArrowNavigator$,$ChanceToShow:1,$AutoCenter:2,$Steps:1}}if(width>0){SC.width(width)}if(height>0){SC.height(height)}SC.css("overflow","hidden");var SC=$("#"+containerId+" div.jssorSlides");if(width>0){SC.width(width)}if(height>0){SC.height(height)}SC.css("overflow","hidden");try{if(Fieldname=="BigSlider"){options=SetupJSSORBigSlider(options)}else{if(Fieldname!="HOME"){options=SetupJSSORGallery(options)}else{options=SetupJSSORHomeSlider(options)}}}catch(err){}var jssor_slider1=new $JssorSlider$(containerId,options);if(Fieldname!="BigSlider"){if(Fieldname!="HOME"){jssor_slider1.$On($JssorSlider$.$EVT_CLICK,JssorDisplayFullSizeImage)}else{jssor_slider1.$On($JssorSlider$.$EVT_CLICK,JssorGotoUrl)}}function ScaleSlider(){var n=jssor_slider1.$Elmt.parentNode.parentNode;var w;var parentWidth=width;
23if(parentWidth){while(n){w=$(n).width();if(w<parentWidth){parentWidth=w}if(n.nodeName=="BODY"||($(n).css("margin-left")!="0px"&&$(n).css("margin-left")<0)){n=null}else{n=n.parentNode}}if(parentWidth<200){parentWidth=200}jssor_slider1.$ScaleWidth(Math.min(parentWidth,width))}else{window.setTimeout(ScaleSlider,30)}}ScaleSlider();$(window).bind("load",ScaleSlider);$(window).bind("resize",ScaleSlider);$(window).bind("orientationchange",ScaleSlider)}function DesignRefresh(){var s=window.location.href;s=s.replace("&refrresh=5","")+"&refresh=5";NavigateToUrl(s)}function DoInitChangeTickettypeInWK(SUBName,ID,DivName,BtnID){PageMethods.onInitChangeTickettypeInWK(SUBName,ID,DivName,InitChangeTickettypeInWK_callback,onFailed,BtnID)}function InitChangeTickettypeInWK_callback(html,BtnID,methodName){var i;var div;if(html!=null){if(html[0]==null||html[0]==""){if(html[1]!=null&&html[1]!=""){ShowAlert(html[1])}}else{RemoveTickettypeInWKMenu();if(html[1]!=""){$("body").append(html[1]);$("body").append('<div id="ChangeTicketTypeBG" onclick="RemoveTickettypeInWKMenu();"></div>');$("#ChangeTicketType .TicketBtn").button();var TTMenu=$("#ChangeTicketType");var OldTicketTyp=$("#OldTicketTyp");var BtnORWKItem=$("#KTRANS_Warenkorb_DIV #"+BtnID);if(BtnORWKItem.length==0){BtnORWKItem=$("#"+BtnID)}TTMenu.prepend('<span onclick="RemoveTickettypeInWKMenu();" class="fa fa-close"></span>');newOffset=BtnORWKItem.offset();if((newOffset.left+250)>$(window).innerWidth()){TTMenu.addClass("Unterhalb");TTMenu.css({top:newOffset.top+29,left:newOffset.left-225});TTMenu.show("drop",{direction:"up"},500,null,true)}else{TTMenu.addClass("Oberhalb");if(OldTicketTyp.length){TTMenu.css({top:newOffset.top-3,left:newOffset.left+25})}else{TTMenu.css({top:newOffset.top-4,left:newOffset.left-16})}TTMenu.show("fold",null,500,null,true)}$("#ChangeTicketType .TicketDummy.CHTTProblem").tooltip()}else{if(BtnID.length>0){if(BtnID[0]=="T"){$("#"+BtnID).css("display","none")}}var SelectedLanguageFlag=$("img.LanguageFlag1");if(SelectedLanguageFlag.length===1&&SelectedLanguageFlag.attr("alt")==="English"){ShowAlert("There is no other tickettype...")}else{ShowAlert("Es gibt keinen anderen Tickettyp...")}}}}}function RemoveTickettypeInWKMenu(){$("#ChangeTicketType").remove();$("#ChangeTicketTypeBG").remove()}function DoChangeTickettypeInWK(SUBName,ID,DivName,TTID){var CTTCount=document.getElementById("CTTCount");var Count=1;if(CTTCount){Count=CTTCount.value}RemoveTickettypeInWKMenu();PageMethods.onChangeTickettypeInWK(SUBName,ID,DivName,TTID,Count*1,ChangeTickettypeInWK_callback,onFailed,ctxDummy)}function ChangeTickettypeInWK_callback(html,ctx,methodName){nsfocused=0;var i;var div;if(html!=null){if(html[0]==null||html[0]==""){if(html[1]!=null&&html[1]!=""){ShowAlert(html[1])}}else{div=document.getElementById(html[2]);if(div){div.innerHTML=html[3];SetupTicketBtn();SetupBlockverkauf()}var KtransWK=$("#KTRANS_Warenkorb_DIV");if(KtransWK.length==0){div=document.getElementById(html[0])}else{div=KtransWK[0];if($("#KTRANS_ZAH_ID_DIV").length>0){onChangeOfKTRANS_abw_RAnschrift()}}if(div){div.innerHTML=html[1];RefreshWKButton(0)}else{window.location.href=window.location.href.replace("AppID=","apppid=")}}}}function DoInitChangeKAZUSInWK(SUBName,ID,DivName,BtnID){PageMethods.onInitChangeKAZUSInWK(SUBName,ID,DivName,InitChangeKAZUSInWK_callback,onFailed,BtnID)}function DoInitChangeReservationInWK(SUBName,ID,DivName,BtnID){PageMethods.onInitChangeReservationInWK(SUBName,ID,DivName,InitChangeReservationInWK_callback,onFailed,BtnID)}function DoInitChangeIDCardInWK(SUBName,ID,DivName,BtnID){PageMethods.onInitChangeIDCardInWK(SUBName,ID,DivName,InitChangeIDCardInWK_callback,onFailed,BtnID)}function DoInitChangeLinkCustomerInWK(SUBName,ID,DivName,BtnID){PageMethods.onInitChangeLinkCustomerInWK(SUBName,ID,DivName,InitChangeLinkCustomerInWK_callback,onFailed,BtnID)}function DoInitAddKukonInKarein(SUBName,KareinId,KartenId,DivName,BtnID){PageMethods.onInitAddKukonInKarein(SUBName,KareinId,KartenId,DivName,InitAddKukonInKarein_callback,onFailed,BtnID)}function RemoveReservationInWKMenu(){$("#ChangeReservation").remove();$("#ChangeReservationBG").remove()}function RemoveIDCardInWKMenu(){$("#ChangeIDCard").remove();$("#ChangeIDCardBG").remove()}function RemoveKAZUSInWKMenu(){$("#ChangeKAZUS").remove();$("#ChangeKAZUSBG").remove()}function AttachEventsForKUKON(){var Inputs=$("#ChangeReservation input,#ChangeIDCard input");
23$("#KUKONList,#KUKONList .KundenUnterKontakt").css("display","none");$("#KUKONList .KundenUnterKontakt").click(function(){var Inputs=$("#ChangeReservation input,#ChangeIDCard input");Inputs[0].value=this.innerHTML;Inputs[1].value=this.getAttribute("data-secondline");$("#KUKONList,#KUKONList .KundenUnterKontakt").css("display","none");Inputs[1].focus()});$(Inputs[0]).keyup(function(e){var Inputs=$("#ChangeReservation input,#ChangeIDCard input");var code=e.which;if(Inputs[0].value!=""){var KUKONs=$("#KUKONList .KundenUnterKontakt");var i,l,v=false;l=Inputs[0].value.length;var ival=Inputs[0].value.toLowerCase();for(i=0;i<KUKONs.length;i++){if(KUKONs[i].innerHTML.substr(0,l).toLowerCase()==ival){$(KUKONs[i]).css("display","block");if(code==13){$(KUKONs[i]).click();return}v=true}else{$(KUKONs[i]).css("display","none")}}if(v){$("#KUKONList").css("display","block")}else{$("#KUKONList").css("display","none")}}})}function InitChangeKAZUSInWK_callback(html,BtnID,methodName){var i;var div;if(html!=null){if(html[0]==null||html[0]==""){if(html[1]!=null&&html[1]!=""){ShowAlert(html[1])}}else{RemoveKAZUSInWKMenu();if(html[1]!=""){$("body").append(html[1]);$("body").append('<div id="ChangeKAZUSBG" onclick="RemoveKAZUSInWKMenu();"></div>');SynwayInitJQueryUI("#ChangeKAZUS ");var RMenu=$("#ChangeKAZUS");var BtnORWKItem=$("#KTRANS_Warenkorb_DIV #"+BtnID);if(BtnORWKItem.length==0){BtnORWKItem=$("#"+BtnID)}RMenu.prepend('<span onclick="RemoveKAZUSInWKMenu();" class="fa fa-close"></span>');newOffset=BtnORWKItem.offset();if((newOffset.left+250)>$(window).innerWidth()){RMenu.addClass("Unterhalb");RMenu.css({top:newOffset.top+29,left:newOffset.left-225});RMenu.show("drop",{direction:"up"},500,null,true)}else{RMenu.addClass("Oberhalb");RMenu.css({top:newOffset.top-4,left:newOffset.left-16});RMenu.show("fold",null,500,null,true)}$("#ChangeKAZUS input")[0].focus()}}}}function DoChangeKAZUSInWK(SUBName,ID,DivName){var UserName1=$("#ChangeKAZUS #UserName1")[0].value;var UserName2=$("#ChangeKAZUS #UserName2")[0].value;var UserDate=$("#ChangeKAZUS #UserDate").length>0?$("#ChangeKAZUS #UserDate")[0].value:"";var UserAnrede=$("#ChangeKAZUS input[name=UserAnrede]:checked").length>0?$("#ChangeKAZUS input[name=UserAnrede]:checked")[0].value:"";if(UserName1&&UserName2){RemoveKAZUSInWKMenu();PageMethods.onChangeKAZUSInWK(SUBName,ID,DivName,UserName1,UserName2,UserAnrede,UserDate,ChangeTLPInWK_callback,onFailed,ctxDummy)}}function InitChangeReservationInWK_callback(html,BtnID,methodName){var i;var div;if(html!=null){if(html[0]==null||html[0]==""){if(html[1]!=null&&html[1]!=""){ShowAlert(html[1])}}else{RemoveReservationInWKMenu();if(html[1]!=""){$("body").append(html[1]);$("body").append('<div id="ChangeReservationBG" onclick="RemoveReservationInWKMenu();"></div>');$("#ChangeReservation button").button();var RMenu=$("#ChangeReservation");var BtnORWKItem=$("#KTRANS_Warenkorb_DIV #"+BtnID);if(BtnORWKItem.length==0){BtnORWKItem=$("#"+BtnID)}RMenu.prepend('<span onclick="RemoveReservationInWKMenu();" class="fa fa-close"></span>');newOffset=BtnORWKItem.offset();if((newOffset.left+250)>$(window).innerWidth()){RMenu.addClass("Unterhalb");RMenu.css({top:newOffset.top+29,left:newOffset.left-225});RMenu.show("drop",{direction:"up"},500,null,true)}else{RMenu.addClass("Oberhalb");RMenu.css({top:newOffset.top-4,left:newOffset.left-16});RMenu.show("fold",null,500,null,true)}AttachEventsForKUKON();$("#ChangeReservation input")[0].focus()}}}}function InitChangeIDCardInWK_callback(html,BtnID,methodName){var i;var div;if(html!=null){if(html[0]==null||html[0]==""){if(html[1]!=null&&html[1]!=""){ShowAlert(html[1])}}else{RemoveIDCardInWKMenu();if(html[1]!=""){$("body").append(html[1]);$("body").append('<div id="ChangeIDCardBG" onclick="RemoveIDCardInWKMenu();"></div>');$("#ChangeIDCard button").button();var IDMenu=$("#ChangeIDCard");var BtnORWKItem=$("#KTRANS_Warenkorb_DIV #"+BtnID);if(BtnORWKItem.length==0){BtnORWKItem=$("#"+BtnID)}IDMenu.prepend('<span onclick="RemoveIDCardInWKMenu();" class="fa fa-close"></span>');newOffset=BtnORWKItem.offset();if((newOffset.left+250)>$(window).innerWidth()){IDMenu.addClass("Unterhalb");IDMenu.css({top:newOffset.top+29,left:newOffset.left-225});IDMenu.show("drop",{direction:"up"},500,null,true)}else{IDMenu.addClass("Oberhalb");IDMenu.css({top:newOffset.top-4,left:newOffset.left-16});IDMenu.show("fold",null,500,null,true)}AttachEventsForKUKON();$("#ChangeIDCard input")[0].focus()}}}}function DoChangeReservationInWK(SUBName,ID,DivName,alle){var Username=$("#ChangeReservation #UserName")[0].value;var email=$("#ChangeReservation #eMail")[0].value;RemoveReservationInWKMenu();PageMethods.onChangeReservationInWK(SUBName,ID,DivName,Username,email,alle,ChangeTLPInWK_callback,onFailed,ctxDummy)}function DoChangeIDCardInWK(SUBName,ID,DivName){var Username=$("#ChangeIDCard #UserName")[0].value;var IDNumber=$("#ChangeIDCard #IDNumber")[0].value;RemoveIDCardInWKMenu();PageMethods.onChangeIDCardInWK(SUBName,ID,DivName,Username,IDNumber,ChangeTLPInWK_callback,onFailed,ctxDummy)}function RemoveLinkCustomerInWKMenu(){$("#ChangeLinkCustomer").remove();$("#ChangeLinkCustomerBG").remove()}function DoChangeLinkCustomerInWK(SUBName,ID,DivName){var Vorname=$("#ChangeLinkCustomer #Vorname")[0].value;var Nachname=$("#ChangeLinkCustomer #Nachname")[0].value;var IDNumber=$("#ChangeLinkCustomer #IDNumber")[0].value;var KukonID=$("#ChangeLinkCustomer #KukonID")[0].value;PageMethods.onChangeLinkCustomerInWK(SUBName,ID,DivName,Vorname,N
23achname,IDNumber,KukonID,ChangeTLPInWK_callback,onFailed,ctxDummy)}function InitChangeLinkCustomerInWK_callback(html,BtnID,methodName){var i;var div;if(html!=null){if(html[0]==null||html[0]==""){if(html[1]!=null&&html[1]!=""){ShowAlert(html[1])}}else{RemoveLinkCustomerInWKMenu();if(html[1]!=""){$("body").append(html[1]);$("body").append('<div id="ChangeLinkCustomerBG" onclick="RemoveLinkCustomerInWKMenu();"></div>');$("#ChangeLinkCustomer button").button();var IDMenu=$("#ChangeLinkCustomer");var BtnORWKItem=$("#KTRANS_Warenkorb_DIV #"+BtnID);if(BtnORWKItem.length==0){BtnORWKItem=$("#"+BtnID)}IDMenu.prepend('<span onclick="RemoveLinkCustomerInWKMenu();" class="fa fa-close"></span>');newOffset=BtnORWKItem.offset();if((newOffset.left+250)>$(window).innerWidth()){IDMenu.addClass("Unterhalb");IDMenu.css({top:newOffset.top+29,left:newOffset.left-225});IDMenu.show("drop",{direction:"up"},500,null,true)}else{IDMenu.addClass("Oberhalb");IDMenu.css({top:newOffset.top-4,left:newOffset.left-16});IDMenu.show("fold",null,500,null,true)}var Inputs=$("#ChangeLinkCustomer input");$("#CLC_HistoryBtn").click(function(){$("#CLC_Search").css("display","none");$("#CLC_History").css("display","block");$("#CLC_SearchBtn").removeClass("active");$("#CLC_HistoryBtn").addClass("active")});$("#CLC_SearchBtn").click(function(){$("#CLC_History").css("display","none");$("#CLC_Search").css("display","block");$("#CLC_SearchBtn").addClass("active");$("#CLC_HistoryBtn").removeClass("active")});$("#KUKONList .KundenUnterKontakt").click(function(){var Inputs=$("#ChangeLinkCustomer input");Inputs[0].value=this.getAttribute("data-firstline");Inputs[1].value=this.getAttribute("data-secondline");Inputs[2].value=this.getAttribute("data-thirdline");Inputs[3].value=this.id.replace("KUKON","");$("#CLC_SearchBtn").click();$("#ChangeLinkCustomer #OK").click()});$("#MyOwnTicket").click(function(){var Inputs=$("#ChangeLinkCustomer input");Inputs[0].value="";Inputs[1].value="";Inputs[2].value="";Inputs[3].value="MyOwnTicket";$("#CLC_SearchBtn").click();$("#ChangeLinkCustomer #OK").click()});$("#ChangeLinkCustomerCancel").click(function(){RemoveLinkCustomerInWKMenu()});if($("#KUKONList .KundenUnterKontakt").length>0){$("#CLC_Search").css("display","none");$("#CLC_HistoryBtn").addClass("active")}else{$("#CLC_History").css("display","none");$("#CLC_SearchBtn").addClass("active");if($("#ChangeLinkCustomer input").length>0){$("#ChangeLinkCustomer input")[0].focus()}}$("#NeuerKoko").css("display","none")}}}}function ChangeTLPInWK_callback(html,ctx,methodName){nsfocused=0;var i;var div;if(html!=null){if(html[0]==null||html[0]==""){if(html[1]!=null&&html[1]!=""){if($("#KukonID").length==1){$("#KukonID")[0].value="";$("#NeuerKoko").css("display","block").effect("shake",10000)}ShowAlert(html[1])}}else{if($("#ChangeLinkCustomer").length>0){RemoveLinkCustomerInWKMenu()}var KtransWK=$("#KTRANS_Warenkorb_DIV");if(KtransWK.length==0){div=document.getElementById(html[0])}else{div=KtransWK[0]}if(div){div.innerHTML=html[1];RefreshWKButton(0)}else{window.location.href=window.location.href.replace("AppID=","apppid=")}}}}var onInitAddKukonInKareinFormLoaded=[];function InitAddKukonInKarein_callback(html,BtnID,methodName){var i;var div;if(html!=null){if(html[0]==null||html[0]==""){if(html[1]!=null&&html[1]!=""){ShowAlert(html[1])}}else{RemoveKukonInKareinMenu();if(html[1]!=""){$("body").append(html[1]);$("body").append('<div id="AddKukonBG" onclick="RemoveKukonInKareinMenu();"></div>');SynwayInitJQueryUI("#AddKukon ");var RMenu=$("#AddKukon");var BtnItem=$("#"+BtnID);RMenu.prepend('<span onclick="RemoveKukonInKareinMenu();" class="fa fa-close"></span>');newOffset=BtnItem.offset();if((newOffset.left+250)>$(window).innerWidth()){RMenu.addClass("Unterhalb");RMenu.css({top:newOffset.top+29,left:newOffset.left-225});RMenu.show("drop",{direction:"up"},500,null,true)}else{RMenu.addClass("Oberhalb");RMenu.css({top:newOffset.top-4,left:newOffset.left-16});RMenu.show("fold",null,500,null,true)}onInitAddKukonInKareinFormLoaded.forEach(function(f){f(RMenu[0])});var id=BtnID.slice(12,48);if(KuKonName[id]!=null){var Kukon=KuKonName[id];if(Kukon.Anrede=="1"){$("#AddKukon #UserAnredeHerr").prop("checked",true)}else{if(Kukon.Anrede=="2"){$("#AddKukon #UserAnredeFrau").prop("checked",true)}}$("#AddKukon #User_Vorname").val(Kukon.Vorname);$("#AddKukon #User_Nachname").val(Kukon.Nachname);$("#AddKukon #User_Strasse").val(Kukon.Strasse);$("#AddKukon #User_Hnr").val(Kukon.Hnr);$("#AddKukon #User_Plz").val(Kukon.Plz);$("#AddKukon #User_Ort").val(Kukon.Ort);$("#AddKukon #User_Land").val(Kukon.Land);$("#AddKukon #User_Email").val(Kukon.Email);$("#AddKukon #User_Telefon").val(Kukon.Telefon)}$("#AddKukon input")[0].focus()}}}}var KuKonName={};function DoAddKukonInKarein(SUBName,KareinId,KartenId,DivName){if(typeof $("#AddKukon form")[0].reportValidity!=="undefined"&&!$("#AddKukon form")[0].reportValidity()){return false}var Anrede=$("#AddKukon input[name=UserAnrede]:checked").length>0?$("#AddKukon input[name=UserAnrede]:checked")[0].value:"";var Vorname=$("#AddKukon #User_Vorname")[0].value;var Nachname=$("#AddKukon #User_Nachname")[0].value;
23var Strasse=$("#AddKukon #User_Strasse")[0].value;var Hnr=$("#AddKukon #User_Hnr")[0].value;var Plz=$("#AddKukon #User_Plz")[0].value;var Ort=$("#AddKukon #User_Ort")[0].value;var Land=$("#AddKukon #User_Land")[0].value;var Email=$("#AddKukon #User_Email")[0].value;var Telefon=$("#AddKukon #User_Telefon")[0].value;KuKonName[KartenId]={Name:Vorname+" "+Nachname,Anrede:Anrede,Vorname:Vorname,Nachname:Nachname,Strasse:Strasse,Hnr:Hnr,Plz:Plz,Ort:Ort,Land:Land,Email:Email,Telefon:Telefon};RemoveKukonInKareinMenu();PageMethods.onAddKukonInKarein(SUBName,KareinId,KartenId,DivName,Vorname,Nachname,Anrede,Strasse,Hnr,Plz,Ort,Land,Email,Telefon,AddKukonInKarein_callback,onFailed,KartenId)}function AddKukonInKarein_callback(html,ctx,method){$("#KareinKarte_"+ctx+" .PersonalisierungInfo input").val(KuKonName[ctx].Name)}function RemoveKukonInKareinMenu(){$("#AddKukon").remove();$("#AddKukonBG").remove()}function ScanMemberCard(){window.event.preventDefault();if(typeof(AndroidFunction)=="undefined"){return}if(typeof(AndroidFunction.scanBarcode)=="undefined"){return}AndroidFunction.scanBarcode("ScanMemberCard_Callback")}function ScanMemberCard_Callback(barcode){if(barcode!=""){$("#MITVT_Mitglnr.Added")[0].value=barcode;$("#SubmitMemberLogin").click()}}function ScanKeyCard(){window.event.preventDefault();if(typeof(AndroidFunction)=="undefined"){return}if(typeof(AndroidFunction.scanBarcode)=="undefined"){return}AndroidFunction.scanBarcode("ScanKeyCard_Callback")}function ScanKeyCard_Callback(barcode){if(barcode!=""){$("#password2")[0].value="";$("#username2")[0].value="";$("#HiddenKeycode")[0].value=barcode;$("#SubmitLogin").click()}}function ReinitReiterColors(){var FarbTitel=$("#tdContent .TitelText");if(FarbTitel.length>0){var f1=FarbTitel.css("color");var FarbQuelle=document.getElementById("ReiterColorActive");if(FarbQuelle){FarbQuelle.value=f1}var CurrentSubReiter=null;if(document.frmSubReiter){CurrentSubReiter=document.frmSubReiter.CurrentSubReiter}var subreiter1=$("#subreiter1");var CurrentReiter=null;if(document.SPDBForm){CurrentReiter=document.SPDBForm.CurrentReiter}var reiter1=$("#reiter1");if(CurrentSubReiter&&subreiter1.length>0){subreiter1.css("background-color",f1)}if(CurrentReiter&&reiter1.length>0){reiter1.css("background-color",f1)}}}function RotateImage(containerSelector,imageClassPrefix,cookieName,start){var num,cookieVal=$.cookie("RotateImage_"+cookieName),container=$(containerSelector);if(cookieVal!==null){num=parseInt(cookieVal)+1}else{num=typeof start!=="undefined"?start:0}container.addClass(imageClassPrefix+num.toString());if(container.css("background-image")=="none"){container.removeClass(imageClassPrefix+num.toString());container.addClass(imageClassPrefix+"1");num=1}$.cookie("RotateImage_"+cookieName,num,{path:"/"})}function SetupSuchenVR(){var TT=$("#V_TERMIN_TYPE_Filter")[0].value;var DateFields=$("#V_TERMIN_VON_Filter,#V_TERMIN_BIS_Filter");DateFields.unbind("change.synwaynamespace");if(TT!=""){if(TT!="I"){var von=$("#V_TERMIN_VON_Filter");var bis=$("#V_TERMIN_BIS_Filter");von.val(TT.substr(0,10));bis.val(TT.substr(10,10))}if(TT=="E"){von.val("");bis.val("")}}DateFields.bind("change.synwaynamespace",function(){$("#V_TERMIN_TYPE_Filter").val("I");var von=$("#V_TERMIN_VON_Filter");var bis=$("#V_TERMIN_BIS_Filter");var v,b;if(this.id=="V_TERMIN_VON_Filter"&&bis.val()!=""){v=von.datepicker("getDate");b=bis.datepicker("getDate");if(v>b){bis.val(von.val())}}if(this.id=="V_TERMIN_BIS_Filter"&&von.val()!=""){v=von.datepicker("getDate");b=bis.datepicker("getDate");if(v>b){von.val(bis.val())}}})}function GSCheckR(event){var txtGS,btnGS,gs,i,Ziffern,Buchstaben;txtGS=document.getElementById("idUseGutschein");btnGS=document.getElementById("idBtnGutschein");if(btnGS){if(txtGS){if(event){if(event.which){if(event.which==13){if(!$(btnGS).hasClass("inaktiv")){$(btnGS).click()}return false}}}document.getElementById("KTRANS_Gutscheinhinweis_LABEL").style.width="500px";document.getElementById("KTRANS_Gutscheinhinweis_LABEL").style.textAlign="left";gs=txtGS.value;Ziffern=0;Buchstaben=0;for(i=0;i<gs.length;i++){if((gs.charAt(i)>="0"&&gs.charAt(i)<="9")||(gs.charAt(i)=="!")||(gs.charAt(i)=="@")){Ziffern++}if(gs.charAt(i)>="A"&&gs.charAt(i)<="Z"){Buchstaben++}if((gs.charAt(i)<"0"||gs.charAt(i)>"9")&&gs.charAt(i)!="@"&&gs.charAt(i)!="!"&&gs.charAt(i)!=" "&&(gs.charAt(i)<"A"||gs.charAt(i)>"Z")){if(gs.charAt(i)>="a"&&gs.charAt(i)<="z"){gs=gs.replace(gs.charAt(i),gs.charAt(i).toUpperCase())}else{gs=gs.replace(gs.charAt(i),"");i=i-1}}}if(gs.charAt(0)==" "){gs=gs.replace(" ","")}if(gs.length<5){gs=gs.replace(" ","")}if(txtGS.value!=gs){txtGS.value=gs}if(!$(btnGS).hasClass("ui-button")){btnGS.disabled=!((Ziffern==16&&Buchstaben==0)||(Ziffern==18&&Buchstaben==0)||(Buchstaben>0&&Buchstaben<=18&&(Buchstaben+Ziffern)>=5&&(Buchstaben+Ziffern)<=18));if(btnGS.disabled){btnGS.className="synwaybtn inaktiv"}else{btnGS.className="synwaybtn"}}else{if(!((Ziffern==16&&Buchstaben==0)||(Ziffern==18&&Buchstaben==0)||(Buchstaben>0&&Buchstaben<=18&&(Buchstaben+Ziffern)>=5&&(Buchstaben+Ziffern)<=18))){$(btnGS).addClass("inaktiv");$(btnGS).button("disable")}else{$(btnGS).removeClass("inaktiv");$(btnGS).button("enable")}}}}}function GSUseR(){var txtGS,btnGS;txtGS=document.getElementById("idUseGutschein");btnGS=document.getElementById("idBtnGutschein");if(btnGS){if(txtGS){var GSCode=txtGS.value;txtGS.value="";PageMethods.GSUse("Bestellung",GSCode,"KTRANS_Warenkorb_DIV",AjaxGSR_callback,onFailed,ctxDummy);GSCheckR()}}return false}function AjaxGSR_callback(html){var div;if(html!=null){if(html[1]!=""){ShowAlert(html[1])}if(html[0]!=""){div=document.getElementById("KTRANS_Warenkorb_DIV");if(div){txtGS=document.getElementById("idUseGutschein");txtGS.Value="";div.innerHTML=html[0];if($("#KTRANS_ZAH_ID_DIV").length>0){onChangeOfKTRANS_ZAH_ID()}}}}}function DoQMA(MenuItem){var id=$(MenuItem).parent()[0].id.replace("RECORD","");var tr=$("#RID"+id);id=id.replace("_","-").replace("_","-").replace("_","-").replace("_","-");var SUB=$(tr).parent().parent()[0].id.replace("TABLE_","");var QMAID=$(MenuItem).find("span")[0].id.replace("QMA","").replace("_","-").replace("_","-").replace("_","-").replace("_","-");$("#QMC_"+SUB).before('<div id="QMW_'+SUB+'" class="WaitingDiv QMAWaiting"><div class="SpinnerContainer"><div class="SpinnerCell fa fa-spin fa-spinner"></div></div></div>');var h=$("#QMW_"+SUB);var table=$("#TABLE_"+SUB);var spinner=$("#QMW_"+SUB+" .SpinnerContainer");h.width(table.width());h.height(table.height());spinner.height(table.height());spinner.width(table.width());var tablePosition=table.position();h.css("left",tablePosition.left);h.css("top",tablePosition.top);h.show();PageMethods.DoQMA(SUB,QMAID,id,DoQMA_callback,onFailed,SUB)}function ShowActionConfirm(html,Titel,MenuItem){if(typeof jQuery!=="undefined"){if(typeof jQuery.ui!=="undefined"){var ActionDialog=$("#ActionDialog");if(ActionDialog.length==0){var AlertDialog=$("#AlertDialog");
23AlertDialog.clone().prependTo("#divBackground")[0].id="ActionDialog";ActionDialog=$("#ActionDialog")}ActionDialog.html(html);ActionDialog.dialog({title:Titel,modal:true,closeOnEscape:true,width:WindowWidthLimit(300),height:200,maxHeight:420,draggable:true,buttons:{Ok:function(){$(this).dialog("close");DoQMA(MenuItem)},Abbruch:function(){$(this).dialog("close")}},show:{effect:"clip",duration:200},hide:{effect:"clip",duration:200}});event.preventDefault();return false}}}function NavigateToUrlInTarget(url,target,Params){if(url==null||url==""){url=window.location.href}if(Params){url=url+((url.indexOf("?")>-1)?"&":"?")+Params}if(target){if(target!=""){if(url.substring(0,4)=="http"){window.open(url,target);return}else{var base=document.getElementsByTagName("base")[0].href;window.open(base+url,target);return}}}if(url.substring(0,4)=="http"){window.location.href=url}else{var base=document.getElementsByTagName("base")[0].href;window.location.href=base+url}}function InitQMAs(SUB){$("#TABLE_"+SUB+" tr.SWDataHeadRow").append('<th class="SWEmptyCell"></th>');var ReportTRS=$("#TABLE_"+SUB+" tr.SWTRListNavigator .SWEmptyCell");ReportTRS.attr("colspan",ReportTRS.attr("colspan")+1);ReportTRS=$("#TABLE_"+SUB+" tr.SWTRReportSelector > td");ReportTRS.attr("colspan",ReportTRS.attr("colspan")+1);$("#TABLE_"+SUB+" tr.SWDataRow").append('<td class="SWDetailsCell QMACell"><div class="QMAButton"><button type="button" class="QMAEdit"><span class="fa fa-edit"></span></button><button type="button" class="QMASelect"></button></div></td>');var QMenu=$("#QMC_"+SUB+" .QActionMenu");var QMW=$("#QMW_"+SUB);if(!QMW.length){$("#QMC_"+SUB).css("display","inline");QMenu.hide().menu()}$("#TABLE_"+SUB+" tr.SWDataRow button.QMAEdit").button().click(function(){var tr=$(this).parent().parent().parent();var a=tr.find("td.SWDetailsCell a");if(a.length>0){NavigateToUrl(a[0].href+"&editmode=EditMode")}return false});if(!QMW.length){$("#QMC_"+SUB+" .QActionMenu li").click(function(event){if($(this).hasClass("ui-state-disabled")){return}var id=$(this).parent()[0].id.replace("RECORD","");var tr=$("#RID"+id);$(".QMASelected").removeClass("QMASelected");id=id.replace("_","-").replace("_","-").replace("_","-").replace("_","-");if($(this).hasClass("QMAEdit")){var a=tr.find("td.SWDetailsCell a");if(a.length>0){if(event.ctrlKey){NavigateToUrlInTarget(a[0].href+"&editmode=EditMode","_blank")}else{NavigateToUrl(a[0].href+"&editmode=EditMode")}}}if($(this).hasClass("QMACopy")){var a=tr.find("td.SWDetailsCell a");if(a.length>0){if(event.ctrlKey){NavigateToUrlInTarget(a[0].href+"&editmode=CopyMode","_blank")}else{NavigateToUrl(a[0].href+"&editmode=CopyMode")}}}if($(this).hasClass("QMADelete")){var a=tr.find("td.SWDetailsCell a");var SUB=$(tr).parent().parent()[0].id.replace("TABLE_","");if(a.length>0){var DelQuestion=$("#QMC_"+SUB+" span.DelQuestion");if(DelQuestion.length==1){ShowDelConfirm(DelQuestion[0].innerHTML,"",a[0].href+"&editmode=DelMode")}else{NavigateToUrl(a[0].href+"&editmode=DelMode")}}}if($(this).hasClass("QMAReport")){var a=tr.find("td.SWDetailsCell a");var SPVID=$(this).find("span")[0].id.replace("REP","").replace("_","-").replace("_","-").replace("_","-").replace("_","-");if(a.length>0){if(event.ctrlKey){NavigateToUrlInTarget(a[0].href.replace("ajax.aspx","reportverarbeitung18.aspx")+"&qmareport="+SPVID,"_blank")}else{NavigateToUrl(a[0].href.replace("ajax.aspx","reportverarbeitung18.aspx")+"&qmareport="+SPVID)}}}if($(this).hasClass("QMAction")){var Question=$(this).find("span.Question");if(Question.length==1){var Title=$(this).find("span")[0].innerHTML;if(Title.indexOf("<span")>=0){Title=Title.substr(0,Title.indexOf("<span"))}ShowActionConfirm(Question[0].innerHTML,Title,this)}else{DoQMA(this)}}})}$("#TABLE_"+SUB+" tr.SWDataRow.QMA td.SWTableCell").bind("contextmenu",function(e){var tr=$(this).parent();var SUB=$(tr).parent().parent()[0].id.replace("TABLE_","");var menu=$("#QMC_"+SUB+" .QActionMenu");var actions=$(menu).find(".QMAction");actions.removeClass("ui-state-disabled");actions.each(function(index,action){var Plausi=$(action).find(".QMAPlausi");if(Plausi.length){Plausi=Plausi[0].innerHTML;var Column=$(action).find("span")[0].className;Column=Column.replace("QMA","")*1-1;var Value=tr.find(".SWTableCell");if(Value.length>=Column&Column>=0){Value=Value[Column];var font=$(Value).find("font");if(font.length){Value=font[0]}font=$(Value).find("span");if(font.length){Value=font[0]}font=$(Value).find("b");if(font.length){Value=font[0]}font=$(Value).find("font");if(font.length){Value=font[0]}Value=Value.innerHTML;Plausi="("+Plausi.replace("#",Value)+");";if(!eval(Plausi)){$(action).addClass("ui-state-disabled")}}}});menu.show().position({my:"left top",at:"left bottom",of:this,collision:"flipfit"});menu[0].id=tr[0].id.replace("RID","RECORD");$(".QMASelected").removeClass("QMASelected");tr.addClass("QMASelected");$(document).one("click",function(){menu.hide();$(".QMASelected").removeClass("QMASelected")});e.preventDefault();return false});InitSWDataTable(SUB);var EditMenu=$("#QMC_"+SUB+" .QActionMenu li.QMAEdit");if($("#QMC_"+SUB+" .QActionMenu li").length>EditMenu.length){$("#TABLE_"+SUB+" tr.SWDataRow button.QMASelect").button({text:false,icons:{primary:"ui-icon-triangle-1-s"}}).click(function(){var tr=$(this).parent().parent().parent();var SUB=$(tr).parent().parent()[0].id.replace("TABLE_","");var menu=$("#QMC_"+SUB+" .QActionMenu");var actions=$(menu).find(".QMAction");actions.removeClass("ui-state-disabled");actions.each(function(index,action){var Plausi=$(action).find(".QMAPlausi");if(Plausi.length){Plausi=Plausi[0].innerHTML;var Column=$(action).find("span")[0].className;Column=Column.replace("QMA","")*1-1;var Value=tr.find(".SWTableCell");if(Value.length>=Column&Column>=0){Value=Value[Column];var font=$(Value).find("font");if(font.length){Value=font[0]}font=$(Value).find("span");if(font.length){Value=font[0]}font=$(Value).find("b");if(font.length){Value=font[0]}font=$(Value).find("font");if(font.length){Value=font[0]}Value=Value.innerHTML;Plausi="("+Plausi.replace("#",Value)+");";if(!eval(Plausi)){$(action).addClass("ui-state-disabled")}}}});menu.show().position({my:"left top",at:"left bottom",of:this,collision:"flipfit"});menu[0].id=tr[0].id.replace("RID","RECORD");$(".QMASelected").removeClass("QMASelected");tr.addClass("QMASelected");$(document).one("click",function(){menu.hide();$(".QMASelected").removeClass("QMASelected")});return false});if(EditMenu.length==0){$("#TABLE_"+SUB+" tr.SWDataRow button.QMAEdit").hide()}else{$("#TABLE_"+SUB+" tr.SWDataRow.QMA:not(.RO) div.QMAButton").buttonset();$("#TABLE_"+SUB+" .QMACell").css("min-width","70px")}}else{$("#TABLE_"+SUB+" tr.SWDataRow button.QMASelect").hide()}}function InitSWDataTable(SUB){$("#TABLE_"+SUB+" tr.SWDataRow.QMA td.SWTableCell").dblclick(function(){var tr=$(this).parent();var a=tr.find("td.SWDetailsCell a");if(a.length>0){if(event.ctrlKey){NavigateToUrlInTarget(a[0].href,"_blank")}else{NavigateToUrl(a[0].href)}}else{a=tr.find("td.SWTableCell a");if(a.length>0){if(event.ctrlKey){NavigateToUrlInTarget(a[0].href,"_blank")}else{NavigateToUrl(a[0].href)}}}return false});var rcdata=$("#TABLE_"+SUB).data("recordcount");if(rcdata!=""&&rcdata!=undefined){var empty=$("#TABLE_"+SUB+" tr.SWDataHeadRow th.SWEmptyCell");if(empty.length>0){empty[empty.length-1].innerHTML="# "+$("#TABLE_"+SUB).data("recordcount");$(empty[empty.length-1]).css("vertical-align","bottom")}}}function InitTableEdit(SUB){var TableTextAreas=$("#TABLE_"+SUB+" tr.SWDataRow.QMA td.SWTableCell > span > textarea");TableTextAreas.each(function(){if($(this).html().length<3){$(this).attr("rows","1")}});TableTextAreas.click(function(){if($(this).attr("rows")=="1"){$(this).attr("rows","3")}})}function DoQMA_callback(html,SUB,methodName){var i;var table;if(html!=null){if(html[1]==null||html[1]==""){if(html[0]!=null&&html[0]!=""){ShowAlert(html[0])}}else{if(html[2].substr(0,3)=="<tr"){table=document.getElementById(html[1]);if(table){table.innerHTML=html[2];InitQMAs(SUB)}}else{ShowAlert(html[2])}}}if(SUB){if(SUB!=""){var QMW=$("#QMW_"+SUB);QMW.hide();QMW.remove()}}}function PrepareButtonTooltips(selector){var btns;if(selector){btns=selector}else{btns=$("input[type=submit],input[type=reset],button,.synwaybtn")}btns.each(function(index,btn){var ak=$(btn).attr("title");if(!ak||ak==""){ak=$(btn).attr("accesskey");if(ak&&ak!=""){$(btn).attr("title","alt+"+ak)}}})}function PrepBCNames(){if($("body").hasClass("BCNames")){$("#HideLeftColumn").click(function(){if($("body").hasClass("HideLeftColumn")){PageMethods.ToggleBodyClasses("dummy","HideLeftColumn","",ToggleBodyClasses_callback,onFailed,ctxDummy)}else{PageMethods.ToggleBodyClasses("dummy","","HideLeftColumn",ToggleBodyClasses_callback,onFailed,ctxDummy)}});$("#HideTopLogo").click(function(){if($("body").hasClass("HideTopLogo")){PageMethods.ToggleBodyClasses("dummy","HideTopLogo","",ToggleBodyClasses_callback,onFailed,ctxDummy)}else{PageMethods.ToggleBodyClasses("dummy","","HideTopLogo",ToggleBodyClasses_callback,onFailed,ctxDummy)}});$(window).scroll(MoveSecondNavigation);$(window).resize(MoveSecondNavigation)}}function MoveSecondNavigation(){var ls=$("#idLinkeSpalte");
23if($("#HideLeftColumn").css("display")=="none"){ls.stop();ls.animate({top:0},150)}else{var st=$(this).scrollTop();var o=$("#section-1").offset();if(o){var MenuHeight=$("#SubNavigationFrame").height()+$("#Nav1NegativBig").height()+o.top;if(st>800){st=800}if($(window).height()<MenuHeight){st=0}ls.stop();ls.animate({top:st},150)}}}function ToggleBodyClasses_callback(html,ctx,methodName){if(html!=null){if(html[0]!=null&&html[0]!=""){ShowAlert(html[0])}else{if(html[1]!=""){$("body").removeClass(html[1])}if(html[2]!=""){$("body").addClass(html[2])}}}}function ShowPins(click){if(click==1){var PinsDialog=$("#PinsDialog");if(PinsDialog.length==0){var AlertDialog=$("#AlertDialog");AlertDialog.clone().prependTo("#divBackground")[0].id="PinsDialog";PinsDialog=$("#PinsDialog")}PinsDialog.html($("#PinMenuItems"));PinsDialog.dialog({title:"Pins",modal:true,closeOnEscape:true,width:WindowWidthLimit(300),height:420,maxHeight:420,draggable:true,show:{effect:"clip",duration:200},hide:{effect:"clip",duration:200},close:function(event,ui){$("#PinMenuItemsContainer").html($("#PinMenuItems"))}})}else{PageMethods.GetPins(GetPin_callback,onFailed,ctxDummy)}}function GetPin_callback(html,ctx,methodName){if(html!=null){if(html[0]!=null&&html[0]!=""){ShowAlert(html[0])}else{if(html[1]!=""){var PinMenuItems=$("#PinMenuItems");PinMenuItems.html(html[1]);AddRemoverAtPins()}}}}function AddPin2Menu(PageSub,PageID){PageMethods.AddPin(PageSub,PageID,AddPin_callback,onFailed,ctxDummy)}function AddPin_callback(html,ctx,methodName){if(html!=null){if(html[0]!=null&&html[0]!=""){ShowAlert(html[0])}else{if(html[1]!=""){var PinMenuItems=$("#PinMenuItems");PinMenuItems.html(html[1]);AddRemoverAtPins()}if(html[2]!=""){var AddPinBtn=$("#AddPin");AddPinBtn.attr("onclick","");AddPinBtn.unbind("click");AddPinBtn.click(function(){RemovePinFromMenu(html[3],html[2])});AddPinBtn.find(".ui-button-text").html("<span class='fa fa-times-circle'></span>");AddPinBtn.attr("name","RemovePin");AddPinBtn.attr("id","RemovePin")}}}}function AddRemoverAtPins(){var PinMenuItems=$("#PinMenuItems .PinItem a");var i,PinID;for(i=0;i<PinMenuItems.length;i++){PinID=PinMenuItems[i].id.replace("PIN","");$(PinMenuItems[i]).parent().append("<span class='fa fa-times' onclick='RemovePinFromMenu(\"\",\""+PinID+"\");'></span>")}}function RemovePinFromMenu(Pagesub,PinID){PageMethods.RemovePin(Pagesub,PinID,RemovePin_callback,onFailed,ctxDummy)}function RemovePin_callback(html,ctx,methodName){if(html!=null){if(html[0]!=null&&html[0]!=""){ShowAlert(html[0])}else{if(html[1]!=""){var PinMenuItems=$("#PinMenuItems");PinMenuItems.html(html[1]);AddRemoverAtPins()}if(html[2]!=""){var RemovePin=$("#RemovePin");RemovePin.attr("onclick","");RemovePin.unbind("click");RemovePin.click(function(){AddPin2Menu(html[3],RemovePin.data("id"))});RemovePin.find(".ui-button-text").html("<span class='fa fa-plus-circle'></span>");RemovePin.attr("name","AddPin");RemovePin.attr("id","AddPin")}}}}function ShowSmallTopNav(){jssorLightbox("");$(".TopNavSmall").css("z-index",999);var SmallMenu=$("#TopNavSmallDiv");SmallMenu.width($(window).width()-54);SmallMenu.css("top",$("#TopNavSmall2").offset().top);SmallMenu.css("left",$("#CurrentSmallNav").offset().left);SmallMenu.show("blind",{direction:"up"},400,null,true);$("#TopNavSmallDiv > div").unbind("click");$("#TopNavSmallDiv > div").click(function(){$(this).find("a")[0].click()})}function SetRadioBox(checkboxes,value){i=1;while(document.getElementById(checkboxes+"_"+i)){document.getElementById(checkboxes+"_"+i).checked=document.getElementById(checkboxes+"_"+i).value==value;i++}}function ButtonReport(Sub,SPVID){$("#"+Sub+"Auswertung").val(SPVID);$("#frmAuswertung"+Sub)[0].submit()}function InitIFramePDF(){$(function(){if(($("#divBackground").width()-$("#idLinkeSpalte").width()-50)<800){if($("#iframePDF").width()<($("#divBackground").width()-$("#idLinkeSpalte").width()-50)){$("#iframePDF").width(($("#divBackground").width()-$("#idLinkeSpalte").width()-50))}}else{if($("#iframePDF").width()<800){$("#iframePDF").width(800)}}$("#iframePDF").height(1.3*$("#iframePDF").width());$("#PDFDownloadLink").addClass("synwaybtn").button()})}function DDCCCheckESC(name){Ereignis=window.event;Tastencode=Ereignis.keyCode;if(Tastencode==27){DDCCCloseDropDown(name)}}function DDCCBuchstabeneingabe(Wert,name){Ereignis=window.event;Tastencode=Ereignis.keyCode;if((Tastencode!=38)&&(Tastencode!=40)&&(Tastencode!=13)&&(Tastencode!=16)&&(Tastencode!=9)&&(Tastencode!=27)){div=document.getElementById(name+"_DIV");if(div.style.display=="none"||div.style.display==""){doDDCCshowDropDown(name)}var Worte=Wert.split(" ");var cbs=$("#"+name+"_DIV .DDCCheckboxesItem input");var wi,Wort;for(wi=0;wi<Worte.length;wi++){Wort=Worte[wi];if(Wort!=""){for(i=0;i<cbs.length;i++){if(Wort.toLowerCase()==cbs[i].value.toLowerCase()){cbs[i].checked=true}else{if(Worte.length==(wi+1)&&Wort.toLowerCase()==cbs[i].value.toLowerCase().substr(0,Wort.length)){if(Tastencode!=8&&Tastencode!=46){var iStart=Wert.length;var iLength=cbs[i].value.length;var oRange=document.getElementById(name).createTextRange();
23if(oRange){document.getElementById(name).value=document.getElementById(name).value+cbs[i].value.substr(Wort.length,cbs[i].value.length-Wort.length);oRange.moveStart("character",iStart);oRange.moveEnd("character",iLength);oRange.select()}else{if(document.getElementById(name).setSelectionRange){document.getElementById(name).value=document.getElementById(name).value+cbs[i].value.substr(Wort.length,cbs[i].value.length-Wort.length);document.getElementById(name).setSelectionRange(iStart,iLength)}}document.getElementById(name).focus();break}}}}}}for(i=0;i<cbs.length;i++){if(cbs[i].checked){var found=false;for(wi=0;wi<Worte.length;wi++){Wort=Worte[wi];if(Wort!=""&&Wort==cbs[i].value){found=true;break}}if(!found){cbs[i].checked=false}}}}else{if(Tastencode==9){DDCCCloseDropDown(name)}else{if(Tastencode==27){DDCCCloseDropDown(name)}else{if(Tastencode!=13){Navigieren(Tastencode,name)}else{DDCCCloseDropDown(name)}}}}}function DDCCBlurDropDown(name){}function DDCCCloseDropDown(name){var div=document.getElementById(name+"_DIV");try{if(div.style.display!="none"){div.style.display="none"}}catch(e){}}function DDCCshowDropDown(name){div=document.getElementById(name+"_DIV");var Worte=$("#"+name).val().split(" ");var cbs=$("#"+name+"_DIV .DDCCheckboxesItem input");var wi,Wort;for(wi=0;wi<Worte.length;wi++){Wort=Worte[wi];if(Wort!=""){for(i=0;i<cbs.length;i++){if(Wort.toLowerCase()==cbs[i].value.toLowerCase()){cbs[i].checked=true}}}}doDDCCshowDropDown(name)}function doDDCCshowDropDown(name){var div=document.getElementById(name+"_DIV");if(div.style.display=="none"||div.style.display==""){div.style.display="inline"}else{div.style.display="none"}}function DDCCheckboxClicked(cb,InputName){var i=$("#"+InputName);if(i.length==1){var v=" "+i.val()+" ";var wort=cb.value;if(cb.checked){if(v.indexOf(" "+wort+" ")<0){v=v.trim()+" "+wort;i.val(v.trim())}}else{if(v.indexOf(" "+wort+" ")>=0){v=v.replace(" "+wort+" "," ");i.val(v.trim())}}}}function AddCheckAllToCheckboxes(){$("div.SynWAYCheckboxes,div.ExplorerCheckboxes").each(function(){var id=$(this).attr("id");if(id!==undefined){var label=id.replace("_DIV","_LABEL");if($("#checkAll_"+label).length==0){$("#"+label).append('<br><input type="checkbox" id="checkAll_'+label+'"><label for="checkAll_'+label+'">alle</label>');$("#checkAll_"+label).click(function(){$("#"+id+" input:checkbox").prop("checked",this.checked)})}}})}function InitDOBPicker(LocaleData,PreSelector){if(PreSelector===undefined||PreSelector===null){PreSelector=""}$(PreSelector+"INPUT.DOBTPicker").each(function(){var CurrentFieldId=this.id;if($("#"+this.id+"_dobday").length===0){$(this).parent().append("<select id='"+this.id+"_dobday'></select><select id='"+this.id+"_dobmonth'></select><select id='"+this.id+"_dobyear'></select>");$.dobPicker({daySelector:"#"+this.id+"_dobday",monthSelector:"#"+this.id+"_dobmonth",yearSelector:"#"+this.id+"_dobyear",dayDefault:LocaleData.dayDefault,monthDefault:LocaleData.monthDefault,yearDefault:LocaleData.yearDefault,MonthNamesDefault:LocaleData.monthNames,minimumAge:0,maximumAge:110});$(this).parent().find("select").change(function(){var ctrl=$("#"+CurrentFieldId)[0];if($("#"+CurrentFieldId+"_dobday")[0].value!==""&&$("#"+CurrentFieldId+"_dobmonth")[0].value!==""&&$("#"+CurrentFieldId+"_dobyear")[0].value!==""){ctrl.value=$("#"+CurrentFieldId+"_dobday")[0].value+"."+$("#"+CurrentFieldId+"_dobmonth")[0].value+"."+$("#"+CurrentFieldId+"_dobyear")[0].value}else{ctrl.value=""}if(document.createEvent&&ctrl.dispatchEvent){var evt=document.createEvent("HTMLEvents");evt.initEvent("change",true,true);ctrl.dispatchEvent(evt)}else{if(ctrl.fireEvent){ctrl.fireEvent("onchange")}}});if($("#"+this.id)[0].value!=""){var GebDatum=$("#"+this.id)[0].value;var DateParts=GebDatum.split(".");$("#"+this.id+"_dobday")[0].value=DateParts[0];$("#"+this.id+"_dobday").trigger("change");$("#"+this.id+"_dobmonth")[0].value=DateParts[1];$("#"+this.id+"_dobmonth").trigger("change");$("#"+this.id+"_dobyear")[0].value=DateParts[2];$("#"+this.id)[0].value=GebDatum}}})}; 24/*js/jquery.cookie.1.4.1.js*//* 25 * jQuery Cookie Plugin v1.4.1 26 * https://github.com/carhartl/jquery-cookie 27 * 28 * Copyright 2013 Klaus Hartl 29 * Released under the MIT license 30 */ 31(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else{if(typeof exports==="object"){factory(require("jquery"))}else{factory(jQuery)}}}(function($){var pluses=/\+/g;function encode(s){return config.raw?s:encodeURIComponent(s)}function decode(s){return config.raw?s:decodeURIComponent(s)}function stringifyCookieValue(value){return encode(config.json?JSON.stringify(value):String(value))}function parseCookieValue(s){if(s.indexOf('"')===0){s=s.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")}try{s=decodeURIComponent(s.replace(pluses," "));return config.json?JSON.parse(s):s}catch(e){}}function read(s,converter){var value=config.raw?s:parseCookieValue(s);return $.isFunction(converter)?converter(value):value}
31var config=$.cookie=function(key,value,options){if(value!==undefined&&!$.isFunction(value)){options=$.extend({},config.defaults,options);if(typeof options.expires==="number"){var days=options.expires,t=options.expires=new Date();t.setTime(+t+days*86400000)}return(document.cookie=[encode(key),"=",stringifyCookieValue(value),options.expires?"; expires="+options.expires.toUTCString():"",options.path?"; path="+options.path:"",options.domain?"; domain="+options.domain:"",options.secure?"; secure":""].join(""))}var result=key?undefined:{};var cookies=document.cookie?document.cookie.split("; "):[];for(var i=0,l=cookies.length;i<l;i++){var parts=cookies[i].split("=");var name=decode(parts.shift());var cookie=parts.join("=");if(key&&key===name){result=read(cookie,value);break}if(!key&&(cookie=read(cookie))!==undefined){result[name]=cookie}}return result};config.defaults={};$.removeCookie=function(key,options){if($.cookie(key)===undefined){return false}$.cookie(key,"",$.extend({},options,{expires:-1}));return !$.cookie(key)}})); 32/*spticket/js/shop.1.0.js*/function changeValue(def_val,sender){if(sender.value==def_val){sender.value=""}else{if(sender.value==""){sender.value=def_val}}}function CheckVTermin(){document.getElementById("VTERMINSUCHE").value=document.getElementById("VTERMINSUCHE").value.replace("TT.MM.JJJJ","");return checkdate(document.getElementById("VTERMINSUCHE"))}function InitShop(){$(function(){var imgs,i,gallery;$(".BrotkrumenMenu,.LeftSubMenu,.LeftSubMenuDesktop").menu();$("input[type=submit],input[type=reset],button,.synwaybtn,#section-1 #idTDContent .InWKBtn,#section-1 #idTDContent .InWKLink, .SWNAV_ResaleKarten .SWDataTable .SWTableCell a").button();document.getElementById("divBackground").style.display="block";$("#section-1 #idTDContent .POAuswahl,#section-1 #idTDContent .RadioSelect,#section-1 #idTDContent .DimensionsOptionen,#RSC_Alte_Karten_ID_DIV").buttonset();if(InitNavKatMenus){InitNavKatMenus()}$("#NAV1ORD1 a").attr("title",function(){return this.innerHTML});$("#NAV1ORD1 a").html(String.fromCharCode(61461));if($('form[name="UserLoginForm"] .fbReference').length){SetupFbLoginLinkDiv($('form[name="UserLoginForm"] .fbReference'))}imgs=$("#PD_Abbildung_IDAJAX,#PD_Galerie_IDAJAX,#V_Logo_Datei_IDAJAX,#V_Bildgalerie_Datei_IDAJAX,#VREIHE_Bildgalerie_Datei_IDAJAX,#VREIHE_Logo_Datei_ID,#VT_Bildgalerie_Datei_IDAJAX,#VT_Logo_Datei_IDAJAX");for(i=0;i<imgs.length;i++){gallery=imgs[i];if(gallery.innerHTML.length<10){$(gallery).parent().parent().prev().css("border","none");$(gallery).parent().parent().css("display","none")}}$(document).on("keydown",function(e){if(e.keyCode===27){RemoveTickettypeInWKMenu()}});if(location.href.indexOf("newzah=")>0){var ReplacementUrl=window.location.pathname+window.location.search+window.location.hash;ReplacementUrl=ReplacementUrl.replace("newzah=","waszah=");history.replaceState(null,document.title,ReplacementUrl)}})}function SepaMandatChanged(element){$(".NewSepaAccount input[type='text']").prop("disabled",element.id!="SepaMandat0")}function NavigateToCard(ID){var u=document.getElementById("ZurKasseUrl").value;if(u&&u!=""){NavigateToUrl(u+"&urlid="+ID)}}function AnschriftAuswahl(TitelFeld,OutputFeld,KunaIDFeld){var KunaID="KUN"+$("#"+KunaIDFeld)[0].value;var AddressDialog=$("#AddressDialog");TitelFeld=$("#"+TitelFeld)[0].innerHTML;if(KunaID=="KUN"){KunaID="KUN0"}$("#KTRANS_Anschriften .kuna").removeClass("selected");$("#KTRANS_Anschriften #"+KunaID).addClass("selected");if(AddressDialog.length==0){var AlertDialog=$("#AlertDialog");AlertDialog.clone().prependTo("#divBackground")[0].id="AddressDialog";AddressDialog=$("#AddressDialog")}AddressDialog.html($("#KTRANS_Anschriften").html());$("#AddressDialog #Kundenanschriften .kuna").unbind("click");$("#AddressDialog #Kundenanschriften .kuna").click(function(){var KunaID=this.id;$("#AddressDialog #Kundenanschriften .kuna").removeClass("selected");$("#AddressDialog #Kundenanschriften #"+KunaID).addClass("selected");KunaID=KunaID.replace("KUN","");if(KunaID=="0"){KunaID=""}$("#AddressDialog #LastKunaID")[0].value=KunaID});KunaID=KunaID.replace("KUN","");if(KunaID=="0"){KunaID=""}$("#AddressDialog #LastKunaID")[0].value=KunaID;var NewBtnCaption="Neue Anschrift erfassen...";var SelectedLanguageFlag=$("img.LanguageFlag1");if(SelectedLanguageFlag.length===1&&SelectedLanguageFlag.attr("alt")==="English"){NewBtnCaption="Enter new address..."}AddressDialog.dialog({title:TitelFeld,modal:true,closeOnEscape:true,width:WindowWidthLimit(644),height:430,maxHeight:430,draggable:true,buttons:[{text:NewBtnCaption,click:function(){SaveOrderCookies(KunaIDFeld,OutputFeld);NavigateToUrl("ajax.aspx?sub=Anschriften&neu=1&ID=0");$(this).dialog("close")}},{text:"Ok",click:function(){$(this).dialog("close");DoAdressSelection(OutputFeld,KunaIDFeld);SaveOrderCookies("-","-")}}],show:{effect:"clip",duration:200},hide:{effect:"clip",duration:200}})}function GetURLParameter(sParam){var sPageURL=window.location.search.substring(1);var sURLVariables=sPageURL.split("&");for(var i=0;i<sURLVariables.length;i++){var sParameterName=sURLVariables[i].split("=");if(sParameterName[0]==sParam){return sParameterName[1]}}return""}function SaveOrderCookies(KunaIDFeld,OutputFeld){$.cookie("KunaIDFeld",KunaIDFeld,{secure:true,path:"/"});$.cookie("OutputFeld",OutputFeld,{secure:true,path:"/"});$.cookie("KTRANS_KundenANLAN",document.getElementById("KTRANS_KundenANLAN").value,{secure:true,path:"/"});$.cookie("KTRANS_Lieferanschrift_KTRANS_ID",document.getElementById("KTRANS_Lieferanschrift_KTRANS_ID").value,{secure:true,path:"/"});$.cookie("KTRANS_abw_RAnschrift",document.getElementById("KTRANS_abw_RAnschrift").value,{secure:true,path:"/"});$.cookie("KTRANS_Rechnungsanschrift_KTRANS_ID",document.getElementById("KTRANS_Rechnungsanschrift_KTRANS_ID").value,{secure:true,path:"/"});$.cookie("KTRANS_ZAH_ID",RadioboxesValue("KTRANS_ZAH_ID"),{secure:true,path:"/"});$.cookie("KTRANS_LW_ID",RadioboxesValue("KTRANS_LW_ID"),{secure:true,path:"/"});$.cookie("KTRANS_LW_ClientImplementation_hidden",document.getElementById("KTRANS_LW_ClientImplementation_hidden").value,{secure:true,path:"/"});$.cookie("KTRANS_Packstation",document.getElementById("KTRANS_Packstation").checked,{secure:true,path:"/"});$.cookie("KTRANS_Packstationnr",$("#KTRANS_Packstationnr").val(),{secure:true,path:"/"});$.cookie("KTRANS_PK_Postnummer",$("#KTRANS_PK_Postnummer").val(),{secure:true,path:"/"});$.cookie("KTRANS_ID",GetURLParameter("ID"),{secure:true,path:"/"})}function LoadOrderCookies(){var KunaIDFeld=$.cookie("KunaIDFeld");var OutputFeld=$.cookie("OutputFeld");var KtransID=$.cookie("KTRANS_ID");if(KunaIDFeld&&KunaIDFeld!=""&&OutputFeld&&OutputFeld!=""&&GetURLParameter("ID")==KtransID){document.getElementById("KTRANS_KundenANLAN").value=$.cookie("KTRANS_KundenANLAN");document.getElementById("KTRANS_Lieferanschrift_KTRANS_ID").value=$.cookie("KTRANS_Lieferanschrift_KTRANS_ID");DoAdressPreSelection("KTRANS_Anschrift_Ausgabe","KTRANS_Lieferanschrift_KTRANS_ID",document.getElementById("KTRANS_Lieferanschrift_KTRANS_ID").value);document.getElementById("KTRANS_abw_RAnschrift").value=$.cookie("KTRANS_abw_RAnschrift");document.getElementById("KTRANS_Rechnungsanschrift_KTRANS_ID").value=$.cookie("KTRANS_Rechnungsanschrift_KTRANS_ID");DoAdressPreSelection("KTRANS_RAnschrift_Ausgabe","KTRANS_Rechnungsanschrift_KTRANS_ID",document.getElementById("KTRANS_Rechnungsanschrift_KTRANS_ID").value);if(KunaIDFeld!="-"){var KunaID=$("#KTRANS_Anschriften #LastKunaID")[0].value.toUpperCase();DoAdressPreSelection(OutputFeld,KunaIDFeld,KunaID)}SetRadioBox("KTRANS_ZAH_ID",$.cookie("KTRANS_ZAH_ID"));SetRadioBox("KTRANS_LW_ID",$.cookie("KTRANS_LW_ID"));
32onChangeOfKTRANS_ZAH_ID();onChangeOfKTRANS_LW_ID();document.getElementById("KTRANS_LW_ClientImplementation_hidden").value=$.cookie("KTRANS_LW_ClientImplementation_hidden");if($.cookie("KTRANS_Packstation")=="true"&&document.getElementById("KTRANS_LW_ClientImplementation_hidden").value=="H"){document.getElementById("KTRANS_Packstation").checked=true}else{document.getElementById("KTRANS_Packstation").checked=false}onChangeOfKTRANS_Packstation();document.getElementById("KTRANS_Packstationnr").value=$.cookie("KTRANS_Packstationnr");document.getElementById("KTRANS_PK_Postnummer").value=$.cookie("KTRANS_PK_Postnummer");$.cookie("KunaIDFeld","-",{secure:true,path:"/"});$.cookie("OutputFeld","-",{secure:true,path:"/"})}if($("#KTRANS_KundenANLAN")[0].value==""){$("#KTRANS_KundenANLAN")[0].value="1"}if($("#KTRANS_abw_RAnschrift")[0].value==""){$("#KTRANS_abw_RAnschrift")[0].value="1"}if($("#KTRANS_NAT_ID")[0].value==""){$("#KTRANS_NAT_ID")[0].value="47732e9a-a5ca-11d4-b28e-0048543b7487"}if($("#KTRANS_R_NAT_ID")[0].value==""){$("#KTRANS_R_NAT_ID")[0].value="47732e9a-a5ca-11d4-b28e-0048543b7487"}}function CopyFromKunaSpan(Fieldname,src,DestPrefix){var dest=document.getElementById(DestPrefix+Fieldname);if(dest){var newValue=src.find(".KUNA_"+Fieldname);if(newValue.length==1){dest.value=newValue[0].innerHTML;RefreshToValidate(DestPrefix+Fieldname)}}}function ClearKUNAField(Fieldname,DestPrefix){var dest=document.getElementById(DestPrefix+Fieldname);if(dest){dest.value="";RefreshToValidate(DestPrefix+Fieldname)}}function SetKUNAField(Fieldname,DestPrefix,v){var dest=document.getElementById(DestPrefix+Fieldname);if(dest){dest.value=v;RefreshToValidate(DestPrefix+Fieldname)}}function RefreshToValidate(Feld){var a;if(Feld=="KTRANS_R_NAT_ID"){a=["81e2720e-dd26-4001-af45-c1b44bd0165d",VALUE(document.getElementById("KTRANS_abw_RAnschrift")),"9ca8a5a7-4ff4-4766-8eb3-c53b12207ec4",VALUE(document.getElementById("KTRANS_R_STRASSE1")),"4d90fbb1-5067-4cbe-8463-cc77852e1640",VALUE(document.getElementById("KTRANS_R_PLZ")),"561680de-521f-4ab5-8770-55709b81d713",VALUE(document.getElementById("KTRANS_R_ORT"))];PageMethods.SetSessionValues("","BestellungV2",a,SetSessionValues_callback,onFailed,Feld)}if(Feld=="KTRANS_NAT_ID"){a=["2fb83687-8dbf-422e-9c6b-74823e3dd0ad",VALUE(document.getElementById("KTRANS_KundenANLAN")),"90d7530c-7e49-437d-ac71-4af5ded7b508",VALUE(document.getElementById("KTRANS_STRASSE1")),"52a79e43-1ce1-4b5a-9164-cf413412f1f8",VALUE(document.getElementById("KTRANS_PLZ")),"1d70f932-b703-4415-808e-717c4d451bc7",VALUE(document.getElementById("KTRANS_ORT"))];PageMethods.SetSessionValues("","BestellungV2",a,SetSessionValues_callback,onFailed,Feld)}}function SetSessionValues_callback(result,Feld,methodName){if(result!=null){if(result!="undefined"&&result!=""){ShowAlert(result);return}}if(Feld=="KTRANS_R_NAT_ID"){onChangeOfKTRANS_R_NAT_ID()}if(Feld=="KTRANS_NAT_ID"){onChangeOfKTRANS_NAT_ID()}}function DoAdressSelection(OutputFeld,KunaIDFeld){var KunaID=$("#AddressDialog #LastKunaID")[0].value;$("#"+KunaIDFeld)[0].value=KunaID;var Prefix="KTRANS_";var AbwAnschriftValue="0";var AbwAnschriftFeld="KTRANS_KundenANLAN";if(OutputFeld=="KTRANS_RAnschrift_Ausgabe"){Prefix="KTRANS_R_";AbwAnschriftFeld="KTRANS_abw_RAnschrift";AbwAnschriftValue="3"}if(KunaID==""){KunaID="0"}var src=$("#AddressDialog #Kundenanschriften #KUN"+KunaID);$("#"+OutputFeld).html(src.html());if(KunaID=="0"){document.getElementById(AbwAnschriftFeld).value="1";ClearKUNAField("ANREDE",Prefix);ClearKUNAField("TITEL",Prefix);ClearKUNAField("NAME2",Prefix);ClearKUNAField("NAME1",Prefix);ClearKUNAField("STRASSE1",Prefix);ClearKUNAField("HNR",Prefix);ClearKUNAField("PLZ",Prefix);ClearKUNAField("ORT",Prefix);SetKUNAField("NAT_ID",Prefix,"47732e9a-a5ca-11d4-b28e-0048543b7487");ClearKUNAField("TEL",Prefix);ClearKUNAField("FIRMA",Prefix);ClearKUNAField("STRASSE2",Prefix)}else{document.getElementById(AbwAnschriftFeld).value=AbwAnschriftValue;CopyFromKunaSpan("ANREDE",src,Prefix);CopyFromKunaSpan("TITEL",src,Prefix);CopyFromKunaSpan("NAME2",src,Prefix);CopyFromKunaSpan("NAME1",src,Prefix);CopyFromKunaSpan("STRASSE1",src,Prefix);CopyFromKunaSpan("HNR",src,Prefix);CopyFromKunaSpan("PLZ",src,Prefix);CopyFromKunaSpan("ORT",src,Prefix);CopyFromKunaSpan("TEL",src,Prefix);CopyFromKunaSpan("FIRMA",src,Prefix);CopyFromKunaSpan("STRASSE2",src,Prefix);CopyFromKunaSpan("NAT_ID",src,Prefix)}}function DoAdressPreSelection(OutputFeld,KunaIDFeld,KunaID){if(KunaID==""){return}$("#"+KunaIDFeld)[0].value=KunaID;var Prefix="KTRANS_";var AbwAnschriftValue="0";var AbwAnschriftFeld="KTRANS_KundenANLAN";if(OutputFeld=="KTRANS_RAnschrift_Ausgabe"){Prefix="KTRANS_R_";AbwAnschriftFeld="KTRANS_abw_RAnschrift";AbwAnschriftValue="3"}var src=$("#KTRANS_Anschriften #KUN"+KunaID);$("#"+OutputFeld).html(src.html());document.getElementById(AbwAnschriftFeld).value=AbwAnschriftValue;CopyFromKunaSpan("ANREDE",src,Prefix);
32CopyFromKunaSpan("TITEL",src,Prefix);CopyFromKunaSpan("NAME2",src,Prefix);CopyFromKunaSpan("NAME1",src,Prefix);CopyFromKunaSpan("STRASSE1",src,Prefix);CopyFromKunaSpan("HNR",src,Prefix);CopyFromKunaSpan("PLZ",src,Prefix);CopyFromKunaSpan("ORT",src,Prefix);CopyFromKunaSpan("NAT_ID",src,Prefix);CopyFromKunaSpan("TEL",src,Prefix);CopyFromKunaSpan("FIRMA",src,Prefix);CopyFromKunaSpan("STRASSE2",src,Prefix)}; 33/*js/basictable/jquery.basictable.min.js*/!function(t){t.fn.basictable=function(a){var e=function(a,e,n){a.children().each(function(){var a=t(this);if(""!==a.html()&&" "!==a.html()||n.showEmptyCells){for(var r=a.index(),i="",s=0;s<e.length;s++){0!=s&&(i+=": "),i+=e[s][r].text()}a.attr("data-th",i),n.contentWrap&&!a.children().hasClass("bt-content")&&a.wrapInner('<span class="bt-content" />')}else{a.addClass("bt-hide")}})},n=function(a,e){e.forceResponsive?null!==e.breakpoint&&t(window).width()<=e.breakpoint||null!==e.containerBreakpoint&&a.parent().width()<=e.containerBreakpoint?r(a,e):i(a,e):a.removeClass("bt").outerWidth()>a.parent().width()?r(a,e):i(a,e)},r=function(t,a){t.addClass("bt"),a.header||t.addClass("bt--no-header"),a.tableWrap&&t.parent(".bt-wrapper").addClass("active")},i=function(t,a){t.removeClass("bt bt--no-header"),a.tableWrap&&t.parent(".bt-wrapper").removeClass("active")},s=function(a,e){var n;a.removeClass("bt bt--no-header"),a.find("td").removeAttr("data-th"),e.tableWrap&&a.unwrap(),e.contentWrap&&(n=a,t.each(n.find("td"),function(){var a=t(this),e=a.children(".bt-content").html();a.html(e)}
33)),a.removeData("basictable")};this.each(function(){var o=t(this);if(0===o.length||o.data("basictable")){return o.data("basictable")&&("destroy"==a?s(o,o.data("basictable")):"start"===a?r(o,o.data("basictable")):"stop"===a?i(o,o.data("basictable")):n(o,o.data("basictable"))),!1}var l=t.extend({},t.fn.basictable.defaults,a),b={breakpoint:l.breakpoint,containerBreakpoint:l.containerBreakpoint,contentWrap:l.contentWrap,forceResponsive:l.forceResponsive,noResize:l.noResize,tableWrap:l.tableWrap,showEmptyCells:l.showEmptyCells,header:l.header};null===b.breakpoint&&null===b.containerBreakpoint&&(b.breakpoint=568),o.data("basictable",b),function(a,n){var r=[];if(n.tableWrap&&a.wrap('<div class="bt-wrapper"></div>'),n.header){var i="";i=a.find("thead tr th").length?"thead th":a.find("tbody tr th").length?"tbody tr th":a.find("th").length?"tr:first th":"tr:first td",t.each(a.find(i),function(){var a=t(this),e=parseInt(a.attr("colspan"),10)||1,n=a.closest("tr").index();r[n]||(r[n]=[]);for(var i=0;i<e;i++){r[n].push(a)}})}t.each(a.find("tbody tr"),function(){e(t(this),r,n)}),t.each(a.find("tfoot tr"),function(){e(t(this),r,n)})}(o,o.data("basictable")),b.noResize||(n(o,o.data("basictable")),t(window).bind("resize.basictable",function(){var t;(t=o).data("basictable")&&n(t,t.data("basictable"))}))})},t.fn.basictable.defaults={breakpoint:null,containerBreakpoint:null,contentWrap:!0,forceResponsive:!0,noResize:!1,tableWrap:!1,showEmptyCells:!1,header:!0}}(jQuery); 34/*js/SW.page.1.1.js*/!function(a){a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){function b(){v(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))},g=function(a){return a.replace(c.regex.minmaxwh,"").match(c.regex.other)};if(c.ajax=f,c.queue=d,c.unsupportedmq=g,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var h,i,j,k=a.document,l=k.documentElement,m=[],n=[],o=[],p={},q=30,r=k.getElementsByTagName("head")[0]||l,s=k.getElementsByTagName("base")[0],t=r.getElementsByTagName("link"),u=function(){var a,b=k.createElement("div"),c=k.body,d=l.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=k.createElement("body"),c.style.background="none"),l.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&l.insertBefore(c,l.firstChild),a=b.offsetWidth,f?l.removeChild(c):c.removeChild(b),l.style.fontSize=d,e&&(c.style.fontSize=e),a=j=parseFloat(a)},v=function(b){var c="clientWidth",d=l[c],e="CSS1Compat"===k.compatMode&&d||k.body[c]||d,f={},g=t[t.length-1],p=(new Date).getTime();if(b&&h&&q>p-h){return a.clearTimeout(i),i=a.setTimeout(v,q),void 0}h=p;for(var s in m){if(m.hasOwnProperty(s)){var w=m[s],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?j||u():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?j||u():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(n[w.rules]))}}for(var C in o){o.hasOwnProperty(C)&&o[C]&&o[C].parentNode===r&&r.removeChild(o[C])}o.length=0;for(var D in f){if(f.hasOwnProperty(D)){var E=k.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,r.insertBefore(E,g.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(k.createTextNode(F)),o.push(E)}}},w=function(a,b,d){var e=a.replace(c.regex.comments,"").replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var h=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},i=!f&&d;b.length&&(b+="/"),i&&(f=1);for(var j=0;f>j;j++){var k,l,o,p;i?(k=d,n.push(h(a))):(k=e[j].match(c.regex.findStyles)&&RegExp.$1,n.push(RegExp.$2&&h(RegExp.$2))),o=k.split(","),p=o.length;for(var q=0;p>q;q++){l=o[q],g(l)||m.push({media:l.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:n.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}}v()},x=function(){if(d.length){var b=d.shift();f(b.href,function(c){w(c,b.href,b.media),p[b.href]=!0,a.setTimeout(function(){x()},0)})}},y=function(){for(var b=0;b<t.length;b++){var c=t[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!p[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(w(c.styleSheet.rawCssText,e,f),p[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!s||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}x()};y(),c.update=y,c.getEmValue=u,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this);$.easing.jswing=$.easing.swing;$.extend($.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return $.easing[$.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-$.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return $.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return $.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});!function(t,e,r,s,n){function a(e){e=e.split(")");var r,n,a,i=t.trim,o=-1,c=e.length-1,p=O?new Float32Array(6):[],l=O?new Float32Array(6):[],f=O?new Float32Array(6):[1,0,0,1,0,0];for(p[0]=p[3]=f[0]=f[3]=1,p[1]=p[2]=p[4]=p[5]=0;++o<c;){switch(r=e[o].split("("),n=i(r[0]),a=r[1],l[0]=l[3]=1,l[1]=l[2]=l[4]=l[5]=0,n){case Y+"X":l[4]=parseInt(a,10);break;case Y+"Y":l[5]=parseInt(a,10);break;case Y:a=a.split(","),l[4]=parseInt(a[0],10),l[5]=parseInt(a[1]||0,10);break;case j:a=u(a),l[0]=s.cos(a),l[1]=s.sin(a),l[2]=-s.sin(a),l[3]=s.cos(a);break;case H+"X":l[0]=+a;break;case H+"Y":l[3]=a;break;case H:a=a.split(","),l[0]=a[0],l[3]=a.length>1?a[1]:a[0];break;case $+"X":l[2]=s.tan(u(a));break;case $+"Y":l[1]=s.tan(u(a));break;case z:a=a.split(","),l[0]=a[0],l[1]=a[1],l[2]=a[2],l[3]=a[3],l[4]=parseInt(a[4],10),l[5]=parseInt(a[5],10)}
34f[0]=p[0]*l[0]+p[2]*l[1],f[1]=p[1]*l[0]+p[3]*l[1],f[2]=p[0]*l[2]+p[2]*l[3],f[3]=p[1]*l[2]+p[3]*l[3],f[4]=p[0]*l[4]+p[2]*l[5]+p[4],f[5]=p[1]*l[4]+p[3]*l[5]+p[5],p=[f[0],f[1],f[2],f[3],f[4],f[5]]}return f}function i(t){var e,r,n,a=t[0],i=t[1],o=t[2],c=t[3];return a*c-i*o?(e=s.sqrt(a*a+i*i),a/=e,i/=e,n=a*o+i*c,o-=a*n,c-=i*n,r=s.sqrt(o*o+c*c),o/=r,c/=r,n/=r,i*o>a*c&&(a=-a,i=-i,n=-n,e=-e)):e=r=n=0,[[Y,[+t[4],+t[5]]],[j,s.atan2(i,a)],[$+"X",s.atan(n)],[H,[e,r]]]}function o(e,r){var s,n,o,u,m={start:[],end:[]},x=-1;if(("none"==e||p(e))&&(e=""),("none"==r||p(r))&&(r=""),e&&r&&!r.indexOf("matrix")&&g(e).join()==g(r.split(")")[0]).join()&&(m.origin=e,e="",r=r.slice(r.indexOf(")")+1)),e||r){if(e&&r&&l(e)!=l(r)){m.start=i(a(e)),m.end=i(a(r))}else{for(e&&(e=e.split(")"))&&(s=e.length),r&&(r=r.split(")"))&&(s=r.length);++x<s-1;){e[x]&&(n=e[x].split("(")),r[x]&&(o=r[x].split("(")),u=t.trim((n||o)[0]),f(m.start,c(u,n?n[1]:0)),f(m.end,c(u,o?o[1]:0))}}return m}}function c(t,e){var r,s=+!t.indexOf(H),n=t.replace(/e[XY]/,"e");switch(t){case Y+"Y":case H+"Y":e=[s,e?parseFloat(e):s];break;case Y+"X":case Y:case H+"X":r=1;case H:e=e?(e=e.split(","))&&[parseFloat(e[0]),parseFloat(e.length>1?e[1]:t==H?r||e[0]:s+"")]:[s,s];break;case $+"X":case $+"Y":case j:e=e?u(e):0;break;case z:return i(e?g(e):[1,0,0,1,0,0])}return[[n,e]]}function p(t){return v.test(t)}function l(t){return t.replace(/(?:\([^)]*\))|\s/g,"")}function f(t,e,r){for(;r=e.shift();){t.push(r)}}function u(t){return ~t.indexOf("deg")?parseInt(t,10)*(2*s.PI/360):~t.indexOf("grad")?parseInt(t,10)*(s.PI/200):parseFloat(t)}function g(t){return t=/([^,]*),([^,]*),([^,]*),([^,]*),([^,p]*)(?:px)?,([^)p]*)(?:px)?/.exec(t),[t[1],t[2],t[3],t[4],t[5],t[6]]}for(var m,x,d,k,h=r.createElement("div"),y=h.style,b="Transform",I=["O"+b,"ms"+b,"Webkit"+b,"Moz"+b],M=I.length,O=("Float32Array" in e),X=/Matrix([^)]*)
34/,v=/^\s*matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*(?:,\s*0(?:px)?\s*){2}\)\s*$/,w="transform",F="transformOrigin",Y="translate",j="rotate",H="scale",$="skew",z="matrix";M--;){I[M] in y&&(t.support[w]=m=I[M],t.support[F]=m+"Origin")}m||(t.support.matrixFilter=x=""===y.filter),t.cssNumber[w]=t.cssNumber[F]=!0,m&&m!=w?(t.cssProps[w]=m,t.cssProps[F]=m+"Origin",m=="Moz"+b?d={get:function(e,r){return r?t.css(e,m).split("px").join(""):e.style[m]},set:function(t,e){t.style[m]=/matrix\([^)p]*\)/.test(e)?e.replace(/matrix((?:[^,]*,){4})([^,]*),([^)]*)/,z+"$1$2px,$3px"):e}}:/^1\.[0-5](?:\.|$)/.test(t.fn.jquery)&&(d={get:function(e,r){return r?t.css(e,m.replace(/^ms/,"Ms")):e.style[m]}})):x&&(d={get:function(e,r,s){var a,i,o=r&&e.currentStyle?e.currentStyle:e.style;return o&&X.test(o.filter)?(a=RegExp.$1.split(","),a=[a[0].split("=")[1],a[2].split("=")[1],a[1].split("=")[1],a[3].split("=")[1]]):a=[1,0,0,1],t.cssHooks[F]?(i=t._data(e,"transformTranslate",n),a[4]=i?i[0]:0,a[5]=i?i[1]:0):(a[4]=o?parseInt(o.left,10)||0:0,a[5]=o?parseInt(o.top,10)||0:0),s?a:z+"("+a+")"},set:function(e,r,s){var n,i,o,c,p=e.style;s||(p.zoom=1),r=a(r),i=["Matrix(M11="+r[0],"M12="+r[2],"M21="+r[1],"M22="+r[3],"SizingMethod='auto expand'"].join(),o=(n=e.currentStyle)&&n.filter||p.filter||"",p.filter=X.test(o)?o.replace(X,i):o+" progid:DXImageTransform.Microsoft."+i+")",t.cssHooks[F]?t.cssHooks[F].set(e,r):((c=t.transform.centerOrigin)&&(p["margin"==c?"marginLeft":"left"]=-(e.offsetWidth/2)+e.clientWidth/2+"px",p["margin"==c?"marginTop":"top"]=-(e.offsetHeight/2)+e.clientHeight/2+"px"),p.left=r[4]+"px",p.top=r[5]+"px")}}),d&&(t.cssHooks[w]=d),k=d&&d.get||t.css,t.fx.step.transform=function(e){var r,n,a,i,c=e.elem,p=e.start,l=e.end,f=e.pos,u="",g=100000;for(p&&"string"!=typeof p||(p||(p=k(c,m)),x&&(c.style.zoom=1),l=l.split("+=").join(p),t.extend(e,o(p,l)),p=e.start,l=e.end),r=p.length;r--;){switch(n=p[r],a=l[r],i=0,n[0]){case Y:i="px";case H:i||(i=""),u=n[0]+"("+s.round((n[1][0]+(a[1][0]-n[1][0])*f)*g)/g+i+","+s.round((n[1][1]+(a[1][1]-n[1][1])*f)*g)/g+i+")"+u;break;case $+"X":case $+"Y":case j:u=n[0]+"("+s.round((n[1]+(a[1]-n[1])*f)*g)/g+"rad)"+u}}e.origin&&(u=e.origin+u),d&&d.set?d.set(c,u,1):c.style[m]=u},t.transform={centerOrigin:"margin"}}(jQuery,window,document,Math);!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=-1,o=-1,i=function(t){return parseFloat(t)||0},a=function(e){var o=1,a=t(e),n=null,r=[];return a.each(function(){var e=t(this),a=e.offset().top-i(e.css("margin-top")),s=r.length>0?r[r.length-1]:null;null===s?r.push(e):Math.floor(Math.abs(n-a))<=o?r[r.length-1]=s.add(e):r.push(e),n=a}),r},n=function(e){var o={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(o,e):("boolean"==typeof e?o.byRow=e:"remove"===e&&(o.remove=!0),o)},r=t.fn.matchHeight=function(e){var o=n(e);if(o.remove){var i=this;return this.css(o.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(i)}),this}return this.length<=1&&!o.target?this:(r._groups.push({elements:this,options:o}),r._apply(this,o),this)};r.version="0.7.0",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,r._afterUpdate=null,r._rows=a,r._parse=i,r._parseOptions=n,r._apply=function(e,o){var s=n(o),h=t(e),l=[h],c=t(window).scrollTop(),p=t("html").outerHeight(!0),d=h.parents().filter(":hidden");return d.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),d.css("display","block"),s.byRow&&!s.target&&(h.each(function(){var e=t(this),o=e.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block"),e.data("style-cache",e.attr("style")),e.css({display:o,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),l=a(h),h.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(l,function(e,o){var a=t(o),n=0;if(s.target){n=s.target.outerHeight(!1)}else{if(s.byRow&&a.length<=1){return void a.css(s.property,"")}a.each(function(){var e=t(this),o=e.attr("style"),i=e.css("display");"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block");var a={display:i};a[s.property]="",e.css(a),e.outerHeight(!1)>n&&(n=e.outerHeight(!1)),o?e.attr("style",o):e.css("display","")})}a.each(function(){var e=t(this),o=0;s.target&&e.is(s.target)||("border-box"!==e.css("box-sizing")&&(o+=i(e.css("border-top-width"))+i(e.css("border-bottom-width")),o+=i(e.css("padding-top"))+i(e.css("padding-bottom"))),e.css(s.property,n-o+"px"))})}),d.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(c/p*t("html").outerHeight(!0)),this},r._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var o=t(this),i=o.attr("data-mh")||o.attr("data-match-height");i in e?e[i]=e[i].add(o):e[i]=o}),t.each(e,function(){this.matchHeight(!0)})};var s=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(i,a){if(a&&"resize"===a.type){var n=t(window).width();if(n===e){return}e=n}i?-1===o&&(o=setTimeout(function(){s(a),o=-1},r._throttle)):s(a)},t(r._applyDataApi),t(window).on("load",function(t){r._update(!1,t)}),t(window).bind("resize orientationchange",function(t){r._update(!0,t)})}); 35/* jquery-awesome-cursor - v0.3.1 - 2016-04-23 * Copyright (c) 2016 ; Licensed MIT */ 36!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],b):b("object"==typeof exports?require("jquery"):a.jQuery)}(this,function(a){function b(b,c){-1===a.inArray(c,["horizontal","vertical","both"])&&a.error("Flip value must be one of horizontal, vertical or both");var d,e=a("<canvas />")[0];
36return e.width=b.width,e.height=b.height,d=e.getContext("2d"),"horizontal"!==c&&"both"!==c||(d.translate(b.width,0),d.scale(-1,1)),"vertical"!==c&&"both"!==c||(d.translate(0,b.height),d.scale(1,-1)),d.drawImage(b,0,0,b.width,b.height),e}var c=function(b,c){var d=0,e=0;return"string"!=typeof b&&a.error("Hotspot value is not a string and could not be parsed"),"number"!=typeof c&&a.error("Cursor size must be a number"),b.split(" ").forEach(function(a){switch(a){case"center":d=c/2,e=c/2;break;case"top":e=0;break;case"bottom":e=c-1;break;case"left":d=0;break;case"right":d=c-1}}),[d,e]};a.fn.extend({awesomeCursor:function(d,e){e=a.extend({},a.fn.awesomeCursor.defaults,e),"string"==typeof d&&d||a.error("First parameter must be the icon name, e.g. 'pencil'"),e.size="string"==typeof e.size?parseInt(e.size,10):e.size,"string"==typeof e.hotspot&&(e.hotspot=c(e.hotspot,e.size)),e.hotspot=a.map(e.hotspot,function(a){return Math.min(e.size-1,Math.max(0,a))});var f=function(a,b){return"string"==typeof b?b.replace(/%s/g,a):"function"==typeof b?b(a):a}(d,e.font.cssClass),g=a("<i />",{"class":f,style:"display: inline; font-size: "+e.size+"px;"}),h=a("<div />",{style:"position: absolute; left: -9999px; top: -9999px;"}).append(g);a("body").append(h);var i,j,k,l=window.getComputedStyle(g[0],":before").getPropertyValue("content"),m=g[0].getBoundingClientRect(),n=a("<canvas />")[0],o=Math.max(m.width,m.height);return g.remove(),e.outline&&(o+=2),e.rotate?(o=Math.ceil(Math.sqrt(Math.pow(o,2)+Math.pow(o,2))),i=(o-e.size)/2,n.width=o,n.height=o,k=n.getContext("2d"),k.translate(n.width/2,n.height/2),k.rotate(e.rotate*Math.PI/180),k.translate(-n.width/2,-n.height/2),e.hotspot[0]+=e.hotspot[0]!==n.width/2?i:0,e.hotspot[1]+=e.hotspot[1]!==n.height/2?i:0):(n.height=o,n.width=o,k=n.getContext("2d")),l=l.replace(/['"]/g,""),k.fillStyle=e.color,k.font=e.size+"px "+e.font.family,k.textAlign="center",k.textBaseline="middle",k.fillText(l,o/2,o/2),e.outline&&(k.lineWidth=0.5,k.strokeStyle=e.outline,k.strokeText(l,o/2,o/2)),e.flip&&(n=b(n,e.flip)),j=n.toDataURL("image/png"),a(this).css("cursor","").css("cursor",["url("+j+")",e.hotspot[0],e.hotspot[1],",","auto"].join(" ")),this}}),a.fn.awesomeCursor.defaults={color:"#000000",size:18,hotspot:[0,0],flip:"",rotate:0,outline:null,font:{family:"FontAwesome",cssClass:"fa fa-%s"}}});!function(a){"function"==typeof define&&define.amd?define(["jquery"],function(b){return a(b)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=a(require("jquery")):a(window.jQuery)}(function(a){function b(a){void 0===a&&(a=window.navigator.userAgent),a=a.toLowerCase();var b=/(edge)\/([\w.]+)/.exec(a)||/(opr)[\/]([\w.]+)/.exec(a)||/(chrome)[ \/]([\w.]+)/.exec(a)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[],c=/(ipad)/.exec(a)||/(ipod)/.exec(a)||/(iphone)/.exec(a)||/(kindle)/.exec(a)||/(silk)/.exec(a)||/(android)/.exec(a)||/(windows phone)/.exec(a)||/(win)/.exec(a)||/(mac)/.exec(a)||/(linux)/.exec(a)||/(cros)/.exec(a)||/(playbook)/.exec(a)||/(bb)/.exec(a)||/(blackberry)/.exec(a)||[],d={},e={browser:b[5]||b[3]||b[1]||"",version:b[2]||b[4]||"0",versionNumber:b[4]||b[2]||"0",platform:c[0]||""};if(e.browser&&(d[e.browser]=!0,d.version=e.version,d.versionNumber=parseInt(e.versionNumber,10)),e.platform&&(d[e.platform]=!0),(d.android||d.bb||d.blackberry||d.ipad||d.iphone||d.ipod||d.kindle||d.playbook||d.silk||d["windows phone"])&&(d.mobile=!0),(d.cros||d.mac||d.linux||d.win)&&(d.desktop=!0),(d.chrome||d.opr||d.safari)&&(d.webkit=!0),d.rv||d.edge){var f="msie";e.browser=f,d[f]=!0}if(d.safari&&d.blackberry){var g="blackberry";e.browser=g,d[g]=!0}if(d.safari&&d.playbook){var h="playbook";e.browser=h,d[h]=!0}if(d.bb){var i="blackberry";e.browser=i,d[i]=!0}if(d.opr){var j="opera";e.browser=j,d[j]=!0}if(d.safari&&d.android){var k="android";e.browser=k,d[k]=!0}if(d.safari&&d.kindle){var l="kindle";e.browser=l,d[l]=!0}if(d.safari&&d.silk){var m="silk";e.browser=m,d[m]=!0}return d.name=e.browser,d.platform=e.platform,d}return window.jQBrowser=b(window.navigator.userAgent),window.jQBrowser.uaMatch=b,a&&(a.browser=window.jQBrowser),window.jQBrowser});function detectDevice(){var device={type:"desktop",control:"mouse"};
36if($.browser.mobile){device.type="mobile"}if($.browser.desktop){device.type="desktop"}device.os=$.browser.platform;device.browserName=$.browser.name;device.browserVersionNumber=$.browser.versionNumber;if(("ontouchstart" in window)||(navigator.msMaxTouchPoints>0)){device.control="touch"}return device}$(document).ready(function(){swPage=new swPageJs();swPage.init({})});function swPageJs(){var m=this;this.v={stage:{onlyDevServer:true,stages:["dev","trace"]},args:{},baseDomain:location.host.split(".").slice(-2)[0]+"."+location.host.split(".").slice(-1)[0],baseRoot:location.protocol+"//"+location.host,baseDir:$("base").attr("href").split("/")[3],baseUrl:location.protocol+"//"+location.host+"/"+$("base").attr("href").split("/")[3],serverRootDir:"",serverPath:"",locale:"de",device:detectDevice(),ariaMode:false,breakpoints:[320,480,768,1024,1280,1366,1600],currentBreakpoint:320,currentBreakpointId:0,sub:"Home",defaultSpeedFactor:1,defaultSpeed:1000,defaultEasing:"swing",defaultOpacity:0.8,jsTxt:{},loadingMarkup:'<div class="loadingcircle loadingm loadingtop"><div class="lw"><div class="lc1 lc"></div><div class="lc2 lc"></div><div class="lc3 lc"></div><div class="lc4 lc"></div><div class="lc5 lc"></div><div class="lc6 lc"></div><div class="lc7 lc"></div><div class="lc8 lc"></div><div class="lc9 lc"></div><div class="lc10 lc"></div><div class="lc11 lc"></div><div class="lc12 lc"></div></div></div>'};var v=m.v;this.init=function(args){v.args=args;m.staging();if(m.checkDependencies()){return false}m.setBreakpoint();m.getSub();m.setPresets();m.synwayModification();m.winResize();m.winScroll();m.bindEvents();m.loadScripts("onload","");m.datetimePickerInit();m.ariaInit();m.topBarInit();m.topMenuInit();m.langMenuInit();m.searchMenuInit();m.headerMenuInit();m.cartMenuInit();m.mainMenuInit();m.breadcrumbMenuInit();m.sideMenuInit();m.scrollToTopButtonInit();m.fanshopInit();m.ticketshopInit();m.formInit();m.cleanNodeInit();m.imageChangeInit();m.matchHeightInit();m.hiddenContentInit();m.dataPageXsltInit()};this.staging=function(){if(v.stage.onlyDevServer){if(v.baseRoot.indexOf("www99")<0){v.stage.stages=[]}}};this.checkDependencies=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.checkDependencies()")}var error=false;var msg="";if(error){console.log(msg)}return error};this.setBreakpoint=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.swPage.setBreakpoint()")}v.currentBreakpoint=v.breakpoints[0];v.currentBreakpointId=0;for(var key in v.breakpoints){if($(window).width()<=v.breakpoints[key]){break}v.currentBreakpoint=v.breakpoints[key];v.currentBreakpointId=key}};this.getSub=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.getSub()")}if($("body").attr("data-sub")){v.sub=$("body").attr("data-sub").toLowerCase()}};this.setPresets=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.setPresets()")}if(typeof swipers==="undefined"){swipers=[]}if("serverRootDir" in v.args){v.serverRootDir=v.args.serverRootDir}if("serverPath" in v.args){v.serverPath=v.args.serverPath}if("defaultSpeedFactor" in v.args){v.defaultSpeedFactor=v.args.defaultSpeedFactor}if("defaultSpeed" in v.args){v.defaultSpeed=v.args.defaultSpeed}if("defaultEasing" in v.args){v.defaultEasing=v.args.defaultEasing}if("defaultOpacity" in v.args){v.defaultOpacity=v.args.defaultOpacity}if("jsTxt" in v.args){v.jsTxt=v.args.jsTxt}document.createElement("header");document.createElement("section");document.createElement("nav");document.createElement("article");document.createElement("aside");document.createElement("footer");document.createElement("figure");document.createElement("figcaption");if(location.href.indexOf(v.baseDir)==-1){v.baseDir=""}v.locale=$("body").attr("data-locale")};this.synwayModification=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.synwayModification()")}$("[style*='font-family:']").each(function(){$(this).css("font-family","")});$(".MainContent").addClass("cf");
36if($(".contentpartempty").length>0){$('.contentpartempty img[src="images/waiting.gif"]').remove()}};this.winResize=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.winResize()")}$(window).resize(function(){m.setBreakpoint();m.topBarInit();m.topMenuInit();m.headerMenuInit();m.searchMenuInit();m.cartMenuInit();m.mainMenuInit()});var delayed;$(window).resize(function(){clearTimeout(delayed);delayed=setTimeout(function(){},50)})};this.winScroll=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.winScroll()")}$(window).scroll(function(){m.scrollToTopButtonCheck()})};this.bodyScrollOn=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.bodyScrollOn()")}$("html, body").css({overflow:"auto",height:"auto"})};this.bodyScrollOff=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.bodyScrollOff()")}$("html, body").css({overflow:"hidden",height:"100%"})};this.bindEvents=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.bindEvents()")}};this.loadScripts=function(script,args,callback){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.loadScripts()")}$.ajaxSetup({async:false,cache:true});if(script=="onload"){if($("locationbooking").length>0&&typeof swLocationBooking==="undefined"){var scriptReady=false;var loadingOverlayIdlocationBooking=m.loadingOverlayShow("","");$.getScript("js/SW.locationbooking.1.0.js",function(){m.loadingOverlayHide(loadingOverlayIdlocationBooking);scriptReady=true});if(scriptReady){return true}}}if(script=="datetimepicker"){if(typeof $.fn.datetimepicker==="undefined"){var scriptReady=false;var loadingOverlayIdDatetimepicker=m.loadingOverlayShow("","");$("head").append('<link rel="stylesheet" href="js/datetimepicker/datetimepicker.css" type="text/css" id="datetimepicker-css" />');$.getScript("js/datetimepicker/datetimepicker.full.min.js",function(){$.datetimepicker.setLocale(v.locale);m.loadingOverlayHide(loadingOverlayIdDatetimepicker);scriptReady=true;if(typeof callback!=="undefined"){callback()}});if(scriptReady){return true}}else{return true}}if(script=="swiper"){if(typeof $.fn.swiper==="undefined"){var scriptReady=false;var loadingOverlayIdSwiper=m.loadingOverlayShow("","");$.getScript("js/swiper/swiper.3.3.1.min.js",function(){m.loadingOverlayHide(loadingOverlayIdSwiper);if(typeof swipers==="undefined"){swipers=[]}scriptReady=true;if(typeof callback!=="undefined"){callback()}});if(scriptReady){return true}}else{return true}}};this.datetimePickerInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.datetimePickerInit()")}$(".inputfieldtodatetimepicker").each(function(){$($(this).attr("data-element")).addClass("datetimepicker").attr("data-datetimepicker",$(this).attr("data-datetimepicker"));$(this).remove()});$(".datetimepicker").on("click focus",function(e){if(typeof DateFormatter==="undefined"){if(!m.loadScripts("datetimepicker",["#"+$(this).attr("id"),$(this).attr("data-datetimepicker")])){return false}}m.datetimePicker("#"+$(this).attr("id"),$(this).attr("data-datetimepicker"))})};this.datetimePicker=function(element,type){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.datetimePicker()")}if(typeof DateFormatter==="undefined"){if(!m.loadScripts("datetimepicker",[element,type])){return false}}if(type=="date"){$(element).datetimepicker({timepicker:false,format:"d.m.Y",formatDate:"d.m.Y"})}if(type=="time"){$(element).datetimepicker({datepicker:false,format:"H:i",formatTime:"H:i",})}if(type=="datetime"){$(element).datetimepicker({format:"d.m.Y H:i",formatDate:"d.m.Y",formatTime:"H:i",})}if(type=="birthday"){$(element).datetimepicker({timepicker:false,format:"d.m.Y",formatDate:"d.m.Y",yearStart:1900,yearEnd:new Date().getFullYear(),maxDate:0})}};this.ariaInit=function(){if(m.checkCookie("aria")){if(m.getCookie("aria")=="true"){m.ariaOn()}}$(".ariaInit").on("click",function(e){e.preventDefault();if(v.ariaMode){m.ariaOff()}else{m.ariaOn()}
36m.flipInit()})};this.ariaOn=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.ariaOn()")}$("head").append('<link rel="stylesheet" href="'+v.baseRoot+'/user-aria.css" type="text/css" id="user-aria-css" />');v.ariaMode=true;ariaMode=true;m.setCookie("aria","true",1,";path=/")};this.ariaOff=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.ariaOff()")}$("#user-aria-css").remove();v.ariaMode=false;ariaMode=false;m.setCookie("aria","false",1,";path=/")};this.cleanUrls=function(condition,element,filter){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.cleanUrls()")}for(var x=0;x<condition.length;x++){if(window.location.hostname==condition[x]){$("a[href^='"+window.location.protocol+"//"+window.location.hostname+"/").each(function(){$(this).attr("href",$(this).attr("href").replace(window.location.protocol+"//"+window.location.hostname+"/","/"))});for(var y=0;y<condition.length;y++){$(element).each(function(){$(this).attr("href",$(this).attr("href").replace(filter[y],"/"))})}}}};this.shake=function(element){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.shake()")}var interval=100;var distance=10;var times=4;$(element).css("position","relative");for(var iter=0;iter<(times+1);iter++){$(element).animate({left:((iter%2==0?distance:distance*-1))},interval)}$(element).animate({left:0},interval)};this.loadingOverlayShow=function(target,html){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.loadingOverlayShow()")}var loadingOverlayId="loadingoverlay"+Math.floor((Math.random()*10000)+1);var markup='<div class="loadingoverlay '+loadingOverlayId+'">'+v.loadingMarkup+""+html+"</div>";if(target==""){$("body").append(markup);$("."+loadingOverlayId).height($(document).height()+"px")}else{$(target).append(markup)}$("."+loadingOverlayId).show();return"."+loadingOverlayId};this.loadingOverlayHide=function(loadingOverlayId){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.loadingOverlayHide()")}$(loadingOverlayId).remove()};this.topBarInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.topBarInit()")}$(".topbar.mobile .menu > ul > li").removeClass("active");if(typeof topbarMaxWidth==="undefined"){topbarMaxWidth=0;$(".topbar .menu").each(function(){topbarMaxWidth+=$(this).outerWidth(true)})}if(($(".topbar > .wrap").outerWidth()-parseInt($(".topbar > .wrap").css("padding-left"))-parseInt($(".topbar > .wrap").css("padding-right")))<topbarMaxWidth){$(".topbar").addClass("mobile");$(".topbar .menu").each(function(){$(this).addClass("mobile")})}else{$(".topbar").removeClass("mobile").removeClass("hide");$(".topbar .menu").each(function(){$(this).removeClass("mobile")})}};this.topMenuInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.topMenuInit()")}if($(".topmenu").hasClass("layout1")){$(".topbar .topmenu").removeClass("hide");m.topMenuLayout1()}};this.topMenuLayout1=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.topMenuLayout1()")}};this.langMenuInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.langMenuInit()")}$(".langmenu img").on("click",function(){var reUrl=url=location.href;var hashtag="";if(url.indexOf("#")>-1){var urltemp=url.split("#");reUrl=url=urltemp[0];hashtag="#"+urltemp[1]}if(url.indexOf("?")>-1){var patterns=["lang"];var address=query=result=[];address=url.split("?");result.push(address[0]);result.push("?");if(address.length>1){query=address[1].split("&")}for(var i=0;i<query.length;i++){var validArg=true;for(var j=0;j<patterns.length;j++){if(query[i].indexOf(patterns[j])>-1){validArg=false}}if(validArg){result.push("&"+query[i])}}reUrl=result.join("")}else{reUrl+="?"}reUrl+="&langid="+$(this).attr("data-lang");reUrl=reUrl.replace("?&","?");reUrl+=hashtag;location.href=reUrl})};this.searchMenuInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.searchMenuInit()")}$(".searchmenu.mobile .searchmenuitem > li").off();if($(".searchmenu").hasClass("layout1")){if(!$(".searchmenu").hasClass("mobile")){m.searchMenuLayout1()}else{m.searchMenuMobileLayout1()}}};this.searchMenuLayout1=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.searchMenuLayout1()")}$(".searchmenu input").on("focus",function(){$(".searchmenu .searchbox").addClass("active")});$(".searchmenu input").on("blur",function(){$(".searchmenu .searchbox").removeClass("active")})};this.searchMenuMobileLayout1=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.searchMenuMobileLayout1()")}$(".searchmenu.mobile .searchmenuitem > li").on("click",function(e){e.preventDefault();if(!$(this).hasClass("active")){$(".topbar.mobile .menu > ul > li").removeClass("active");$(this).addClass("active");$(".topmenumobilecontainer").html('<ul class="searchmenuitem search"><li><ul class="searchbox mobile">'+$(this).find("ul.searchbox").html()+"</ul></li></ul>")}else{$(".topbar.mobile .menu > ul > li").removeClass("active");$(".topmenumobilecontainer").html("")}})};this.headerMenuInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.headerMenuInit()")}$(".headermenu.mobile > .headermenuitem > li, .headermenu.mobile > .headermenuitem.logon > li").unbind("click");$(".topmenumobilecontainer").html("");$(".topbar.mobile .menu > ul > li").removeClass("active");if(!$(".headermenu").hasClass("mobile")){m.headerMenu()}else{m.headermenumobile()}};this.headerMenu=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.headerMenu()")}$(".headermenuitem.logon input").on("focus",function(){$(".headermenuitem.logon .logonbox").addClass("active")});$(".headermenuitem.logon input").on("blur",function(){$(".headermenuitem.logon .logonbox").removeClass("active")})};this.headerMenuMobile=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.headerMenuMobile()")}$(".headermenu.mobile > .headermenuitem > li").not(".headermenu.mobile .headermenuitem.logon > li").on("click",function(e){if($(this).parent().parent().hasClass("mobile")&&$(this).find("ul").length>0){e.preventDefault()}if($(this).find("ul").length>0){if(!$(this).hasClass("active")&&$(this).parent().parent().hasClass("mobile")){$(".topbar.mobile .menu > ul > li").removeClass("active");$(this).addClass("active");$(".topmenumobilecontainer").html('<ul class="headermenuitem"><li><ul class="sub1 mobile">'+$(this).find("ul.sub1").html()+"</ul></li></ul>")}else{$(".topbar.mobile .menu > ul > li").removeClass("active");$(".topmenumobilecontainer").html("")}}});$(".headermenu.mobile > .headermenuitem.logon > li").on("click",function(e){if($(this).parent().parent().hasClass("mobile")&&$(this).find("ul").length>0){e.preventDefault()}if($(this).find("ul").length>0){if(!$(this).hasClass("active")&&$(this).parent().parent().hasClass("mobile")){$(".topbar.mobile .menu > ul > li").removeClass("active");$(this).addClass("active");$(".topmenumobilecontainer").html('<ul class="headermenuitem logon"><li><ul class="logonbox mobile">'+$(this).find("ul.logonbox").html()+"</ul></li></ul>")}else{$(".topbar.mobile .menu > ul > li").removeClass("active");$(".topmenumobilecontainer").html("")}}})};this.cartMenuInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.cartMenuInit()")}$(".cartmenu.mobile .cartmenuitem.cart > li").off();$(".topmenumobilecontainer").html("");
36if(!$(".cartmenu").hasClass("mobile")){m.cartMenu();return false}else{m.cartMenuMobile();return false}};this.cartMenu=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.cartMenu()")}};this.cartMenuMobile=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.cartMenuMobile()")}$(".cartmenu.mobile .cartmenuitem.cart > li").on("click",function(e){e.preventDefault();if(!$(this).hasClass("active")&&$(this).parent().parent().hasClass("mobile")){$(".topbar.mobile .menu > ul > li").removeClass("active");$(this).addClass("active");$(".topmenumobilecontainer").html('<ul class="cartmenuitem cart"><li><div class="cartitems mobile">'+$(this).find(".cartitems").html()+"</div></li></ul>")}else{$(".topbar.mobile .menu > ul > li").removeClass("active");$(".topmenumobilecontainer").html("")}})};this.mainMenuInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.mainMenuInit()")}if($("#mainmenu").hasClass("layout1")){$(".mainmenumobilebar").removeClass("active");$(".mainmenumobileextra").addClass("hide");$(".mainmenumobileoverlay,.mainmenumobileside").hide();if(typeof mainMenuMaxWidth==="undefined"){mainMenuMaxWidth=0;$("#mainmenu > ul > li").each(function(){mainMenuMaxWidth+=$(this).outerWidth(true)})}if(($("#mainmenu").parent(".wrap").outerWidth()-parseInt($("#mainmenu").parent(".wrap").css("padding-left"))-parseInt($("#mainmenu").parent(".wrap").css("padding-right")))<mainMenuMaxWidth){$("#mainmenu").addClass("mobile");$("#mainmenu > ul > li > a, #mainmenu .block").off("mouseenter mouseleave");m.mainMenuMobileLayout1()}else{$("#mainmenu").removeClass("mobile");$("#mainmenu > ul > li > a").off("click");m.mainMenuLayout1()}}};this.mainMenuLayout1=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.mainMenuLayout1()")}$("#mainmenu > ul > li > a, #mainmenu .block").on("mouseenter",function(e){$("#mainmenu > ul > li").removeClass("blockopen");$(this).parent("li").addClass("blockopen");$(this).parent("li").find(".block").addClass("blockopen").stop().animate({opacity:1},200,"easeInQuad")});$("#mainmenu > ul > li > a, #mainmenu .block").on("mouseleave",function(e){$("#mainmenu > ul > li").removeClass("blockopen");$(this).parent("li").find(".block").stop().animate({opacity:0}
36,100,"easeOutQuad")});if(v.device.control=="touch"){var mainMenuCurrentTarget="";$("#mainmenu > ul > li > a").on("click",function(e){if(mainMenuCurrentTarget!=e.currentTarget){e.preventDefault();mainMenuCurrentTarget=e.currentTarget;$("#mainmenu").find(".block").stop().animate({css:0},0);$("#mainmenu > ul > li").removeClass("blockopen");$(e.currentTarget).parent("li").addClass("blockopen");$(e.currentTarget).parent("li").find(".block").stop().animate({opacity:1},200,"easeInQuad")}else{if($(this).attr("src")=="#"){e.preventDefault()}$(e.currentTarget).parent("li").find(".block").stop().animate({opacity:0},100,"easeOutQuad",function(){$("#mainmenu > ul > li").removeClass("blockopen")})}})}};this.mainMenuMobileLayout1=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.mainMenuMobileLayout1()")}var mainMenuMobileSideWidth=parseInt($("body").width()*0.7);$(".mainmenumobilebar").addClass("active");$(".mainmenumobileextra").removeClass("hide");if($(".mainmenumobileextra .topmenu").length<1){$(".mainmenumobilebar").append('<div class="mainmenumobileextra"></div>');$(".topmenu").clone().appendTo(".mainmenumobileextra");$(".mainmenumobileextra .topmenu.mobile").removeClass("hide")}if(!$(".topbar .topmenu").hasClass("mobile")){$(".topbar .topmenu").removeClass("hide");$(".mainmenumobileextra .topmenu").addClass("hide")}else{$(".topbar .topmenu").addClass("hide");$(".mainmenumobileextra .topmenu").removeClass("hide")}if($(".mainmenumobileside").length<1){$("body").append('<div class="mainmenumobileside"></div><div class="mainmenumobileoverlay"></div>');$(".mainmenumobileside").append('<nav class="mainmenu layout1 mobile"><span class="mainmenumobilesideclose"></span>'+$(".mainmenu.mobile").html()+"</nav>")}$(".mainmenumobileside").css({height:$(document).height()+"px",width:mainMenuMobileSideWidth+"px",left:-mainMenuMobileSideWidth+"px"});$(".mainmenumobileicon").on("click",function(e){$(".mainmenumobileoverlay, .mainmenumobileside, .mainmenumobilesideclose").show();$(".mainmenumobilesideclose").addClass("active");$(".mainmenumobileside nav").css({marginTop:parseInt($(window).scrollTop()+40)+"px"}).show();$(".mainmenumobileoverlay").css("opacity","0").stop().animate({opacity:1},150,"easeOutQuad",function(){$(".mainmenumobileside").stop().animate({left:0},400,"easeOutQuad")})});$(document).on("click",".mainmenumobileoverlay,.mainmenumobilesideclose",function(e){$(".mainmenumobileside").stop().animate({left:-mainMenuMobileSideWidth+"px"},500,"easeInQuad",function(){$(".mainmenumobilesideclose").removeClass("active");$(".mainmenumobileoverlay").hide()})});var mainMenuCurrentTarget="";$(".mainmenumobileside .mainmenu > ul > li > a").on("click",function(e){if(mainMenuCurrentTarget!=e.currentTarget){e.preventDefault();mainMenuCurrentTarget=e.currentTarget;$(".mainmenumobileside .mainmenu").find(".block").stop().animate({css:0},0);$(".mainmenumobileside .mainmenu > ul > li").removeClass("blockopen");$(e.currentTarget).parent("li").addClass("blockopen");$(e.currentTarget).parent("li").find(".block").stop().animate({opacity:1},200,"easeInQuad")}else{if($(this).attr("src")=="#"){e.preventDefault()}$(e.currentTarget).parent("li").find(".block").stop().animate({opacity:0}
36,100,"easeOutQuad",function(){$(".mainmenumobileside .mainmenu > ul > li").removeClass("blockopen")})}})};this.breadcrumbMenuInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.breadcrumbMenuInit()")}};this.sideMenuInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.sideMenuInit()")}};this.scrollToTopButtonInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.scrollToTopButtonInit()")}if($(".scrolltotopbutton").length>0){$(document).on("click",".scrolltotopbutton",function(){$("html, body").animate({scrollTop:0},"fast","swing")})}m.scrollToTopButtonCheck()};this.scrollToTopButtonCheck=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.scrollToTopButtonCheck()")}if(($(document).height()/$(window).height())>2){if($(document).scrollTop()>$(window).height()){$(".scrolltotopbutton").fadeIn()}else{$(".scrolltotopbutton").hide()}}};this.navigateToUrl=function(url,target,params){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.navigateToUrl(url, target, Params)")}if(url==""||typeof url==="undefined"){return false}if(url.substring(0,4)!="http"){url=v.baseUrl+"/"+url}if(params!=""||typeof params!=="undefined"){url=url+((url.indexOf("?")>-1)?"&":"?")+params}if(target==""||typeof target==="undefined"){target="_self"}window.open(url,target)};this.update=function(Ziele){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.update()")}var Value,obj;var Ziel,Scroll;var Scroll;Scroll=new Array(Ziele.length);div=document.getElementById(Ziele[2]+"AJAX");Scroll[2]=Ziele[2];Ziel=3;var d;while(Ziel<Scroll.length){try{Scroll[Ziel]=0;Scroll[Ziel+1]=0;Scroll[Ziel+2]=Ziele[Ziel+2];div=document.getElementById(Ziele[Ziel+2]+"AJAX");d=document.getElementById(Scroll[Ziel+2]+"_DIV");if(d){if(d.style.display=="none"){Scroll[Ziel]=-1000}else{Scroll[Ziel]=d.scrollTop}Scroll[Ziel+1]=d.scrollLeft}}catch(e){}Ziel+=3}PageMethods.Refresh(Ziele,swPage.updateCallback,onFailed,Scroll)};this.updateCallback=function(html,Ziele,methodName){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.updateCallback()")}if(html!=null){var i;var div,d;for(i=0;i<html.length;
36i++){div="#"+Ziele[(i+1)*3+2]+"AJAX";if($(div).length>0){if(html[i]!=null){$(div).html(html[i])}}}}};this.lookup=function(sub,id,ns,value,Ziele){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.lookup()")}var Value,obj;var Ziel;Ziel=0;while(Ziel<Ziele.length){obj=Ziele[Ziel+1];try{Ziele[Ziel+1]=obj.value}catch(ex){Ziele[Ziel+1]=""}Ziel+=3}PageMethods.Nachschlagen(sub,id,ns,value,Ziele,swPage.lookupCallback,onFailed,ctxDummy)};this.lookupCallback=function(html,ctx,methodName){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.lookupCallback()")}nsfocused=0;var i;var div;if(html!=null){if(html[0]==null||html[0]==""||html[0]=="KO"){if(html[0]=="KO"&&html[1].indexOf("Postleitzahlenauswahl")>0){$("#"+html[2]).html('<div class="sysmeserror">'+html[1]+"</div>")}else{alert(html[1])}}else{for(i=2;i<html.length;i+=2){if(html[i]){div=document.getElementById(html[i]+"AJAX");if(div){div.innerHTML=html[i+1]}}}for(i=2;i<html.length;i+=2){if(html[i]){div=document.getElementById(html[i]+"AJAX");if(div){try{eval("document.SPDBForm."+html[i]+"_NSB.value=document.SPDBForm."+html[i]+"_NSB.value;")}catch(ex){try{eval("onChangeOf"+html[i]+"()")}catch(ex){}}if(i>2){setTimeout("try {if(!nsfocused){document.SPDBForm."+html[i]+".focus();nsfocused=1;}} catch(ex){};",200+i*10)}}}}if(!(html[0]==null||html[0]=="")){setTimeout("try {if(!nsfocused||1){document.SPDBForm."+html[2]+".focus();}} catch(ex){};",20)}}}};this.updateContent=function(sub,id){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.updateContent()")}div=document.getElementById("div"+sub);if(div){div.style.backgroundColor="lightyellow";div.style.borderColor="red";div.style.borderStyle="solid";div.style.borderWidth="0px 10px 0px 0px"}PageMethods.RefreshContent(sub,id,swPage.updateContentCallback,onFailed,sub)};this.updateContentCallback=function(html,sub,methodName){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.updateContentCallback()")}if(html!=null){var div;div=document.getElementById("div"+sub);if(div){div.innerHTML=html;div.style.backgroundColor="transparent";div.style.borderStyle="none"}}};this.updateContentParts=function(sub,id){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.updateContentParts()")}div=document.getElementById("div"+sub);if(div){div.style.backgroundColor="lightyellow";div.style.borderColor="red";div.style.borderStyle="solid";div.style.borderWidth="0px 10px 0px 0px"}PageMethods.RefreshContentParts(sub,id,swPage.updateContentPartsCallback,onFailed,sub)};this.updateContentPartsCallback=function(html,sub,methodName){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.updateContentPartsCallback()")}if(html!=null){var div;if(html[0]==""){div=document.getElementById("div"+sub);if(div){div.innerHTML=html[1]}}else{for(i=0;i<html.length;i+=2){if(html[i]!=""){div=document.getElementById(html[i]);if(div){div.innerHTML=html[i+1]}}}}div=document.getElementById("div"+sub);if(div){div.style.backgroundColor="transparent";div.style.borderStyle="none"}}};this.getContentPartsCallback=function(html,InstanzID,methodName){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.getContentPartsCallback()")}if(html!=null){var div;if(html[0]==""){if(html[1]!=""&&html[1]!=null){}}else{for(i=1;i<html.length;i+=2){if(html[i]!=""){if(html[i]=="!"){}else{div=document.getElementById(html[i]);if(div){div.innerHTML=html[i+1]}}}}if(html[0]=="1"){window.setTimeout("PageMethods.getContentParts('"+InstanzID+"', swPage.getContentPartsCallback, onFailed, '"+InstanzID+"');",1000)}}}};this.getUrlParameter=function(sParam){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.getUrlParameter()")}var sPageURL=window.location.search.substring(1);var sURLVariables=sPageURL.split("&");for(var i=0;i<sURLVariables.length;i++){var sParameterName=sURLVariables[i].split("=");if(sParameterName[0]==sParam){return sParameterName[1]}}return""};this.eventRadioClick=function(id,value){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.eventRadioClick()")}var hiddenField=document.getElementById(id);hiddenField.value=value;$(hiddenField).change()};
36this.fanshopInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.fanshopInit()")}if($(".listitembox.product .item > .info.JsEffect1").length>0){m.fanshopListEffect1()}};this.fanshopListEffect1=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.fanshopListEffect1()")}itemInfoProp=$(".listitembox.product .item > .info").css("bottom");$(document).on({mouseenter:function(){if($(this).children(".price").html()!=""){$(this).stop().animate({bottom:0},200,"easeInQuad")}},mouseleave:function(){$(this).stop().animate({bottom:itemInfoProp},200,"easeInQuad")}},".listitembox.product .item > .info.JsEffect1")};this.ticketshopInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.ticketshopInit()")}m.ticketshopTitelUpdate()};this.ticketshopTitelUpdate=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.ticketshopTitelUpdate()")}ticketshopListTitelInterval=setInterval(function(){m.ticketshopTitelUpdateFunction()},500);ticketshopListTitelTimeout=setTimeout(function(){clearTimeout(ticketshopListTitelInterval)},5000)};this.ticketshopTitelUpdateFunction=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.ticketshopTitelUpdateFunction()")}if($(".listitembox.ticket").length>0){$(".listitembox.ticket").each(function(){if(!$(this).hasClass("permanentcart")){$(this).find("h4 a").html($(this).find(".HomeClub").text()+' <span class="clubseparator"></span> '+$(this).find("h4 a .GuestClub").text())}});clearInterval(ticketshopListTitelInterval);clearTimeout(ticketshopListTitelTimeout)}};this.swiperAdd=function(params){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.swiperAdd()")}if("element" in params&¶ms.element!=""){if(typeof $.fn.swiper==="undefined"){m.loadScripts("swiper","",m.swiperAdd.bind(null,params));return false}var newSwiperId=swipers.length+1;if("swiperId" in params&¶ms.swiperId!=""){newSwiperId=params.swiperId}if("destination" in params&¶ms.destination!=""){var markup=$(params.element).prop("outerHTML");$(params.element).remove();$(params.destination).prepend(markup)}swipers[newSwiperId]=new Swiper(params.element,params.options);if("prevButton" in params.options&¶ms.options.prevButton!=""){$(document).on("click",params.element+" "+params.options.prevButton,function(e){e.preventDefault();swipers[newSwiperId].slidePrev()})}if("nextButton" in params.options&¶ms.options.nextButton!=""){$(document).on("click",params.element+" "+params.options.nextButton,function(e){e.preventDefault();swipers[newSwiperId].slideNext()})}return newSwiperId}};this.formInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.formInit()")}$("fieldset .separatorgrey").each(function(){if($(this).next().hasClass("separatorgrey")){$(this).remove()}});if($("body").hasClass("body_KundenRegistrierung")||$("body").hasClass("KundenRegistrierung")){m.formNavi();m.formRegistrationInit()}if($("body").hasClass("body_Passwortvergessen")||$("body").hasClass("Passwortvergessen")){m.formPasswortResetInit()}if($("body").hasClass("body_Anmeldung")||$("body").hasClass("Anmeldung")){m.formLoginInit()}if($("body").hasClass("body_MeinKonto")||$("body").hasClass("MeinKonto")){m.formMyAcountInit()}if($("body").hasClass("body_kontaktanfrage")||$("body").hasClass("kontaktanfrage")){m.formContactInit()}};this.formShowAlert=function(html,element){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.formShowAlert()")}$("#"+element.getAttribute("id")).parents("form").find(".sysmeserror").remove();$("#"+element.getAttribute("id")).parents("form").find(".failborder").removeClass("failborder");
36if($("#"+element.getAttribute("id")).is("input:text")){$("#"+element.getAttribute("id")).addClass("failborder").after('<p class="sysmes sysmeserror">'+html+"</p>").focus()}};this.formNavi=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.formNavi()")}$(".formnavi > span").eq(0).addClass("active");$(".formtabs > div").eq(0).addClass("active")};this.formNaviChangeTab=function(fieldset){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.formNaviChangeTab()")}$(".formnavi span,.formtabs > div").removeClass("active");$(".formnavi > span").eq(fieldset).addClass("active");$(".formtabs > div").eq(fieldset).addClass("active")};this.formCheckField=function(field,compareField,type,length){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.formCheckField()")}if(compareField==""){if(type=="email"){if($(field).parent().hasClass("HasMF")){if($(field).val()==""||$(field).val().indexOf("@")==-1||$(field).val().indexOf(".")==-1||$(field).val().length<6){$(field).addClass("failborder");return true}}}if(type=="captcha"){if($(field).val()==""||$(field).val().length<6||$(field).val().length>6){$(field).addClass("failborder");return true}}if(type=="checkbox"){if($(field).parent().hasClass("HasMF")){if(!$(field).is(":checked")){$(field).addClass("failoutline");return true}}}else{if(type=="lt"){if($(field).parent().hasClass("HasMF")){if($(field).val()==""&&$(field).val().length>length){$(field).addClass("failborder");return true}}}else{if(type=="gt"){if($(field).parent().hasClass("HasMF")){if($(field).val().length<length){$(field).addClass("failborder");return true}}}else{if($(field).parent().hasClass("HasMF")){if($(field).val()==""){$(field).addClass("failborder");return true}}}}}}else{if($(field).parent().hasClass("HasMF")){if($(comparefield).val()!=$(field).val()){$(field).addClass("failborder");return true}}}return false};this.formRegistrationinit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.formRegistrationinit()")}$(".FormButtons").remove();$("#KUNDEN_ANREDE option").each(function(){if($(this).val()==""){$(this).remove()}});$("#KUNDEN_Passwort").on("focus",function(e){$(this).parents(".hiddencontentclickevent").trigger("click")});$(".formregistration .buttonprev").on("click",function(e){e.preventDefault();var fieldset=parseInt($(this).attr("data-button"))-1;m.formNaviChangeTab(fieldset)});$(".formregistration .buttonnext").on("click",function(e){e.preventDefault();var fieldset=parseInt($(this).attr("data-button"))+1;var loadingOverlayIdFormreg=m.loadingOverlayShow(".formtabs","");setTimeout(function(){m.formRegistrationCheck(fieldset);m.loadingOverlayHide(loadingOverlayIdFormreg)},500)})};this.formRegistrationCheck=function(fieldset){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.formRegistrationCheck()")}$('form[name="SPDBForm"]').find(".failborder").removeClass("failborder");$('form[name="SPDBForm"]').find(".failoutline").removeClass("failoutline");$("#javascriptsupport").val("1");var fail=false;var checkAll=false;var fieldsetToCheck=fieldset-1;if(fieldset==0){checkAll=true;fieldsetToCheck=0}if(fieldsetToCheck==0){if(m.formCheckField("#Kunden_Nummer_bei_Registrierung","","","")){fail=true}if(m.formCheckField("#KUNDEN_EMAIL","","email","")){fail=true}$("#Kunden_Emailwiederholung").val($("#KUNDEN_EMAIL").val());if(m.formCheckField("#Kunden_Emailwiederholung","#KUNDEN_EMAIL","","")){fail=true}if(m.formCheckField("#KUNDEN_Username","","","")){fail=true}if($("#Kunden_doppelterBenutzernname").val()==1){$("#KUNDEN_Username").addClass("failborder");fail=true}if(m.formCheckField("#KUNDEN_Passwort","","gt","8")){fail=true}if(m.formCheckField("#KUNDEN_Passwortwiederholung","#KUNDEN_Passwort","","")){fail=true}if(fail){m.formNaviChangeTab(fieldsetToCheck);return false}if(!checkAll&&!fail){m.formNaviChangeTab(fieldset);return false}
36if(checkAll){fieldsetToCheck++}}if(fieldsetToCheck==1){if(m.formCheckField("#KUNDEN_ANREDE","","","")){fail=true}if(m.formCheckField("#KUNDEN_Titel","","","")){fail=true}if(m.formCheckField("#KUNDEN_NAME2","","","")){fail=true}if(m.formCheckField("#KUNDEN_NAME1","","","")){fail=true}if(m.formCheckField("#KUNDEN_GEBDATUM","","","")){fail=true}if(fail){m.formNaviChangeTab(fieldsetToCheck);return false}if(!checkAll&&!fail){m.formNaviChangeTab(fieldset);return false}if(checkAll){fieldsetToCheck++}}if(fieldsetToCheck==2){if(m.formCheckField("#KUNDEN_Firma","","","")){fail=true}if(m.formCheckField("#KUNDEN_STRASSE1","","","")){fail=true}if(m.formCheckField("#KUNDEN_HNR","","","")){fail=true}if(m.formCheckField("#KUNDEN_STRASSE2","","","")){fail=true}if(m.formCheckField("#KUNDEN_PLZ","","","")){fail=true}if(m.formCheckField("#KUNDEN_ORT","","","")){fail=true}if(m.formCheckField("#KUNDEN_NAT_ID","","","")){fail=true}if(m.formCheckField("#KUNDEN_TEL","","","")){fail=true}if(m.formCheckField("#KUNDEN_FAX","","","")){fail=true}if(m.formCheckField("#KUNDEN_Mobil","","","")){fail=true}if(m.formCheckField("#KUNDEN_Kontonr","","","")){fail=true}if(m.formCheckField("#KUNDEN_BLZ","","","")){fail=true}if(m.formCheckField("#KUNDEN_Kontoinh","","","")){fail=true}if(fail){m.formNaviChangeTab(fieldsetToCheck);return false}if(!checkAll&&!fail){m.formNaviChangeTab(fieldset);return false}if(checkAll){fieldsetToCheck++}}if(fieldsetToCheck==3){if(m.formCheckField("#Kunden_AGB_akzeptiert","","checkbox","")){fail=true}if(m.formCheckField("#Kunden_Datenschutz","","checkbox","")){fail=true}if(m.formCheckField("#Kunden_Pruefcode","","captcha","")){fail=true}if(fail){m.formNaviChangeTab(fieldsetToCheck);return false}if(!checkAll&&!fail){m.formNaviChangeTab(fieldset);return false}if(checkAll){fieldsetToCheck++}}if($("#Kunden_doppelterBenutzernname").val()==1){m.formNaviChangeTab(0);return false}window.DoCheck=function(){return true};$('form[name="SPDBForm"]').submit()};this.formPasswortResetInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.formPasswortResetInit()")}$(".FormButtons").remove();$(".formpaswdreset .buttonnext").on("click",function(e){e.preventDefault();var loadingOverlayIdFormPasswordReset=m.loadingOverlayShow('form[name="SPDBForm"]',"");setTimeout(function(){m.formPasswordResetCheck();m.loadingOverlayHide(loadingOverlayIdFormPasswordReset)},500)})};this.formPasswordResetCheck=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.formPasswordResetCheck()")}$('form[name="SPDBForm"]').find(".failborder").removeClass("failborder");$("#javascriptsupport").val("1");var fail=false;if(m.formCheckField("#PWN_Email","","email","")){fail=true}if(m.formCheckField("#PWN_Vorname","","","")){fail=true}if(m.formCheckField("#PWN_NAchname","","","")){fail=true}if(m.formCheckField("#PWN_Pruefcode","","captcha","")){fail=true}if(fail){return false}window.DoCheck=function(){return true};$('form[name="SPDBForm"]').submit()};this.formLoginInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.formLoginInit()")}$(".formlogin .buttonsubmit").on("click",function(e){e.preventDefault();$(".formlogin").find(".failborder").removeClass("failborder");var fail=false;if(m.formCheckField("#Benutzername","","","")){fail=true}if(m.formCheckField("#Passwort","","","")){fail=true}if(!fail){$('form[name="UserLoginForm"]').submit()}})};this.formMyAcountInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.formMyAcountInit()")}if($('form[name="SPDBForm"]').hasClass("ViewMode")){$(".editmodefields").remove()}if($('form[name="SPDBForm"]').hasClass("EditMode")){$(".FormButtons").remove();$("#KUNDEN_ANREDE option").each(function(){if($(this).val()==""){$(this).remove()}});$("#KUNDEN_UsernameAJAX").parent().addClass("FeldTD").html($("#KUNDEN_UsernameAJAX").html());$(".viewmodefields").remove()}$(".formmyaccount .buttonsubmit").on("click",function(e){e.preventDefault();
36var loadingOverlayIdFormMyAccount=m.loadingOverlayShow('form[name="SPDBForm"]',"");setTimeout(function(){m.formMyAcountcheck();m.loadingOverlayHide(loadingOverlayIdFormMyAccount)},500)})};this.formMyAcountcheck=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.formMyAcountcheck()")}$('form[name="SPDBForm"]').find(".failborder").removeClass("failborder");$("#javascriptsupport").val("1");var fail=false;if(m.formCheckField("#KUNDEN_ANREDE","","","")){fail=true}if(m.formCheckField("#KUNDEN_Titel","","","")){fail=true}if(m.formCheckField("#KUNDEN_NAME2","","","")){fail=true}if(m.formCheckField("#KUNDEN_NAME1","","","")){fail=true}if(m.formCheckField("#KUNDEN_GEBDATUM","","","")){fail=true}if(m.formCheckField("#KUNDEN_Firma","","","")){fail=true}if(m.formCheckField("#KUNDEN_STRASSE1","","","")){fail=true}if(m.formCheckField("#KUNDEN_HNR","","","")){fail=true}if(m.formCheckField("#KUNDEN_STRASSE2","","","")){fail=true}if(m.formCheckField("#KUNDEN_PLZ","","","")){fail=true}if(m.formCheckField("#KUNDEN_ORT","","","")){fail=true}if(m.formCheckField("#KUNDEN_NAT_ID","","","")){fail=true}if(m.formCheckField("#KUNDEN_TEL","","","")){fail=true}if(m.formCheckField("#KUNDEN_FAX","","","")){fail=true}if(m.formCheckField("#KUNDEN_Mobil","","","")){fail=true}if(m.formCheckField("#KUNDEN_EMAIL","","email","")){fail=true}window.DoCheck=function(){return true};if(!fail){$('form[name="SPDBForm"]').submit()}};this.formContactInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.formContactInit()")}$(".FormButtons").remove();$(".formcontact .buttonreset").on("click",function(e){e.preventDefault();$(".formcontact").find(".failborder").removeClass("failborder");$(".formcontact input, .formcontact textarea").each(function(){$(this).val("")}
36)});$(".formcontact .buttonsubmit").on("click",function(e){e.preventDefault();$(".formcontact").find(".failborder").removeClass("failborder");var fail=false;if(m.formCheckField("#KA_Vorname","","","")){fail=true}if(m.formCheckField("#KA_NAchname","","","")){fail=true}if(m.formCheckField("#KA_email","","email","")){fail=true}if(m.formCheckField("#KA_Betreff","","","")){fail=true}if(m.formCheckField("#KA_Text","","","")){fail=true}if(m.formCheckField("#KA_code","","captcha","")){fail=true}if(!fail){$('form[name="SPDBForm"]').submit()}})};this.cleanNodeInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.cleanSiblingsInit()")}m.cleanNode()};this.cleanNode=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.cleanSiblings()")}$(".JS_cleanNode").each(function(){var that=this;var node="text";var separator=" ";if($(that).attr("data-sibling")){node=$(that).attr("data-sibling")}if($(that).attr("data-separator")){separator=$(that).attr("data-separator")}var markup="";if(node!="text"&&$(that).find(node).length>0){$(that).html($(that).find(node).clone())}if(node=="text"){var separatorTemp="";$(that).html("<div>"+$(that).html()+"</div>");$(that).clone().children().each(function(){if($(this).text()!=""){markup+=separatorTemp+$(this).text()}separatorTemp=separator});$(that).html(markup)}})};this.imageChangeInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.imageChangeInit()")}$(".imghover").hover(function(){var src=$(this).attr("src");$(this).attr("src",$(this).attr("data-hover"));$(this).attr("data-hover",src)},function(){var src=$(this).attr("data-hover");$(this).attr("data-hover",$(this).attr("src"));$(this).attr("src",src)})};this.matchHeightInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.matchHeightInit()")}var groups=[];var group;$(".matchheight").each(function(){group=$(this).attr("data-mh-group");$(this).addClass(group);if(groups.indexOf(group)<0){groups.push(group)}});groups.forEach(function(i){$("."+i).matchHeight()})};this.hiddenContentInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.hiddenContentInit()")}m.hiddenContent()};this.hiddenContent=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.hiddenContent()")}$(".hiddencontentclickevent").on("click focus",function(e){var item=$(this).attr("data-hiddencontentitem");var group=$(this).attr("data-hiddencontentgroup");var hideOther=false;var hideSelf=false;var toggle=true;var animation="show";var animationSpeed=400;var animationHide="hide";var animationHideSpeed=400;if($(this).attr("data-hiddencontenthideother")){hideOther=!!JSON.parse(String($(this).attr("data-hiddencontenthideother")).toLowerCase())}if($(this).attr("data-hiddencontenthideself")){hideSelf=!!JSON.parse(String($(this).attr("data-hiddencontenthideself")).toLowerCase())}if($(this).attr("data-hiddencontenttoggle")){toggle=!!JSON.parse(String($(this).attr("data-hiddencontenttoggle")).toLowerCase())}if($(this).attr("data-hiddencontentanimation")){animation=$(this).attr("data-hiddencontentanimation")}if($(this).attr("data-hiddencontentanimationspeed")){animationSpeed=$(this).attr("data-hiddencontentanimationspeed")}if($(this).attr("data-hiddencontentanimationhide")){animationHide=$(this).attr("data-hiddencontentanimationhide")}if($(this).attr("data-hiddencontentanimationhidespeed")){animationHideSpeed=$(this).attr("data-hiddencontentanimationhidespeed")}if(toggle){$(group+"-group").removeClass("active")}if(hideOther){if(animationHide=="hide"){$(group).hide(animationHideSpeed)}if(animationHide=="fadeOut"){$(group).fadeOut(animationHideSpeed)}}if(hideSelf){if(animationHide=="hide"){$(this).hide(animationHideSpeed)}if(animationHide=="fadeOut"){$(this).fadeOut(animationHideSpeed)}}if($(item).is(":visible")){if(toggle){if(animation=="show"){$(item).hide(animationSpeed)}if(animation=="fadeIn"){$(item).fadeOut(animationSpeed)}}}else{$(this).addClass("active");if(animation=="show"){$(item).show(animationSpeed)}if(animation=="fadeIn"){$(item).fadeIn(animationSpeed)}}})};this.dataPageXsltInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.dataPageXsltInit()")}m.dataPageXslt()};this.dataPageXslt=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.dataPageXslt()")}if($(".datapagexslt").length>0){$(".datapagexsltrun").each(function(){var layout="layout1";if($(this).attr("data-layout")){layout=$(this).attr("data-layout")}var insertMethod="append";if($(this).attr("data-insertMethod")){insertMethod=$(this).attr("data-insertMethod")}var deleteData=false;if($(this).attr("data-deletedata")){deleteData=!!JSON.parse(String($(this).attr("data-deletedata")).toLowerCase())}if($(this).attr("data-type")=="asidelinkblock"){if($(".datamainnavigation").length>0){if(layout=="layout1"){var markup='<div class="linkblock articlemainnavigation">';$(".datamainnavigation li.selected").parent().children().each(function(){if($(this).children("a").attr("title")=="linkblockseparator"){markup+='<p class="linkblockseparator"><span></span></p>'}else{var classExtra="";if($(this).hasClass("selected")){classExtra+=" current"}markup+='<p class="'+classExtra+'"><a href="'+$(this).children("a").attr("href")+'" title="'+$(this).children("a").attr("title")+'"><span>'+$(this).children("a").attr("title")+"</span></a></p>"}if($(this).hasClass("selected")&&$(this).has("ul").length>0){var sub1Length=$(this).children("ul").children("li").length;$(this).children("ul").children("li").each(function(i,v){if($(this).children("a").attr("title")=="linkblockseparator"){markup+='<p class="sub1 linkblockseparator"><span></span></p>'}else{var classExtra="";if($(this).hasClass("selected")){classExtra+=" current"}if(i==sub1Length-1){classExtra+=" last"}markup+='<p class="sub1'+classExtra+'"><a href="'+$(this).children("a").attr("href")+'" title="'+$(this).children("a").attr("title")+'"><span>'+$(this).children("a").attr("title")+"</span></a></p>"}})}});markup+="</div>";if($(".articleaside").length<1){$(".articleleft").after('<aside class="articleaside"></aside>')}if($(".articlemainnavigation").length<1){$($(this).attr("data-destination")).append(markup)}}}}else{if($(this).attr("data-type")=="contentlinkblock"){if(layout=="layout1"){var markup='<div class="linkblock"><h1>'+$(".datamainnavigation li.selected a span").html()+'</h1><div class="separator"></div><ul>';$(".datamainnavigation li.selected").find(".sub1 li").each(function(){if($(this).children("a").attr("title")=="linkblockseparator"){markup+='<li class="linkblockseparator"><span></span></li>'}else{markup+='<li><a href="'+$(this).children("a").attr("href")+'" title="'+$(this).children("a").attr("title")+'"><span>'+$(this).children("a").attr("title")+"</span></a></li>"}});markup+='</ul><div class="separator"></div></div>';$($(this).attr("data-destination")).prepend(markup)}}else{if(insertMethod=="append"){$($(this).attr("data-destination")).append($($(this).attr("data-target")).html())}if(insertMethod=="prepend"){$($(this).attr("data-destination")).prepend($($(this).attr("data-target")).html())}if(insertMethod=="insert"){$($(this).attr("data-destination")).html($($(this).attr("data-target")).html())}if(insertMethod=="replace"){$($(this).attr("data-destination")).before($($(this).attr("data-target")).html());$($(this).attr("data-destination")).remove()}}}if(deleteData){$(this).remove()}})}};this.setCookie=function(name,value,location,days){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.setCookie()")}var d=new Date();d.setTime(d.getTime()+(days*24*60*60*1000));document.cookie=name+"="+value+"; expires="+d.toUTCString()+location};this.getCookie=function(name){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.getCookie()")}var cookieName=name+"=";var cArray=document.cookie.split(";");for(var i=0;i<cArray.length;i++){var c=cArray[i];while(c.charAt(0)==" "){c=c.substring(1)}if(c.indexOf(cookieName)==0){return c.substring(cookieName.length,c.length)}}return""};this.destroyCookie=function(name){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.destroyCookie()")}document.cookie=name+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"};this.checkCookie=function(name){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n swPage.checkCookie()")}var cookie=m.getCookie(name);if(cookie!=""){return true}else{return false}}}window.DoCheck="";function NavigateToUrlInTarget(url,target,params){if(typeof url==="undefined"){var url=""}if(typeof target==="undefined"){var target=""}if(typeof params==="undefined"){var params=""}swPage.navigateToUrl(url,target,params)}function onFailed(ex,ctx,methodName){if(methodName!="getContentParts"){}}var ctxDummy=0;function ShowAlert(html,element){}function VALUE(o){if(o){if(o.value){return o.value}}return""}function VALUECB(o){if(o){if(o.checked){return o.value}}return""}function SynwayInitJQueryUI(){}function noenter(){}
36function checkfirst(objName){str=objName.value.toLowerCase().replace(/\b[a-z]/g,function(letter){return letter.toUpperCase()});objName.value=str}function DoNoCheck(){}function OnFilterSubmit(){try{document.SPDBForm.suchen.focus()}catch(e){}}function NavigateToUrl(url,target,params){if(typeof url==="undefined"){var url=""}if(typeof target==="undefined"){var target=""}if(typeof params==="undefined"){var params=""}swPage.navigateToUrl(url,target,params)}function CheckInt(o,feldname,ReiterZahl){}var nsfocused;function AjaxRefresh(Ziele){swPage.update(Ziele)}function AjaxRefresh_callback(html,Ziele,methodName){swPage.updateCallback(html,Ziele,methodName)}function AjaxContentParts_callback(html,InstanzID,methodName){swPage.getContentPartsCallback(html,InstanzID,methodName)}function AjaxNS(sub,id,ns,value,Ziele){swPage.lookup(sub,id,ns,value,Ziele)}function AjaxNS_callback(html,ctx,methodName){swPage.lookupCallback(html,ctx,methodName)}function AjaxRefreshContent(sub,id){swPage.updateContent(sub,id)}function AjaxRefreshContent_callback(html,sub,methodName){swPage.updateContentCallback(html,sub,methodName)}function AjaxRefreshContentParts(sub,id){swPage.updateContentParts(sub,id)}function AjaxRefreshContentParts_callback(html,sub,methodName){swPage.updateContentPartsCallback(html,sub,methodName)}function RadioClickR(id,value){swPage.eventRadioClick(id,value)}function getUrlParameter(sParam){return swPage.getUrlParameter(sParam)}; 37/*spticket/design/rad-net-portal/script.js*/var page=new pageJs();$(document).ready(function(){page.init({})});function pageJs(){var m=this;this.v={stage:{stages:[]},args:{}};var v=m.v;this.init=function(args){if(document.location.hostname.indexOf("www99.")==0){v.stage.stages=["dev","trace"]}if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.init()")}v.args=args;if(m.checkDependencies()){return false}m.setPresets();m.synwayModification();m.winResize();m.winScroll();m.bindEvents();m.mainMenu();m.contentMenu();m.basicTable();m.newsBrowserHacks();m.proxyData();m.addShariff()};this.checkDependencies=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.checkDependencies()")}var error=false;var msg="";if(error){console.log(msg)}return error};this.setPresets=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.setPresets()")}$.extend(true,v,v.args)};this.afterUpdates=function(conditions){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.afterUpdates(conditions)")}if(Object.keys(conditions).length===0&&conditions.constructor===Object){conditions={all:true}}if(conditions.all||"basictable" in conditions){m.basicTable()}};this.synwayModification=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.synwayModification()")}};this.winResize=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.winResize()")}};this.winScroll=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.winScroll()")}};this.bindEvents=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.bindEvents()")}};this.mainMenu=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.mainMenu()")}$(".mainmenu .navbar-burger").click(function(){$(".mainmenu .navbar-burger").toggleClass("is-active");$(".mainmenu .navbar-menu").toggleClass("is-active")});var headerwrapHeight=$(".headerwrap").outerHeight(true);var breakpointToFix=1024;var delayed;$(window).resize(function(){clearTimeout(delayed);delayed=setTimeout(function(){if($(document).width()>breakpointToFix){m.mainMenuUnfixed()}},50)});$(window).scroll(function(){if($(document).width()<=breakpointToFix){if($(window).scrollTop()>headerwrapHeight){m.mainMenuFixed()}else{m.mainMenuUnfixed()}}})};this.mainMenuFixed=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.mainMenuFixed()")}$("body").addClass("has-navbar-fixed-top");$(".mainmenu .navbar").addClass("is-fixed-top")};this.mainMenuUnfixed=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.mainMenuUnfixed()")}$("body").removeClass("has-navbar-fixed-top");$(".mainmenu .navbar").removeClass("is-fixed-top")};this.contentMenu=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.contentMenu()")}$(".contentmenu .expander").click(function(){$(".contentmenu").removeClass("rollin").addClass("rollout")})};this.basicTable=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.basicTable()")}$("table.basictable").each(function(){var options={};if($(this)[0].hasAttribute("data-options")){options=JSON.parse($(this).attr("data-options").replace(/'/g,'"'))}else{}$(this).basictable(options)})};this.newsBrowserHacks=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.newsBrowserHacks()")}if(window.navigator.userAgent.indexOf("MSIE ")>0||window.navigator.userAgent.indexOf("Trident/")>0){$("img.newsimg:not(.newsimg-bghack)").each(function(){this.className=this.className+" newsimg-bghack";this.style.backgroundImage="url('"+this.src+"')";this.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})}};this.hiddenContentInit=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.hiddenContentInit()")}m.hiddenContent()};this.hiddenContent=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.hiddenContent()")}$(".hiddencontentclickevent").on("click focus",function(e){var item=$(this).attr("data-hiddencontentitem");var group=$(this).attr("data-hiddencontentgroup");var hideOther=false;var hideSelf=false;var toggle=true;var animation="show";var animationSpeed=400;var animationHide="hide";var animationHideSpeed=400;if($(this).attr("data-hiddencontenthideother")){hideOther=!!JSON.parse(String($(this).attr("data-hiddencontenthideother")).toLowerCase())}if($(this).attr("data-hiddencontenthideself")){hideSelf=!!JSON.parse(String($(this).attr("data-hiddencontenthideself")).toLowerCase())}if($(this).attr("data-hiddencontenttoggle")){toggle=!!JSON.parse(String($(this).attr("data-hiddencontenttoggle")).toLowerCase())}if($(this).attr("data-hiddencontentanimation")){animation=$(this).attr("data-hiddencontentanimation")}if($(this).attr("data-hiddencontentanimationspeed")){animationSpeed=$(this).attr("data-hiddencontentanimationspeed")}if($(this).attr("data-hiddencontentanimationhide")){animationHide=$(this).attr("data-hiddencontentanimationhide")}if($(this).attr("data-hiddencontentanimationhidespeed")){animationHideSpeed=$(this).attr("data-hiddencontentanimationhidespeed")}if(toggle){$(group+"-group").removeClass("active")}if(hideOther){if(animationHide=="hide"){$(group).hide(animationHideSpeed)}if(animationHide=="fadeOut"){$(group).fadeOut(animationHideSpeed)}}if(hideSelf){if(animationHide=="hide"){$(this).hide(animationHideSpeed)}if(animationHide=="fadeOut"){$(this).fadeOut(animationHideSpeed)}}if($(item).is(":visible")){if(toggle){if(animation=="show"){$(item).hide(animationSpeed)}if(animation=="fadeIn"){$(item).fadeOut(animationSpeed)}}}else{$(this).addClass("active");if(animation=="show"){$(item).show(animationSpeed)}if(animation=="fadeIn"){$(item).fadeIn(animationSpeed)}}})};this.proxyData=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.proxyData()")}var proxyElemens=$(".SWNAV_radnet .MainContent > table, .rnrpcnt");if(proxyElemens.length>0){proxyElemens.find("table").addClass("table");proxyElemens.find(".detailred").parent().remove()}if((document.documentElement.scrollWidth-document.documentElement.clientWidth)<20){$("html").css("overflow-x","hidden")}};this.addShariff=function(){if(v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n page.addShariff()")}$(".shariff.shariff-news").each(function(){this.shariff=new Shariff(this,{title:"rad-net.de â "+$("#CI_TitleAJAX").text().trim()})})}}function setPointer(){}function InitGallery(Fieldname,NoZoom){if(page.v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n InitGallery(Fieldname, NoZoom)")}}function InitGalleryAjax(JQueryArray){if(page.v.stage.stages.indexOf("trace")>-1){console.log("----------------------------------------------------\n InitGalleryAjax(JQueryArray)")}}; 38/*js/synway.4.27.js*/var WelchesFeld;var NameVomFeld;function positionInfo(object){var p_elm=object;this.getElementLeft=getElementLeft;function getElementLeft(){var x=0;var elm;if(typeof(p_elm)=="object"){elm=p_elm}else{elm=document.getElementById(p_elm)}while(elm!=null){x+=elm.offsetLeft;elm=elm.offsetParent}return parseInt(x)}this.getElementWidth=getElementWidth;function getElementWidth(){var elm;if(typeof(p_elm)=="object"){elm=p_elm}else{elm=document.getElementById(p_elm)}return parseInt(elm.offsetWidth)}this.getElementRight=getElementRight;function getElementRight(){return getElementLeft(p_elm)+getElementWidth(p_elm)}this.getElementTop=getElementTop;function getElementTop(){var y=0;var elm;if(typeof(p_elm)=="object"){elm=p_elm}else{elm=document.getElementById(p_elm)}while(elm!=null){if(elm.id){if(elm.id!="syncon"){y+=elm.offsetTop}}else{y+=elm.offsetTop}elm=elm.offsetParent}return parseInt(y)}this.getElementHeight=getElementHeight;function getElementHeight(){var elm;if(typeof(p_elm)=="object"){elm=p_elm}else{elm=document.getElementById(p_elm)}return parseInt(elm.offsetHeight)}this.getElementBottom=getElementBottom;function getElementBottom(){return getElementTop(p_elm)+getElementHeight(p_elm)}}function CalendarControl(){var calendarId="CalendarControl";var currentYear=0;var currentMonth=0;var currentDay=0;var selectedYear=0;var selectedMonth=0;var selectedDay=0;var months=["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"];var dateField=null;function getProperty(p_property){var p_elm=calendarId;var elm=null;if(typeof(p_elm)=="object"){elm=p_elm}else{elm=document.getElementById(p_elm)}if(elm!=null){if(elm.style){elm=elm.style;if(elm[p_property]){return elm[p_property]}else{return null}}else{return null}}}function setElementProperty(p_property,p_value,p_elmId){var p_elm=p_elmId;var elm=null;if(typeof(p_elm)=="object"){elm=p_elm}else{elm=document.getElementById(p_elm)}if((elm!=null)&&(elm.style!=null)){elm=elm.style;elm[p_property]=p_value}}function setProperty(p_property,p_value){setElementProperty(p_property,p_value,calendarId)}function getDaysInMonth(year,month){return[31,((!(year%4)&&((year%100)||!(year%400)))?29:28),31,30,31,30,31,31,30,31,30,31][month-1]}function getDayOfWeek(year,month,day){var date=new Date(year,month-1,day-1);return date.getDay()}this.setDate=setDate;function setDate(year,month,day){if(dateField){if(month<10){month="0"+month}if(day<10){day="0"+day}if(WelchesFeld=="zeit"){var dateString=day+"."+month+"."+year+" 00:00:00"}if(WelchesFeld=="datum"){var dateString=day+"."+month+"."+year}WelchesFeld="";try{eval('document.getElementById("'+dateFieldText+'").value = dateString');eval("onChangeOf"+dateFieldText+"()")}catch(e){}hide()}return}this.changeMonth=changeMonth;function changeMonth(change){if(currentMonth=="01"){currentMonth=1}if(currentMonth=="02"){currentMonth=2}if(currentMonth=="03"){currentMonth=3}if(currentMonth=="04"){currentMonth=4}if(currentMonth=="05"){currentMonth=5}if(currentMonth=="06"){currentMonth=6}if(currentMonth=="07"){currentMonth=7}if(currentMonth=="08"){currentMonth=8}if(currentMonth=="09"){currentMonth=9}if(currentMonth==10){currentMonth=10}if(currentMonth==11){currentMonth=11}if(currentMonth==12){currentMonth=12}currentMonth=currentMonth*1+1*change;currentDay=0;if(currentMonth>12){currentMonth=1;currentYear++}else{if(currentMonth<1){currentMonth=12;currentYear--}}
38calendar=document.getElementById(calendarId);calendar.innerHTML=calendarDrawTable()}this.changeYear=changeYear;function changeYear(change){currentYear=currentYear*1+1*change;currentDay=0;calendar=document.getElementById(calendarId);calendar.innerHTML=calendarDrawTable()}function getCurrentYear(){var year=new Date().getYear();if(year<1900){year+=1900}var str=document.getElementById(NameVomFeld).value;str=str.substring(6,10);if(str!=year&&str!=""){year=str}else{if(year<1900){year+=1900}}return year}function getCurrentMonth(){if(document.getElementById(NameVomFeld).value!=""){var str=document.getElementById(NameVomFeld).value;str=str.substring(3,5)}else{str=new Date().getMonth()+1}return str}function getCurrentDay(){if(document.getElementById(NameVomFeld).value!=""){var str=document.getElementById(NameVomFeld).value;str=str.substring(0,2)}else{str=new Date().getDate()}return str}function calendarDrawTable(){var dayOfMonth=1;var validDay=0;var startDayOfWeek=getDayOfWeek(currentYear,currentMonth,dayOfMonth);var daysInMonth=getDaysInMonth(currentYear,currentMonth);var css_class=null;var table="<table style='padding:0px;border-collapse:collapse;border:none;'>";NameVomFeld="";table=table+"<tr class='header'>";table=table+" <td colspan='2' class='previous' style='padding: 3px;font-size:10pt;'><a href='javascript:changeCalendarControlMonth(-1);' title='Monat - 1'><<</a><br /><a href='javascript:changeCalendarControlYear(-1);' title='Jahr - 1'>««</a></td>";table=table+" <td colspan='3' class='title'>"+months[currentMonth-1]+"<br />"+currentYear+"</td>";table=table+" <td colspan='2' class='next' style='padding: 3px;font-size:10pt;'><a href='javascript:changeCalendarControlMonth(1);' title='Monat + 1'>>></a><br /><a href='javascript:changeCalendarControlYear(1);' title='Jahr + 1'>»»</a></td>";table=table+"</tr>";table=table+"<tr><th>M</th><th>D</th><th>M</th><th>D</th><th>F</th><th>S</th><th>S</th></tr>";for(var week=0;week<6;week++){table=table+"<tr>";for(var dayOfWeek=0;dayOfWeek<7;dayOfWeek++){if(week==0&&startDayOfWeek==dayOfWeek){validDay=1}else{if(validDay==1&&dayOfMonth>daysInMonth){validDay=0}}if(validDay){if(dayOfMonth==selectedDay&¤tYear==selectedYear&¤tMonth==selectedMonth){css_class="current"}else{if(dayOfWeek==5||dayOfWeek==6){css_class="weekend"}else{css_class="weekday"}}table=table+"<td><a class='"+css_class+"' href=\"javascript:setCalendarControlDate("+currentYear+","+currentMonth+","+dayOfMonth+')">'+dayOfMonth+"</a></td>";dayOfMonth++}else{table=table+"<td class='empty'> </td>"}}table=table+"</tr>"}table=table+"<tr class='header'><th colspan='7' style='padding: 3px;'><a href='javascript:hideCalendarControl();'>Schließen</a></td></tr>";table=table+"</table>";return table}this.show=show;function show(field){if(dateField==field){return}else{dateField=field}if(dateField){try{var dateString=new String(dateField.value);var dateParts=dateString.split("-");selectedMonth=parseInt(dateParts[0],10);selectedDay=parseInt(dateParts[1],10);selectedYear=parseInt(dateParts[2],10)}catch(e){}}if(!(selectedYear&&selectedMonth&&selectedDay)){selectedMonth=getCurrentMonth();selectedDay=getCurrentDay();selectedYear=getCurrentYear()}currentMonth=selectedMonth;currentDay=selectedDay;currentYear=selectedYear;if(document.getElementById){calendar=document.getElementById(calendarId);calendar.innerHTML=calendarDrawTable(currentYear,currentMonth);setElementProperty("display","block","CalendarControlIFrame");setProperty("display","block");var fieldPos=new positionInfo(dateField);var calendarPos=new positionInfo(calendarId);var x=fieldPos.getElementLeft();var y=fieldPos.getElementBottom();setProperty("left",parseInt(x)+"px");setProperty("top",parseInt(y)+"px");setElementProperty("left",parseInt(x)+"px","CalendarControlIFrame");setElementProperty("top",parseInt(y)+"px","CalendarControlIFrame");setElementProperty("width",calendarPos.getElementWidth()+"px","CalendarControlIFrame");setElementProperty("height",calendarPos.getElementHeight()+"px","CalendarControlIFrame")}}this.hide=hide;
38function hide(){if(dateField){setProperty("display","none");setElementProperty("display","none","CalendarControlIFrame");dateField=null;NameVomFeld=""}}}var calendarControl=new CalendarControl();function showCalendarControl(textField,field,WelchesFeldKommt){NameVomFeld="";dateFieldText=field;WelchesFeld=WelchesFeldKommt;NameVomFeld=document.getElementById(field).name;calendarControl.show(textField)}function hideCalendarControl(){WelchesFeld="";calendarControl.hide()}function setCalendarControlDate(year,month,day){calendarControl.setDate(year,month,day)}function changeCalendarControlYear(change){calendarControl.changeYear(change)}function changeCalendarControlMonth(change){calendarControl.changeMonth(change)}function changeImages(){if(document.images&&(preloadFlag==true)){for(var i=0;i<changeImages.arguments.length;i+=2){document[changeImages.arguments[i]].src=changeImages.arguments[i+1]}}}var preloadFlag=false;var canPreloadFlag=false;var AktiverVordergrund;var AktiverHintergrund;var AktivesFeld;var AktivePfeile;var hilfe;function BtnDown(){window.event.srcElement.style.borderStyle="inset"}function BtnUp(){window.event.srcElement.style.borderStyle="outset"}function Toggle(){var s;text=window.event.srcElement.innerText;if(text=="B"){document.execCommand("Bold")}else{if(text=="I"){document.execCommand("Italic")}else{if(text=="U"){document.execCommand("Underline")}else{if(text=="1.2."){document.execCommand("InsertOrderedList")}else{if(text=="1"){document.execCommand("FontSize",false,"1")}else{if(text=="2"){document.execCommand("FontSize",false,"2")}else{if(text=="3"){document.execCommand("FontSize",false,"3")}else{if(text=="4"){document.execCommand("FontSize",false,"4")}else{if(text=="5"){document.execCommand("FontSize",false,"5")}else{if(text=="6"){document.execCommand("FontSize",false,"6")}else{if(text=="7"){document.execCommand("FontSize",false,"7")}else{if(text=="R"){document.execCommand("JustifyRight")}else{if(text=="C"){document.execCommand("JustifyCenter")}else{if(text=="L"){document.execCommand("JustifyLeft")}else{if(text==">"){document.execCommand("Indent")}else{if(text=="<"){document.execCommand("Outdent")}else{if(text=="Arial"){document.execCommand("FontName",false,"Arial")}else{if(text=="Times"){document.execCommand("FontName",false,"Times")}else{if(text=="Courier"){document.execCommand("FontName",false,"Courier")}else{if(text=="N"){document.execCommand("RemoveFormat")}else{if(text=="..."){document.execCommand("InsertUnorderedList")}else{if(text=="IMG"){if(!document.activeElement){ShowAlert("Bitte setzen Sie den Cursor zunächst an die Stelle, an der das Bild eingefügt werden soll!")}else{if(document.activeElement.contentEditable=="true"){document.execCommand("InsertImage",true,"/synway/");s=document.activeElement.innerHTML;document.activeElement.innerHTML=s.replace("file://","")}else{ShowAlert("Bitte setzen Sie den Cursor zunächst an die Stelle, an der das Bild eingefügt werden soll!")}}}else{if(text=="Link"){document.execCommand("CreateLink",true)}}}}}}}}}}}}}}}}}}}}}}}window.event.srcElement.style.borderStyle="outset"}function checkdate(objName){var datefield=objName;if(chkdate(objName)==false){ShowAlert("Hier bitte ein Datum in einem korrekten Format eingeben!",datefield);return false}else{return true}}function checktime(objName){var timefield=objName;if(chktime(objName)==false){ShowAlert("Hier bitte eine Zeit in einem korrekten Format eingeben!",timefield);return false}else{return true}}function chktime(objName){var strTime,strTimeArray;var strHour,strMinute,strSecond;var intHour,intMinute,intSecond;var booFound=false;var timefield=objName;var intElementNr;var err=0;strTime=timefield.value;if(strTime!=""){booFound=false;if(strTime.indexOf(":")!=-1){strTimeArray=strTime.split(":");if((strTimeArray.length)<2||(strTimeArray.length>3)){err=11;return false}else{strHour=strTimeArray[0];strMinute=strTimeArray[1];if(strTimeArray.length==3){strSecond=strTimeArray[2]}else{strSecond="00"}}booFound=true}if(booFound==false){if(strTime.length>3){strHour=strTime.substr(0,2);strMinute=strTime.substr(2,2);if(strTime.length>5){strSecond=strTime.substr(4,2)}else{strSecond="00"}}}intHour=parseInt(strHour,10);if(isNaN(intHour)){err=12;return false}intMinute=parseInt(strMinute,10);if(isNaN(intMinute)){if(isNaN(intMinute)){err=13;return false}}intSecond=parseInt(strSecond,10);if(isNaN(intSecond)){err=14;return false}if(intHour<0||intHour>23){err=15;return false}if(intMinute>59||intMinute<0){err=16;return false}if(intSecond>59||intSecond<0){err=17;return false}strMinute=""+intMinute;if(strMinute.length==1){strMinute="0"+strMinute}strHour=""+intHour;if(strHour.length==1){strHour="0"+strHour}strSecond=""+intSecond;if(strSecond.length==1){strSecond="0"+strSecond}if(strSecond=="00"){timefield.value=strHour+":"+strMinute}else{timefield.value=strHour+":"+strMinute+":"+strSecond}}return true}
38function checkfirst(objName){var textfield=objName;var inhalt,Anfang;inhalt=textfield.value;Anfang=inhalt.substr(0,1);Anfang=Anfang.toUpperCase();inhalt=inhalt.substr(1,inhalt.length-1);inhalt=Anfang.concat(inhalt);if(textfield.value!=inhalt){textfield.value=inhalt}return true}function chkdate(objName){var strDate,strTime,strDateArray,strTimeArray;var strDay,strMonth,strYear,strHour,strMinute,strSecond;var intday,intMonth,intYear,intHour,intMinute,intSecond;var booFound=false;var datefield=objName;var strSeparatorArray=new Array("."," ","/","-",",");var intElementNr;var err=0;var strMonthArray=new Array(12);var aktuellesDatum=new Date();var aktuellesJahr=aktuellesDatum.getFullYear();strMonthArray[0]="Jan";strMonthArray[1]="Feb";strMonthArray[2]="Mar";strMonthArray[3]="Apr";strMonthArray[4]="Mai";strMonthArray[5]="Jun";strMonthArray[6]="Jul";strMonthArray[7]="Aug";strMonthArray[8]="Sep";strMonthArray[9]="Okt";strMonthArray[10]="Nov";strMonthArray[11]="Dez";strDate=datefield.value;strTime="";if(strDate.indexOf(" ")!=-1){var i;i=strDate.indexOf(" ");strTime=strDate.substr(i+1,strDate.length-i-1);strDate=strDate.substr(0,i)}if(strDate.length<1){return true}for(intElementNr=0;intElementNr<strSeparatorArray.length;intElementNr++){if(strDate.indexOf(strSeparatorArray[intElementNr])!=-1){strDateArray=strDate.split(strSeparatorArray[intElementNr]);if(strDateArray.length!=3){err=1;return false}else{strDay=strDateArray[0];strMonth=strDateArray[1];strYear=strDateArray[2]}booFound=true}}if(booFound==false){if(strDate.length>5){strDay=strDate.substr(0,2);strMonth=strDate.substr(2,2);strYear=strDate.substr(4)}}intday=parseInt(strDay,10);if(isNaN(intday)){err=2;return false}intMonth=parseInt(strMonth,10);if(isNaN(intMonth)){for(i=0;i<12;i++){if(strMonth.toUpperCase()==strMonthArray[i].toUpperCase()){intMonth=i+1;strMonth=strMonthArray[i];i=12}}if(isNaN(intMonth)){err=3;return false}}intYear=parseInt(strYear,10);if(isNaN(intYear)){err=4;return false}if(intYear<aktuellesJahr-1995){intYear=intYear+2000}else{if(intYear<100){intYear=intYear+1900}}if(intYear<1800||intYear>2199){err=11;return false}if(intMonth>12||intMonth<1){err=5;return false}if((intMonth==1||intMonth==3||intMonth==5||intMonth==7||intMonth==8||intMonth==10||intMonth==12)&&(intday>31||intday<1)){err=6;return false}if((intMonth==4||intMonth==6||intMonth==9||intMonth==11)&&(intday>30||intday<1)){err=7;return false}if(intMonth==2){if(intday<1){err=8;return false}if(LeapYear(intYear)==true){if(intday>29){err=9;return false}}else{if(intday>28){err=10;return false}}}if(strTime!=""){booFound=false;if(strTime.indexOf(":")!=-1){strTimeArray=strTime.split(":");if((strTimeArray.length)<2||(strTimeArray.length>3)){err=11;return false}else{strHour=strTimeArray[0];strMinute=strTimeArray[1];if(strTimeArray.length==3){strSecond=strTimeArray[2]}else{strSecond="00"}}booFound=true}if(booFound==false){if(strTime.length>3){strHour=strTime.substr(0,2);strMinute=strTime.substr(2,2);if(strTime.length>5){strSecond=strTime.substr(4,2)}else{strSecond="00"}}}intHour=parseInt(strHour,10);if(isNaN(intHour)){err=12;return false}intMinute=parseInt(strMinute,10);if(isNaN(intMinute)){if(isNaN(intMinute)){err=13;return false}}intSecond=parseInt(strSecond,10);if(isNaN(intSecond)){err=14;return false}if(intHour<0||intHour>23){err=15;return false}if(intMinute>59||intMinute<0){err=16;return false}if(intSecond>59||intSecond<0){err=17;return false}strDay=""+intday;if(strDay.length==1){strDay="0"+strDay}strMonth=""+intMonth;if(strMonth.length==1){strMonth="0"+strMonth}strMinute=""+intMinute;if(strMinute.length==1){strMinute="0"+strMinute}strHour=""+intHour;if(strHour.length==1){strHour="0"+strHour}strSecond=""+intSecond;if(strSecond.length==1){strSecond="0"+strSecond}datefield.value=strDay+"."+strMonth+"."+intYear+" "+strHour+":"+strMinute+":"+strSecond}else{strDay=""+intday;if(strDay.length==1){strDay="0"+strDay}strHour=""+intHour;if(strMonth.length==1){strMonth="0"+strMonth}datefield.value=strDay+"."+strMonth+"."+intYear}return true}function LeapYear(intYear){if(intYear%100==0){if(intYear%400==0){return true}}else{if((intYear%4)==0){return true}}return false}function doDateCheck(from,to){if(Date.parse(from.value)<=Date.parse(to.value)){}else{if(from.value==""||to.value==""){ShowAlert("Beide Datumsangaben müssen angegeben werden!")}else{ShowAlert("Das BIS-Datum muà nach dem VON-Datum liegen!")}}}function setupDescriptions(){if(canPreloadFlag){eval("preloadImages()")}
38try{eval("SetupLayout();")}catch(e){}}var x,y,a,b,nx,ny,oPopup;function hideLayer(a){document.getElementById("PopupLayer").style.display="none"}function popLayer(Text){var breite;breite=200;if(Text.length>300){breite=400}if(x+breite>document.body.clientWidth-MyXOffset()){nx=-breite-10}else{nx=10}if(y+200>document.body.clientHeight+MyYOffset()){ny=-200+document.body.clientHeight-y+MyYOffset()}else{ny=10}document.getElementById("PopupLayer").innerHTML=Text;document.getElementById("PopupLayer").style.left=parseInt(x+nx)+"px";document.getElementById("PopupLayer").style.width=parseInt(breite)+"px";document.getElementById("PopupLayer").style.display="block";document.getElementById("PopupLayer").style.top=parseInt(y+ny)+"px"}function HideNav(){if(divLinkespalte.style.display=="none"){divLinkespalte.style.display="inline";divPlatzhalter.style.display="none"}else{divLinkespalte.style.display="none";divPlatzhalter.style.display="inline"}}function DoNoCheck(){document.SPDBForm.onsubmit=DoNoCheck;return true}function newImage(arg){if(document.images){rslt=new Image();rslt.src=arg;return rslt}}function CheckProzent(o,feldname,ReiterZahl){if(o.value!=""){if(isNaN(o.value)){ShowAlert("Bitte geben Sie bei "+feldname+" eine gültige Prozentzahl ein!");if(ReiterZahl>0){ReiterSelect(ReiterZahl)}o.focus();return false}if((Number(o.value)>100)||Number(o.value)<0){ShowAlert("Bitte geben Sie bei "+feldname+" eine gültige Prozentzahl zwischen 0 und 100 ein!");if(ReiterZahl>0){ReiterSelect(ReiterZahl)}o.focus();return false}}return true}function CheckProzentOpen(o,feldname,ReiterZahl){if(o.value!=""){if(isNaN(o.value.replace(",","."))){ShowAlert("Bitte geben Sie bei "+feldname+" eine gültige Prozentzahl ein!");if(ReiterZahl>0){ReiterSelect(ReiterZahl)}o.focus();return false}}return true}function CheckPromille(o,feldname,ReiterZahl){if(o.value!=""){if(isNaN(o.value)){ShowAlert("Bitte geben Sie bei "+feldname+" eine gültige Promillezahl ein!");if(ReiterZahl>0){ReiterSelect(ReiterZahl)}o.focus();return false}if((Number(o.value)>1000)||Number(o.value)<0){ShowAlert("Bitte geben Sie bei "+feldname+" eine gültige Promillezahl zwischen 0 und 1000 ein!");if(ReiterZahl>0){ReiterSelect(ReiterZahl)}o.focus();return false}}return true}function CheckPromilleOpen(o,feldname,ReiterZahl){if(o.value!=""){if(isNaN(o.value)){ShowAlert("Bitte geben Sie bei "+feldname+" eine gültige Promillezahl ein!");if(ReiterZahl>0){ReiterSelect(ReiterZahl)}o.focus();return false}}return true}function CheckZahlMitNullen(o,feldname,ReiterZahl,laenge){if(o.value!=""){var s=o.value;s=s.replace(" ","");s=s.replace("+","");s=s.replace("-","");s=s.replace("E","");s=s.replace("e","");s=s.replace("g","");s=s.replace("G","");o.value=s;if(isNaN(o.value)){ShowAlert("Bitte geben Sie bei "+feldname+" eine korrekte Zahl mit maximal "+laenge+" Ziffern ein!");if(ReiterZahl>0){ReiterSelect(ReiterZahl)}o.focus();return false}
38while(String(o.value).length<laenge){o.value="0"+o.value}}return true}function CheckInt(o,feldname,ReiterZahl){if(o.value!=""){var ss;ss=String(o.value);ss=ss.replace(".",",");if(isNaN(ss)){ShowAlert("Bitte geben Sie bei "+feldname+" eine gültige ganze Zahl ein!");if(ReiterZahl>0){ReiterSelect(ReiterZahl)}o.focus();return false}}return true}function CheckNum(o,feldname,ReiterZahl){if(o){if(o.value!=""){if(o.tagName=="INPUT"){var ss;ss=String(o.value);ss=ss.replace(".","");ss=ss.replace(".","");ss=ss.replace(".","");ss=ss.replace(".","");ss=ss.replace("'","");ss=ss.replace("'","");ss=ss.replace("'","");ss=ss.replace("'","");ss=ss.replace(",",".");if(isNaN(ss)){ShowAlert("Bitte geben Sie bei "+feldname+" eine gültige Zahl ein!");if(ReiterZahl>0){ReiterSelect(ReiterZahl)}o.focus();return false}}}}return true}function ReturnFalse(){return false}function ReturnTrue(){return true}function WeiterClicked(){if(document.SPDBForm.DoRefresh.value==""){if(DoCheck){if(DoCheck()){document.SPDBForm.DoRefresh.value="1";document.SPDBForm.NaechsterSchritt.value=parseInt(document.SPDBForm.LetzterSchritt.value)+1;Refreshvorbereitung();document.SPDBForm.synwayscrollx.value=0;document.SPDBForm.synwayscrolly.value=0;document.SPDBForm.submit()}else{document.SPDBForm.onsubmit=ReturnFalse;setTimeout("document.SPDBForm.onsubmit=DoCheck;",99);return false}}else{document.SPDBForm.DoRefresh.value="1";document.SPDBForm.NaechsterSchritt.value=parseInt(document.SPDBForm.LetzterSchritt.value)+1;Refreshvorbereitung();document.SPDBForm.synwayscrollx.value=0;document.SPDBForm.synwayscrolly.value=0;document.SPDBForm.submit()}}}function ZurueckClicked(){if(document.SPDBForm.DoRefresh.value==""){document.SPDBForm.DoRefresh.value="1";document.SPDBForm.NaechsterSchritt.value=parseInt(document.SPDBForm.LetzterSchritt.value)-1;Refreshvorbereitung();document.SPDBForm.synwayscrollx.value=0;document.SPDBForm.synwayscrolly.value=0;document.SPDBForm.onsubmit=ReturnTrue;document.SPDBForm.submit()}}function PrintAuftrag(){try{if(document.frmAuswertung.Auswertung.value==""){ShowAlert("Bitte suchen Sie zuvor aus, was zu erzeugen ist!");document.frmAuswertung.Auswertung.focus();return false}}catch(e){}}function handlerMM(e){try{if(document.body){e=e||window.event;x=e.clientX+MyXOffset();y=e.clientY+MyYOffset()}}catch(e){}}function DelAllCheck(u){if(confirm("Dies löscht alle auf dieser Seite der Liste zu sehenden Datensaetze!\n\nWollen Sie das wirklich?")){NavigateToUrl(u)}}document.onmousemove=handlerMM;AktivePfeile=0;function ZeileLoeschenJN(){return confirm("Wollen Sie die Zeile und die darauf befindlichen Diagrammelemente wirklich löschen?")}function SpalteLoeschenJN(){return confirm("Wollen Sie die Spalte und die darauf befindlichen Diagrammelemente wirklich löschen?")}function VordergrundClick(bild){if(AktiverVordergrund){AktiverVordergrund.style.borderColor="#999999"}bild.style.borderColor="darkred";AktiverVordergrund=bild;myForm.Vordergrund.value=bild.name}function HintergrundClick(bild){if(AktiverHintergrund){AktiverHintergrund.style.borderColor="#999999"}bild.style.borderColor="darkred";AktiverHintergrund=bild;myForm.Hintergrund.value=bild.name}function PfeilClick(pfeil){PfeilDarstellung(AktivePfeile^pfeil)}function PfeilDarstellung(pfeil){if(((pfeil&1)==0)){myForm.Pfeil_1.style.borderColor="#999999"}if(((pfeil&2)==0)){myForm.Pfeil_2.style.borderColor="#999999"}if(((pfeil&4)==0)){myForm.Pfeil_4.style.borderColor="#999999"}if(((pfeil&8)==0)){myForm.Pfeil_8.style.borderColor="#999999"}if((pfeil&1)>0){myForm.Pfeil_1.style.borderColor="darkred"}if((pfeil&2)>0){myForm.Pfeil_2.style.borderColor="darkred"}if((pfeil&4)>0){myForm.Pfeil_4.style.borderColor="darkred"}if((pfeil&8)>0){myForm.Pfeil_8.style.borderColor="darkred"}AktivePfeile=pfeil;myForm.Pfeil.value=pfeil}function editExpSel(dictname,nr,id){var d,alt,hidden;hidden=document.getElementById(dictname+"_NR");d=document.getElementById(dictname+"bag"+nr);alt=document.getElementById(dictname+"bag"+hidden.value);if(d){d.style.backgroundColor="#dddddd";d.style.fontWeight="bold";if(alt){alt.style.backgroundColor="";alt.style.fontWeight="normal"}hidden.value=nr;hidden=document.getElementById(dictname);hidden.value=id;try{eval("onChangeOf"+dictname+"()")}catch(e){nr=nr}}}function RadioClick(dictname,v){var cbs,i,pe;cbs=document.getElementsByName(dictname);i=0;if(cbs){while(cbs[i]){if(cbs[i].value==v){pe=cbs[i].parentElement.parentElement.parentElement;break}i++}if(pe){if(pe.id==""){pe=pe.parentElement;if(pe){if(pe.id!=""){i=0;while(cbs[i]){if(pe==cbs[i].parentElement.parentElement.parentElement.parentElement){cbs[i].checked=(cbs[i].value==v)?cbs[i].checked:false}i++}}}}else{if(pe.id!=""){i=0;while(cbs[i]){if(pe==cbs[i].parentElement.parentElement.parentElement){cbs[i].checked=(cbs[i].value==v)?cbs[i].checked:false}i++}}}}}try{eval("onChangeOf"+dictname+"()")}catch(e){i=i}}function baumClick(dictname,z,spalten){var d,i,s,p;d=document.getElementById(dictname+"BD"+z);i=document.getElementById(dictname+"BDI"+z);s=i.src;p=s.lastIndexOf("/");s=s.substr(p+1,6);if(s=="me.gif"){d.style.display="none";i.src="images/baum/pe.gif";for(i=1;
38i<=spalten;i++){d=document.getElementById(dictname+"BD"+z+"S"+i);d.style.display="none"}}else{if(s=="mc.gif"){d.style.display="none";i.src="images/baum/pc.gif";for(i=1;i<=spalten;i++){d=document.getElementById(dictname+"BD"+z+"S"+i);d.style.display="none"}}else{if(s=="pc.gif"){d.style.display="block";i.src="images/baum/mc.gif";for(i=1;i<=spalten;i++){d=document.getElementById(dictname+"BD"+z+"S"+i);d.style.display="block"}}else{if(s=="pe.gif"){d.style.display="block";i.src="images/baum/me.gif";for(i=1;i<=spalten;i++){d=document.getElementById(dictname+"BD"+z+"S"+i);d.style.display="block"}}}}}}function AuswahlClick(dictname,nr,id){var d,alt,hidden;hidden=document.getElementById(dictname+"_NR");if(!hidden&&document.getElementsByName(dictname+"_NR").length>0){hidden=(document.getElementsByName(dictname+"_NR"))[0]}d=document.getElementById(dictname+"_"+nr);if(d.style.borderStyle=="outset"){alt=document.getElementById(dictname+"_"+hidden.value);if(d){d.style.borderStyle="inset";if(alt){alt.style.borderStyle="outset"}hidden.value=nr;hidden=document.getElementById(dictname);if(!hidden&&document.getElementsByName(dictname).length>0){hidden=(document.getElementsByName(dictname))[0]}hidden.value=id;try{eval("onChangeOf"+dictname+"()")}catch(e){nr=nr}}}if(d.style.borderStyle=="solid"||d.style.borderStyle=="solid solid solid solid"){alt=document.getElementById(dictname+"_"+hidden.value);if(d){d.style.borderColor="black";if(alt){alt.style.borderColor="white"}hidden.value=nr;hidden=document.getElementById(dictname);if(!hidden&&document.getElementsByName(dictname).length>0){hidden=(document.getElementsByName(dictname))[0]}hidden.value=id;try{eval("onChangeOf"+dictname+"()")}catch(e){nr=nr}}}}function groesse(name){document.getElementById(name).style.width=parseInt(document.getElementById(name+"_LIST").style.width)+"px"}function EnterAuswahl(name){var d;d=document;var nr=((d.getElementById(name+"_LIST").selectedIndex));d.getElementById(name).value=d.getElementById(name+"_LIST").options[nr].value;d.getElementById(name+"_DIV").style.display="none";try{eval("onChangeOf"+name+"()")}catch(e){}try{d.getElementById(name).focus()}catch(e){}}function NavVorwaerts(name){d=document;if(document.getElementById(name+"_DIV").style.display=="none"){showDropDown(name)}var nr=((d.getElementById(name+"_LIST").selectedIndex)+1);if(nr!=d.getElementById(name+"_LIST").options.length){d.getElementById(name).value=d.getElementById(name+"_LIST").options[nr].value;d.getElementById(name+"_LIST").options[nr].selected=true}else{nr=((d.getElementById(name+"_LIST").options.length)-1);d.getElementById(name).value=d.getElementById(name+"_LIST").options[nr].value;d.getElementById(name+"_LIST").options[nr].selected=true}}function NavRueckwaerts(name){if(document.getElementById(name+"_DIV").style.display=="none"){showDropDown(name)}if(document.getElementById(name+"_LIST").selectedIndex>0){var nr=((document.getElementById(name+"_LIST").selectedIndex)-1);document.getElementById(name).value=document.getElementById(name+"_LIST").options[nr].value;document.getElementById(name+"_LIST").options[nr].selected=true}else{document.getElementById(name).value=document.getElementById(name+"_LIST").options[0].value;document.getElementById(name+"_LIST").options[0].selected=true}}function Enter(name){Ereignis=window.event;Tastencode=Ereignis.keyCode;if(document.getElementById(name).value!=document.getElementById(name+"_LIST").options.value){document.getElementById(name).value=document.getElementById(name+"_LIST").options.value}if(Tastencode==13){CloseDropDown(name)}}function Navigieren(WelcheTaste,name){if(WelcheTaste==40){NavVorwaerts(name)}else{if(WelcheTaste==38){NavRueckwaerts(name)}}}var a,DropDownEdited;DropDownEdited=0;a=100;function Buchstabeneingabe(Wert,name){Ereignis=window.event;Tastencode=Ereignis.keyCode;if((Tastencode!=38)&&(Tastencode!=40)&&(Tastencode!=13)&&(Tastencode!=16)&&(Tastencode!=9)){DropDownEdited=1;if(document.getElementById(name+"_DIV").style.display=="none"){showDropDown(name)}for(i=0;i<document.getElementById(name+"_LIST").options.length;i++){if(Wert.substr(0,Wert.length).toLowerCase()==document.getElementById(name+"_LIST").options[i].title.substr(0,Wert.length).toLowerCase()&&Wert.length!=0&&Wert.length<document.getElementById(name+"_LIST").options[i].title.length){document.getElementById(name+"_LIST").options[i].selected=true;if(Tastencode!=8){var iStart=Wert.length;var iLength=document.getElementById(name+"_LIST").options[i].length;var oRange=document.getElementById(name).createTextRange();
38if(oRange){document.getElementById(name).value=document.getElementById(name+"_LIST").options[i].value;oRange.moveStart("character",iStart);oRange.moveEnd("character",iLength);oRange.select()}else{if(document.getElementById(name).setSelectionRange){document.getElementById(name).setSelectionRange(iStart,iLength)}}document.getElementById(name).focus()}break}}if(Wert.length==0){document.getElementById(name+"_LIST").options[0].selected=false}}else{if(Tastencode==9){}else{if(Tastencode!=13){Navigieren(Tastencode,name)}else{Enter(name)}}}}function BlurDropDown(name){try{if(DropDownEdited==1){eval("onChangeOf"+name+"()")}}catch(e){}}function CloseDropDown(name){try{if(document.getElementById(name+"_DIV").style.display!="none"){document.getElementById(name+"_DIV").style.display="none"}}catch(e){}}function showDropDown(name){d=document;if(d.getElementById(name+"_DIV").style.display=="none"){var element=d.getElementById(name);var a=getPosition(element);d.getElementById(name+"_DIV").style.top=parseInt(a.y+21)+"px";d.getElementById(name+"_DIV").style.left=parseInt(a.x-1)+"px";d.getElementById(name+"_DIV").style.display="inline";try{if(element.value!=""){d.getElementById(name+"_LIST").options.value=d.getElementById(name).value}else{document.getElementById(name+"_LIST").options[0].selected=true}}catch(e){}}else{d.getElementById(name+"_DIV").style.display="none"}}function SDivUp(element){document.frmSeite.SDivMode.value="-1";d=document;var di=d.getElementById("pages_DIV");if(di.style.display=="none"){var a=getPosition(element);di.style.top=parseInt(a.y+15)+"px";di.style.left=parseInt(a.x-1)+"px";di.style.display="inline"}else{di.style.display="none"}return false}function SDivDown(element){document.frmSeite.SDivMode.value="1";d=document;var di=d.getElementById("pages_DIV");if(di.style.display=="none"){var a=getPosition(element);di.style.top=parseInt(a.y+15)+"px";di.style.left=parseInt(a.x-1)+"px";di.style.display="inline"}else{di.style.display="none"}return false}function shDrDo(){document.frmSeite.SDivMode.value="0";d=document;var di=d.getElementById("pages_DIV");if(di.style.display=="none"){var element=d.getElementById("pagespos");var a=getPosition(element);di.style.top=parseInt(a.y+15)+"px";di.style.left=parseInt(a.x-1)+"px";di.style.display="inline"}else{di.style.display="none"}}function getPosition(element){var elem=element,tagname="",x=0,y=0;while((typeof(elem)=="object")&&(typeof(elem.tagName)!="undefined")){if(elem.id=="syncon"){break}y+=elem.offsetTop;x+=elem.offsetLeft;tagname=elem.tagName.toUpperCase();if(tagname=="BODY"){elem=0}if(typeof(elem)=="object"){if(typeof(elem.offsetParent)=="object"){elem=elem.offsetParent}}}position=new Object();position.x=x;position.y=y;return position}function ausgabe(wert){window.status=wert}function getStyle(el,cssprop){if(el.currentStyle){return el.currentStyle[cssprop]}else{if(document.defaultView&&document.defaultView.getComputedStyle){return document.defaultView.getComputedStyle(el,"")[cssprop]}else{return el.style[cssprop]}}}function SubReiterSelect(r){var cr,f1,f2,last,animation;cr=document.frmSubReiter.CurrentSubReiter;if(cr){animation=0;if(document.getElementById("SubReiterCollection")!=null){if(getStyle(document.getElementById("SubReiterCollection"),"display")=="none"){animation=1}}f1=document.getElementById("ReiterColorActive").value;f2=document.getElementById("ReiterColorInactive").value;if(document.getElementById("subreiter"+cr.value).style.cursor!="auto"){cr.value=1}if(cr.value!=r){document.getElementById("subreiter"+cr.value).style.cursor="pointer";document.getElementById("subreiter"+cr.value).style.backgroundColor=f2;if(document.getElementById("SubAkkordeonBtn"+cr.value)){document.getElementById("SubAkkordeonBtn"+cr.value).style.cursor="pointer";document.getElementById("SubAkkordeonBtn"+cr.value).className="SubAkkordeonBtn";document.getElementById("SubAkkordeonBtn"+cr.value).style.backgroundColor=f2}if(animation==1){if((typeof jQuery!=="undefined")&&(typeof jQuery.ui!=="undefined")){$("#divsubreiter"+cr.value).hide("blind",{direction:"up"})}else{document.getElementById("divsubreiter"+cr.value).style.display="none"}}else{document.getElementById("divsubreiter"+cr.value).style.display="none"}document.getElementById("subreiter"+r).style.cursor="auto";document.getElementById("subreiter"+r).style.backgroundColor=f1;if(document.getElementById("SubAkkordeonBtn"+r)){document.getElementById("SubAkkordeonBtn"+r).style.cursor="auto";document.getElementById("SubAkkordeonBtn"+r).className="SubAkkordeonBtnSel";document.getElementById("SubAkkordeonBtn"+r).style.backgroundColor=f1}if(animation==1){if((typeof jQuery!=="undefined")&&(typeof jQuery.ui!=="undefined")){$("#divsubreiter"+r).show("blind",{direction:"down"})}else{document.getElementById("divsubreiter"+r).style.display="block"}}else{document.getElementById("divsubreiter"+r).style.display="block"}cr.value=r}}}function ReiterSelect(r){var cr,f1,f2,animation;cr=document.SPDBForm.CurrentReiter;if(!cr){cr=document.SPDBForm[0].CurrentReiter}if(cr){animation=0;if(document.getElementById("ReiterCollection")!=null){if(getStyle(document.getElementById("ReiterCollection"),"display")=="none"){animation=1}}f1=document.getElementById("ReiterColorActive").value;f2=document.getElementById("ReiterColorInactive").value;if(document.getElementById("reiter"+cr.value).style.cursor!="auto"){cr.value=1}document.getElementById("reiter"+cr.value).style.cursor="pointer";document.getElementById("reiter"+cr.value).style.backgroundColor=f2;if(document.getElementById("akkordeonBtn"+cr.value)){document.getElementById("akkordeonBtn"+cr.value).style.cursor="pointer";document.getElementById("akkordeonBtn"+cr.value).className="akkordeonBtn";document.getElementById("akkordeonBtn"+cr.value).style.backgroundColor=f2}if(animation==1){if((typeof jQuery!=="undefined")&&(typeof jQuery.ui!=="undefined")){$("#divreiter"+cr.value).hide("blind",{direction:"up"})}else{document.getElementById("divreiter"+cr.value).style.display="none"}}else{document.getElementById("divreiter"+cr.value).style.display="none"}document.getElementById("reiter"+r).style.cursor="auto";document.getElementById("reiter"+r).style.backgroundColor=f1;if(document.getElementById("akkordeonBtn"+r)){document.getElementById("akkordeonBtn"+r).style.cursor="auto";document.getElementById("akkordeonBtn"+r).className="akkordeonBtnSel";document.getElementById("akkordeonBtn"+r).style.backgroundColor=f1}if(animation==1){if((typeof jQuery!=="undefined")&&(typeof jQuery.ui!=="undefined")){$("#divreiter"+r).show("blind",{direction:"down"})}else{document.getElementById("divreiter"+r).style.display="block"}}else{document.getElementById("divreiter"+r).style.display="block"}cr.value=r}}function texteditdict(id){var dd=document;var h=dd.getElementById("texteditid");if(h){h.value=id}PositionPopupMenu("texteditmenu")}function MenuClose(){var dd=document;var element=dd.getElementById("texteditmenu");if(element){element.style.display="none"}dd=document.getElementById("divrefresh");if(dd){dd.style.display="none"}dd=document.getElementById("texteditmenuNav");if(dd){dd.style.display="none"}dd=document.getElementById("texteditmenuNavNav");if(dd){dd.style.display="none"}
38dd=document.getElementById("MenuBackground");if(dd){dd.style.display="none"}dd=document.getElementById("texteditdiv");if(dd){dd.style.display="none"}}function texteditEnd(){var dd=window.parent.document;var element=dd.getElementById("texteditdiv");if(element){element.style.display="none"}dd=dd.getElementById("divrefresh");if(dd){dd.style.display="none"}dd=document.getElementById("MenuBackground");if(dd){dd.style.display="none"}}function textedit(id,name){var weiter=true;var dd=document;var element=dd.getElementById("texteditdiv");var ifr=dd.getElementById("texteditif");var vararr;var sub="";if(name=="DictDelete"){weiter=confirm("-- ACHTUNG -- -- ACHTUNG -- -- ACHTUNG -- \n\n\n Wollen sie das Dictionary wirklich loeschen?")}if(weiter){if(id==""){var h=dd.getElementById("texteditid");if(h){id=h.value}}if(element){if(element.style.display=="none"){if(name=="alles"||name=="allesN"||name=="NeueNav"||name=="NeuesDict"){element.style.top=(MyYOffset()+5)-parseInt(element.parentNode.offsetTop)+"px";element.style.left="60px";element.style.width="1300px";element.style.height="830px";ifr.style.width="1300px";ifr.style.height="830px"}else{element.style.width="615px";element.style.height="301px";ifr.style.width="615px";ifr.style.height="301px";element.style.top=(parseInt(y-(y>500?290:0)+2)-parseInt(element.parentNode.offsetTop))+"px";element.style.left=(x-(x>800?400:0)-1)+"px"}if(window.location.search!=""){QUERYSTRING=window.location.search+"&nnn=nnn";QUERYSTRING=QUERYSTRING.replace("/ajax.aspx/","/ajax.aspx?sub=").replace(".html?","&").replace(/\?/,"");var teilstrings=QUERYSTRING.split("&");for(i=0;i<teilstrings.length;i++){vararr=teilstrings[i].split("=");vararr[0]=vararr[0].toUpperCase();if(vararr[0]=="SUB"){sub=vararr[1]}}}else{sub="home"}ifr.src="DescriptionEdit.aspx?sub="+sub+"&id="+id+"&name="+name;element.style.display="inline";ShowMenuBackground()}}try{element=document.getElementById("texteditmenu");if(element){element.style.display="none"}}catch(e){}try{element=document.getElementById("texteditmenuNav");if(element){element.style.display="none"}}catch(e){}try{element=document.getElementById("texteditmenuNavNav");if(element){element.style.display="none"}}catch(e){}}else{try{element=document.getElementById("texteditmenu");if(element){element.style.display="none"}}catch(e){}document.getElementById("divrefresh").style.display="none"}}function PositionPopupMenu(MenuID){var element=document.getElementById(MenuID);if(element){if(element.style.display=="none"){element.style.top=(parseInt(y-((y>400)?244:0)+2)-parseInt(element.parentNode.offsetTop))+"px";element.style.left=(parseInt(x-((x>800)?144:0)-1)-parseInt(element.parentNode.offsetLeft))+"px";element.style.display="inline";ShowMenuBackground()}}}function ShowMenuBackground(){var mb=document.getElementById("MenuBackground");if(!mb){mb=document.createElement("div");mb.style="display:none";mb.id="MenuBackground";document.getElementsByTagName("body")[0].appendChild(mb)}mb.style.width=parseInt(document.body.clientWidth)+"px";mb.style.height=parseInt((document.body.clientHeight>document.body.scrollHeight?document.body.clientHeight:document.body.scrollHeight))+"px";mb.style.top="0px";mb.style.left="0px";mb.style.backgroundColor="rgba(0,0,0,0.3);";mb.style.position="fixed";mb.style.display="block";mb.style.zIndex=299;mb.onclick=MenuClose}function texteditNav(id){var dd=document;var h=dd.getElementById("texteditid");if(h){h.value=id}PositionPopupMenu("texteditmenuNav")}function texteditNavNav(id){var dd=document;var h=dd.getElementById("texteditid");if(h){h.value=id}PositionPopupMenu("texteditmenuNavNav")}function SetToDel(a){}function CheckboxesEmpty(checkboxes){var i;if(document.getElementById(checkboxes+"_MAX")){for(i=1;i<=document.getElementById(checkboxes+"_MAX").value;i++){if(document.getElementById(checkboxes+"_"+i)){if(document.getElementById(checkboxes+"_"+i).checked&&document.getElementById(checkboxes+"_"+i).value!=""){return false}}}}else{i=1;if(!document.getElementById(checkboxes+"_"+i)){i=2}while(document.getElementById(checkboxes+"_"+i)){if(document.getElementById(checkboxes+"_"+i).checked&&document.getElementById(checkboxes+"_"+i).value!=""){return false}i++}}return true}function CheckboxesValues(checkboxes){var i,v;v="";if(document.getElementById(checkboxes+"_MAX")){for(i=1;i<=document.getElementById(checkboxes+"_MAX").value;i++){if(document.getElementById(checkboxes+"_"+i)){if(document.getElementById(checkboxes+"_"+i).checked){v=v+","+document.getElementById(checkboxes+"_"+i).value}}}}else{i=1;if(!document.getElementById(checkboxes+"_"+i)){i=2}while(document.getElementById(checkboxes+"_"+i)){if(document.getElementById(checkboxes+"_"+i).checked){v=v+","+document.getElementById(checkboxes+"_"+i).value}i++}}return v}function RadioboxesValue(checkboxes){var i;if(document.getElementById(checkboxes+"_MAX")){for(i=1;i<=document.getElementById(checkboxes+"_MAX").value;i++){if(document.getElementById(checkboxes+"_"+i)){if(document.getElementById(checkboxes+"_"+i).checked){return document.getElementById(checkboxes+"_"+i).value}}}}else{i=1;if(!document.getElementById(checkboxes+"_"+i)){i=2}while(document.getElementById(checkboxes+"_"+i)){if(document.getElementById(checkboxes+"_"+i).checked){return document.getElementById(checkboxes+"_"+i).value}i++}}return""}function VALUE(o){if(o){if(o.value){return o.value}}return""}function VALUECB(o){if(o){if(o.checked){return o.value}}return""}
38var dia_runter=false;var dia_nich=false;var dia_pic;var dia_id;function DIARunter(bild,id){if(window.event.button&&window.event.button==1){dia_pic=bild;dia_id=id;elm=dia_pic;dia_x=1;dia_y=1;while(elm!=null){if(elm.id=="syncon"){break}dia_x+=elm.offsetLeft;dia_y+=elm.offsetTop;elm=elm.offsetParent}if(dia_nich==true){dia_nich=false}else{if(!(window.event.offsetX<15&&dia_pic.height-window.event.offsetY<25)){Xstart=window.event.clientX-2;document.getElementById("dia").style.left=Xstart+"px";document.getElementById("dia").style.top=dia_y+"px";document.getElementById("dia").style.width="0px";document.getElementById("dia").style.height=dia_pic.height-2+"px";document.getElementById("dia").style.cursor="crosshair";document.getElementById("dia").style.visibility="visible";dia_runter=true}else{if(window.event.offsetX<22&&dia_pic.height-window.event.offsetY<25){if(document.URL.search("Zoom=false")==-1){document.URL=document.URL+"&Zoom=false"}}}}}}function DIABewegung(bild){if(bild){dia_pic=bild}if(dia_runter==true){var x;x=window.event.x-document.getElementById("dia").style.pixelLeft-2;if(x>=0){document.getElementById("dia").style.width=x+"px"}}else{if(window.event.offsetX<22&&dia_pic.height-window.event.offsetY<25){dia_pic.style.cursor="pointer"}else{dia_pic.style.cursor="crosshair"}}}function DIAHoch(){dia_runter=false;document.getElementById("dia").style.cursor="pointer"}function DIAZoom(){dia_x=1;elm=dia_pic;while(elm!=null){dia_x+=elm.offsetLeft;elm=elm.offsetParent}document.getElementById("zoomX0").value=document.getElementById("dia").style.pixelLeft-dia_x;document.getElementById("zoomX1").value=document.getElementById("dia").style.pixelLeft-dia_x+document.getElementById("dia").style.pixelWidth;document.getElementById("zoomID").value=dia_id;document.getElementById("ZoomFrm").submit();dia_nich=true}function nspopup(url,f1,f2,f3,f4,f5){var dd=document;var element=dd.getElementById("nsdiv");var ifr=dd.getElementById("nsif");var w;if(element){if(element.style.display=="none"){w=(document.body.clientHeight-550)/2;if(w<=95){w=95}element.style.top=parseInt(w)+"px";w=(document.body.clientWidth-700)/2;if(w<=0){w=1}element.style.left=parseInt(w)+"px";ifr.src=url+"&f1="+escape(f1)+"&f2="+escape(f2)+"&f3="+escape(f3)+"&f4="+escape(f4)+"&f5="+escape(f5);element.style.display="inline";dd=document.getElementById("divrefresh");if(dd){dd.style.width=document.body.clientWidth+"px";dd.style.height=document.body.clientHeight+"px";dd.style.top=MyYOffset()+"px";dd.style.display="inline"}}}}function nsEnd(){var dd=window.parent.document;var element=dd.getElementById("nsdiv");var ifr=dd.getElementById("nsif");if(element){element.style.display="none"}dd=dd.getElementById("divrefresh");if(dd){dd.style.display="none"}if(ifr){ifr.src="leer.html"}}function RefreshParent(n,v){var dd=window.parent.document;dd.SPDBForm.DoRefresh.value=v;dd.SPDBForm.synwaylastcontrol.value=n;dd.SPDBForm.synwayscrollx.value=dd.body.scrollLeft;dd.SPDBForm.synwayscrolly.value=dd.body.scrollTop;dd.body.style.cursor="wait";d=dd.getElementById("divrefresh");if(d){d.style.width=dd.body.clientWidth+"px";d.style.height=dd.body.clientHeight+"px";d.style.top=dd.body.scrollTop+"px";d.style.display="inline"}}function PageQuery(q){if(q.length>1){this.q=q.substring(1,q.length)}else{this.q=null}this.keyValuePairs=new Array();if(q){for(var i=0;i<this.q.split("&").length;i++){this.keyValuePairs[i]=this.q.split("&")[i]}}this.getKeyValuePairs=function(){return this.keyValuePairs};this.getValue=function(s){for(var j=0;j<this.keyValuePairs.length;j++){if(this.keyValuePairs[j].split("=")[0].toLowerCase()==s.toLowerCase()){return this.keyValuePairs[j].split("=")[1]}}return false};this.getParameters=function(){var a=new Array(this.getLength());for(var j=0;j<this.keyValuePairs.length;j++){a[j]=this.keyValuePairs[j].split("=")[0]}return a};this.getLength=function(){return this.keyValuePairs.length}}function noenter(){if(window.event.keyCode==13){window.event.keyCode=9}}function delcheck(msg){return confirm(msg)}var Docfens=null;function MeName(){window.name="index"}function popUp(){if(Docfens){Docfens.focus()}else{var datei="SynWayDocu.aspx#"+document.getElementById("D1").value;Docfens=window.open(datei,"DocuFenster","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=700, height=400, left=10, top=0")}}var liSID="";var liZID="";function liM(e){if(document.getElementById("syncon")){document.getElementById("ligez").style.left=(event.clientX+document.getElementById("syncon").scrollLeft)+"px";document.getElementById("ligez").style.top=(event.clientY+document.getElementById("syncon").scrollTop-document.getElementById("syncon").offsetTop+10)+"px"}else{document.getElementById("ligez").style.left=(event.clientX+MyXOffset())+"px";document.getElementById("ligez").style.top=(event.clientY+MyYOffset())+"px"}}function liU(e){var dd=document;if(liZID!=""){IFREdit(dd.getElementById("editurl").value,liSID,liZID)}document.getElementById("ligez").style.visibility="hidden";document.onmousemove=handlerMM;document.onmouseup=null}function IFREdit(editurl,ID1,ID2){var dd=document;var element=dd.getElementById("nsdiv");
38var ifr=dd.getElementById("nsif");var w;if(element){if(element.style.display=="none"){if(document.getElementById("syncon")){w=(document.body.clientHeight-550)/2+document.getElementById("syncon").scrollTop}else{w=(document.body.clientHeight-550)/2+MyYOffset()}if(w<=0){w=1}element.style.top=parseInt(w)+"px";w=(document.body.clientWidth-700)/2;if(w<=0){w=1}element.style.left=parseInt(w)+"px";ifr.src=editurl+((editurl.indexOf("?")>-1)?"&":"?")+"nonav=1&ID1="+escape(ID1)+"&ID2="+escape(ID2);element.style.display="inline";dd=document.getElementById("divrefresh");if(dd){dd.style.width=document.body.clientWidth+"px";dd.style.height=document.body.clientHeight+"px";dd.style.top=MyYOffset()+"px";dd.style.display="inline"}}}}function liH(obj,id){liZID=id;if(id!=""){obj.style.cursor="pointer"}else{obj.style.cursor="auto"}}function liZiehen(obj,id){liZID="";liSID=id;document.getElementById("ligez").style.visibility="visible";if(document.getElementById("syncon")){document.getElementById("ligez").style.left=(event.clientX+document.getElementById("syncon").scrollLeft)+"px";document.getElementById("ligez").style.top=(event.clientY+document.getElementById("syncon").scrollTop-document.getElementById("syncon").offsetTop+10)+"px"}else{document.getElementById("ligez").style.left=(event.clientX+MyXOffset())+"px";document.getElementById("ligez").style.top=(event.clientY+MyYOffset())+"px"}document.getElementById("ligez").innerHTML="<img id='ligezb' alt=''>";document.getElementById("ligezb").src=obj.src;if(window.captureEvents&&Event.MOUSEMOVE){window.captureEvents(Event.MOUSEMOVE)}if(window.captureEvents&&Event.MOUSEUP){window.captureEvents(Event.MOUSEUP)}document.onmousemove=liM;document.onmouseup=liU}var bvar1,bvar2,bvar3;function baumHover(var1,var2,var3){bvar1=var1;bvar2=var2;bvar3=var3;setTimeout("if(liSID != '' && bvar1 != '' && bvar1 == '"+var1+"' && bvar2 == '"+var2+"' && bvar2 == '"+var2+"'){ baumClick(bvar1,bvar2,bvar3);}",1000)}function baumHoverSrc(var1,var2,var3){bvar1=var1;bvar2=var2;bvar3=var3}function baumHoverOut(var1,var2,var3){bvar1="";bvar2="";bvar3=0}function SetupLayout(){window.onresize=SetupLayout2;SetupLayout2()}function onMoveSitze(){var Sitzplan,px,py,divSitze,h,b,divSitzplan,maxWidth,maxHeight;Sitzplan=document.getElementById("sitzplan");divSitzplan=document.getElementById("divSitzplan");divSitze=document.getElementById("divSitze");maxWidth=document.getElementById("maxWidth");maxHeight=document.getElementById("maxHeight");if(divSitzplan){px=divSitze.scrollLeft/(divSitze.scrollWidth-parseFloat(divSitze.style.width));py=divSitze.scrollTop/(divSitze.scrollHeight-parseFloat(divSitze.style.height));if(py>1){py=1}if(px>1){px=1}b=Sitzplan.width;if(b<=parseFloat(divSitzplan.style.width)){b=parseFloat(divSitzplan.style.width)+1}h=Sitzplan.height;if(h<=parseFloat(divSitzplan.style.height)){h=parseFloat(divSitzplan.style.height)+1}divSitzplan.style.left=parseInt((b-parseFloat(divSitzplan.style.width))*px)+"px";divSitzplan.style.top=parseInt((h-parseFloat(divSitzplan.style.height))*py)+"px"}}function MoveSitze(e){var Sitzplan,elm,x,y,px,py,tagname,divSitze,maxWidth,maxHeight,h,b,divSitzplan;x=0;y=0;Sitzplan=document.getElementById("sitzplan");divSitzplan=document.getElementById("divSitzplan");if(!e){e=window.event;x=e.x;y=e.y;if(e.srcElement&&e.srcElement.id=="divSitzplan"){y+=e.srcElement.offsetTop;x+=e.srcElement.offsetLeft}}else{elm=Sitzplan;while(elm!=null){y+=elm.offsetTop;x+=elm.offsetLeft;elm=elm.offsetParent}x=e.clientX-x;y=e.clientY-y}if(x<1){x=1}if(y<1){y=1}if(x>Sitzplan.width){x=Sitzplan.width+1}if(y>Sitzplan.height){y=Sitzplan.height+1}divSitze=document.getElementById("divSitze");maxWidth=document.getElementById("maxWidth");maxHeight=document.getElementById("maxHeight");b=Sitzplan.width;if(b<=parseFloat(divSitzplan.style.width)){b=parseFloat(divSitzplan.style.width)+1}h=Sitzplan.height;if(h<=parseFloat(divSitzplan.style.height)){h=parseFloat(divSitzplan.style.height)+1}px=x/parseFloat(Sitzplan.width);py=y/parseFloat(Sitzplan.height);if(px>0.8){px=1}if(py>0.8){py=1}if(px<0.2){px=0}if(py<0.2){py=0}divSitzplan.style.left=parseInt((b-parseFloat(divSitzplan.style.width))*px)+"px";divSitzplan.style.top=parseInt((h-parseFloat(divSitzplan.style.height))*py)+"px";b=parseFloat(divSitzplan.style.left)/(b-parseFloat(divSitzplan.style.width));h=parseFloat(divSitzplan.style.top)/(h-parseFloat(divSitzplan.style.height));if(b>0.8){b=1}if(h>0.8){h=1}if(b<0.2){b=0}if(h<0.2){h=0}divSitze.scrollLeft=parseInt((divSitze.scrollWidth-parseFloat(divSitze.style.width))*b);divSitze.scrollTop=parseInt((divSitze.scrollHeight-parseFloat(divSitze.style.height))*h)}function SPHeight(){var gesamt,btnZurueck,elm,y;btnZurueck=document.getElementById("btnZurueck");if("innerHeight" in window){gesamt=window.innerHeight}else{gesamt=document.documentElement.clientHeight}gesamt=gesamt-60-36-8;if(btnZurueck){elm=btnZurueck;y=0;while(elm!=null){if(elm.id){if(elm.id!="syncon"){y+=elm.offsetTop}}else{y+=elm.offsetTop}elm=elm.offsetParent}gesamt=gesamt-y}return gesamt}function SPHeight2(){var gesamt,btnZurueck,elm,y,Unterkannte;btnZurueck=document.getElementById("btnZurueck");Unterkannte=document.getElementById("Unterkannte");if("innerHeight" in window){gesamt=window.innerHeight}else{gesamt=document.documentElement.clientHeight}gesamt=gesamt-57;if(btnZurueck){elm=Unterkannte;y=0;while(elm!=null){if(elm.id){if(elm.id!="syncon"){y+=elm.offsetTop}}else{y+=elm.offsetTop}elm=elm.offsetParent}gesamt=gesamt-y}return gesamt}function SPWidth(){var Gesamt,btnZurueck,elm,x;btnZurueck=document.getElementById("btnZurueck");gesamt=document.body.clientWidth-36;if(btnZurueck){elm=btnZurueck;x=0;while(elm!=null){if(elm.id){if(elm.id!="syncon"){x+=elm.offsetLeft}}else{x+=elm.offsetLeft}elm=elm.offsetParent}gesamt=gesamt-x}return gesamt}function SizeWarenkorb(){var divwarenkorb,h,maxhoehe,tdwarenkorb,divSitzplan,aja
38xout,h2,gesamt,maxHeight;divwarenkorb=document.getElementById("SynWAYWarenkorbDIV");tdwarenkorb=document.getElementById("tdWarenkorb");ajaxout=document.getElementById("ajaxout");if(divwarenkorb){divwarenkorb.style.overflow="auto";h=divwarenkorb.scrollHeight;divSitzplan=document.getElementById("divSitzplan");if(ajaxout){h2=ajaxout.scrollHeight+85}else{h2=85}gesamt=SPHeight()-40;if(ajaxout){maxhoehe=gesamt-35-ajaxout.scrollHeight;if(maxhoehe<200){maxhoehe=200}}else{maxhoehe=gesamt}if(maxhoehe<100){maxhoehe=100}if(h>maxhoehe){divwarenkorb.style.borderStyle="dotted"}else{divwarenkorb.style.borderStyle="none"}divwarenkorb.style.height=maxhoehe+"px";divwarenkorb.style.maxHeight=maxhoehe+"px";if(divwarenkorb.clientWidth<divwarenkorb.scrollWidth){divwarenkorb.style.width=(divwarenkorb.scrollWidth+60)+"px";divwarenkorb.style.maxWidth=(divwarenkorb.scrollWidth+60)+"px"}}}function SizeTickets(){var divTickets,h;divTickets=document.getElementById("ajaxout");if(divTickets){divTickets.style.overflow="auto";h=divTickets.scrollHeight;var hVGL;hVGL=(SPHeight()-40)-200;if(hVGL<180){hVGL=180}if(h>hVGL){divTickets.style.borderStyle="dotted";divTickets.style.height=(hVGL-37)+"px";divTickets.style.maxHeight=(hVGL-37)+"px"}else{divTickets.style.height=divTickets.scrollHeight+"px";divTickets.height=divTickets.scrollHeight+"px";divTickets.style.maxHeight=divTickets.scrollHeight+"px";divTickets.style.borderStyle="none"}if(divTickets.scrollWidth>divTickets.clientWidth){if(divTickets.scrollHeight>divTickets.clientHeight){divTickets.style.width=(divTickets.scrollWidth+60)+"px";divTickets.style.maxWidth=(divTickets.scrollWidth+60)+"px"}else{divTickets.style.width=divTickets.scrollWidth+"px";divTickets.style.maxWidth=divTickets.scrollWidth+"px"}}}}function SetupLayout2(){var tdSaalplan,maxWidth,maxHeight,divSitze,Sitzplan,divSitzplan,f,h,b;divSitze=document.getElementById("divSitze");if(divSitze){divSitze.style.overflow="auto";divSitze.onscroll=onMoveSitze;tdSaalplan=document.getElementById("tdSaalplan");maxWidth=document.getElementById("maxWidth");maxHeight=document.getElementById("maxHeight");Sitzplan=document.getElementById("sitzplan");divSitzplan=document.getElementById("divSitzplan");Sitzplan.onclick=MoveSitze;divSitzplan.onclick=MoveSitze;if(Sitzplan){var w,h,kleiner;kleiner=0;h=SPHeight2();if(h<310){h=310}w=SPWidth()-260;if(w<750){w=750}Sitzplan.style.display="inline";if(w>parseFloat(maxWidth.value)){w=parseFloat(maxWidth.value)}else{w=w-44;kleiner=1}divSitze.style.maxWidth=parseInt(w)+"px";divSitze.style.width=parseInt(w)+"px";if(h<=parseFloat(maxHeight.value)){h=h-33;kleiner=1}if(kleiner){divSitze.style.borderStyle="dotted";divSitzplan.style.display="inline";divSitzplan.style.left="0px";divSitzplan.style.top="0px";f=w/parseFloat(maxWidth.value);if(f>1){f=1}divSitzplan.style.width=parseInt(parseFloat(Sitzplan.width)*f)+"px";f=h/parseFloat(maxHeight.value);if(f>1){f=1}divSitzplan.style.height=parseInt(parseFloat(Sitzplan.height)*f)+"px"}else{divSitze.style.borderStyle="none";divSitzplan.style.display="none";divSitze.scrollLeft=0;divSitze.scrollTop=0}divSitze.style.maxHeight=parseInt(h)+"px";divSitze.style.height=parseInt(h)+"px"}}SizeWarenkorb();SizeTickets()}var ctxDummy;ctxDummy=0;function onFailed(ex,ctx,methodName){if(methodName!="GetContentParts"){ShowAlert(methodName+" - Error in Calling WebMethod:"+ex.get_exceptionType()+" "+ex._message)}}function ses(s){if(!s){if(!window.event){s=event.srcElement.id}else{s=window.event.srcElement.id}}else{if(s.target){s=s.target.id}}return SelectSitz(s)}function SelectSitz(s){var sel;sel=document.getElementById("SelSitz").value;if(sel!=""){if(document.getElementById(sel)){if(document.getElementById(sel).DBW){document.getElementById(sel).className="seat1 B3S"}else{document.getElementById(sel).className="seat1 B1S"}document.getElementById("SelSitz").value=""}}var sub;sub=document.getElementById("sub").value;if(sel!=s){if(document.getElementById(s)){if(document.getElementById(s).className!="seat1 B3B"){document.getElementById(s).className="seat1 B3B";document.getElementById("SelSitz").value=s;PageMethods.onSitzClick(sub,s,onSitzClick_Callback,onFailed,ctxDummy)}}}else{document.getElementById("SelSitz").value="";PageMethods.onSitzClick(sub,"--none-",onSitzClick_Callback,onFailed,ctxDummy)}}function onSitzClick_Callback(html){document.getElementById("ajaxout").innerHTML=html;if(html.charCodeAt(0)!=32){var s;s=document.getElementById("SelSitz").value;if(document.getElementById(s)){if(document.getElementById(s).DBW){document.getElementById(s).className="seat1 B3S"}else{document.getElementById(s).className="seat1 B1S"}}document.getElementById("SelSitz").value=""}SizeWarenkorb();SizeTickets()}function onClickKartentyp_Callback(html){var div;if(html!=null){if(html[3]!=null&&html[3]!=""){document.getElementById("ajaxout").innerHTML=html[3]}if(html[0]==null||html[0]==""){ShowAlert(html[1]);s=document.getElementById("SelSitz").value;if(s!=""){if(document.getElementById(s).DBW){document.getElementById(s).className="seat1 B3S"}else{document.getElementById(s).className="seat1 B1S"}if(html[2]!=null&&html[2]!=""){document.getElementById(s).style.backgroundColor="rgb(169, 169, 169)"}document.getElementById("SelSitz").value=""}}else{div=document.getElementById(html[0]);if(div){div.innerHTML=html[1]}var s;s=document.getElementById("SelSitz").value;if(s!=""){document.getElementById(s).className="seat1 B3S";document.getElementById(s).style.backgroundColor="yellow";document.getElementById(s).DBW="3"}document.getElementById("SelSitz").value="";s=html[2].substr(12,37);var sub;if(document.getElementById(s)){document.getElementById(s).className="seat1 B3B";document.getElementById("SelSitz").value=s}transactioncost()}}SizeWarenkorb();SizeTickets();if(document.getElementById("SynWAYWarenkorbDIV")){document.getElementById("SynWAYWarenkorbDIV").scrollTop=(document.getElementById("SynWAYWarenkorbDIV").scrollHeight-document.getElementById("SynWAYWarenkorbDIV").clientHeight)+"px"}}function onClickKartentypImBlock_Callback(html){var div;if(html!=null){if(html[2]!=null&&html[2]!=""){document.getElementById("ajaxout").innerHTML=html[2]}if(html[0]==null||html[0]==""){ShowAlert(html[1])}else{div=document.getElementById(html[0]);if(div){div.innerHTML=html[1]}transactioncost()}}SizeWarenkorb();SizeTickets();if(document.getElementById("SynWAYWarenkorbDIV")){document.getElementById("SynWAYWarenkorbDIV").scrollTop=(document.getElementById("SynWAYWarenkorbDIV").scrollHeight-document.getElementById("SynWAYWarenkorbDIV").clientHeight)}}function AjaxChangeWK(sub,id,Opt1ID,Opt2ID,vo3,vo4,vo5,vo6,vo7,vo8,vo9,vo10,divname,v){if(v==""||v=="0"){PageMethods.OUTWK(sub,id,Opt1ID,Opt2ID,vo3,vo4,vo5,vo6,vo7,vo8,vo9,vo10,divname,AjaxWK_callback,onFailed,ctxDummy)}else{PageMethods.ChangeWK(sub,id,Opt1ID,Opt2ID,vo3,vo4,vo5,vo6,vo7,vo8,vo9,vo10,v,divname,AjaxWK_callbackWithRefreshOnError,onFailed,ctxDummy)}}function AjaxChangeAnmerkung(sub,id,Opt1ID,Opt2ID,vo3,vo4,vo5,vo6,vo7,vo8,vo9,vo10,divname,Anmerkung){PageMethods.ChangeAnmerkung(sub,id,Opt1ID,Opt2ID,vo3,vo4,vo5,vo6,vo7,vo8,vo9,vo10,Anmerkung,divname,AjaxWK_callback,onFailed,ctxDummy)}function AjaxOUTWK(sub,id,opt1,opt2,vo3,vo4,vo5,vo6,vo7,vo8,vo9,vo10,divname){var sel,s;s="K"+id.replace(/-/g,"_");
38if(document.getElementById("SelSitz")){sel=document.getElementById("SelSitz").value;if(sel!=""){var ss;ss=document.getElementById(sel);if(ss){if(document.getElementById(sel).DBW){ss.className="seat1 B3S"}else{ss.className="seat1 B1S"}}document.getElementById("SelSitz").value=""}}if(document.getElementById(s)){if(document.getElementById("SelSitz")){document.getElementById("SelSitz").value=s}}PageMethods.OUTWK(sub,id,opt1,opt2,vo3,vo4,vo5,vo6,vo7,vo8,vo9,vo10,divname,AjaxWK_callback,onFailed,ctxDummy)}function AjaxResOUTWK(sub,id,Opt1ID,Opt2ID,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,divname){if(confirm("Dieses Ticket war fuer sie reserviert - wollen Sie wirklich auf die Reservierung verzichten?")){PageMethods.OUTWK(sub,id,Opt1ID,Opt2ID,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,divname,AjaxWK_callback,onFailed,ctxDummy)}}function AjaxWK_callback(html){var div;if(html!=null){if(html[0]==null||html[0]==""){ShowAlert(html[1])}else{div=document.getElementById(html[0]);if(div){div.innerHTML=html[1]}var s;if(document.getElementById("SelSitz")){s=document.getElementById("SelSitz").value;if(s!=""){var ss;ss=document.getElementById(s);if(ss){ss.className="seat1 B1S";ss.style.cursor="pointer";ss.onclick=ses;ss.DBW=null;var f;f=html[2].substr(5,7);if(f==""){f="#9ACD32"}document.getElementById(s).style.backgroundColor=f;document.getElementById("SelSitz").value=""}}}transactioncost()}}SizeWarenkorb();SizeTickets()}function AjaxWK_callbackWithRefreshOnError(html){var div;if(html!=null){if(html[0]==null||html[0]==""){ShowAlert(html[1]);window.location.href=window.location.href.replace("AppID=","apppid=")}else{div=document.getElementById(html[0]);if(div){div.innerHTML=html[1]}var s;if(document.getElementById("SelSitz")){s=document.getElementById("SelSitz").value;if(s!=""){var ss;ss=document.getElementById(s);if(ss){cc.className="seat1 B1S";ss.style.cursor="pointer";ss.onclick=ses;ss.DBW=null;var f;f=html[2].substr(5,7);if(f==""){f="#9ACD32"}document.getElementById(s).style.backgroundColor=f;document.getElementById("SelSitz").value=""}}}transactioncost()}}SizeWarenkorb();SizeTickets()}function ClickKartentyp(o,SubName,KartenID,ID){o.style.visibility="hidden";PageMethods.onClickKartentyp(SubName,KartenID,ID,onClickKartentyp_Callback,onFailed,ctxDummy)}function ClickKartentypBlock(o,SubName,Block,ID){o.style.visibility="hidden";PageMethods.onClickKartentypImBlock(SubName,Block,ID,onClickKartentypImBlock_Callback,onFailed,ctxDummy)}function lrpSel(NID,v){d=document;if(d.SPDBForm.LB_LRP_ID){LID=d.getElementById("lprausH").value;if(LID){if(LID!=""){a=d.getElementById(LID);if(a){a.style.borderWidth="1px";a.style.borderColor="black"}}}if(NID){if(NID!=""){n=d.getElementById(NID);if(n){d.getElementById("lprausH").value=NID;d.SPDBForm.LB_LRP_ID.value=v;n.style.borderWidth="2px";n.style.borderColor="red";onChangeOfLB_LRP_ID()}}}}}function InitUseGutschein(){var txtGS,btnGS;txtGS=document.getElementById("idUseGutschein");btnGS=document.getElementById("idBtnGutschein");if(btnGS){if(txtGS){txtGS.style.width="180px";txtGS.value="";if(typeof GSCheckR=="function"){$(btnGS).click(function(event){GSUseR(event)});$(txtGS).click(function(event){GSCheckR(event)});$(txtGS).keydown(function(event){GSCheckR(event)});$(txtGS).keyup(function(event){GSCheckR(event)});GSCheckR()}else{btnGS.onclick=GSUSe;txtGS.onchange=GSCheck;txtGS.onkeydown=GSCheck;txtGS.onkeyup=GSCheck;GSCheck()}}}}function GSCheck(event){if(typeof GSCheckR=="function"){return GSCheckR(event)}var txtGS,btnGS,gs,i,Ziffern,Buchstaben;txtGS=document.getElementById("idUseGutschein");btnGS=document.getElementById("idBtnGutschein");if(btnGS){if(txtGS){document.getElementById("KTRANS_Gutscheinhinweis_LABEL").style.width="500px";document.getElementById("KTRANS_Gutscheinhinweis_LABEL").style.textAlign="left";gs=txtGS.value;Ziffern=0;Buchstaben=0;for(i=0;i<gs.length;i++){if((gs.charAt(i)>="0"&&gs.charAt(i)<="9")||(gs.charAt(i)=="!")){Ziffern++}if(gs.charAt(i)>="A"&&gs.charAt(i)<="Z"){Buchstaben++}if((gs.charAt(i)<"0"||gs.charAt(i)>"9")&&gs.charAt(i)!="!"&&gs.charAt(i)!=" "&&(gs.charAt(i)<"A"||gs.charAt(i)>"Z")){if(gs.charAt(i)>="a"&&gs.charAt(i)<="z"){gs=gs.replace(gs.charAt(i),gs.charAt(i).toUpperCase())}else{gs=gs.replace(gs.charAt(i),"");i=i-1}}}if(gs.charAt(0)==" "){gs=gs.replace(" ","")}if(gs.length<5){gs=gs.replace(" ","")}if(txtGS.value!=gs){txtGS.value=gs}btnGS.disabled=!((Ziffern==16&&Buchstaben==0)||(Ziffern==18&&Buchstaben==0)||(Buchstaben>0&&Buchstaben<=18&&(Buchstaben+Ziffern)>=5&&(Buchstaben+Ziffern)<=18));if(btnGS.disabled){btnGS.className="synwaybtn inaktiv"}else{btnGS.className="synwaybtn"}}}}function GSUSe(){var txtGS,btnGS;txtGS=document.getElementById("idUseGutschein");btnGS=document.getElementById("idBtnGutschein");if(btnGS){if(txtGS){var GSCode=txtGS.value;txtGS.value="";PageMethods.GSUse("Bestellung",GSCode,"KTRANS_Warenkorb_DIV",AjaxGS_callback,onFailed,ctxDummy);GSCheck()}}return false}function AjaxGS_callback(html){var div;if(html!=null){if(html[1]!=""){ShowAlert(html[1])}if(html[0]!=""){div=document.getElementById("KTRANS_Warenkorb_DIV");if(div){txtGS=document.getElementById("idUseGutschein");txtGS.Value="";div.innerHTML=html[0]}}}}function SetCheckboxesFromNS(cbs,v){var i;i=0;v=v.toLowerCase();if(cbs){while(cbs[i]){cbs[i].checked=v.indexOf(cbs[i].value.toLowerCase())>=0;i++}}}function PDSearchKey(e){if(null==e){e=window.event}if(e.keyCode==13){document.getElementById("psearch").click();return false}}function onZielDatum_Callback(html){if(document.getElementById("ajaxout")){document.getElementById("ajaxout").innerHTML=html[0]}if(document.getElementById("SelEinlass")){if(html[1]!=""){document.getElementById("SelEinlass").innerHTML=html[1]}}if(html[2]!=""){if(document.getElementById("divSitze")){document.getElementById("divSitze").innerHTML=html[2]}}if(html[3]!=""){if(document.getElementById("sitzplan")){document.getElementById("sitzplan").src=html[3]}}if(html[4]!=""){if(document.getElementById("Sitzplanzeitpunkt")){document.getElementById("Sitzplanzeitpunkt").innerHTML=html[4]}}EnableSitzplan();EnableSitzplanpreise();SizeWarenkorb();SizeTickets()}function KalSel(tag){if(document.getElementById("KalSelInput").value!=""){if(document.getElementById(document.getElementById("KalSelInput").value)){document.getElementById(document.getElementById("KalSelInput").value).className=document.getElementById(document.getElementById("KalSelInput").value).className.replace("tdThisSel","tdThisDate")}}document.getElementById("KalSelInput").value=tag;document.getElementById(tag).className=document.getElementById(tag).className.replace("tdThisDate","tdThisSel");tag=tag.substring(3,11);tag=tag.substring(6,8)+"."+tag.substring(4,6)+"."+tag.substring(0,4);if(document.getElementById("EinlassSelInput")){var einlass;einlass=document.getElementById("EinlassSelInput").value;einlass=einlass.substring(7,11);einlass=einlass.substring(0,2)+":"+einlass.substring(2,4);tag=tag+" "+einlass}ProtectSitzplan();ProtectSitzplanpreise();PageMethods.onZielDatum(document.getElementById("KalSelSub").value,tag,onZielDatum_Callback,onFailed,ctxDummy)}function ProtectSitzplan(){var h=document.getElementById("HideSaalplan");var s=document.getElementById("divSitze");if(h){if(s){h.style.position="absolute";var fieldPos=new positionInfo(s);var x=fieldPos.getElementLeft();var y=fieldPos.getElementTop();var w=fieldPos.getElementRight()-x;h.style.zIndex="11";h.style.top=parseInt(y)+"px";h.style.left=parseInt(x)+"px";h.style.width=parseInt(w)+"px";h.style.height=s.style.height;try{h.style.backgroundColor="rgba(200, 200, 200, 0.5)"}catch(e){}h.style.display="block"}}}function EnableSitzplan(){var h=document.getElementById("HideSaalplan");if(h){h.style.display="none"}}function ProtectSitzplanpreise(){var h=document.getElementById("HideSaalplanpreise");var s=document.getElementById("ajaxout");if(h){if(s){h.style.position="absolute";var fieldPos=new positionInfo(s);var x=fieldPos.getElementLeft();var y=fieldPos.getElementTop();var w=fieldPos.getElementRight()-x;h.style.zIndex="11";h.style.top=parseInt(y)+"px";h.style.left=parseInt(x)+"px";h.style.width=parseInt(w)+"px";h.style.height=s.style.height;try{h.style.backgroundColor="rgba(200, 200, 200, 0.5)"}catch(e){}h.style.display="block"}}}function EnableSitzplanpreise(){var h=document.getElementById("HideSaalplanpreise");if(h){h.style.display="none"}}
38function EinlassSel(einlass){var tag;if(document.getElementById("EinlassSelInput").value!=""){if(document.getElementById("SPAN"+document.getElementById("EinlassSelInput").value)){document.getElementById("SPAN"+document.getElementById("EinlassSelInput").value).className="EinlassBEZ"}}document.getElementById("EinlassSelInput").value=einlass;document.getElementById("SPAN"+einlass).className="SEL_EinlassBEZ";einlass=einlass.substring(7,11);einlass=einlass.substring(0,2)+":"+einlass.substring(2,4);tag=document.getElementById("KalSelInput").value;tag=tag.substring(3,11);tag=tag.substring(6,8)+"."+tag.substring(4,6)+"."+tag.substring(0,4);ProtectSitzplan();ProtectSitzplanpreise();PageMethods.onZielDatum(document.getElementById("KalSelSub").value,tag+" "+einlass,onZielDatum_Callback,onFailed,ctxDummy)}function ClickKartentypZD(o,SubName,KartenID,ID,zd){o.style.visibility="hidden";PageMethods.onClickKartentypZD(SubName,KartenID,ID,zd,onClickKartentyp_Callback,onFailed,ctxDummy)}function ClickKartentypBlockZD(o,SubName,Block,ID,zd){o.style.visibility="hidden";PageMethods.onClickKartentypImBlockZD(SubName,Block,ID,zd,onClickKartentypImBlock_Callback,onFailed,ctxDummy)}function KalOver(tag){document.getElementById(tag).className=document.getElementById(tag).className.replace(" tdThisOver","")+" tdThisOver"}function KalOut(tag){document.getElementById(tag).className=document.getElementById(tag).className.replace(" tdThisOver","")}function ClickKartentypImBlockZD(o,SubName,Block,ID,ZielDatum){o.style.visibility="hidden";PageMethods.onClickKartentypImBlockZD(SubName,Block,ID,ZielDatum,onClickKartentypImBlock_Callback,onFailed,ctxDummy)}function ClientHeight(){var gesamt;if("innerHeight" in window){gesamt=window.innerHeight}else{gesamt=document.documentElement.clientHeight}return gesamt}function ClientWidth(){var gesamt;if("innerWidth" in window){gesamt=window.innerWidth}else{gesamt=document.documentElement.clientWidth}return gesamt}function TRKALClick(tr){var NewDisplay="none";if(tr.id=="TRCALEXTEND"){t=tr.previousSibling;while(t){if(t.id){t.className="trThisMonth TRNOSEL"}else{t.style.display="none"}t=t.previousSibling}PageMethods.onKalenderExtend(document.getElementById("KalSelSub").value,onKalenderExtend_Callback,onFailed,ctxDummy)}else{if(tr.className=="trThisMonth TRSEL"){return}tr.className="trThisMonth TRSEL";t=tr.nextSibling;while(t){if(t.id&&t.id!="TRCALEXTEND"){t.className="trThisMonth TRNOSEL"}else{if(!t.id){t.style.display="none"}}t=t.nextSibling}t=tr.previousSibling;while(t){if(t.id){t.className="trThisMonth TRNOSEL"}else{t.style.display="none"}t=t.previousSibling}var t=tr.nextSibling;if(t){if(t.style.display=="none"){NewDisplay=""}}while(t){t.style.display=NewDisplay;t=t.nextSibling;if(t){if(t.id){t=null}}}}}function onKalenderExtend_Callback(html){if(html[0]!=""){ShowAlert(html[0]);return}if(html[1]!=""){var tr=document.getElementById("TRCALEXTEND");if(tr){var p=tr.parentNode;$("#TRCALEXTEND").remove();p.innerHTML=p.innerHTML+html[1]}}}function serializeXmlNode(xmlNode){if(typeof window.XMLSerializer!="undefined"){return(new window.XMLSerializer()).serializeToString(xmlNode)}else{if(typeof xmlNode.xml!="undefined"){return xmlNode.xml}}return""}function serializeImgFromCanvas(CanvasId,InputId){var c,i,imgStr;c=document.getElementById(CanvasId);if(!c){return}c=document.getElementById(c.value);if(!c){return}i=document.getElementById(InputId);if(!i){return}imgStr=c.toDataURL("image/jpeg");imgStr=imgStr.replace("data:image/jpeg;base64,","");i.value=imgStr}function EnableIncludedJS(obj){var c="";var ob=obj.getElementsByTagName("script");for(var i=0;i<ob.length;i++){if(ob[i].text!==undefined&&ob[i].text!==null&&ob[i].text!==""){c+=ob[i].text}if(ob[i].src!==undefined&&ob[i].src!==null&&ob[i].src!==""){if((typeof jQuery!=="undefined")){$("head").append('<script type="text/javascript" src="'+ob[i].src+'"></script>');ob[i].src=""}}}var s=document.createElement("script");s.type="text/javascript";s.text=c;document.getElementsByTagName("head")[0].appendChild(s);SynwayInitJQueryUI()}function OnFilterSubmit(){try{document.SPDBForm.suchen.focus()}catch(e){}}function AjaxContentParts_callback(html,InstanzID,methodName){if(html!=null){var div;if(html[0]==""){if(html[1]!=""&&html[1]!=null){ShowAlert(html[1])}}else{for(i=1;i<html.length;i+=2){if(html[i]!=""){if(html[i]=="!"){ShowAlert("Bitte aktivieren Sie Cookies, um diese Seite nutzen zu können!")}else{div=document.getElementById(html[i]);if(div){div.innerHTML=html[i+1];EnableIncludedJS(div)}}}}if(html[0]=="1"){window.setTimeout("PageMethods.GetContentParts('"+InstanzID+"', AjaxContentParts_callback, onFailed, '"+InstanzID+"');",1000)}}}}function CheckUIDate(strDate,inputobj){var ctrl=inputobj.input[0];checkdate(inputobj.input[0]);if(document.createEvent&&ctrl.dispatchEvent){var evt=document.createEvent("HTMLEvents");evt.initEvent("change",true,true);ctrl.dispatchEvent(evt)}else{if(ctrl.fireEvent){ctrl.fireEvent("onchange")}}}function CheckUITime(strDate,inputobj){var ctrl=inputobj.input[0];checktime(inputobj.input[0]);if(document.createEvent&&ctrl.dispatchEvent){var evt=document.createEvent("HTMLEvents");evt.initEvent("change",true,true);ctrl.dispatchEvent(evt)}else{if(ctrl.fireEvent){ctrl.fireEvent("onchange")}}}function SynwayInitJQueryUI(PreSelector){if(PreSelector===undefined||PreSelector===null){PreSelector=""}if(typeof jQuery!=="undefined"){if(typeof jQuery.ui!=="undefined"){var TPReg={timeOnlyTitle:"Zeit wählen",timeText:"Zeit",hourText:"Stunde",minuteText:"Minute",secondText:"Sekunde",millisecText:"Millisekunde",microsecText:"Mikrosekunde",timezoneText:"Zeitzone",timeFormat:"HH:mm:ss",amNames:["vorm.","AM","A"],pmNames:["nachm.","PM","P"],clearText:"löschen",clearStatus:"aktuelles Datum löschen",closeText:"Fertig",closeStatus:"ohne Ãnderungen schlieÃen",prevText:"<zurück",prevStatus:"letzten Monat zeigen",nextText:"Vor>",nextStatus:"nächsten Monat zeigen",currentText:"heute/jetzt",currentStatus:"",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthStatus:"anderen Monat anzeigen",yearStatus:"anderes Jahr anzeigen",weekHeader:"KW",weekStatus:"Woche des Monats",dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],dayStatus:"Setze DD als ersten Wochentag",dateStatus:"Wähle D, M d",dateFormat:"dd.mm.yy",initStatus:"Wähle ein Datum",isRTL:false,minDate:new Date(1900,1-1,1),maxDate:new Date(2199,12-1,31),onClose:CheckUI
38Date,showWeek:true,firstDay:1,numberOfMonths:1,showButtonPanel:true,controlType:SynwayTimeControl,changeMonth:true,changeYear:true,changeSecond:true,yearRange:"1900:+5"};$(PreSelector+"INPUT.SWDTPicker").datepicker(TPReg);$(PreSelector+"INPUT.SWDTimePicker").datetimepicker(TPReg);var TimePReg={timeOnlyTitle:"Zeit wählen",timeText:"Zeit",hourText:"Stunde",minuteText:"Minute",secondText:"Sekunde",millisecText:"Millisekunde",microsecText:"Mikrosekunde",timezoneText:"Zeitzone",timeFormat:"HH:mm",amNames:["vorm.","AM","A"],pmNames:["nachm.","PM","P"],clearText:"löschen",clearStatus:"aktuelles Datum löschen",closeText:"Fertig",closeStatus:"ohne Ãnderungen schlieÃen",prevText:"<zurück",prevStatus:"letzten Monat zeigen",nextText:"Vor>",nextStatus:"nächsten Monat zeigen",currentText:"heute/jetzt",currentStatus:"",isRTL:false,onClose:CheckUITime,showButtonPanel:true,controlType:SynwayTimeControl};$(PreSelector+"INPUT.SWTimePicker").timepicker(TimePReg);var DOBInitData={dayDefault:"Tag",monthDefault:"Monat",yearDefault:"Jahr",monthNames:TPReg.monthNames};InitDOBPicker(DOBInitData,PreSelector);$(PreSelector+".ImgTooltip").tooltip({show:{effect:"slideDown",delay:50},hide:{effect:"slideUp",delay:50}});var btns=$(".ResponsiveBody "+PreSelector+"input[type=submit],.ResponsiveBody "+PreSelector+"input[type=reset],.ResponsiveBody"+PreSelector+" button,.ResponsiveBody "+PreSelector+".synwaybtn");PrepareButtonTooltips(btns);if(PreSelector===""){AddCheckAllToCheckboxes();$(".ResponsiveBody input[type=submit],.ResponsiveBody input[type=reset],.ResponsiveBody button,.ResponsiveBody .synwaybtn,#section-1 #idTDContent .AngebotsElement .InWKBtn,#section-1 #idTDContent .AngebotsElement .InWKLink, .SWNAV_ResaleVeranstaltung .SWDataTable .SWTableCell a").button()}}}}function WindowWidthLimit(w){if(w>$(window).width()-20){w=$(window).width()-20}return w}function ShowAlert(html,focusThis,NewTitle){var h=420;var maxh=620;if(NewTitle===undefined){NewTitle="Achtung";var h=220;var maxh=420}if(typeof jQuery!=="undefined"){if(typeof jQuery.ui!=="undefined"){var AlertDialog=$("#AlertDialog");AlertDialog.html(html);AlertDialog.dialog({title:NewTitle,modal:true,closeOnEscape:true,width:WindowWidthLimit(320),height:h,draggable:true,buttons:{Ok:function(){$(this).dialog("close");if(focusThis){try{focusThis.focus()}catch(e){}try{focusThis.select()}catch(e){}}}},show:{effect:"clip",duration:200},hide:{effect:"clip",duration:200}});return false}}if(focusThis){alert(2);focusThis.focus();focusThis.select()}alert(html)}function ShowDelConfirm(html,DelButton,QMAUrl){if(typeof jQuery!=="undefined"){if(typeof jQuery.ui!=="undefined"){var AlertDialog=$("#AlertDialog");AlertDialog.html(html);AlertDialog.dialog({title:"Nachfrage zum Löschen",modal:true,closeOnEscape:true,width:WindowWidthLimit(300),height:200,maxHeight:420,draggable:true,buttons:{Ok:function(){$(this).dialog("close");if(QMAUrl&&QMAUrl!=""){NavigateToUrl(QMAUrl)}else{if(document.SPDBForm.del){document.SPDBForm.onsubmit=DoNoCheck;document.SPDBForm.del.onclick=null;document.SPDBForm.del.click()}else{document.SPDBForm[0].onsubmit=DoNoCheck;document.SPDBForm[0].del.onclick=null;document.SPDBForm[0].del.click()}}},Abbruch:function(){$(this).dialog("close")}},show:{effect:"clip",duration:200},hide:{effect:"clip",duration:200}});if(typeof event!=="undefined"){if(typeof event.preventDefault!=="undefined"){event.preventDefault()}else{if(typeof event.returnValue!=="undefined"){event.returnValue=false}}}return false}}}function ShowRShopWarenkorb2(){var Schliessen="SchlieÃen";if($("#WarenkorbDialogBtnContainer button span.WarenkorbName").length&&$("#WarenkorbDialogBtnContainer button span.WarenkorbName").css("fontFamily").substring(0,7)=="TheSans"){Schliessen="Schliessen"}var dlgOptions={modal:true,closeOnEscape:true,close:function(event,ui){RemoveTickettypeInWKMenu()},width:WindowWidthLimit(420),height:420,maxHeight:420,buttons:{},draggable:true,show:{effect:"clip",duration:200},hide:{effect:"clip",duration:200}};dlgOptions.buttons[Schliessen]=function(){$(this).dialog("close");RefreshWKButton(0)};dlgOptions.buttons["Zur Kasse"]=function(){NavigateToUrl(document.getElementById("ZurKasseUrl").value)};if(!$.ui.dialog.prototype._allowInteractionRemapped){$.ui.dialog.prototype._allowInteraction=function(event){return true};$.ui.dialog.prototype._allowInteractionRemapped=true}StartHiddenWKTrackingScript();$("#WarenkorbDialog").dialog(dlgOptions)}function ShowShopSaalplanhilfe(){var Schliessen="SchlieÃen";if($("#WarenkorbDialogBtnContainer button span.WarenkorbName").css("fontFamily").substring(0,7)=="TheSans"){Schliessen="Schliessen"}var dlgOptions={modal:true,closeOnEscape:true,width:WindowWidthLimit(420),height:420,maxHeight:420,draggable:true,buttons:{},show:{effect:"clip",duration:200},hide:{effect:"clip",duration:200}};dlgOptions.buttons[Schliessen]=function(){$(this).dialog("close");RefreshWKButton(0)};$("#SaalplanhilfeDialog").dialog(dlgOptions)}function ResponsiveLayout(){SetupLayout()}function MyXOffset(){if(window.pageXOffset){return window.pageXOffset}return(document.body.scrollLeft||document.documentElement.scrollLeft)}function MyYOffset(){if(window.pageXOffset){return window.pageYOffset}return(document.body.scrollTop||document.documentElement.scrollTop)}function NavigateToUrl(url){if(url.substring(0,4)=="http"){window.top.location.href=url}else{var base=document.getElementsByTagName("base")[0].href;window.top.location.href=base+url}}function NavigateToUrlWithParams(url,Params){if(Params){url=url+((url.indexOf("?")>-1)?"&":"?")+Params}if(url.substring(0,4)=="http"){window.location.href=url}else{var base=document.getElementsByTagName("base")[0].href;window.location.href=base+url}}function ShowKartypInfo(KartypID,SubName){PageMethods.GetReadonlyRecord(SubName,KartypID,AjaxGetKartypInfo_callback,onFailed,KartypID);return false}
38function AjaxGetKartypInfo_callback(html,id,methodName){if(html!=null){if(html[0]==null||html[0]==""){ShowAlert(html[1],null,"Ticketinformationen")}else{if(html[0]!=""){ShowAlert(html[0])}}}}function CheckEmailAdress(o,feldname,ReiterZahl){if(o.value!=""){var ss;ss=String(o.value);var regex=new RegExp(/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/g);if(!regex.test(ss)){alert("Bitte geben Sie bei "+feldname+" eine gültige E-Mail-Adresse ein!");if(ReiterZahl>0){ReiterSelect(ReiterZahl)}o.focus();return false}return true}return true}; 39/*js/ajax.4.27.js*/var SOAP_Timer;var SOAP_Timer_Seconds_left;var SOAP_Array;function AjaxMakeElementVisible(Feld){var SOAP_Array=Feld.split(",");for(i=0;i<SOAP_Array.length;i++){if(document.getElementById(SOAP_Array[i])===null){alert("Das Feld "+SOAP_Array[i]+" existiert nicht! (GroÃ/Kleinschreibung??)")}else{var div=document.getElementById(SOAP_Array[i]);var classContent=div.className;div.removeAttribute("hidden");div.className=classContent.replace("hidden","").trim();if((SOAP_Array[i]).indexOf("_Timer")>=0){SOAP_Timer_Seconds_left=div.innerHTML}}}SOAP_Timer=window.setInterval(AjaxSOAPTimer,5000,Feld)}function SOAPStopTimer(){window.clearInterval(SOAP_Timer);SOAP_Timer=null}function AjaxSOAPTimer(Feld){SOAP_Timer_Seconds_left-=5;var div;SOAP_Array=Feld.split(",");if(SOAP_Timer_Seconds_left<=0){SOAPStopTimer();for(i=0;i<SOAP_Array.length;i++){if(document.getElementById(SOAP_Array[i])===null){alert("Das Feld "+SOAP_Array[i]+" existiert nicht! (GroÃ/Kleinschreibung??)")}else{div=document.getElementById(SOAP_Array[i]);if(div.id.indexOf("Button")>0){div.classList.add("hidden")}else{div.setAttribute("hidden","True")}}}}else{for(i=0;i<SOAP_Array.length;i++){if(document.getElementById(SOAP_Array[i])!==null){div=document.getElementById(SOAP_Array[i]);if(div.id.indexOf("_Timer")>=0){div.innerHTML=SOAP_Timer_Seconds_left}}}}}function AjaxSOAP(sub,id,request,Feld,ergebnisfeld){SOAPStopTimer();if(document.getElementById(Feld)===null){alert("Das Feld "+Feld+" existiert nicht! (GroÃ/Kleinschreibung??)")}else{PageMethods.DoExternalSoapRequest(sub,id,request,Feld,ergebnisfeld,AjaxSOAP_Callback,onFailed,ctxDummy)}}function AjaxSOAP_Callback(html,ctx,methodName){var div;if(html!==null){if(html[5]!==null&html[5]!==""){AjaxMakeElementVisible(html[5])}if(html[0]!==null&html[0]!==""){alert(html[0])}else{div=document.getElementById(html[2]);if(div){div.value=html[1];div.innerHTML=html[1]}else{window.alert(html[2]);window.location.href=window.location.href.replace("AppID=","apppid=")}div=document.getElementById(html[2]+"_ausgabe");if(div){div.innerHTML=html[1]}}}}function AjaxNS(sub,id,ns,value,Ziele){var Value,obj;var Ziel;Ziel=0;while(Ziel<Ziele.length){obj=Ziele[Ziel+1];try{Ziele[Ziel+1]=obj.value}catch(ex){Ziele[Ziel+1]=""}Ziel+=3}PageMethods.Nachschlagen(sub,id,ns,value,Ziele,AjaxNS_callback,onFailed,ctxDummy)}var nsfocused;function AjaxNS_callback(html,ctx,methodName){nsfocused=0;var i;var div;if(html!=null){if(html[0]==null||html[0]==""||html[0]=="KO"){if(html[1]!==null&&html[1]!==""){alert(html[1])}}for(i=2;i<html.length;i+=2){if(html[i]){div=document.getElementById(html[i]+"AJAX");if(div){div.innerHTML=html[i+1]}}}for(i=2;i<html.length;i+=2){if(html[i]){div=document.getElementById(html[i]+"AJAX");if(div){try{eval("document.SPDBForm."+html[i]+"_NSB.value=document.SPDBForm."+html[i]+"_NSB.value;")}catch(ex){try{eval("onChangeOf"+html[i]+"()")}catch(ex){}}if(i>2){setTimeout("try {if(!nsfocused){document.SPDBForm."+html[i]+".focus();nsfocused=1;}} catch(ex){};",200+i*10)}}}}if(!(html[0]==null||html[0]=="")){setTimeout("try {if(!nsfocused||1){document.SPDBForm."+html[2]+".focus();}} catch(ex){};",20)}}}function AjaxRefreshContent(sub,id){div=document.getElementById("div"+sub);if(div){div.style.backgroundColor="lightyellow";div.style.borderColor="red";div.style.borderStyle="solid";div.style.borderWidth="0px 10px 0px 0px"}PageMethods.RefreshContent(sub,id,AjaxRefreshContent_callback,onFailed,sub)}function AjaxRefreshContent_callback(html,sub,methodName){if(html!=null){var div;div=document.getElementById("div"+sub);if(div){div.innerHTML=html;div.style.backgroundColor="transparent";div.style.borderStyle="none"}}}function AjaxRefreshContentParts(sub,id){div=document.getElementById("div"+sub);if(div){div.style.backgroundColor="lightyellow";div.style.borderColor="red";div.style.borderStyle="solid";div.style.borderWidth="0px 10px 0px 0px"}PageMethods.RefreshContentParts(sub,id,AjaxRefreshContentParts_callback,onFailed,sub)}function AjaxRefreshContentParts_callback(html,sub,methodName){if(html!=null){var div;if(html[0]==""){div=document.getElementById("div"+sub);if(div){div.innerHTML=html[1]}}else{for(i=0;i<html.length;i+=2){if(html[i]!=""){div=document.getElementById(html[i]);if(div){div.innerHTML=html[i+1]}}}}
39div=document.getElementById("div"+sub);if(div){div.style.backgroundColor="transparent";div.style.borderStyle="none"}}}function isArray2(obj){try{return obj[0].checked.toString()!="undefined"}catch(e){return false}}function AjaxRefresh(Ziele){var Value,obj;var Ziel,Scroll;var Scroll;Scroll=new Array(Ziele.length);div=document.getElementById(Ziele[2]+"AJAX");try{$(div).addClass("RefreshingViaAjax")}catch(exc){div.style.backgroundColor="lightyellow";div.style.borderColor="red";div.style.borderStyle="solid";div.style.borderWidth="0px 10px 0px 0px";div.style.visible="none"}Scroll[2]=Ziele[2];Ziel=3;var d;while(Ziel<Scroll.length){try{Scroll[Ziel]=0;Scroll[Ziel+1]=0;Scroll[Ziel+2]=Ziele[Ziel+2];div=document.getElementById(Ziele[Ziel+2]+"AJAX");try{$(div).addClass("RefreshingViaAjax")}catch(exc){div.style.backgroundColor="lightyellow";div.style.borderColor="red";div.style.borderStyle="solid";div.style.borderWidth="0px 10px 0px 0px"}d=document.getElementById(Scroll[Ziel+2]+"_DIV");if(d){if(d.style.display=="none"){Scroll[Ziel]=-1000}else{Scroll[Ziel]=d.scrollTop}Scroll[Ziel+1]=d.scrollLeft}}catch(e){}Ziel+=3}PageMethods.Refresh(Ziele,AjaxRefresh_callback,onFailed,Scroll)}function AjaxRefresh_callback(html,Ziele,methodName){if(html!=null){var i;var div,d;for(i=0;i<html.length;i++){div=document.getElementById(Ziele[(i+1)*3+2]+"AJAX");if(div){try{$(div).removeClass("RefreshingViaAjax")}catch(exc){div.style.backgroundColor="transparent";div.style.borderStyle="none"}if(html[i]!=null){div.innerHTML=html[i];d=document.getElementById(Ziele[(i+1)*3+2]+"_DIV");
39if(d){if(Ziele[(i+1)*3]==-1000){d.style.display="none";if(document.getElementById(Ziele[(i+1)*3+2]+"_QM")){document.getElementById(Ziele[(i+1)*3+2]+"_QM").style.display=="none"}}else{window.setTimeout("document.getElementById('"+Ziele[(i+1)*3+2]+"_DIV').scrollTop="+Ziele[(i+1)*3],i*5)}window.setTimeout("document.getElementById('"+Ziele[(i+1)*3+2]+"_DIV').scrollLeft="+Ziele[(i+1)*3+1],(i+1)*5)}}}}try{eval("AfterChangeOf"+Ziele[2]+"();")}catch(e){}div=document.getElementById(Ziele[2]+"AJAX");try{$(div).removeClass("RefreshingViaAjax")}catch(exc){div.style.backgroundColor="transparent";div.style.borderStyle="none"}}}function AjaxRefreshObj(Ziele){AjaxRefresh($.makeArray(Ziele))}function AjaxINWK(sub,PID,dictid,divname){var vb,v,o1,o2,o3,o4,o5,o6,o7,o8,o9,o10,anmerkung,ID1,ID2,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,vanmerkung,c,co;c="1";ID1="";ID2="";ov3="";ov4="";ov5="";ov6="";ov7="";ov8="";ov9="";ov10="";if(document.SPDBForm){v=document.SPDBForm.PD_Variante;o1=document.SPDBForm.PD_Option1;o2=document.SPDBForm.PD_Option2;o3=document.SPDBForm.PD_Option3;o4=document.SPDBForm.PD_Option4;o5=document.SPDBForm.PD_Option5;o6=document.SPDBForm.PD_Option6;o7=document.SPDBForm.PD_Option7;o8=document.SPDBForm.PD_Option8;o9=document.SPDBForm.PD_Option9;o10=document.SPDBForm.PD_Option10;anmerkung=document.SPDBForm.PD_Anmerkung;co=document.SPDBForm.menge}if(co){if(co.value!=""){c=co.value}}if(v){if(v.value!=""){PID=v.value}else{vb=document.getElementById("PD_Variantenbezeichnung");if(vb&&v.style.display!="none"){v.focus();alert("Bitte wählen Sie eine "+vb.innerHTML+"!");return}}}if(o1){if(o1.value!=""){ID1=o1.value}}if(o2){if(o2.value!=""){ID2=o2.value}}if(o3){if(o3.value!=""){if(o3.selectedIndex){ov3=o3.options[o3.selectedIndex].innerHTML}else{ov3=o3.value}}}if(o4){if(o4.value!=""){if(o4.selectedIndex){ov4=o4.options[o4.selectedIndex].innerHTML}else{ov4=o4.value}}}if(o5){if(o5.value!=""){if(o5.selectedIndex){ov5=o5.options[o5.selectedIndex].innerHTML}else{ov5=o5.value}}}if(o6){if(o6.value!=""){ov6=o6.value}}if(o7){if(o7.value!=""){ov7=o7.value}}if(o8){if(o8.value!=""){ov8=o8.value}}if(o9){if(o9.value!=""){ov9=o9.value}}if(o10){if(o10.value!=""){ov10=o10.value}}vanmerkung="";if(anmerkung){if(anmerkung.value!=""){vanmerkung=anmerkung.value}}PageMethods.INWK(sub,PID,ID1,ID2,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,vanmerkung,c,dictid,divname,AjaxWK_callback,onFailed,ctxDummy)}function AjaxChangeAnmerkung(sub,id,Opt1ID,Opt2ID,vo3,vo4,vo5,vo6,vo7,vo8,vo9,vo10,divname,Anmerkung){PageMethods.ChangeAnmerkung(sub,id,Opt1ID,Opt2ID,vo3,vo4,vo5,vo6,vo7,vo8,vo9,vo10,Anmerkung,divname,AjaxWK_callback,onFailed,ctxDummy)}function AjaxChangeWK(sub,id,Opt1ID,Opt2ID,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,divname,v){if(v==""||v=="0"){PageMethods.OUTWK(sub,id,Opt1ID,Opt2ID,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,divname,AjaxWK_callback,onFailed,ctxDummy)}else{PageMethods.ChangeWK(sub,id,Opt1ID,Opt2ID,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,v,divname,AjaxWK_callbackWithRefreshOnError,onFailed,ctxDummy)}}function AjaxChangeWKR(sub,id,Opt1ID,Opt2ID,vo3,vo4,vo5,vo6,vo7,vo8,vo9,vo10,divname,v){ProtectWarenkorb();if(v==""||v=="0"){PageMethods.OUTWK(sub,id,Opt1ID,Opt2ID,vo3,vo4,vo5,vo6,vo7,vo8,vo9,vo10,divname,AjaxWKR_callback,onFailed,ctxDummy)}else{PageMethods.ChangeWK(sub,id,Opt1ID,Opt2ID,vo3,vo4,vo5,vo6,vo7,vo8,vo9,vo10,v,divname,AjaxWKR_callback,onFailed,ctxDummy)}}function AjaxOUTWK(sub,id,Opt1ID,Opt2ID,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,divname){PageMethods.OUTWK(sub,id,Opt1ID,Opt2ID,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,divname,AjaxWK_callback,onFailed,ctxDummy)}function AjaxResOUTWK(sub,id,Opt1ID,Opt2ID,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,divname){if(confirm("Dieses Ticket war für sie reserviert - wollen Sie wirklich auf die Reservierung verzichten?")){PageMethods.OUTWK(sub,id,Opt1ID,Opt2ID,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,divname,AjaxWK_callback,onFailed,ctxDummy)}}function AjaxWK_callback(html,ctx,methodName){var div;if(html!=null){if(html[0]==null||html[0]==""){alert(html[1])}else{div=document.getElementById(html[2]);if(div){div.innerHTML=html[3]}div=document.getElementById(html[0]);if(div){div.innerHTML=html[1]}else{window.location.href=window.location.href.replace("AppID=","apppid=")}}}if(typeof loadSocialSharePricvacy=="function"){loadSocialSharePricvacy()}}function AjaxWK_callbackWithRefreshOnError(html,ctx,methodName){var div;if(html!=null){if(html[0]==null||html[0]==""){alert(html[1]);if(html.length>2){div=document.getElementById(html[2]);if(div){div.innerHTML=html[3]}else{window.location.href=window.location.href.replace("AppID=","apppid=")}}else{window.location.href=window.location.href.replace("AppID=","apppid=")}}else{div=document.getElementById(html[2]);if(div){div.innerHTML=html[3]}div=document.getElementById(html[0]);if(div){div.innerHTML=html[1]}else{window.location.href=window.location.href.replace("AppID=","apppid=")}}}if(typeof loadSocialSharePricvacy=="function"){loadSocialSharePricvacy()}}function POPPreis(id,v,Sub,DivName,PID){var o;o=document.getElementById(id);if(o){if(v){if(v.length==36){o.src="PODownload.aspx?SUB="+Sub+"&id="+v}}}return PPreis(Sub,DivName,PID)}function POPPreisR(id,radio,Sub,DivName,PID){var o,v;v=radio.value;o=document.getElementById(id);if(o){if(v){if(v.length==36){o.src="PODownload.aspx?SUB="+Sub+"&id="+v}}}return PPreis(Sub,DivName,PID)}function RadioClickR(id,value){var hiddenfield=document.getElementById(id);hiddenfield.value=value;$(hiddenfield).change()}function PPreis(Sub,DivName,PID){var v,o1,o2,o3,o4,o5,ID1,ID2,ov3,ov4,ov5,i;ID1="";ID2="";ov3="";ov4="";ov5="";v=document.SPDBForm.PD_Variante;o1=document.SPDBForm.PD_Option1;o2=document.SPDBForm.PD_Option2;o3=document.SPDBForm.PD_Option3;o4=document.SPDBForm.PD_Option4;o5=document.SPDBForm.PD_Option5;if(v){if(v.value!=""){PID=v.value}}if(o1){if(!o1.tagName){for(i=0;i<o1.length;i++){if(o1[i].checked){if(o1[i].value!=""){ID1=o1[i].value}}}}else{if(o1.value!=""){ID1=o1.value}}}if(o2){if(!o2.tagName){for(i=0;i<o2.length;i++){if(o2[i].checked){if(o2[i].value!=""){ID2=o2[i].value}}}}else{if(o2.value!=""){ID2=o2.value}}}if(o3){if(!o3.tagName){for(i=0;i<o3.length;i++){if(o3[i].checked){if(o3[i].value!=""){ov3=o3[i].value}}}}else{if(o3.value!=""){ov3=o3.value}}}if(o4){if(!o4.tagName){for(i=0;i<o4.length;i++){if(o4[i].checked){if(o4[i].value!=""){ov4=o4[i].value}}}}else{if(o4.value!=""){ov4=o4.value}}}if(o5){if(!o5.tagName){for(i=0;i<o5.length;i++){if(o5[i].checked){if(o5[i].value!=""){ov5=o5[i].value}}}}else{if(o5.value!=""){ov5=o5.value}}}PageMethods.PPreis(Sub,PID,ID1,ID2,ov3,ov4,ov5,"","","","","",DivName,AjaxPPreis_callback,onFailed,ctxDummy)}function WithJQueryUI(){if(typeof jQuery!=="undefined"){if(typeof jQuery.ui!=="undefined"){return(true)}}return(false)}function AjaxPPreis_callback(html,ctx,methodName){var div;if(html!=null){if(html[0]==null||html[0]==""){alert(html[1])}else{div=document.getElementById(html[0]);div.innerHTML=html[1];if(WithJQueryUI()){$("#section-1 #idTDContent div.EFInWK .InWKBtn").button()}}}if(typeof loadSocialSharePricvacy=="function"){loadSocialSharePricvacy()}}function PDimChange(PDimID,PDimNr,Value,radio){if(radio!=="undefinied"){if(document.getElementById("PDim"+PDimNr).value==Value&&Value!=""){radio.checked=false;Value=""}}document.getElementById("PDim"+PDimNr).value=Value;PDimVariante(PDimID,PDimNr)}function ToggleDimD(PDimID,PDimNr){}
39function PDimVarianteServerRequest(Sub,PID,PDimDs,PDimID){var ctx,CurrentPDimDs;ctx=[Sub,PID];CurrentPDimDs="";for(i=0;i<PDimDs.length;i++){if(PDimDs[i]!=""){CurrentPDimDs=CurrentPDimDs+","+PDimDs[i]}}PageMethods.PDimVariante(Sub,PID,CurrentPDimDs,PDimVarianteServerRequest_callback,onFailed,ctx)}function PDimVarianteServerRequest_callback(html,ctx,methodName){var div;if(html!=null){if(html[0]==null||html[0]==""){alert(html[1])}else{div=document.getElementById(html[0]);div.innerHTML=html[1];if(WithJQueryUI()){$("#section-1 #idTDContent div.EFInWK .InWKBtn").button();$("#section-1 #idTDContent .DimensionsOptionen").buttonset()}}PPreis(ctx[0],"PD_BruttoPreisAJAX",ctx[1])}}function AjaxPaypalpaymentToPrintAtHome_callback(html,ctx,methodName){var div;if(html!=null){if(html[0]==null||html[0]==""){alert(html[1])}else{div=document.getElementById(html[0]);div.innerHTML=html[1];if(html.length<3||(html[2]===undefined||html[2]===null||html[2]==="ReAsk")){setTimeout("PageMethods.PaypalpaymentToPrintAtHome(AjaxPaypalpaymentToPrintAtHome_callback, onFailed, ctxDummy);",10000)}}}}function AjaxImmediatePaymentToPrintAtHome_callback(html,ctx,methodName){var div;if(html!=null){if(html[0]==null||html[0]==""){alert(html[1])}else{div=document.getElementById(html[0]);div.innerHTML=html[1];if(html.length<3||(html[2]===undefined||html[2]===null||html[2]==="ReAsk")){setTimeout("PageMethods.ImmediatePaymentToPrintAtHome(AjaxImmediatePaymentToPrintAtHome_callback, onFailed, ctxDummy);",10000)}}}}function AjaxWK_callback2(html,ctx,methodName){var div;if(html!=null){if(html[0]==null||html[0]==""){alert(html[1])}else{div=document.getElementById(html[0]);if(div){div.innerHTML=html[1];div=document.getElementById(html[2]);div.style.display="none"}else{window.location.href=window.location.href.replace("AppID=","apppid=")}}}}function AjaxWKR_callback2(html,PID,methodName){var div;EnableWarenkorb();if(html!=null){if(html[0]==null||html[0]==""){ShowAlert(html[1])}else{$("#"+html[0]).html(html[1]);div=document.getElementById(html[2]);div.style.display="none";RefreshWKButton(1,PID)}}}function AjaxResINWK(KID,IMGID){var sub,divname,WarenkorbDialogBtn;sub="ReservierteKarten";WarenkorbDialogBtn=document.getElementById("WarenkorbDialogBtn");if(WarenkorbDialogBtn){PageMethods.ResINWK(sub,KID,IMGID,AjaxWKR_callback2,onFailed,ctxDummy)}else{PageMethods.ResINWK(sub,KID,IMGID,AjaxWK_callback2,onFailed,ctxDummy)}}function AjaxResDelete(KID,IMGID){var sub,divname,WarenkorbDialogBtn;sub="ReservierteKarten";if(confirm("Dieses Ticket war für sie reserviert - wollen Sie wirklich auf die Reservierung verzichten bzw. Ihr Abonnement kündigen?")){PageMethods.ResDelete(sub,KID,IMGID,AjaxResDelete_callback,onFailed,ctxDummy)}}function AjaxResDeleteTK(KID,IMGID){var sub,divname,WarenkorbDialogBtn;sub="ReservierteKarten";if(confirm("Dieses Ticket war für sie reserviert - wollen Sie wirklich auf die Reservierung verzichten?")){PageMethods.ResDelete(sub,KID,IMGID,AjaxResDelete_callback,onFailed,ctxDummy)}}function AjaxResDelete_callback(html,PID,methodName){if(html!=null){if((html[0]==null||html[0]=="")&&(html[1]!="")){ShowAlert(html[1])}else{window.location.href=window.location.href.replace("AppID=","apppid=")}}}function ExtendAjaxRecordset(ElemID,SUB,PageID,StartRecord){var AjaxScriptHiddenFeld=$("#ReplaceViaAjax");if(AjaxScriptHiddenFeld.data("dis")!="on"){AjaxScriptHiddenFeld.data("dis","on");PageMethods.GetNextListpart(SUB,PageID,StartRecord,ExtendAjaxRecordset_callback,onFailed,ElemID)}}function ExtendAjaxRecordset_callback(html,ElemID,methodName){if(html!=null){if(html[0]==null||html[0]==""){if(html[1]!=""){ShowAlert(html[1])}}else{$("#"+ElemID).replaceWith(html[0]).find("script").each(function(){if(this.src!==undefined&&this.src!==""){$("head").append('<script type="text/javascript" src="'+this.src+'"></script>')}});$("#section-1 #idTDContent .AngebotsElement .InWKBtn,#section-1 #idTDContent .AngebotsElement .InWKLink, .SWNAV_ResaleVeranstaltung .SWDataTable .SWTableCell a").button()}}$("#ReplaceViaAjax").data("dis","off")}function AjaxINWKR(sub,PID,dictid,divname){var vb,v,o1,o2,o3,o4,o5,o6,o7,o8,o9,o10,anmerkung,ID1,ID2,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,vanmerkung,c,co;var CheckForForm=1;c="1";ID1="";ID2="";ov3="";ov4="";ov5="";ov6="";ov7="";ov8="";ov9="";ov10="";if(window.jQuery){if($("#PDINWK"+PID).closest("#idTopProdukte").length===1){CheckForForm=0}}if(document.SPDBForm){if(CheckForForm===1){v=document.SPDBForm.PD_Variante;o1=document.SPDBForm.PD_Option1;o2=document.SPDBForm.PD_Option2;o3=document.SPDBForm.PD_Option3;o4=document.SPDBForm.PD_Option4;o5=document.SPDBForm.PD_Option5;o6=document.SPDBForm.PD_Option6;o7=document.SPDBForm.PD_Option7;o8=document.SPDBForm.PD_Option8;o9=document.SPDBForm.PD_Option9;o10=document.SPDBForm.PD_Option10;anmerkung=document.SPDBForm.PD_Anmerkung;
39co=document.SPDBForm.menge}}if(co){if(co.value!=""){c=co.value}}if(v){if(v.value!=""){PID=v.value}else{vb=document.getElementById("PD_Variantenbezeichnung");if(vb&&v.style.display!="none"){v.focus();alert("Bitte wählen Sie eine "+vb.innerHTML+"!");return}}}if(o1){if(!o1.tagName){for(i=0;i<o1.length;i++){if(o1[i].checked){if(o1[i].value!=""){ID1=o1[i].value}}}}else{if(o1.value!=""){ID1=o1.value}}if(ID1.length<16){ID1=""}}if(o2){if(!o2.tagName){for(i=0;i<o2.length;i++){if(o2[i].checked){if(o2[i].value!=""){ID2=o2[i].value}}}}else{if(o2.value!=""){ID2=o2.value}}if(ID2.length<16){ID2=""}}if(o3){if(!o3.tagName){for(i=0;i<o3.length;i++){if(o3[i].checked){if(o3[i].value!=""){ov3=o3[i].value}}}}else{if(o3.value!=""){if(o3.selectedIndex){ov3=o3.options[o3.selectedIndex].innerHTML}else{ov3=o3.value}}}}if(o4){if(!o4.tagName){for(i=0;i<o4.length;i++){if(o4[i].checked){if(o4[i].value!=""){ov4=o4[i].value}}}}else{if(o4.value!=""){if(o4.selectedIndex){ov4=o4.options[o4.selectedIndex].innerHTML}else{ov4=o4.value}}}}if(o5){if(!o5.tagName){for(i=0;i<o5.length;i++){if(o5[i].checked){if(o5[i].value!=""){ov5=o5[i].value}}}}else{if(o5.value!=""){if(o5.selectedIndex){ov5=o5.options[o5.selectedIndex].innerHTML}else{ov5=o5.value}}}}if(o6){if(o6.value!=""){ov6=o6.value}}if(o7){if(o7.value!=""){ov7=o7.value}}if(o8){if(o8.value!=""){ov8=o8.value}}if(o9){if(o9.value!=""){ov9=o9.value}}if(o10){if(o10.value!=""){ov10=o10.value}}vanmerkung="";if(anmerkung){if(anmerkung.value!=""){vanmerkung=anmerkung.value}}PageMethods.INWK(sub,PID,ID1,ID2,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,vanmerkung,c,dictid,divname,AjaxWKR_callback,onFailed,PID)}function AjaxOUTWKR(sub,id,Opt1ID,Opt2ID,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,divname){if($("tr.IsPartOfPayment.NegativeSum.BPOS"+id).length>0){if(confirm("Wollen Sie wirklich auf die Einlösung dieses Gutscheines verzichten?")){ProtectWarenkorb();if($("tr.IsPartOfPayment").length>$("tr.IsPartOfPayment.NegativeSum").length){alert("Beachten Sie bitte, dass Sie eventuell Erstattungsgutscheine dann auch aus dem Warenkorb nehmen sollten, wenn Sie die nicht kaufen wollen!")}PageMethods.OUTWK(sub,id,Opt1ID,Opt2ID,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,divname,AjaxWKR_callback,onFailed,ctxDummy)}}else{var WKTR=$("#WK"+id.replace(/-/g,"_"));if(WKTR.length>0){if(WKTR.hasClass("IsPartOfPayment")&&WKTR.hasClass("NegativeSum")){alert("Diesen Erstattungsgutschein können sie nur löschen, wenn Sie zuvor auch alle Gutscheineinlösungen aus dem Warenkorb entfernt haben!");return}}ProtectWarenkorb();PageMethods.OUTWK(sub,id,Opt1ID,Opt2ID,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,divname,AjaxWKR_callback,onFailed,ctxDummy)}}function AjaxResOUTWKR(sub,id,Opt1ID,Opt2ID,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,divname){if(confirm("Dieses Ticket war für sie reserviert - wollen Sie wirklich auf die Reservierung verzichten?")){PageMethods.OUTWK(sub,id,Opt1ID,Opt2ID,ov3,ov4,ov5,ov6,ov7,ov8,ov9,ov10,divname,AjaxWKR_callback,onFailed,ctxDummy)}}function AjaxWKR_callback(html,PID,methodName){var div;EnableWarenkorb();if(html!=null){if(html[0]==null||html[0]==""){ShowAlert(html[1])}else{if(html.length>2){$("#"+html[2]).html(html[3])}$("#"+html[0]).html(html[1]);$("#section-1 #idTDContent div.EFInWK .InWKBtn").button();RefreshWKButton(1,PID)}try{onChangeOfKTRANS_abw_RAnschrift();var btn=$("#updatebtn");btn.prop("disabled",false);btn.removeClass("inaktiv");StyleWarenkorb()}catch(err){}}if(typeof loadSocialSharePricvacy=="function"){loadSocialSharePricvacy()}}function AjaxGetNextFormpart(sub,id,FormPart,FormData){PageMethods.GetNextFormpart(sub,id,FormPart,FormData,AjaxGetNextFormpart_callback,onFailed,FormPart)}function AjaxGetNextFormpart_callback(html,FormPart,methodName){var div;if(html!=null){if(html[0]==null||html[0]==""){ShowAlert(html[1])}else{var AktivePart;$("#FormStepFormPart"+FormPart).html("");$("#FormStepFormPart"+html[2]).html(html[0]);var btns=$("#FormStepFormPart"+html[2]+" .synwaybtn");PrepareButtonTooltips(btns);btns.button();AktivePart=$(".FormStepper #FormStepArea"+html[2]);AktivePart.addClass("active");AktivePart.removeClass("unselectable");AktivePart.removeClass("inactive");var body=$("html, body");var Previous=(html[2]*1)-1;if(Previous<1){Previous=1}var ScrollZiel=$("#FormStepArea"+Previous).offset().top-10-$("#header-0").height();if(ScrollZiel<body.scrollTop()){body.animate({scrollTop:ScrollZiel},500)}$(".FormStepper #FormStepArea"+(html[2]*1+1)).addClass("inactive");$(".FormStepper #FormStepArea"+(html[2]*1+1)).removeClass("active");$(".FormStepper #FormStepArea"+(html[2]*1+1)).removeClass("unselectable");$(".FormStepper #FormStepArea"+(html[2]*1+2)).addClass("unselectable");$(".FormStepper #FormStepArea"+(html[2]*1+2)).removeClass("active");$(".FormStepper #FormStepArea"+(html[2]*1+2)).removeClass("inactive");$(".FormStepper #FormStepArea"+(html[2]*1+3)).addClass("unselectable");$(".FormStepper #FormStepArea"+(html[2]*1+3)).removeClass("active");$(".FormStepper #FormStepArea"+(html[2]*1+3)).removeClass("inactive")}}}function AngListenToggleMe(p,id,sub){var a="Pfeil"+id;var e=document.getElementById(a);if(!e){return true}if(e.style.display=="none"){e.style.display="block";$(p).find("i").removeClass("fa-caret-right");$(p).find("i").addClass("fa-caret-down");
39if(sub!=""){if($("#"+a+" .SpinnerContainer").length>0){PageMethods.GetReadonlyRecord(sub,id,AjaxGetReadonlyRecord_callback,onFailed,id)}}}else{e.style.display="none";$(p).find("i").removeClass("fa-caret-down");$(p).find("i").addClass("fa-caret-right")}return true}function AjaxGetReadonlyRecord_callback(html,id,methodName){if(html!=null){if(html[0]==null||html[0]==""){var DBOX=$("#Pfeil"+id);DBOX.find(".SpinnerContainer").replaceWith(html[1]);EnableIncludedJS(DBOX[0]);var btnBestellen=$("#AE"+id+" div.tdInWKBtn.tdInWKBtnAngListen");if(btnBestellen.children().first().css("display")=="none"){btnBestellen.appendTo("#Pfeil"+id+" div.Empty");btnBestellen.children().first().css("display","block")}DBOX.find(".InWKLink").button();var Gallerien=DBOX.find(".viewcontainer img.view");var i,IdName,imgs,gallery,pe;for(i=0;i<Gallerien.length;i++){pe=Gallerien[i].parentElement.parentElement;if($(pe).hasClass("FeldTD")){IdName=pe.id}else{IdName=pe.parentElement.id}if(IdName.length>6){IdName=IdName.substr(0,IdName.length-4);InitGalleryAjax(DBOX.find("img.gal"+IdName))}}imgs=DBOX.find("#PD_Abbildung_IDAJAX,#PD_Galerie_IDAJAX,#V_Logo_Datei_IDAJAX,#V_Bildgalerie_Datei_IDAJAX,#VREIHE_Bildgalerie_Datei_IDAJAX,#VREIHE_Logo_Datei_ID,#VT_Bildgalerie_Datei_IDAJAX,#VT_Logo_Datei_IDAJAX");for(i=0;i<imgs.length;i++){gallery=imgs[i];if(gallery.innerHTML.length<10){$(gallery).parent().parent().prev().css("border","none");$(gallery).parent().parent().css("display","none")}}}else{if(html[0]!=""){ShowAlert(html[0])}}}}function onFocusInput(InputElement){var btn=$("#tdContent form input[type=submit]");btn.addClass("inaktiv");btn.prop("disabled",true);if(!btn.length){btn=$("#FormStepArea2 button");btn.button("option","disabled",true)}}function onBlurInput(InputElement){var btn=$("#tdContent form input[type=submit]");btn.prop("disabled",false);btn.removeClass("inaktiv");if(!btn.length){btn=$("#FormStepArea2 button");btn.button("option","disabled",false)}if(InputElement.id=="idUseGutschein"){GSCheck()}}function ToggleVortBeschreibung(elem){var VOB=$(elem.parentElement.parentElement).find("#VORTBeschreibung");if(VOB.length>0){VOB=VOB[0];VOB.style.display=VOB.style.display=="inline"?"none":"inline"}}var LastPwdFieldID="";function InitPasswordInput(InputID,Vorgabe,Config){if(Config.ConstraintsAreStrict===undefined){Config.ConstraintsAreStrict="0"}if(Config.CheckIdentityAgainsPrevPasswordField===undefined){Config.CheckIdentityAgainsPrevPasswordField="0"}if(Config.CheckIdentityAgainsPrevPasswordField==="1"){Config.ConstraintsAreStrict="1"}$("#"+InputID).data("strict",Config.ConstraintsAreStrict).data("captcha",Config.Captcha).data("validated","0").data("LastProblem","").each(function(){if(Config.required!==undefined&&Config.required==="1"){$(this).prop("required",true)}if(Config.QualityBar!==undefined&&Config.QualityBar==="1"){$(this).parent().append("<div class='PwdQualityIndicator bad' id='"+InputID+"Quality'>"+Config.LengthName+"<div class='PwdComplexity'>0</div><div class='PwdQualityBar'><div class='PwdQualityProgess'></div></div><div class='PwdQualitySuccess'>"+Config.WithoutName+"</div><div class='PwdQualityProblem'></div></div>")}if(Config.QualityBar!==undefined&&Config.QualityBar==="0"){$(this).parent().append("<div class='PwdQualityIndicator bad' id='"+InputID+"Quality'><div class='PwdQualityProblem'></div></div>")}}).on("keyup",function(){$(this).data("validated","0");var ValidationWaitsOnServer=false;var pwd=$(this).val();var Problem="",MinPasswordLength=8,GoodPasswordLength=12,Complexity=0;if(Config.InitialProblem===undefined){Config.InitialProblem=""}if(Config.InitialComplexity===undefined){Config.InitialComplexity="1"}if(Config.MinPasswordLength!==undefined){MinPasswordLength=Config.MinPasswordLength}if(Config.GoodPasswordLength!==undefined){GoodPasswordLength=Config.GoodPasswordLength}if(pwd!==Config.UnchangedPlaceholder&&pwd.indexOf(Config.UnchangedPlaceholder)!==-1){pwd=pwd.replace(Config.UnchangedPlaceholder,"");$(this).val(pwd)}if(Config.QualityBar!==undefined&&Config.QualityBar==="1"){if(pwd===Config.UnchangedPlaceholder){Problem=Config.InitialProblem;Complexity=Config.InitialComplexity;$("#"+this.id+"Quality").css("display",Problem!==""?"block":"none")}else{$("#"+this.id+"Quality").css("display","block");
39if(Config.UsernameField!==undefined&&Config.UsernameField!==""){var UserName=$("#"+Config.UsernameField).val();if(UserName.toLowerCase()===pwd.toLowerCase()){Complexity=1;Problem=Config.UsernamePwdIdentity;$("#"+this.id+"Quality").addClass("bad").removeClass("good acceptable optimal")}}if(Problem===""&&Config.UpperCharsRequired!==undefined&&Config.UpperCharsRequired==="1"){if(pwd===pwd.toLowerCase()){Problem=Config.MissingCaps;$("#"+this.id+"Quality").addClass("bad").removeClass("good acceptable optimal")}}if(Problem===""&&Config.LowerCharsRequired!==undefined&&Config.LowerCharsRequired==="1"){if(pwd===pwd.toUpperCase()){Problem=Config.MissingLower;$("#"+this.id+"Quality").addClass("bad").removeClass("good acceptable optimal")}}if(Problem===""&&Config.NumbersRequired!==undefined&&Config.NumbersRequired==="1"){if(!(/[0-9]/.test(pwd))){Problem=Config.MissingNumber;$("#"+this.id+"Quality").addClass("bad").removeClass("good acceptable optimal")}}if(Problem===""&&Config.SpecialCharsRequired!==undefined&&Config.SpecialCharsRequired==="1"){if((/^[a-zA-Z0-9]*$/.test(pwd))){Problem=Config.MissingSpecialChars;$("#"+this.id+"Quality").addClass("bad").removeClass("good acceptable optimal")}}if(Problem===""&&Complexity===0&&((Config.NoEasyPassword!==undefined&&Config.NoEasyPassword==="1")||(Config.NoEasyPasswordPhrases!==undefined&&Config.NoEasyPasswordPhrases==="1"))){if($(this).data("LastPwdChecked")!=pwd){PageMethods.CheckPassword(Config.NoEasyPassword==="1",Config.NoEasyPasswordPhrases==="1",pwd,AjaxCheckPassword_callback,onFailed,{id:this.id,Config:Config});ValidationWaitsOnServer=true;$(this).data("LastPwdChecked",pwd)}else{Complexity=$(this).data("LastComplexity");Problem=$(this).data("LastProblem")}}}if(Complexity===0){Complexity=pwd.length}if(Problem===""&&Config.MinPasswordLength>pwd.length){Problem=Config.PwdTooShort}DisplayComplexity(this,Complexity,Config,Problem)}if(Problem===""&&Config.CheckIdentityAgainsPrevPasswordField==="1"&&LastPwdFieldID!==""){if($("#"+LastPwdFieldID).val()!==pwd){Problem=Config.PwdIdentityMissing}}$(this).data("LastProblem",Problem);$("#"+this.id+"Quality .PwdQualityProblem").html(Problem);if((!ValidationWaitsOnServer&&Problem==="")||(Config.ConstraintsAreStrict==="0")){$(this).data("validated","1")}}).val(Vorgabe).trigger("keyup");$("#"+InputID+"_REFRESH").on("click",function(){PageMethods.GetNewCaptcha(4,AjaxGetNewCaptcha_callback,onFailed,{id:InputID})});LastPwdFieldID=InputID}function AjaxGetNewCaptcha_callback(captcha,Context){$("#"+Context.id).data("captcha",captcha);$("#"+Context.id+"_IMG")[0].src="codecheck.aspx?now="+(new Date()).getTime()+"&W="+captcha}function AjaxCheckPassword_callback(html,Context){if(html!=null){var PwdField=$("#"+Context.id)[0];if(html[0]==null||html[0]==""){var Problem=html[1];if(html.length==2){Complexity=1;DisplayComplexity(PwdField,Complexity,Context.Config,"");if(Problem!==""){$("#"+PwdField.id+"Quality .PwdQualityProblem").html(Problem)}$(PwdField).data("LastComplexity",Complexity);$(PwdField).data("LastProblem",Problem);if(html[1]===""){$(this).data("validated","1")}}if(html.length==3){Complexity=html[2]*1;DisplayComplexity(PwdField,Complexity,Context.Config,"");if(Problem!==""){$("#"+PwdField.id+"Quality .PwdQualityProblem").html(Problem)}$(PwdField).data("LastComplexity",Complexity);$(PwdField).data("LastProblem",Problem);if($(PwdField).data("ComplexityIsBad")!=="1"){$(PwdField).data("validated","1")}}}else{ShowAlert(html[0])}}}function DisplayComplexity(ThisPwd,Complexity,Config,Problem){$("#"+ThisPwd.id+"Quality .PwdComplexity").html(Complexity);var IsBad=false;if(Complexity===0){$("#"+ThisPwd.id+"Quality .PwdQualitySuccess").html(Config.WithoutName);$("#"+ThisPwd.id+"Quality").addClass("bad").removeClass("optimal good acceptable");$("#"+ThisPwd.id).data("ComplexityIsBad","1");IsBad=true}else{if(Complexity<Config.MinPasswordLength||Problem!==""){$("#"+ThisPwd.id+"Quality .PwdQualitySuccess").html(Config.WeakName);$("#"+ThisPwd.id+"Quality").addClass("bad").removeClass("optimal good acceptable");$("#"+ThisPwd.id).data("ComplexityIsBad","1");IsBad=true}else{$("#"+ThisPwd.id).data("ComplexityIsBad","0");if(Complexity<Config.GoodPasswordLength){$("#"+ThisPwd.id+"Quality .PwdQualitySuccess").html(Config.AcceptableName);$("#"+ThisPwd.id+"Quality").addClass("acceptable").removeClass("optimal good bad")}else{if(Complexity<2*Config.GoodPasswordLength-Config.MinPasswordLength){$("#"+ThisPwd.id+"Quality .PwdQualitySuccess").html(Config.GoodName);$("#"+ThisPwd.id+"Quality").addClass("good").removeClass("optimal acceptable bad")}else{$("#"+ThisPwd.id+"Quality .PwdQualitySuccess").html(Config.VerygoodName);$("#"+ThisPwd.id+"Quality").addClass("optimal").removeClass("acceptable bad")}}}}if(IsBad&&Config.AllowBadPasswordWithCaptcha&&$("#"+ThisPwd.id+"Quality").css("display")==="block"){$("#"+ThisPwd.id+"_DIV .CodeCheck").css("display","block")}else{$("#"+ThisPwd.id+"_DIV .CodeCheck").css("display","none")}}function ValidatePasswordInput(InputID,feldname,ReiterZahl){if($("#"+InputID).data("validated")!=="1"){if($("#"+InputID+"_DIV .CodeCheck").css("display")==="block"){if($("#"+InputID).data("captcha").split(".").join("").split("-").join("")===$("#"+InputID+"_CAPTCHA").val()){return true}}if(ReiterZahl>0){ReiterSelect(ReiterZahl)}$("#"+InputID)[0].focus();ShowAlert(feldname+": "+$("#"+InputID).data("LastProblem"));return false}return true}function AnswerOnMail_callback(result){if(result!==undefined&&result!==null&&result!==""){ShowAlert(result)}}function HasClassAbove(IDName,ClassName){return $("#"+IDName).closest("div.RFFieldContent").hasClass(ClassName)}function NewMail_callback(result){if(result!==undefined&&result!==null&&result!==""){ShowAlert(result)}}function PlaceBidOnAu(){var MakeBidOnAu=$("#MakeBidOnAu");var AUID=MakeBidOnAu.data("au-id");var AuBid=$("#AuBid");var BiddingHint=$("#BiddingHint");var YourCurrentBid=$("#YourCurrentBid");var YCB=String(YourCurrentBid.html()).replace(".","").replace("'","").replace("'","").replace("'","").replace("'","").replace(",",".");var CurrentBid=AuBid.val();var ss=String(CurrentBid).replace(".","").replace("'","").replace("'","").replace("'","").replace("'","").replace(",",".");if(isNaN(ss)||CurrentBid.indexOf(".")>=0){BiddingHint.html(BiddingHint.data("wrong-number"));ShowAlert(BiddingHint.data("wrong-number"));AuBid.focus();return false}CurrentBid=parseFloat(ss);var MinimumBid=parseFloat(MakeBidOnAu.data("min-bid"));var Sub=MakeBidOnAu.data("sub");if(CurrentBid<MinimumBid){BiddingHint.html(BiddingHint.data("too-low"));ShowAlert(BiddingHint.data("too-low"));AuBid.focus();return false}if(YCB!=null&&YCB!=""){YCB=parseFloat(YCB);if(CurrentBid<YCB){BiddingHint.html(BiddingHint.data("too-low-for-you"));ShowAlert(BiddingHint.data("too-low-for-you"));AuBid.focus();return false}}PageMethods.PlaceBidOnAu(Sub,AUID,CurrentBid,PlaceBidOnAu_callback,onFailed,AUID);BiddingHint.html(BiddingHint.data("standard-text"))}function PlaceBidOnAu_callback(html,AUID,methodName){if(html!=null){var BiddingHint=$("#BiddingHint");if(html[1]!=null&&html[2]!=""){BiddingHint.html(html[1])}if(html[0]!=null&&html[0]!=""){ShowAlert(html[0])}else{var MakeBidOnAu=$("#MakeBidOnAu");$("#AU_MindestgebotAJAX").html(html[2]);MakeBidOnAu.data("min-bid",html[2].replace(".","").replace(".","").replace(",","."));$("#AU_Aktuelles_GebotAJAX").html(html[3]);$("#YourCurrentBid").html(html[4]);if(html[4]!=null&&html[4]!=""){$("#YourCurrentBidText").show()}else{$("#YourCurrentBidText").hide()}$("#AU_Anzahl_Gebote").html(html[5]);$("#AuBid").val("")}}}function PutAuOnList(AUID){var AuOnListToggle=$(".AuOnListToggle");var Sub=AuOnListToggle.data("sub");var AUID=AuOnListToggle.data("au-id");PageMethods.PutAuOnList(Sub,AUID,PutAuOnList_callback,onFailed,AUID)}function PutAuOnList_callback(html,AUID,methodName){if(html!=null&&html!=""){ShowAlert(html)}else{$(".AuOnListToggle").addClass("AuIsOnList")}}function RemoveAuFromList(AUID){var AuOnListToggle=$(".AuOnListToggle");var Sub=AuOnListToggle.data("sub");var AUID=AuOnListToggle.data("au-id");PageMethods.RemoveAuFromList(Sub,AUID,RemoveAuFromList_callback,onFailed,AUID)}function RemoveAuFromList_callback(html,AUID,methodName){if(html!=null&&html!=""){ShowAlert(html)}else{$(".AuOnListToggle").removeClass("AuIsOnList")}}function AjaxAuINWKR(sub,AUID,divname){PageMethods.AuINWK(sub,AUID,divname,AjaxAuINWKR_callback,onFailed,AUID)}function AjaxAuINWKR_callback(html,AUID,methodName){EnableWarenkorb();if(html!=null){if(html[0]!=null&&html[0]!=""){ShowAlert(html[0])}else{$("#AU_BietenAJAX").html(html[1]);$("#"+html[2]).html(html[3]);RefreshWKButton(1,AUID);try{StyleWarenkorb()}catch(err){}}}};
40/*spticket/design/rad-net-portal/inlinefontkiller.import.js*/$(function(){$("[style*='font-family:']").each(function(){$(this).css("font-family","")})});$(function(){$("p, span").removeAttr("style")}); 41/*spticket/design/rad-net-portal/simple-lightbox.min.import.js*/!function(ot,st,lt){ot.fn.simpleLightbox=function(N){N=ot.extend({sourceAttr:"href",overlay:!0,spinner:!0,nav:!0,navText:["‹","›"],captions:!0,captionDelay:0,captionSelector:"img",captionType:"attr",captionsData:"title",captionPosition:"bottom",captionClass:"",close:!0,closeText:"×",swipeClose:!0,showCounter:!0,fileExt:"png|jpg|jpeg|gif|webp",animationSlide:!0,animationSpeed:250,preloading:!0,enableKeyboard:!0,loop:!0,rel:!1,docClose:!0,swipeTolerance:50,className:"simple-lightbox",widthRatio:0.8,heightRatio:0.9,scaleImageToRatio:!1,disableRightClick:!1,disableScroll:!0,alertError:!0,alertErrorMessage:"Image not found, next image will be loaded",additionalHtml:!1,history:!0,throttleInterval:0,doubleTapZoom:2,maxZoom:10,htmlClass:"has-lightbox"},N);function P(){return s.hash.substring(1)}function h(){P();var t="pid="+(V+1),e=s.href.split("#")[0]+"#"+t;o?history[f?"replaceState":"pushState"]("",lt.title,e):f?s.replace(e):s.hash=t,f=!0}function t(e,a){var n;return function(){var t=arguments;n||(e.apply(this,t),n=!0,setTimeout(function(){return n=!1},a))}}function a(t){t.trigger(ot.Event("show.simplelightbox")),N.disableScroll&&(u=T("hide")),N.htmlClass&&""!=N.htmlClass&&ot("html").addClass(N.htmlClass),b.appendTo("body"),_.appendTo(b),N.overlay&&l.appendTo(ot("body")),m=!0,V=$.index(t),K=ot("<img/>").hide().attr("src",t.attr(N.sourceAttr)).attr("data-scale",1).attr("data-translate-x",0).attr("data-translate-y",0),-1==d.indexOf(t.attr(N.sourceAttr))&&d.push(t.attr(N.sourceAttr)),_.html("").attr("style",""),K.appendTo(_),C(),l.fadeIn("fast"),ot(".sl-close").fadeIn("fast"),g.show(),J.fadeIn("fast"),ot(".sl-wrapper .sl-counter .sl-current").text(V+1),c.fadeIn("fast"),tt(),N.preloading&&w(),setTimeout(function(){t.trigger(ot.Event("shown.simplelightbox"))},N.animationSpeed)}function Z(t,e,a){return t<e?e:a<t?a:t}function z(t,e,a){K.data("scale",t),K.data("translate-x",e),K.data("translate-y",a)}var p,e,H="ontouchstart" in st,L=(st.navigator.pointerEnabled||st.navigator.msPointerEnabled,0),j=0,K=ot(),i=function(){var t=lt.body||lt.documentElement;return""===(t=t.style).WebkitTransition?"-webkit-":""===t.MozTransition?"-moz-":""===t.OTransition?"-o-":""===t.transition&&""},U=!1,d=[],$=N.rel&&!1!==N.rel?(e=N.rel,ot(this).filter(function(){return ot(this).attr("rel")===e})):this,n=$.get()[0].tagName,u=(i=i(),0),B=!1!==i,o="pushState" in history,f=!1,s=st.location,Q=P(),G="simplelb",l=ot("<div>").addClass("sl-overlay"),r=ot("<button>").addClass("sl-close").html(N.closeText),g=ot("<div>").addClass("sl-spinner").html("<div></div>"),J=ot("<div>").addClass("sl-navigation").html('<button class="sl-prev">'+N.navText[0]+'</button><button class="sl-next">'+N.navText[1]+"</button>"),c=ot("<div>").addClass("sl-counter").html('<span class="sl-current"></span>/<span class="sl-total"></span>'),m=!1,V=0,v=0,x=ot("<div>").addClass("sl-caption "+N.captionClass+" pos-"+N.captionPosition),_=ot("<div>").addClass("sl-image"),b=ot("<div>").addClass("sl-wrapper").addClass(N.className),tt=function(s){if(K.length){var l=new Image,r=st.innerWidth*N.widthRatio,c=st.innerHe
41ight*N.heightRatio;l.src=K.attr("src"),K.data("scale",1),K.data("translate-x",0),K.data("translate-y",0),at(0,0,1),ot(l).on("error",function(t){$.eq(V).trigger(ot.Event("error.simplelightbox")),U=!(m=!1),g.hide();var e=1==s||-1==s;v===V&&e?it():(N.alertError&&alert(N.alertErrorMessage),nt(e?s:1))}),l.onload=function(){void 0!==s&&$.eq(V).trigger(ot.Event("changed.simplelightbox")).trigger(ot.Event((1===s?"nextDone":"prevDone")+".simplelightbox")),N.history&&(f?p=setTimeout(h,800):h()),-1==d.indexOf(K.attr("src"))&&d.push(K.attr("src"));var t=l.width,e=l.height;if(N.scaleImageToRatio||r<t||c<e){var a=r/c<t/e?t/r:e/c;t/=a,e/=a}ot(".sl-image").css({top:(st.innerHeight-e)/2+"px",left:(st.innerWidth-t-u)/2+"px",width:t+"px",height:e+"px"}),g.hide(),K.fadeIn("fast"),U=!0;var n,i="self"==N.captionSelector?$.eq(V):$.eq(V).find(N.captionSelector);if(n="data"==N.captionType?i.data(N.captionsData):"text"==N.captionType?i.html():i.prop(N.captionsData),N.loop||(0===V&&ot(".sl-prev").hide(),V>=$.length-1&&ot(".sl-next").hide(),0<V&&ot(".sl-prev").show(),V<$.length-1&&ot(".sl-next").show()),1==$.length&&ot(".sl-prev, .sl-next").hide(),1==s||-1==s){var o={opacity:1};N.animationSlide&&(B?(et(0,100*s+"px"),setTimeout(function(){et(N.animationSpeed/1000,"0px")},50)):o.left=parseInt(ot(".sl-image").css("left"))+100*s+"px"),ot(".sl-image").animate(o,N.animationSpeed,function(){m=!1,y(n,t)})}else{m=!1,y(n,t)}N.additionalHtml&&0===ot(".sl-additional-html").length&&ot("<div>").html(N.additionalHtml).addClass("sl-additional-html").appendTo(ot(".sl-image"))}}},y=function(t,e){""!==t&&void 0!==t&&N.captions&&x.html(t).css({width:e+"px"}).hide().appendTo(ot(".sl-image")).delay(N.captionDelay).fadeIn("fast")},et=function(t,e){var a={};a[i+"transform"]="translateX("+e+")",a[i+"transition"]=i+"transform "+t+"s linear",ot(".sl-image").css(a)},at=function(t,e,a){var n={};n[i+"transform"]="translate("+t+","+e+") scale("+a+")",K.css(n)},C=function(){ot(st).on("resize."+G,tt),ot(lt).on("click."+G+" touchstart."+G,".sl-close",function(t){t.preventDefault(),U&&it()}),N.history&&setTimeout(function(){ot(st).on("hashchange."+G,function(){U&&P()===Q&&it()})},40),J.on("click."+G,"button",t(function(t){t.preventDefault(),L=0,nt(ot(this).hasClass("sl-next")?1:-1)},N.throttleInterval));var e,a,n,i,o,s,l,r,c,h,p,d,u,f,g,m,v,x,b,y,C,w,T,E,S,M,I,k=0,q=0,X=0,D=0,Y=!1,A=!1,O=0,R=!1,W=Z(1,1,N.maxZoom),F=!1;_.on("touchstart."+G+" mousedown."+G,function(t){if("A"===t.target.tagName&&"touchstart"==t.type){return !0}if("mousedown"==(t=t.originalEvent).type){c=t.clientX,h=t.clientY,e=_.height(),a=_.width(),o=K.height(),s=K.width(),n=_.position().left,i=_.position().top,l=parseFloat(K.data("translate-x")),r=parseFloat(K.data("translate-y")),R=!0}else{if(I=t.touches.length,c=t.touches[0].clientX,h=t.touches[0].clientY,e=_.height(),a=_.width(),o=K.height(),s=K.width(),n=_.position().left,i=_.position().top,1===I){if(F){return K.addClass("sl-transition"),Y=Y?(z(0,0,W=1),at("0px","0px",W),!1):(W=N.doubleTapZoom,z(0,0,W),at("0px","0px",W),ot(".sl-caption").fadeOut(200),!0),setTimeout(function(){K.removeClass("sl-transition")},200),!1}F=!0,setTimeout(function(){F=!1},300),l=parseFloat(K.data("translate-x")),r=parseFloat(K.data("translate-y"))}else{2===I&&(p=t.touches[1].clientX,d=t.touches[1].clientY,l=parseFloat(K.data("translate-x")),r=parseFloat(K.data("translate-y")),C=(c+p)/2,w=(h+d)/2,u=Math.sqrt((c-p)*(c-p)+(h-d)*(h-d)))}R=!0}return !!A||(B&&(O=parseInt(_.css("left"))),A=!0,j=L=0,k=t.pageX||t.touches[0].pageX,X=t.pageY||t.touches[0].pageY,!1)}).on("touchmove."+G+" mousemove."+G+" MSPointerMove",function(t){if(!A){return !0}if(t.preventDefault(),"touchmove"==(t=t.originalEvent).type){if(!1===R){return !1}f=t.touches[0].clientX,g=t.touches[0].clientY,I=t.touches.length,0,1<I?(m=t.touches[1].clientX,v=t.touches[1].clientY,M=Math.sqrt((f-m)*(f-m)+(g-v)*(g-v)),null===u&&(u=M),1<=Math.abs(u-M)&&(y=Z(M/u*W,1,N.maxZoom),T=(s*y-a)/2,E=(o*y-e)/2,S=y-W,x=s*y<=a?0:Z(l-(C-n-a/2-l)/(y-S)*S,-1*T,T),b=o*y<=e?0:Z(r-(w-i-e/2-r)/(y-S)*S,-1*E,E),at(x+"px",b+"px",y),1<y&&(Y=!0,ot(".sl-caption").fadeOut(200)),u=M,W=y,l=x,r=b)):(T=(s*(y=W)-a)/2,E=(o*y-e)/2,x=s*y<=a?0:Z(f-(c-l),-1*T,T),b=o*y<=e?0:Z(g-(h-r),-1*E,E),Math.abs(x)===Math.abs(T)&&(l=x,c=f),Math.abs(b)===Math.abs(E)&&(r=b,h=g),z(W,x,b),at(x+"px",b+"px",y))}if("mousemove"==t.type&&A){if("touchmove"==t.type){return !0}if(!1===R){return !1}f=t.clientX,g=t.clientY,T=(s*(y=W)-a)/2,E=(o*y-e)/2,x=s*y<=a?0:Z(f-(c-l),-1*T,T),b=o*y<=e?0:Z(g-(h-r),-1*E,E),Math.abs(x)===Math.abs(T)&&(l=x,c=f),Math.abs(b)===Math.abs(E)&&(r=b,h=g),z(W,x,b),at(x+"px",b+"px",y)}Y||(q=t.pageX||t.touches[0].pageX,D=t.pageY||t.touches[0].pageY,L=k-q,j=X-D,N.animationSlide&&(B?et(0,-L+"px"):_.css("left",O-L+"px")))}).on("touchend."+G+" mouseup."+G+" touchcancel."+G+" mouseleave."+G+" pointerup pointercancel MSPointerUp MSPointerCancel",function(t){if(t=t.originalEvent,H&&"touchend"==t.type&&(0===(I=t.touches.length)?(z(W,x,b),1==W&&(Y=!1,ot(".sl-caption").fadeIn(200)),u=null,R=!1):1===I?(c=t.touches[0].clientX,h=t.touches[0].clientY):1<I&&(u=null)),A){var e=!(A=!1);N.loop||(0===V&&L<0&&(e=!1),V>=$.length-1&&0<L&&(e=!1)),Math.abs(L)>N.swipeTolerance&&e?nt(0<L?1:-1):N.animationSlide&&(B?et(N.animationSpeed/1000,"0px"):_.animate({left:O+"px"},N.animationSpeed/2)),N.swipeClose&&50<Math.abs(j)&&Math.abs(L)<N.swipeTolerance&&it()}}).on("dblclick",function(t){return c=t.clientX,h=t.clientY,e=_.height(),a=_.width(),o=K.height(),s=K.width(),n=_.position().left,i=_.position().top,K.addClass("sl-transition"),Y?(z(0,0,W=1),at("0px","0px",W),Y=!1,ot(".sl-caption").fadeIn(200)):(W=N.doubleTapZoom,z(0,0,W),at("0px","0px",W),ot(".
41sl-caption").fadeOut(200),Y=!0),setTimeout(function(){K.removeClass("sl-transition")},200),!(R=!0)})},w=function(){var t=V+1<0?$.length-1:V+1>=$.length-1?0:V+1,e=V-1<0?$.length-1:V-1>=$.length-1?0:V-1;ot("<img />").attr("src",$.eq(t).attr(N.sourceAttr)).on("load",function(){-1==d.indexOf(ot(this).attr("src"))&&d.push(ot(this).attr("src")),$.eq(V).trigger(ot.Event("nextImageLoaded.simplelightbox"))}),ot("<img />").attr("src",$.eq(e).attr(N.sourceAttr)).on("load",function(){-1==d.indexOf(ot(this).attr("src"))&&d.push(ot(this).attr("src")),$.eq(V).trigger(ot.Event("prevImageLoaded.simplelightbox"))})},nt=function(e){$.eq(V).trigger(ot.Event("change.simplelightbox")).trigger(ot.Event((1===e?"next":"prev")+".simplelightbox"));var t=V+e;if(!(m||(t<0||t>=$.length)&&!1===N.loop)){V=t<0?$.length-1:t>$.length-1?0:t,ot(".sl-wrapper .sl-counter .sl-current").text(V+1);var a={opacity:0};N.animationSlide&&(B?et(N.animationSpeed/1000,-100*e-L+"px"):a.left=parseInt(ot(".sl-image").css("left"))+-100*e+"px"),ot(".sl-image").animate(a,N.animationSpeed,function(){setTimeout(function(){var t=$.eq(V);K.attr("src",t.attr(N.sourceAttr)),-1==d.indexOf(t.attr(N.sourceAttr))&&g.show(),ot(".sl-caption").remove(),tt(e),N.preloading&&w()},100)})}},it=function(){if(!m){var t=$.eq(V),e=!1;t.trigger(ot.Event("close.simplelightbox")),N.history&&(o?history.pushState("",lt.title,s.pathname+s.search):s.hash="",clearTimeout(p)),ot(".sl-image img, .sl-overlay, .sl-close, .sl-navigation, .sl-image .sl-caption, .sl-counter").fadeOut("fast",function(){N.disableScroll&&T("show"),N.htmlClass&&""!=N.htmlClass&&ot("html").removeClass(N.htmlClass),ot(".sl-wrapper, .sl-overlay").remove(),J.off("click","button"),ot(lt).off("click."+G,".sl-close"),ot(st).off("resize."+G),ot(st).off("hashchange."+G),e||t.trigger(ot.Event("closed.simplelightbox")),e=!0}),K=ot(),m=U=!1}},T=function(t){var e=0;if("hide"==t){var a=st.innerWidth;if(!a){var n=lt.documentElement.getBoundingClientRect();a=n.right-Math.abs(n.left)}if(lt.body.clientWidth<a){var i=lt.createElement("div"),o=parseInt(ot("body").css("padding-right"),10);i.className="sl-scrollbar-measure",ot("body").append(i),e=i.offsetWidth-i.clientWidth,ot(lt.body)[0].removeChild(i),ot("body").data("padding",o),0<e&&ot("body").addClass("hidden-scroll").css({"padding-right":o+e})}}else{ot("body").removeClass("hidden-scroll").css({"padding-right":ot("body").data("padding")})}return e};return N.close&&r.appendTo(b),N.showCounter&&1<$.length&&(c.appendTo(b),c.find(".sl-total").text($.length)),N.nav&&J.appendTo(b),N.spinner&&g.appendTo(b),$.on("click."+G,function(t){if(function(t){if(!N.fileExt){return !0}var e=ot(t).attr(N.sourceAttr).match(/\.([0-9a-z]+)(?=[?#])|(\.)(?:[\w]+)$/gim);return e&&ot(t).prop("tagName").toUpperCase()==n&&new RegExp(".("+N.fileExt+")$","i").test(e)}(this)){if(t.preventDefault(),m){return !1}var e=ot(this);v=$.index(e),a(e)}}),ot(lt).on("click."+G+" touchstart."+G,function(t){U&&N.docClose&&0===ot(t.target).closest(".sl-image").length&&0===ot(t.target).closest(".sl-navigation").length&&it()}),N.disableRightClick&&ot(lt).on("contextmenu",".sl-image img",function(t){return !1}),N.enableKeyboard&&ot(lt).on("keyup."+G,t(function(t){L=0;var e=t.keyCode;m&&27==e&&(K.attr("src",""),m=!1,it()),U&&(t.preventDefault(),27==e&&it(),37!=e&&39!=t.keyCode||nt(39==t.keyCode?1:-1))},N.throttleInterval)),this.open=function(t){t=t||ot(this[0]),v=$.index(t),a(t)},this.next=function(){nt(1)},this.prev=function(){nt(-1)},this.close=function(){it()},this.destroy=function(){ot(lt).off("click."+G).off("keyup."+G),it(),ot(".sl-overlay, .sl-wrapper").remove(),this.off("click")},this.refresh=function(){this.destroy(),ot(this).simpleLightbox(N)},this}}(jQuery,window,document); 42/*spticket/design/rad-net-portal/_use_simple-lightbox.import.js*/$(function(){if($(".content figure img").length){$(".content figure img").simpleLightbox({sourceAttr:"src",captionSelector:"self",captionsData:"alt"}).css("cursor","pointer")}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.