!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=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.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 e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.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()},push:g,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!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));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||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},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){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[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):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[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,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d):void 0},now:function(){return+new Date},support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"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*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),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="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),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")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=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)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){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 fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(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 la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(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 oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.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]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);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"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="",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(".#.+[+~]")}),ia(function(a){var b=n.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=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.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===n||a.ownerDocument===v&&t(v,a)?-1:b===n||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,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!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 fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var 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},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.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=fa.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=fa.selectors={cacheLength:50,createPseudo:ha,match:W,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(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===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]||fa.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]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.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(ba,ca).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=fa.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(P," ")+" ").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,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(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:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(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:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).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 Y.test(a.nodeName)},input:function(a){return X.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:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function ra(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,k=[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(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(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 ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(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 va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(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=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(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=[ra(sa(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 va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.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(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.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(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(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}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=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},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(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(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>-1!==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=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}if(f=d.getElementById(e[2]),f&&f.parentNode){if(f.id!==e[2])return A.find(a);this.length=1,this[0]=f}return this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.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.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){do a=a[b];while(a&&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 u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document: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&&(E[a]||(e=n.uniqueSort(e)),D.test(a)&&(e=e.reverse())),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=!0,c||j.disable(),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},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().progress(c.notify).done(c.resolve).fail(c.reject):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=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.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||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.addEventListener?(d.removeEventListener("DOMContentLoaded",K),a.removeEventListener("load",K)):(d.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(d.addEventListener||"load"===a.event.type||"complete"===d.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll)a.setTimeout(n.ready);else if(d.addEventListener)d.addEventListener("DOMContentLoaded",K),a.addEventListener("load",K);else{d.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&d.documentElement}catch(e){}c&&c.doScroll&&!function f(){if(!n.isReady){try{c.doScroll("left")}catch(b){return a.setTimeout(f,50)}J(),n.ready()}}()}return I.promise(b)},n.ready.promise();var L;for(L in n(l))break;l.ownFirst="0"===L,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c,e;c=d.getElementsByTagName("body")[0],c&&c.style&&(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",l.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(e))}),function(){var a=d.createElement("div");l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}a=null}();var M=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b},N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(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){}n.data(a,b,c)}else c=void 0; }return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(M(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),"object"!=typeof b&&"function"!=typeof b||(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}function S(a,b,c){if(M(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),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=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){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])));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(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 n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthh;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},Z=/^(?:checkbox|radio)$/i,$=/<([\w:-]+)/,_=/^$|\/(?:java|ecma)script/i,aa=/^\s+/,ba="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ca(a){var b=ba.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}!function(){var a=d.createElement("div"),b=d.createDocumentFragment(),c=d.createElement("input");a.innerHTML="
a",l.leadingWhitespace=3===a.firstChild.nodeType,l.tbody=!a.getElementsByTagName("tbody").length,l.htmlSerialize=!!a.getElementsByTagName("link").length,l.html5Clone="<:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,b.appendChild(c),l.appendChecked=c.checked,a.innerHTML="",l.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,b.appendChild(a),c=d.createElement("input"),c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),l.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!!a.addEventListener,a[n.expando]=1,l.attributes=!a.getAttribute(n.expando)}();var da={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:l.htmlSerialize?[0,"",""]:[1,"X
","
"]};da.optgroup=da.option,da.tbody=da.tfoot=da.colgroup=da.caption=da.thead,da.th=da.td;function ea(a,b){var c,d,e=0,f="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,ea(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function fa(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}var ga=/<|&#?\w+;/,ha=/r;r++)if(g=a[r],g||0===g)if("object"===n.type(g))n.merge(q,g.nodeType?[g]:g);else if(ga.test(g)){i=i||p.appendChild(b.createElement("div")),j=($.exec(g)||["",""])[1].toLowerCase(),m=da[j]||da._default,i.innerHTML=m[1]+n.htmlPrefilter(g)+m[2],f=m[0];while(f--)i=i.lastChild;if(!l.leadingWhitespace&&aa.test(g)&&q.push(b.createTextNode(aa.exec(g)[0])),!l.tbody){g="table"!==j||ha.test(g)?""!==m[1]||ha.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;while(f--)n.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k)}n.merge(q,i.childNodes),i.textContent="";while(i.firstChild)i.removeChild(i.firstChild);i=p.lastChild}else q.push(b.createTextNode(g));i&&p.removeChild(i),l.appendChecked||n.grep(ea(q,"input"),ia),r=0;while(g=q[r++])if(d&&n.inArray(g,d)>-1)e&&e.push(g);else if(h=n.contains(g.ownerDocument,g),i=ea(p.appendChild(g),"script"),h&&fa(i),c){f=0;while(g=i[f++])_.test(g.type||"")&&c.push(g)}return i=null,p}!function(){var b,c,e=d.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b]=c in a)||(e.setAttribute(c,"t"),l[b]=e.attributes[c].expando===!1);e=null}();var ka=/^(?:input|select|textarea)$/i,la=/^key/,ma=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,na=/^(?:focusinfocus|focusoutblur)$/,oa=/^([^.]*)(?:\.(.+)|)/;function pa(){return!0}function qa(){return!1}function ra(){try{return d.activeElement}catch(a){}}function sa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)sa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=qa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return"undefined"==typeof n||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(G)||[""],h=b.length;while(h--)f=oa.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=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(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=oa.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=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(i=m=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!na.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),h=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),l=n.event.special[q]||{},f||!l.trigger||l.trigger.apply(e,c)!==!1)){if(!f&&!l.noBubble&&!n.isWindow(e)){for(j=l.delegateType||q,na.test(j+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i),m=i;m===(e.ownerDocument||d)&&p.push(m.defaultView||m.parentWindow||a)}o=0;while((i=p[o++])&&!b.isPropagationStopped())b.type=o>1?j:l.bindType||q,g=(n._data(i,"events")||{})[b.type]&&n._data(i,"handle"),g&&g.apply(i,c),g=h&&i[h],g&&g.apply&&M(i)&&(b.result=g.apply(i,c),b.result===!1&&b.preventDefault());if(b.type=q,!f&&!b.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),c)===!1)&&M(e)&&h&&e[q]&&!n.isWindow(e)){m=e[h],m&&(e[h]=null),n.event.triggered=q;try{e[q]()}catch(s){}n.event.triggered=void 0,m&&(e[h]=m)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(n._data(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.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!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&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(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)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]","i"),va=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wa=/\s*$/g,Aa=ca(d),Ba=Aa.appendChild(d.createElement("div"));function Ca(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 Da(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function Ea(a){var b=ya.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Fa(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Ga(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(Da(b).text=a.text,Ea(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Z.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}}function Ha(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&xa.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),Ha(f,b,c,d)});if(o&&(k=ja(b,a[0].ownerDocument,!1,a,d),e=k.firstChild,1===k.childNodes.length&&(k=e),e||d)){for(i=n.map(ea(k,"script"),Da),h=i.length;o>m;m++)g=k,m!==p&&(g=n.clone(g,!0,!0),h&&n.merge(i,ea(g,"script"))),c.call(a[m],g,m);if(h)for(j=i[i.length-1].ownerDocument,n.map(i,Ea),m=0;h>m;m++)g=i[m],_.test(g.type||"")&&!n._data(g,"globalEval")&&n.contains(j,g)&&(g.src?n._evalUrl&&n._evalUrl(g.src):n.globalEval((g.text||g.textContent||g.innerHTML||"").replace(za,"")));k=e=null}return a}function Ia(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(ea(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&fa(ea(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(va,"<$1>")},clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!ua.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Ba.innerHTML=a.outerHTML,Ba.removeChild(f=Ba.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=ea(f),h=ea(a),g=0;null!=(e=h[g]);++g)d[g]&&Ga(e,d[g]);if(b)if(c)for(h=h||ea(a),d=d||ea(f),g=0;null!=(e=h[g]);g++)Fa(e,d[g]);else Fa(a,f);return d=ea(f,"script"),d.length>0&&fa(d,!i&&ea(a,"script")),d=h=e=null,f},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.attributes,m=n.event.special;null!=(d=a[h]);h++)if((b||M(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k||"undefined"==typeof d.removeAttribute?d[i]=void 0:d.removeAttribute(i),c.push(f))}}}),n.fn.extend({domManip:Ha,detach:function(a){return Ia(this,a,!0)},remove:function(a){return Ia(this,a)},text:function(a){return Y(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||d).createTextNode(a))},null,a,arguments.length)},append:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.appendChild(a)}})},prepend:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(ea(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}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 Y(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(ta,""):void 0;if("string"==typeof a&&!wa.test(a)&&(l.htmlSerialize||!ua.test(a))&&(l.leadingWhitespace||!aa.test(a))&&!da[($.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ea(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ha(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(ea(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],f=n(a),h=f.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(f[d])[b](c),g.apply(e,c.get());return this.pushStack(e)}});var Ja,Ka={HTML:"block",BODY:"block"};function La(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function Ma(a){var b=d,c=Ka[a];return c||(c=La(a,b),"none"!==c&&c||(Ja=(Ja||n("':''),I=e(n.theme?'':''),n.theme&&k?(U='"):n.theme?(U='"):U=k?'':'',w=e(U),y&&(n.theme?(w.css(h),w.addClass("ui-widget-content")):w.css(s)),n.theme||I.css(n.overlayCSS),I.css("position",k?"fixed":"absolute"),(r||n.forceIframe)&&v.css("opacity",0);var C=[v,I,w],S=e(k?"body":t);e.each(C,function(){this.appendTo(S)}),n.theme&&n.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var O=f&&(!e.support.boxModel||e("object,embed",k?null:t).length>0);if(u||O){if(k&&n.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(u||!e.support.boxModel)&&!k)var E=a(t,"borderTopWidth"),T=a(t,"borderLeftWidth"),M=E?"(0 - "+E+")":0,B=T?"(0 - "+T+")":0;e.each(C,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)k?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+n.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),k?o.setExpression("width",'jQuery.support.boxModel&&document.documentElement.clientWidth||document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),B&&o.setExpression("left",B),M&&o.setExpression("top",M);else if(n.centerY)k&&o.setExpression("top",'(document.documentElement.clientHeight||document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah=document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "px"'),o.marginTop=0;else if(!n.centerY&&k){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "+(n.css&&n.css.top?parseInt(n.css.top,10):0)+') + "px"';o.setExpression("top",i)}})}if(y&&(n.theme?w.find(".ui-widget-content").append(y):w.append(y),(y.jquery||y.nodeType)&&e(y).show()),(r||n.forceIframe)&&n.showOverlay&&v.show(),n.fadeIn){var j=n.onBlock?n.onBlock:c,H=n.showOverlay&&!y?j:c,z=y?j:c;n.showOverlay&&I._fadeIn(n.fadeIn,H),y&&w._fadeIn(n.fadeIn,z)}else n.showOverlay&&I.show(),y&&w.show(),n.onBlock&&n.onBlock.bind(w)();if(i(1,t,n),k?(p=w[0],b=e(n.focusableElements,p),n.focusInput&&setTimeout(l,20)):d(w[0],n.centerX,n.centerY),n.timeout){var W=setTimeout(function(){k?e.unblockUI(n):e(t).unblock(n)},n.timeout);e(t).data("blockUI.timeout",W)}}}function o(t,o){var s,l=t==window,d=e(t),a=d.data("blockUI.history"),c=d.data("blockUI.timeout");c&&(clearTimeout(c),d.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),i(0,t,o),null===o.onUnblock&&(o.onUnblock=d.data("blockUI.onUnblock"),d.removeData("blockUI.onUnblock"));var r;r=l?e(document.body).children().filter(".blockUI").add("body > .blockUI"):d.find(">.blockUI"),o.cursorReset&&(r.length>1&&(r[1].style.cursor=o.cursorReset),r.length>2&&(r[2].style.cursor=o.cursorReset)),l&&(p=b=null),o.fadeOut?(s=r.length,r.stop().fadeOut(o.fadeOut,function(){0==--s&&n(r,a,o,t)})):n(r,a,o,t)}function n(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function i(t,o,n){var i=o==window,l=e(o);if((t||(!i||p)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(d,n,s):e(document).unbind(d,s)}}function s(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&p&&t.data.constrainTabKey){var o=b,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){l(i)},10),!1}var s=t.data,d=e(t.target);return d.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),d.parents("div."+s.blockMsgClass).length>0||0===d.parents().children().filter("div.blockUI").length}function l(e){if(b){var t=b[!0===e?b.length-1:0];t&&t.focus()}}function d(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-a(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-a(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0"),o&&(i.top=l>0?l+"px":"0")}function a(t,o){return parseInt(e.css(t,o),10)||0}e.fn._fadeIn=e.fn.fadeIn;var c=e.noop||function(){},r=/MSIE/.test(navigator.userAgent),u=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),f=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){t(window,e)},e.unblockUI=function(e){o(window,e)},e.growlUI=function(t,o,n,i){var s=e('
');t&&s.append("

"+t+"

"),o&&s.append("

"+o+"

"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.mouseover(function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(o){if(this[0]===window)return e.blockUI(o),this;var n=e.extend({},e.blockUI.defaults,o||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,t(this,o)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){o(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"

Please wait...

",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var p=null,b=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}(); jQuery(function(t){if("undefined"==typeof wc_add_to_cart_params)return!1;var a=function(){t(document.body).on("click",".add_to_cart_button",this.onAddToCart).on("click",".remove_from_cart_button",this.onRemoveFromCart).on("added_to_cart",this.updateButton).on("added_to_cart",this.updateCartPage).on("added_to_cart removed_from_cart",this.updateFragments)};a.prototype.onAddToCart=function(a){var o=t(this);if(o.is(".ajax_add_to_cart")){if(!o.attr("data-product_id"))return!0;a.preventDefault(),o.removeClass("added"),o.addClass("loading");var r={};t.each(o.data(),function(t,a){r[t]=a}),t(document.body).trigger("adding_to_cart",[o,r]),t.post(wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","add_to_cart"),r,function(a){a&&(a.error&&a.product_url?window.location=a.product_url:"yes"!==wc_add_to_cart_params.cart_redirect_after_add?t(document.body).trigger("added_to_cart",[a.fragments,a.cart_hash,o]):window.location=wc_add_to_cart_params.cart_url)})}},a.prototype.onRemoveFromCart=function(a){var o=t(this),r=o.closest(".woocommerce-mini-cart-item");a.preventDefault(),r.block({message:null,overlayCSS:{opacity:.6}}),t.post(wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","remove_from_cart"),{cart_item_key:o.data("cart_item_key")},function(a){a&&a.fragments?t(document.body).trigger("removed_from_cart",[a.fragments,a.cart_hash]):window.location=o.attr("href")}).fail(function(){window.location=o.attr("href")})},a.prototype.updateButton=function(a,o,r,e){(e=void 0!==e&&e)&&(e.removeClass("loading"),e.addClass("added"),wc_add_to_cart_params.is_cart||0!==e.parent().find(".added_to_cart").length||e.after(' '+wc_add_to_cart_params.i18n_view_cart+""),t(document.body).trigger("wc_cart_button_updated",[e]))},a.prototype.updateCartPage=function(){var a=window.location.toString().replace("add-to-cart","added-to-cart");t(".shop_table.cart").load(a+" .shop_table.cart:eq(0) > *",function(){t(".shop_table.cart").stop(!0).css("opacity","1").unblock(),t(document.body).trigger("cart_page_refreshed")}),t(".cart_totals").load(a+" .cart_totals:eq(0) > *",function(){t(".cart_totals").stop(!0).css("opacity","1").unblock(),t(document.body).trigger("cart_totals_refreshed")})},a.prototype.updateFragments=function(a,o){o&&(t.each(o,function(a){t(a).addClass("updating").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}})}),t.each(o,function(a,o){t(a).replaceWith(o),t(a).stop(!0).css("opacity","1").unblock()}),t(document.body).trigger("wc_fragments_loaded"))},new a}); window.jQuery(document).ready(function($){ $('body').on('adding_to_cart', function(event, $button, data){ $button&&$button.hasClass('vc_gitem-link')&&$button .addClass('vc-gitem-add-to-cart-loading-btn') .parents('.vc_grid-item-mini') .addClass('vc-woocommerce-add-to-cart-loading') .append($('
')); }).on('added_to_cart', function(event, fragments, cart_hash, $button){ if('undefined'===typeof($button)){ $button=$('.vc-gitem-add-to-cart-loading-btn'); } $button&&$button.hasClass('vc_gitem-link')&&$button .removeClass('vc-gitem-add-to-cart-loading-btn') .parents('.vc_grid-item-mini') .removeClass('vc-woocommerce-add-to-cart-loading') .find('.vc_wc-load-add-to-loader-wrapper').remove(); }); }); if(!function(t){function r(){}r.dumy=document.createElement("div"),r.trim=function(e){return e.replace(/\s/gi,"")},r.trimAndFormatUrl=function(e){return e=(e=e.toLocaleLowerCase()).replace(/ /g,"-")},r.storArrayBasedOnObjectValue=function(e,t){e.sort(function(s){var o=1;"-"===s[0]&&(o=-1,s=s.substr(1));return function(e,t){return(e[s]t[s]?1:0)*o}}(t))},r.getCookie=function(e){for(var t=e+"=",s=document.cookie.split(";"),o=0;o>>32-t}function d(e,t){var s,o,i,l,n;return i=2147483648&e,l=2147483648&t,n=(1073741823&e)+(1073741823&t),(s=1073741824&e)&(o=1073741824&t)?2147483648^n^i^l:s|o?1073741824&n?3221225472^n^i^l:1073741824^n^i^l:n^i^l}function t(e,t,s,o,i,l,n){var a;return e=d(e,d(d((a=t)&s|~a&o,i),n)),d(r(e,l),t)}function s(e,t,s,o,i,l,n){var a;return e=d(e,d(d(t&(a=o)|s&~a,i),n)),d(r(e,l),t)}function o(e,t,s,o,i,l,n){return e=d(e,d(d(t^s^o,i),n)),d(r(e,l),t)}function i(e,t,s,o,i,l,n){return e=d(e,d(d(s^(t|~o),i),n)),d(r(e,l),t)}function l(e){var t,s="",o="";for(t=0;t<=3;t++)s+=(o="0"+(e>>>8*t&255).toString(16)).substr(o.length-2,2);return s}var n,a,u,h,c,_,f,p,m,b=Array();for(b=function(e){for(var t,s=e.length,o=s+8,i=16*(1+(o-o%64)/64),l=Array(i-1),n=0,a=0;a>>29,l}(e=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",s=0;s>6|192):(t+=String.fromCharCode(o>>12|224),t+=String.fromCharCode(o>>6&63|128)),t+=String.fromCharCode(63&o|128))}return t}(e)),_=1732584193,f=4023233417,p=2562383102,m=271733878,n=0;n>>16&255,c=u>>>8&255,_=255&u;a.style.position="absolute",a.style.left="0px",a.style.top="0px",a.style.margin="0px",a.style.padding="0px",a.style.maxWidth="none",a.style.maxHeight="none",a.style.border="none",a.style.lineHeight="1",a.style.backgroundColor="transparent",a.style.backfaceVisibility="hidden",a.style.webkitBackfaceVisibility="hidden",a.style.MozBackfaceVisibility="hidden",a.style.MozImageRendering="optimizeSpeed",a.style.WebkitImageRendering="optimizeSpeed",null==o&&(o=e.width,i=e.height),a.width=o,a.height=i,r.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,o,i),n=r.getImageData(0,0,o,i),d=r.getImageData(0,0,o,i);for(var f=0,p=n.data.length;f>>16&255,h=d>>>8&255,c=255&d;i||(i=e.width,l=e.height),t.width=i,t.height=l,a.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,i,l),n=a.getImageData(0,0,i,l),r=a.getImageData(0,0,i,l);for(var _=0,f=n.data.length;_o.length)throw new Error("invalid index!");e.insertBefore(t,o[s])},r.hasCanvas=function(){return Boolean(document.createElement("canvas"))},r.hitTest=function(e,t,s){if(!e)throw Error("Hit test target is null!");var o=e.getBoundingClientRect();return t>=parseInt(o.left)&&t<=parseInt(o.left+(o.right-o.left))&&s>=parseInt(o.top)&&s<=parseInt(o.top+(o.bottom-o.top))},r.hitBuggyTest=function(e,t,s){if(!e)throw Error("Hit test target is null!");e.getBoundingClientRect();return!1},r.hasWEBGL=function(){try{var e=document.createElement("canvas");return!!t.WebGLRenderingContext&&(e.getContext("webgl")||e.getContext("experimental-webgl"))}catch(e){return!1}}(),r.isLocal="file:"==document.location.protocol,r.getScrollOffsets=function(){return null!=t.pageXOffset?{x:t.pageXOffset,y:t.pageYOffset}:"CSS1Compat"==document.compatMode?{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}:void 0},r.getViewportSize=function(){return r.hasPointerEvent&&1>0,0!==this._cycle&&this._cycle===this._totalTime/n&&_<=e&&this._cycle--,this._time=this._totalTime-this._cycle*n,this._yoyo&&0!=(1&this._cycle)&&(this._time=p-this._time),this._time>p?this._time=p:this._time<0&&(this._time=0)),this._easeType?(a=this._time/p,(1===(r=this._easeType)||3===r&&.5<=a)&&(a=1-a),3===r&&(a*=2),1===(d=this._easePower)?a*=a:2===d?a*=a*a:3===d?a*=a*a*a:4===d&&(a*=a*a*a*a),1===r?this.ratio=1-a:2===r?this.ratio=a:this._time/p<.5?this.ratio=a/2:this.ratio=1-a/2):this.ratio=this._ease.getRatio(this._time/p)),c!==this._time||s||f!==this._cycle){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!s&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=c,this._totalTime=_,this._rawPrevTime=m,this._cycle=f,S.lazyTweens.push(this),void(this._lazy=[e,t]);this._time&&!o?this.ratio=this._ease.getRatio(this._time/p):o&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==c&&0<=e&&(this._active=!0),0===_&&(2===this._initted&&0this._duration&&(e=this._duration),this._yoyo&&0!=(1&this._cycle)?e=this._duration-e+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(e+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(e,t)):this._time},e.duration=function(e){return arguments.length?m.prototype.duration.call(this,e):this._duration},e.totalDuration=function(e){return arguments.length?-1===this._repeat?this:this.duration((e-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},e.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},e.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},e.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},m},!0),_fwd_gsScope.FWDFWD_gsDefine("FWDTimelineLite",["core.FWDAnimation","core.FWDSimpleTimeline","FWDTweenLite"],function(u,h,c){function _(e){h.call(this,e),this._labels={},this.autoRemoveChildren=!0===this.vars.autoRemoveChildren,this.smoothChildTiming=!0===this.vars.smoothChildTiming,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var t,s,o=this.vars;for(s in o)t=o[s],y(t)&&-1!==t.join("").indexOf("{self}")&&(o[s]=this._swapSelfInParams(t));y(o.tweens)&&this.add(o.tweens,0,o.align,o.stagger)}function f(e){var t,s={};for(t in e)s[t]=e[t];return s}function p(e,t,s){var o,i,l=e.cycle;for(o in l)i=l[o],e[o]="function"==typeof i?i.call(t[s],s):i[s%i.length];delete e.cycle}function m(e){var t,s=[],o=e.length;for(t=0;t!==o;s.push(e[t++]));return s}var b=1e-10,e=c._internals,t=_._internals={},g=e.isSelector,y=e.isArray,v=e.lazyTweens,S=e.lazyRender,n=_fwd_gsScope.FWDFWD_gsDefine.globals,l=t.pauseCallback=function(){},s=_.prototype=new h;return _.version="1.19.0",s.constructor=_,s.kill()._gc=s._forcingPlayhead=s._hasPause=!1,s.to=function(e,t,s,o){var i=s.repeat&&n.FWDAnimation||c;return t?this.add(new i(e,t,s),o):this.set(e,s,o)},s.from=function(e,t,s,o){return this.add((s.repeat&&n.FWDAnimation||c).from(e,t,s),o)},s.fromTo=function(e,t,s,o,i){var l=o.repeat&&n.FWDAnimation||c;return t?this.add(l.fromTo(e,t,s,o),i):this.set(e,o,i)},s.staggerTo=function(e,t,s,o,i,l,n,a){var r,d,u=new _({onComplete:l,onCompleteParams:n,callbackScope:a,smoothChildTiming:this.smoothChildTiming}),h=s.cycle;for("string"==typeof e&&(e=c.selector(e)||e),g(e=e||[])&&(e=m(e)),(o=o||0)<0&&((e=m(e)).reverse(),o*=-1),d=0;de._startTime;r._timeline;)d&&r._timeline.smoothChildTiming?r.totalTime(r._totalTime,!0):r._gc&&r._enabled(!0,!1),r=r._timeline;return this},s.remove=function(e){if(e instanceof u){this._remove(e,!1);var t=e._timeline=e.vars.useFrames?u._rootFramesTimeline:u._rootTimeline;return e._startTime=(e._paused?e._pauseTime:t._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&y(e)){for(var s=e.length;-1<--s;)this.remove(e[s]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},s._remove=function(e,t){h.prototype._remove.call(this,e,t);var s=this._last;return s?this._time>s._startTime+s._totalDuration/s._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},s.append=function(e,t){return this.add(e,this._parseTimeOrLabel(null,t,!0,e))},s.insert=s.insertMultiple=function(e,t,s,o){return this.add(e,t||0,s,o)},s.appendMultiple=function(e,t,s,o){return this.add(e,this._parseTimeOrLabel(null,t,!0,e),s,o)},s.addLabel=function(e,t){return this._labels[e]=this._parseTimeOrLabel(t),this},s.addPause=function(e,t,s,o){var i=c.delayedCall(0,l,s,o||this);return i.vars.onComplete=i.vars.onReverseComplete=t,i.data="isPause",this._hasPause=!0,this.add(i,e)},s.removeLabel=function(e){return delete this._labels[e],this},s.getLabelTime=function(e){return null!=this._labels[e]?this._labels[e]:-1},s._parseTimeOrLabel=function(e,t,s,o){var i;if(o instanceof u&&o.timeline===this)this.remove(o);else if(o&&(o instanceof Array||o.push&&y(o)))for(i=o.length;-1<--i;)o[i]instanceof u&&o[i].timeline===this&&this.remove(o[i]);if("string"==typeof t)return this._parseTimeOrLabel(t,s&&"number"==typeof e&&null==this._labels[t]?e-this.duration():0,s);if(t=t||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(-1===(i=e.indexOf("=")))return null==this._labels[e]?s?this._labels[e]=this.duration()+t:t:this._labels[e]+t;t=parseInt(e.charAt(i-1)+"1",10)*Number(e.substr(i+1)),e=1b&&(n="onReverseComplete"))),this._rawPrevTime=this._duration||!t||e||this._rawPrevTime===e?e:b,e=u+1e-4;else if(e<1e-7)if(this._totalTime=this._time=0,(0!==h||0===this._duration&&this._rawPrevTime!==b&&(0=e&&!r;)o._duration||"isPause"===o.data&&0this._time;)r.render(r._reversed?r.totalDuration()-(e-r._startTime)*r._timeScale:(e-r._startTime)*r._timeScale,t,s),r=r._prev;r=null,this.pause()}o._reversed?o.render((o._dirty?o.totalDuration():o._totalDuration)-(e-o._startTime)*o._timeScale,t,s):o.render((e-o._startTime)*o._timeScale,t,s)}o=l}this._onUpdate&&(t||(v.length&&S(),this._callback("onUpdate"))),n&&(this._gc||c!==this._startTime&&_===this._timeScale||(0===this._time||u>=this.totalDuration())&&(i&&(v.length&&S(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[n]&&this._callback(n)))}},s._hasPausedChild=function(){for(var e=this._first;e;){if(e._paused||e instanceof _&&e._hasPausedChild())return!0;e=e._next}return!1},s.getChildren=function(e,t,s,o){o=o||-9999999999;for(var i=[],l=this._first,n=0;l;)l._startTime=s&&(i._startTime+=e),i=i._next;if(t)for(o in l)l[o]>=s&&(l[o]+=e);return this._uncache(!0)},s._kill=function(e,t){if(!e&&!t)return this._enabled(!1,!1);for(var s=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),o=s.length,i=!1;-1<--o;)s[o]._kill(e,t)&&(i=!0);return i},s.clear=function(e){var t=this.getChildren(!1,!0,!0),s=t.length;for(this._time=this._totalTime=0;-1<--s;)t[s]._enabled(!1,!1);return!1!==e&&(this._labels={}),this._uncache(!0)},s.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return u.prototype.invalidate.call(this)},s._enabled=function(e,t){if(e===this._gc)for(var s=this._first;s;)s._enabled(e,!0),s=s._next;return h.prototype._enabled.call(this,e,t)},s.totalTime=function(e,t,s){this._forcingPlayhead=!0;var o=u.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,o},s.duration=function(e){return arguments.length?(0!==this.duration()&&0!==e&&this.timeScale(this._duration/e),this):(this._dirty&&this.totalDuration(),this._duration)},s.totalDuration=function(e){if(arguments.length)return e&&this.totalDuration()?this.timeScale(this._totalDuration/e):this;if(this._dirty){for(var t,s,o=0,i=this._last,l=999999999999;i;)t=i._prev,i._dirty&&i.totalDuration(),i._startTime>l&&this._sortChildren&&!i._paused?this.add(i,i._startTime-i._delay):l=i._startTime,i._startTime<0&&!i._paused&&(o-=i._startTime,this._timeline.smoothChildTiming&&(this._startTime+=i._startTime/this._timeScale),this.shiftChildren(-i._startTime,!1,-9999999999),l=0),o<(s=i._startTime+i._totalDuration/i._timeScale)&&(o=s),i=t;this._duration=this._totalDuration=o,this._dirty=!1}return this._totalDuration},s.paused=function(e){if(!e)for(var t=this._first,s=this._time;t;)t._startTime===s&&"isPause"===t.data&&(t._rawPrevTime=0),t=t._next;return u.prototype.paused.apply(this,arguments)},s.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===u._rootFramesTimeline},s.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},_},!0),_fwd_gsScope.FWDFWD_gsDefine("TimelineMax",["FWDTimelineLite","FWDTweenLite","easing.Ease"],function(t,a,e){function s(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._dirty=!0}var D=1e-10,o=a._internals,W=o.lazyTweens,F=o.lazyRender,r=_fwd_gsScope.FWDFWD_gsDefine.globals,d=new e(null,null,1,0),i=s.prototype=new t;return i.constructor=s,i.kill()._gc=!1,s.version="1.19.0",i.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},i.addCallback=function(e,t,s,o){return this.add(a.delayedCall(0,e,s,o),t)},i.removeCallback=function(e,t){if(e)if(null==t)this._kill(null,e);else for(var s=this.getTweensOf(e,!1),o=s.length,i=this._parseTimeOrLabel(t);-1<--o;)s[o]._startTime===i&&s[o]._enabled(!1,!1);return this},i.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},i.tweenTo=function(e,t){t=t||{};var s,o,i,l={ease:d,useFrames:this.usesFrames(),immediateRender:!1},n=t.repeat&&r.FWDAnimation||a;for(o in t)l[o]=t[o];return l.time=this._parseTimeOrLabel(e),s=Math.abs(Number(l.time)-this._time)/this._timeScale||.001,i=new n(this,s,l),l.onStart=function(){i.target.paused(!0),i.vars.time!==i.target.time()&&s===i.duration()&&i.duration(Math.abs(i.vars.time-i.target.time())/i.target._timeScale),t.onStart&&i._callback("onStart")},i},i.tweenFromTo=function(e,t,s){s=s||{},e=this._parseTimeOrLabel(e),s.startAt={onComplete:this.seek,onCompleteParams:[e],callbackScope:this},s.immediateRender=!1!==s.immediateRender;var o=this.tweenTo(t,s);return o.duration(Math.abs(o.vars.time-e)/this._timeScale||.001)},i.render=function(e,t,s){this._gc&&this._enabled(!0,!1);var o,i,l,n,a,r,d,u,h=this._dirty?this.totalDuration():this._totalDuration,c=this._duration,_=this._time,f=this._totalTime,p=this._startTime,m=this._timeScale,b=this._rawPrevTime,g=this._paused,y=this._cycle;if(h-1e-7<=e)this._locked||(this._totalTime=h,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(i=!0,n="onComplete",a=!!this._timeline.autoRemoveChildren,0===this._duration&&(e<=0&&-1e-7<=e||b<0||b===D)&&b!==e&&this._first&&(a=!0,D>0,0!==this._cycle&&this._cycle===this._totalTime/r&&f<=e&&this._cycle--,this._time=this._totalTime-this._cycle*r,this._yoyo&&0!=(1&this._cycle)&&(this._time=c-this._time),this._time>c?e=(this._time=c)+1e-4:this._time<0?this._time=e=0:e=this._time)),this._hasPause&&!this._forcingPlayhead&&!t){if(_<=(e=this._time))for(o=this._first;o&&o._startTime<=e&&!d;)o._duration||"isPause"!==o.data||o.ratio||0===o._startTime&&0===this._rawPrevTime||(d=o),o=o._next;else for(o=this._last;o&&o._startTime>=e&&!d;)o._duration||"isPause"===o.data&&0this._time;)d.render(d._reversed?d.totalDuration()-(e-d._startTime)*d._timeScale:(e-d._startTime)*d._timeScale,t,s),d=d._prev;d=null,this.pause()}o._reversed?o.render((o._dirty?o.totalDuration():o._totalDuration)-(e-o._startTime)*o._timeScale,t,s):o.render((e-o._startTime)*o._timeScale,t,s)}o=l}this._onUpdate&&(t||(W.length&&F(),this._callback("onUpdate"))),n&&(this._locked||this._gc||p!==this._startTime&&m===this._timeScale||(0===this._time||h>=this.totalDuration())&&(i&&(W.length&&F(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[n]&&this._callback(n)))}else f!==this._totalTime&&this._onUpdate&&(t||this._callback("onUpdate"))},i.getActive=function(e,t,s){null==e&&(e=!0),null==t&&(t=!0),null==s&&(s=!1);var o,i,l=[],n=this.getChildren(e,t,s),a=0,r=n.length;for(o=0;oe)return s[t].name;return null},i.getLabelBefore=function(e){null==e&&(e=this._time);for(var t=this.getLabelsArray(),s=t.length;-1<--s;)if(t[s].timethis._duration&&(e=this._duration),this._yoyo&&0!=(1&this._cycle)?e=this._duration-e+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(e+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(e,t)):this._time},i.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},i.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},i.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},i.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.getLabelBefore(this._time+1e-8)},s},!0),w=180/Math.PI,P=[],T=[],B=[],v={},s=_fwd_gsScope.FWDFWD_gsDefine.globals,m=_fwd_gsScope.FWDFWD_gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.7",API:2,fwd_global:!0,init:function(e,t,s){this._target=e,t instanceof Array&&(t={values:t}),this._func={},this._mod={},this._props=[],this._timeRes=null==t.timeResolution?6:parseInt(t.timeResolution,10);var o,i,l,n,a,r=t.values||[],d={},u=r[0],h=t.autoRotate||s.vars.orientToBezier;for(o in this._autoRotate=h?h instanceof Array?h:[["x","y","rotation",!0===h?0:Number(h)||0]]:null,u)this._props.push(o);for(l=this._props.length;-1<--l;)o=this._props[l],this._overwriteProps.push(o),i=this._func[o]="function"==typeof e[o],d[o]=i?e[o.indexOf("set")||"function"!=typeof e["get"+o.substr(3)]?o:"get"+o.substr(3)]():parseFloat(e[o]),a||d[o]!==r[0][o]&&(a=d);if(this._beziers="cubic"!==t.type&&"quadratic"!==t.type&&"soft"!==t.type?_(r,isNaN(t.curviness)?1:t.curviness,!1,"thruBasic"===t.type,t.correlate,a):function(e,t,s){var o,i,l,n,a,r,d,u,h,c,_,f={},p="cubic"===(t=t||"soft")?3:2,m="soft"===t,b=[];if(m&&s&&(e=[s].concat(e)),null==e||e.length<1+p)throw"invalid Bezier data";for(h in e[0])b.push(h);for(r=b.length;-1<--r;){for(f[h=b[r]]=a=[],c=0,u=e.length,d=0;d>0||6)-1,h=[],c=[];for(s in e)f(e[s],n,t);for(i=n.length,o=0;o>0]=c,a[l]=d,r=0,c=[]);return{length:d,lengths:a,segments:h}}(this._beziers,this._timeRes);this._length=c.length,this._lengths=c.lengths,this._segments=c.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(h=this._autoRotate)for(this._initialRotations=[],h[0]instanceof Array||(this._autoRotate=h=[h]),l=h.length;-1<--l;){for(n=0;n<3;n++)o=h[l][n],this._func[o]="function"==typeof e[o]&&e[o.indexOf("set")||"function"!=typeof e["get"+o.substr(3)]?o:"get"+o.substr(3)];o=h[l][2],this._initialRotations[l]=(this._func[o]?this._func[o].call(this._target):this._target[o])||0,this._overwriteProps.push(o)}return this._startRatio=s.vars.runBackwards?1:0,!0},set:function(e){var t,s,o,i,l,n,a,r,d,u,h=this._segCount,c=this._func,_=this._target,f=e!==this._startRatio;if(this._timeRes){if(d=this._lengths,u=this._curSeg,e*=this._length,o=this._li,e>this._l2&&o=e;);0===o&&ethis._s2&&o=e;);0===o&&e>0)*(1/h))*h;for(s=1-n,o=this._props.length;-1<--o;)i=this._props[o],a=(n*n*(l=this._beziers[i][t]).da+3*s*(n*l.ca+s*l.ba))*n+l.a,this._mod[i]&&(a=this._mod[i](a,_)),c[i]?_[i](a):"x"==i?_.setX(a):"y"==i?_.setY(a):"z"==i?_.setZ(a):"angleX"==i?_.setAngleX(a):"angleY"==i?_.setAngleY(a):"angleZ"==i?_.setAngleZ(a):"w"==i?_.setWidth(a):"h"==i?_.setHeight(a):"alpha"==i?_.setAlpha(a):"scale"==i?_.setScale2(a):_[i]=a;if(this._autoRotate){var p,m,b,g,y,v,S,P=this._autoRotate;for(o=P.length;-1<--o;)i=P[o][2],v=P[o][3]||0,S=!0===P[o][4]?1:w,l=this._beziers[P[o][0]],p=this._beziers[P[o][1]],l&&p&&(l=l[t],p=p[t],m=l.a+(l.b-l.a)*n,m+=((g=l.b+(l.c-l.b)*n)-m)*n,g+=(l.c+(l.d-l.c)*n-g)*n,b=p.a+(p.b-p.a)*n,b+=((y=p.b+(p.c-p.b)*n)-b)*n,y+=(p.c+(p.d-p.c)*n-y)*n,a=f?Math.atan2(y-b,g-m)*S+v:this._initialRotations[o],this._mod[i]&&(a=this._mod[i](a,_)),c[i]?_[i](a):_[i]=a)}}}),e=m.prototype,m.bezierThrough=_,m.cubicToQuadratic=S,m._autoCSS=!0,m.quadraticToCubic=function(e,t,s){return new g(e,(2*t+e)/3,(2*t+s)/3,s)},m._cssRegister=function(){var e=s.CSSPlugin;if(e){var t=e._internals,_=t._parseToProxy,f=t._setPluginRatio,p=t.CSSPropTween;t._registerComplexSpecialProp("bezier",{parser:function(e,t,s,o,i,l){t instanceof Array&&(t={values:t}),l=new m;var n,a,r,d=t.values,u=d.length-1,h=[],c={};if(u<0)return i;for(n=0;n<=u;n++)r=_(e,d[n],o,i,l,u!==n),h[n]=r.end;for(a in t)c[a]=t[a];return c.values=h,(i=new p(e,"bezier",0,0,r.pt,2)).data=r,i.plugin=l,i.setRatio=f,0===c.autoRotate&&(c.autoRotate=!0),!c.autoRotate||c.autoRotate instanceof Array||(n=!0===c.autoRotate?0:Number(c.autoRotate),c.autoRotate=null!=r.end.left?[["left","top","rotation",n,!1]]:null!=r.end.x&&[["x","y","rotation",n,!1]]),c.autoRotate&&(o._transform||o._enableTransforms(!1),r.autoRotate=o._target._gsTransform,r.proxy.rotation=r.autoRotate.rotation||0,o._overwriteProps.push("rotation")),l._onInitTween(r.proxy,c,o._tween),i}})}},e._mod=function(e){for(var t,s=this._overwriteProps,o=s.length;-1<--o;)(t=e[s[o]])&&"function"==typeof t&&(this._mod[s[o]]=t)},e._kill=function(e){var t,s,o=this._props;for(t in this._beziers)if(t in e)for(delete this._beziers[t],delete this._func[t],s=o.length;-1<--s;)o[s]===t&&o.splice(s,1);if(o=this._autoRotate)for(s=o.length;-1<--s;)e[o[s][2]]&&o.splice(s,1);return this._super._kill.call(this,e)},_fwd_gsScope.FWDFWD_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","FWDTweenLite"],function(l,L){var f,T,B,p,R=function(){l.call(this,"css"),this._overwriteProps.length=0,this.setRatio=R.prototype.setRatio},d=_fwd_gsScope.FWDFWD_gsDefine.globals,m={},e=R.prototype=new l("css");(e.constructor=R).version="1.19.0",R.API=2,R.defaultTransformPerspective=0,R.defaultSkewType="compensated",R.defaultSmoothOrigin=!0,e="px",R.suffixMap={top:e,right:e,bottom:e,left:e,width:e,height:e,fontSize:e,padding:e,margin:e,perspective:e,lineHeight:""};function n(e,t){return t.toUpperCase()}function t(e){return Z.createElementNS?Z.createElementNS("http://www.w3.org/1999/xhtml",e):Z.createElement(e)}function a(e){return M.test("string"==typeof e?e:(e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100:1}function b(e){window.console&&console.log(e)}function D(e,t){var s,o,i=(t=t||ee).style;if(void 0!==i[e])return e;for(e=e.charAt(0).toUpperCase()+e.substr(1),s=["O","Moz","ms","Ms","Webkit"],o=5;-1<--o&&void 0===i[s[o]+e];);return 0<=o?(le="-"+(ne=3===o?"ms":s[o]).toLowerCase()+"-",ne+e):null}function g(e,t){var s,o,i,l={};if(t=t||ae(e,null))if(s=t.length)for(;-1<--s;)-1!==(i=t[s]).indexOf("-transform")&&Ae!==i||(l[i.replace(c,n)]=t.getPropertyValue(i));else for(s in t)-1!==s.indexOf("Transform")&&xe!==s||(l[s]=t[s]);else if(t=e.currentStyle||e.style)for(s in t)"string"==typeof s&&void 0===l[s]&&(l[s.replace(c,n)]=t[s]);return ie||(l.opacity=a(e)),o=Qe(e,t,!1),l.rotation=o.rotation,l.skewX=o.skewX,l.scaleX=o.scaleX,l.scaleY=o.scaleY,l.x=o.x,l.y=o.y,Me&&(l.z=o.z,l.rotationX=o.rotationX,l.rotationY=o.rotationY,l.scaleZ=o.scaleZ),l.filters&&delete l.filters,l}function y(e,t,s,o,i){var l,n,a,r={},d=e.style;for(n in s)"cssText"!==n&&"length"!==n&&isNaN(n)&&(t[n]!==(l=s[n])||i&&i[n])&&-1===n.indexOf("Origin")&&("number"!=typeof l&&"string"!=typeof l||(r[n]="auto"!==l||"left"!==n&&"top"!==n?""!==l&&"auto"!==l&&"none"!==l||"string"!=typeof t[n]||""===t[n].replace(u,"")?l:0:ue(e,n),void 0!==d[n]&&(a=new ve(d,n,d[n],a))));if(o)for(n in o)"className"!==n&&(r[n]=o[n]);return{difs:r,firstMPT:a}}function v(e,t,s){if("svg"===(e.nodeName+"").toLowerCase())return(s||ae(e))[t]||0;if(e.getBBox&&Ye(e))return e.getBBox()[t]||0;var o=parseFloat("width"===t?e.offsetWidth:e.offsetHeight),i=he[t],l=i.length;for(s=s||ae(e,null);-1<--l;)o-=parseFloat(re(e,"padding"+i[l],s,!0))||0,o-=parseFloat(re(e,"border"+i[l]+"Width",s,!0))||0;return o}function W(e,t){return"function"==typeof e&&(e=e(E,V)),"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2)):parseFloat(e)-parseFloat(t)||0}function F(e,t){return"function"==typeof e&&(e=e(E,V)),null==e?t:"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2))+t:parseFloat(e)||0}function H(e,t,s,o){var i,l,n,a,r;return"function"==typeof e&&(e=e(E,V)),(a=null==e?t:"number"==typeof e?e:(i=360,l=e.split("_"),n=((r="="===e.charAt(1))?parseInt(e.charAt(0)+"1",10)*parseFloat(l[0].substr(2)):parseFloat(l[0]))*(-1===e.indexOf("rad")?1:J)-(r?0:t),l.length&&(o&&(o[s]=t+n),-1!==e.indexOf("short")&&(n%=i)!==n%180&&(n=n<0?n+i:n-i),-1!==e.indexOf("_cw")&&n<0?n=(n+3599999999640)%i-(n/i|0)*i:-1!==e.indexOf("ccw")&&0>16,e>>8&255,255&e];else{if(","===e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)),fe[e])s=fe[e];else if("#"===e.charAt(0))4===e.length&&(e="#"+(o=e.charAt(1))+o+(i=e.charAt(2))+i+(l=e.charAt(3))+l),s=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e];else if("hsl"===e.substr(0,3))if(s=c=e.match(O),t){if(-1!==e.indexOf("="))return e.match(I)}else n=Number(s[0])%360/360,a=Number(s[1])/100,o=2*(r=Number(s[2])/100)-(i=r<=.5?r*(a+1):r+a-r*a),3o--)for(;++o<_;)s[o]=l?s[(o-1)/2|0]:d[o];return u+s.join(c)+c+t+h+(-1!==e.indexOf("inset")?" inset":"")}:function(e){var t,s,o;if("number"==typeof e)e+=f;else if(n&&G.test(e)){for(s=e.replace(G,"|").split("|"),o=0;oo--)for(;++o<_;)t[o]=l?t[(o-1)/2|0]:d[o];return u+t.join(c)+h}:function(e){return e}}function ge(d){return d=d.split(","),function(e,t,s,o,i,l,n){var a,r=(t+"").split(" ");for(n={},a=0;a<4;a++)n[d[a]]=r[a]=r[a]||r[(a-1)/2>>0];return o.parse(e,n,i,l)}}se._setPluginRatio=function(e){this.plugin.setRatio(e);for(var t,s,o,i,l,n=this.data,a=n.proxy,r=n.firstMPT;r;)t=a[r.v],r.r?t=Math.round(t):t<1e-6&&-1e-6a.length?r.length:a.length,n=0;nl.pr;)n=n._next;(l._prev=n?n._prev:r)?l._prev._next=l:a=l,(l._next=n)?n._prev=l:r=l,l=d}this._firstPT=a}return!0},e.parse=function(e,t,s,o){var i,l,n,a,r,d,u,h,c,_,f=e.style;for(i in t)"function"==typeof(d=t[i])&&(d=d(E,V)),(l=m[i])?s=l.parse(e,d,i,this,s,o,t):(r=re(e,i,B)+"",c="string"==typeof d,"color"===i||"fill"===i||"stroke"===i||-1!==i.indexOf("Color")||c&&j.test(d)?(c||(d=(3<(d=pe(d)).length?"rgba(":"rgb(")+d.join(",")+")"),s=Pe(f,i,r,d,!0,"transparent",s,0,o)):c&&q.test(d)?s=Pe(f,i,r,d,!0,null,s,0,o):(u=(n=parseFloat(r))||0===n?r.substr((n+"").length):"",""!==r&&"auto"!==r||(u="width"===i||"height"===i?(n=v(e,i,B),"px"):"left"===i||"top"===i?(n=ue(e,i,B),"px"):(n="opacity"!==i?0:1,"")),""===(h=(_=c&&"="===d.charAt(1))?(a=parseInt(d.charAt(0)+"1",10),d=d.substr(2),a*=parseFloat(d),d.replace(A,"")):(a=parseFloat(d),c?d.replace(A,""):""))&&(h=i in T?T[i]:u),d=a||0===a?(_?a+n:a)+h:t[i],u!==h&&""!==h&&(a||0===a)&&n&&(n=de(e,i,n,u),"%"===h?(n/=de(e,i,100,"%")/100,!0!==t.strictUnits&&(r=n+"%")):"em"===h||"rem"===h||"vw"===h||"vh"===h?n/=de(e,i,1,h):"px"!==h&&(a=de(e,i,a,h),h="px"),_&&(!a&&0!==a||(d=a+n+h))),_&&(a+=n),!n&&0!==n||!a&&0!==a?void 0!==f[i]&&(d||d+""!="NaN"&&null!=d)?(s=new Se(f,i,a||n||0,0,s,-1,i,!1,0,r,d)).xs0="none"!==d||"display"!==i&&-1===i.indexOf("Style")?d:r:b("invalid "+i+" tween value: "+t[i]):(s=new Se(f,i,n,a-n,s,0,i,!1!==U&&("px"===h||"zIndex"===i),0,r,d)).xs0=h)),o&&s&&!s.plugin&&(s.plugin=o);return s},e.setRatio=function(e){var t,s,o,i=this._firstPT;if(1!==e||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(e||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;i;){if(t=i.c*e+i.s,i.r?t=Math.round(t):t<1e-6&&-1e-6this._p3?this._calcEnd?1-(e=(e-this._p3)/this._p1)*e:t+(e-t)*(e=(e-this._p3)/this._p1)*e*e*e:this._calcEnd?1:t},_.ease=new _(.7,.7),f.config=_.config=function(e,t,s){return new _(e,t,s)},(f=(o=u("easing.SteppedEase",function(e){e=e||1,this._p1=1/e,this._p2=e+1},!0)).prototype=new m).constructor=o,f.getRatio=function(e){return e<0?e=0:1<=e&&(e=.999999999),(this._p2*e>>0)*this._p1},f.config=o.config=function(e){return new o(e)},(f=(i=u("easing.RoughEase",function(e){for(var t,s,o,i,l,n,a=(e=e||{}).taper||"none",r=[],d=0,u=0|(e.points||20),h=u,c=!1!==e.randomize,_=!0===e.clamp,f=e.template instanceof m?e.template:null,p="number"==typeof e.strength?.4*e.strength:.4;-1<--h;)t=c?Math.random():1/u*h,s=f?f.getRatio(t):t,o="none"===a?p:"out"===a?(i=1-t)*i*p:"in"===a?t*t*p:t<.5?(i=2*t)*i*.5*p:(i=2*(1-t))*i*.5*p,c?s+=Math.random()*o-.5*o:h%2?s+=.5*o:s-=.5*o,_&&(1t.t){for(;t.next&&e>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&e<=t.t;)t=t.prev;return(this._prev=t).v+(e-t.t)/t.gap*t.c},f.config=function(e){return new i(e)},i.ease=new i,t("Bounce",e("BounceOut",function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}),e("BounceIn",function(e){return(e=1-e)<1/2.75?1-7.5625*e*e:e<2/2.75?1-(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?1-(7.5625*(e-=2.25/2.75)*e+.9375):1-(7.5625*(e-=2.625/2.75)*e+.984375)}),e("BounceInOut",function(e){var t=e<.5;return(e=t?1-2*e:2*e-1)<1/2.75?e*=7.5625*e:e=e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,t?.5*(1-e):.5*e+.5})),t("Circ",e("CircOut",function(e){return Math.sqrt(1- --e*e)}),e("CircIn",function(e){return-(Math.sqrt(1-e*e)-1)}),e("CircInOut",function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)})),t("Elastic",(l=function(e,t,s){var o=u("easing."+e,function(e,t){this._p1=1<=e?e:1,this._p2=(t||s)/(e<1?e:1),this._p3=this._p2/r*(Math.asin(1/this._p1)||0),this._p2=r/this._p2},!0),i=o.prototype=new m;return i.constructor=o,i.getRatio=t,i.config=function(e,t){return new o(e,t)},o})("ElasticOut",function(e){return this._p1*Math.pow(2,-10*e)*Math.sin((e-this._p3)*this._p2)+1},.3),l("ElasticIn",function(e){return-this._p1*Math.pow(2,10*--e)*Math.sin((e-this._p3)*this._p2)},.3),l("ElasticInOut",function(e){return(e*=2)<1?this._p1*Math.pow(2,10*--e)*Math.sin((e-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*--e)*Math.sin((e-this._p3)*this._p2)*.5+1},.45)),t("Expo",e("ExpoOut",function(e){return 1-Math.pow(2,-10*e)}),e("ExpoIn",function(e){return Math.pow(2,10*(e-1))-.001}),e("ExpoInOut",function(e){return(e*=2)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*(e-1)))})),t("Sine",e("SineOut",function(e){return Math.sin(e*d)}),e("SineIn",function(e){return 1-Math.cos(e*d)}),e("SineInOut",function(e){return-.5*(Math.cos(Math.PI*e)-1)})),u("easing.EaseLookup",{find:function(e){return m.map[e]}},!0),h(n.SlowMo,"SlowMo","ease,"),h(i,"RoughEase","ease,"),h(o,"SteppedEase","ease,"),c},!0)}),_fwd_gsScope.FWDFWD_gsDefine&&_fwd_gsScope._fwd_gsQueue.pop()(),function(_,f){"use strict";var p={},m=_.FWDGreenSockGlobals=_.FWDGreenSockGlobals||_;if(!m.FWDTweenLite){var e,t,s,b,g,o,i,y=function(e){var t,s=e.split("."),o=m;for(t=0;t=s&&ethis._duration?this._duration:e,t)):this._time},s.totalTime=function(e,t,s){if(g||b.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(e<0&&!s&&(e+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var o=this._totalDuration,i=this._timeline;if(ol;)i=i._prev;return i?(e._next=i._next,i._next=e):(e._next=this._first,this._first=e),e._next?e._next._prev=e:this._last=e,e._prev=i,this._recent=e,this._timeline&&this._uncache(!0),this},s._remove=function(e,t){return e.timeline===this&&(t||e._enabled(!1,!0),e._prev?e._prev._next=e._next:this._first===e&&(this._first=e._next),e._next?e._next._prev=e._prev:this._last===e&&(this._last=e._prev),e._next=e._prev=e.timeline=null,e===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},s.render=function(e,t,s){var o,i=this._first;for(this._totalTime=this._time=this._rawPrevTime=e;i;)o=i._next,(i._active||e>=i._startTime&&!i._paused)&&(i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,s):i.render((e-i._startTime)*i._timeScale,t,s)),i=o},s.rawTime=function(){return g||b.wake(),this._totalTime};var E=c("FWDTweenLite",function(e,t,s){if(d.call(this,t,s),this.render=E.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:E.selector(e)||e;var o,i,l,n=e.jquery||e.length&&e!==_&&e[0]&&(e[0]===_||e[0].nodeType&&e[0].style&&!e.nodeType),a=this.vars.overwrite;if(this._overwrite=a=null==a?z[E.defaultOverwrite]:"number"==typeof a?a>>0:z[a],(n||e instanceof Array||e.push&&P(e))&&"number"!=typeof e[0])for(this._targets=l=r(e),this._propLookup=[],this._siblings=[],o=0;o=q){for(s in q=b.frame+(parseInt(E.autoSleep,10)||120),j){for(e=(t=j[s].tweens).length;-1<--e;)t[e]._gc&&t.splice(e,1);0===t.length&&delete j[s]}if((!(s=G._first)||s._paused)&&E.autoSleep&&!Q._first&&1===b._listeners.tick.length){for(;s&&s._paused;)s=s._next;s||b.sleep()}}},b.addEventListener("tick",d._updateRoot);var J=function(e,t,s){var o,i,l=e._gsTweenID;if(j[l||(e._gsTweenID=l="t"+Y++)]||(j[l]={target:e,tweens:[]}),t&&((o=j[l].tweens)[i=o.length]=t,s))for(;-1<--i;)o[i]===t&&o.splice(i,1);return j[l].tweens},$=function(e,t,s,o){var i,l,n=e.vars.onOverwrite;return n&&(i=n(e,t,s,o)),(n=E.onOverwrite)&&(l=n(e,t,s,o)),!1!==i&&!1!==l},Z=function(e,t,s,o,i){var l,n,a,r;if(1===o||4<=o){for(r=i.length,l=0;lu&&((_||!a._initted)&&u-a._startTime<=2e-10||(h[c++]=a)));for(l=c;-1<--l;)if(a=h[l],2===o&&a._kill(s,e,t)&&(n=!0),2!==o||!a._firstPT&&a._initted){if(2!==o&&!$(a,t))continue;a._enabled(!1,!1)&&(n=!0)}return n},ee=function(e,t,s){for(var o=e._timeline,i=o._timeScale,l=e._startTime;o._timeline;){if(l+=o._startTime,i*=o._timeScale,o._paused)return-100;o=o._timeline}return t<(l/=i)?l-t:s&&l===t||!e._initted&&l-t<2*v?v:(l+=e.totalDuration()/e._timeScale/i)>t+v?0:l-t-v};s._init=function(){var e,t,s,o,i,l,n=this.vars,a=this._overwrittenProps,r=this._duration,d=!!n.immediateRender,u=n.ease;if(n.startAt){for(o in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),i={},n.startAt)i[o]=n.startAt[o];if(i.overwrite=!1,i.immediateRender=!0,i.lazy=d&&!1!==n.lazy,i.startAt=i.delay=null,this._startAt=E.to(this.target,0,i),d)if(0a.pr;)o=o._next;(a._prev=o?o._prev:l)?a._prev._next=a:i=a,(a._next=o)?o._prev=a:l=a,a=n}a=t._firstPT=i}for(;a;)a.pg&&"function"==typeof a.t[e]&&a.t[e]()&&(s=!0),a=a._next;return s},te.activate=function(e){for(var t=e.length;-1<--t;)e[t].API===te.API&&(N[(new e[t])._propName]=e[t]);return!0},l.plugin=function(e){if(!(e&&e.propName&&e.init&&e.API))throw"illegal plugin definition.";var t,s=e.propName,o=e.priority||0,i=e.overwriteProps,l={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},n=c("plugins."+s.charAt(0).toUpperCase()+s.substr(1)+"Plugin",function(){te.call(this,s,o),this._overwriteProps=i||[]},!0===e.fwd_global),a=n.prototype=new te(s);for(t in(a.constructor=n).API=e.API,l)"function"==typeof e[t]&&(a[l[t]]=e[t]);return n.version=e.version,te.activate([n]),n},e=_._fwd_gsQueue){for(t=0;tJavaScript error: "+e+" on line "+s+" for "+t;i.main_do.setInnerHTML(o),i.main_do.screen.scrollTop=i.main_do.screen.scrollHeight},this.log=function(e){var t=i.main_do.getInnerHTML()+"
"+e;i.main_do.setInnerHTML(t),i.main_do.getScreen().scrollTop=1e4},this.init()};t.setPrototype=function(){t.prototype=new FWDUVPDisplayObject("div","absolute")},t.prototype=null,e.FWDConsole=t}(window),function(e){var _=function(e,t,s,o,i,l,n,a,r,d,u,h){var c=this;_.prototype;this.main_do=null,this.icon_do=null,this.iconS_do=null,this.bk_do=null,this.text_do=null,this.border_do=null,this.thumbHolder_do=null,this.icon_img=e,c.useHEX=d,c.nBC=u,c.sBC=h,this.borderNColor_str=i,this.borderSColor_str=l,this.adsBackgroundPath_str=n,this.position_str=o,this.textNormalColor_str=a,this.textSelectedColor_str=r,this.text_str=s,this.iconOverPath_str=t,this.totalWidth=215,this.totalHeight=64,this.fontSize=12,this.hasThumbanil_bl=!1,this.isShowed_bl=!1,this.isMbl=FWDUVPUtils.isMobile,this.hasPointerEvent_bl=FWDUVPUtils.hasPointerEvent,c.init=function(){c.setOverflow("visible"),c.setupMainContainers(),c.hide(!1,!0)},c.setupMainContainers=function(){this.main_do=new FWDUVPDisplayObject("div"),this.main_do.hasTransform3d_bl=!1,this.main_do.hasTransform2d_bl=!1,this.main_do.setBackfaceVisibility(),this.bk_do=new FWDUVPDisplayObject("div"),this.bk_do.getStyle().background="url('"+this.adsBackgroundPath_str+"')",this.text_do=new FWDUVPDisplayObject("div"),this.text_do.screen.className="UVP-skip",this.text_do.hasTransform3d_bl=!1,this.text_do.hasTransform2d_bl=!1,this.text_do.setBackfaceVisibility(),this.text_do.setOverflow("visible"),this.text_do.getStyle().display="inline",this.text_do.getStyle().fontFamily="Arial",this.text_do.getStyle().fontSize="22px",this.text_do.getStyle().whiteSpace="nowrap",this.text_do.getStyle().color=this.textNormalColor_str,this.text_do.getStyle().fontSmoothing="antialiased",this.text_do.getStyle().webkitFontSmoothing="antialiased",this.text_do.getStyle().textRendering="optimizeLegibility",this.thumbHolder_do=new FWDUVPDisplayObject("div"),this.thumbHolder_do.setWidth(this.totalHeight-8),this.thumbHolder_do.setHeight(this.totalHeight-8),this.thumbHolder_do.setX(this.totalWidth-this.thumbHolder_do.w-4),this.thumbHolder_do.setY(4),this.border_do=new FWDUVPDisplayObject("div"),this.border_do.getStyle().border="1px solid "+this.borderNColor_str,this.border_do.setButtonMode(!0),this.main_do.setWidth(this.totalWidth),this.main_do.setHeight(this.totalHeight),this.bk_do.setWidth(this.totalWidth),this.bk_do.setHeight(this.totalHeight),"left"==this.position_str?(this.border_do.setX(-1),this.border_do.setWidth(this.totalWidth-1)):this.border_do.setWidth(this.totalWidth),this.border_do.setHeight(this.totalHeight-2),this.setWidth(this.totalWidth),this.setHeight(this.totalHeight),this.useHEX?(this.icon_do=new FWDUVPDisplayObject("div"),this.icon_do.setWidth(c.icon_img.width),this.icon_do.setHeight(c.icon_img.height),this.icon_do_canvas=FWDUVPUtils.getCanvasWithModifiedColor(this.icon_img,this.nBC).canvas,this.icon_do.screen.appendChild(c.icon_do_canvas)):(this.icon_do=new FWDUVPDisplayObject("img"),this.icon_do.setScreen(this.icon_img),this.icon_do.setWidth(this.icon_img.width),this.icon_do.setHeight(this.icon_img.height)),this.iconS_img=new Image,this.iconS_img.src=this.iconOverPath_str,this.useHEX?(this.iconS_do=new FWDUVPDisplayObject("div"),this.iconS_do.setWidth(this.icon_do.w),this.iconS_do.setHeight(this.icon_do.h),this.iconS_img.onload=function(){c.iconS_do_canvas=FWDUVPUtils.getCanvasWithModifiedColor(c.iconS_img,c.sBC).canvas,c.iconS_do.screen.appendChild(c.iconS_do_canvas)}):(this.iconS_do=new FWDUVPDisplayObject("img"),this.iconS_do.setScreen(this.iconS_img),this.iconS_do.setWidth(this.icon_do.w),this.iconS_do.setHeight(this.icon_do.h)),this.iconS_do.setAlpha(0),this.main_do.addChild(this.bk_do),this.main_do.addChild(this.text_do),this.main_do.addChild(this.thumbHolder_do),this.main_do.addChild(this.icon_do),this.main_do.addChild(this.iconS_do),this.main_do.addChild(this.border_do),FWDUVPUtils.isIEAndLessThen9&&(this.dumy_do=new FWDUVPDisplayObject("div"),this.dumy_do.setBkColor("#00FF00"),this.dumy_do.setAlpha(1e-4),this.dumy_do.setWidth(this.totalWidth),this.dumy_do.setHeight(this.totalHeight),this.dumy_do.setButtonMode(!0),this.main_do.addChild(this.dumy_do)),this.addChild(this.main_do),this.updateText(c.text_str),FWDUVPUtils.isIEAndLessThen9?c.isMbl?c.hasPointerEvent_bl?(c.dumy_do.screen.addEventListener("pointerup",c.onMouseUp),c.dumy_do.screen.addEventListener("pointerover",c.onMouseOver),c.dumy_do.screen.addEventListener("pointerout",c.onMouseOut)):c.dumy_do.screen.addEventListener("touchend",c.onMouseUp):c.dumy_do.screen.addEventListener?(c.dumy_do.screen.addEventListener("mouseover",c.onMouseOver),c.dumy_do.screen.addEventListener("mouseout",c.onMouseOut),c.dumy_do.screen.addEventListener("mouseup",c.onMouseUp)):c.dumy_do.screen.attachEvent&&(c.dumy_do.screen.attachEvent("onmouseover",c.onMouseOver),c.dumy_do.screen.attachEvent("onmouseout",c.onMouseOut),c.dumy_do.screen.attachEvent("onmouseup",c.onMouseUp)):c.isMbl?c.hasPointerEvent_bl?(c.border_do.screen.addEventListener("pointerup",c.onMouseUp),c.border_do.screen.addEventListener("pointerover",c.onMouseOver),c.border_do.screen.addEventListener("pointerout",c.onMouseOut)):c.border_do.screen.addEventListener("touchend",c.onMouseUp):c.border_do.screen.addEventListener?(c.border_do.screen.addEventListener("mouseover",c.onMouseOver),c.border_do.screen.addEventListener("mouseout",c.onMouseOut),c.border_do.screen.addEventListener("mouseup",c.onMouseUp)):c.border_do.screen.attachEvent&&(c.border_do.screen.attachEvent("onmouseover",c.onMouseOver),c.border_do.screen.attachEvent("onmouseout",c.onMouseOut),c.border_do.screen.attachEvent("onmouseup",c.onMouseUp))},c.onMouseOver=function(e){e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE&&"mouse"!=e.pointerType||c.setSelectedState()},c.onMouseOut=function(e){e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE&&"mouse"!=e.pointerType||c.setNormalState()},c.onMouseUp=function(e){e.preventDefault&&e.preventDefault(),2!=e.button&&c.isShowed_bl&&c.dispatchEvent(_.MOUSE_UP)},this.updateText=function(e){var t;this.text_do.setInnerHTML(e),setTimeout(function(){t=c.text_do.getWidth()+8+c.iconS_do.w,c.text_do.setX(parseInt(c.totalWidth-t)/2),c.text_do.setY(parseInt((c.totalHeight-c.text_do.getHeight())/2)+2),c.icon_do.setX(c.text_do.x+t-c.iconS_do.w),c.icon_do.setY(parseInt((c.totalHeight-c.iconS_do.h)/2)+2),c.iconS_do.setX(c.text_do.x+t-c.iconS_do.w),c.iconS_do.setY(parseInt((c.totalHeight-c.iconS_do.h)/2)+2)},50)},this.resize=function(e){var t=c.totalWidth;e&&(t=64),e?(this.text_do.setVisible(!1),c.icon_do.setX(Math.round((t-c.iconS_do.w)/2)-1),c.icon_do.setY(Math.round((c.totalHeight-c.iconS_do.h)/2))):(this.text_do.setVisible(!0),c.icon_do.setX(c.text_do.x+c.text_do.getWidth()+8+c.iconS_do.w-c.iconS_do.w),c.icon_do.setY(parseInt((c.totalHeight-c.iconS_do.h)/2)+2)),c.iconS_do.setX(c.icon_do.x),c.iconS_do.setY(c.icon_do.y),c.setWidth(t),c.main_do.setWidth(t),c.bk_do.setWidth(t),c.border_do.setWidth(t-1)},this.setNormalState=function(){FWDAnimation.to(c.iconS_do,.5,{alpha:0,ease:Expo.easeOut}),FWDAnimation.to(c.text_do.screen,.5,{css:{color:c.textNormalColor_str},ease:Expo.easeOut}),FWDAnimation.to(c.border_do.screen,.5,{css:{borderColor:c.borderNColor_str},ease:Expo.easeOut})},this.setSelectedState=function(){FWDAnimation.to(c.iconS_do,.5,{alpha:1,ease:Expo.easeOut}),FWDAnimation.to(c.text_do.screen,.5,{css:{color:c.textSelectedColor_str},ease:Expo.easeOut}),FWDAnimation.to(c.border_do.screen,.5,{css:{borderColor:c.borderSColor_str},ease:Expo.easeOut})},this.show=function(e){this.isShowed_bl||(this.isShowed_bl=!0,this.setVisible(!0),FWDAnimation.killTweensOf(this.main_do),e&&!c.isMbl?"left"==this.position_str?FWDAnimation.to(this.main_do,.8,{x:0,delay:.8,ease:Expo.easeInOut}):FWDAnimation.to(this.main_do,.8,{x:1-this.totalWidth,delay:.8,ease:Expo.easeInOut}):"left"==this.position_str?this.main_do.setX(0):this.main_do.setX(-this.totalWidth),this.text_do.getStyle().color=this.textNormalColor_str)},this.hide=function(e,t){(this.isShowed_bl||t)&&(this.isShowed_bl=!1,this.hasThumbanil_bl=!1,FWDAnimation.killTweensOf(this.main_do),e&&!c.isMbl?"left"==this.position_str?FWDAnimation.to(this.main_do,.8,{x:-this.totalWidth,ease:Expo.easeInOut,onComplete:this.hideCompleteHandler}):FWDAnimation.to(this.main_do,.8,{x:0,ease:Expo.easeInOut,onComplete:this.hideCompleteHandler}):("left"==this.position_str?this.main_do.setX(-this.totalWidth):this.main_do.setX(0),this.hideCompleteHandler()))},this.hideCompleteHandler=function(){c.smallImage_img&&(c.smallImage_img.onload=null,c.smallImage_img.src="",FWDAnimation.killTweensOf(c.icon_do)),1!=c.main_do.alpha&&c.main_do.setAlpha(1),c.thumbHolder_do.setVisible(!1),c.setVisible(!1)},this.hideWithOpacity=function(){FWDUVPUtils.isIEAndLessThen9||FWDAnimation.to(this.main_do,.8,{alpha:.5})},this.showWithOpacity=function(){FWDUVPUtils.isIEAndLessThen9||FWDAnimation.to(this.main_do,.8,{alpha:1})},c.init()};_.setPrototype=function(){_.prototype=null,_.prototype=new FWDUVPTransformDisplayObject("div")},_.CLICK="onClick",_.MOUSE_OVER="onMouseOver",_.SHOW_TOOLTIP="showTooltip",_.MOUSE_OUT="onMouseOut",_.MOUSE_UP="onMouseDown",_.prototype=null,e.FWDUVPAdsButton=_}(window),function(e){var n=function(e,t,s,o,i){var l=this;n.prototype;this.main_do=null,this.bk_do=null,this.text_do=null,this.border_do=null,this.thumbHolder_do=null,this.borderNColor_str=t,this.borderSColor_str=s,this.adsBackgroundPath_str=o,this.position_str=e,this.timeColor_str=i,this.totalWidth=215,this.totalHeight=64,this.fontSize=12,this.hasThumbanil_bl=!1,this.isShowed_bl=!1,this.isMbl=FWDUVPUtils.isMobile,this.hasPointerEvent_bl=FWDUVPUtils.hasPointerEvent,l.init=function(){l.setOverflow("visible"),l.setupMainContainers(),l.hide(!1,!0)},l.setupMainContainers=function(){this.main_do=new FWDUVPDisplayObject("div"),this.main_do.hasTransform3d_bl=!1,this.main_do.hasTransform2d_bl=!1,this.main_do.setBackfaceVisibility(),this.bk_do=new FWDUVPDisplayObject("div"),this.bk_do.getStyle().background="url('"+this.adsBackgroundPath_str+"')",this.text_do=new FWDUVPDisplayObject("div"),this.text_do.screen.className="UVP-skip-in",this.text_do.hasTransform3d_bl=!1,this.text_do.hasTransform2d_bl=!1,this.text_do.setBackfaceVisibility(),this.text_do.getStyle().fontFamily="Arial",this.text_do.getStyle().fontSize="12px",this.text_do.getStyle().lineHeight="18px",this.text_do.getStyle().textAlign="center",this.text_do.getStyle().color=this.timeColor_str,this.text_do.getStyle().fontSmoothing="antialiased",this.text_do.getStyle().webkitFontSmoothing="antialiased",this.text_do.getStyle().textRendering="optimizeLegibility",this.text_do.setInnerHTML("..."),this.thumbHolder_do=new FWDUVPDisplayObject("div"),this.thumbHolder_do.setWidth(this.totalHeight-8),this.thumbHolder_do.setHeight(this.totalHeight-8),this.thumbHolder_do.setX(this.totalWidth-this.thumbHolder_do.w-4),this.thumbHolder_do.setY(4),this.border_do=new FWDUVPDisplayObject("div"),this.border_do.getStyle().border="1px solid "+this.borderNColor_str,this.main_do.setWidth(this.totalWidth),this.main_do.setHeight(this.totalHeight),this.bk_do.setWidth(this.totalWidth),this.bk_do.setHeight(this.totalHeight),"left"==this.position_str?(this.border_do.setX(-1),this.border_do.setWidth(this.totalWidth-1)):this.border_do.setWidth(this.totalWidth),this.border_do.setHeight(this.totalHeight-2),this.setWidth(this.totalWidth),this.setHeight(this.totalHeight),this.main_do.addChild(this.bk_do),this.main_do.addChild(this.text_do),this.main_do.addChild(this.thumbHolder_do),this.main_do.addChild(this.border_do),this.addChild(this.main_do)},this.loadThumbnail=function(e){if(this.hasThumbanil_bl=!0,this.smallImage_img){this.smallImage_img.removeAttribute("width"),this.smallImage_img.removeAttribute("height"),this.smallImage_img.onload=null,this.smallImage_img.src="";try{FWDUVPUtils.isIE||this.thumbHolder_do.removeChild(l.thumbnail_do)}catch(e){}}this.thumbnail_do||(this.thumbnail_do=new FWDUVPDisplayObject("img"),this.smallImage_img=new Image),this.thumbHolder_do.setVisible(!0),this.smallImage_img.onload=this.onSmallImageLoad,this.smallImage_img.src=e},this.onSmallImageLoad=function(){l.smallImageOriginalW=l.smallImage_img.width,l.smallImageOriginalH=l.smallImage_img.height,l.thumbnail_do.setScreen(l.smallImage_img),l.thumbHolder_do.addChild(l.thumbnail_do);var e=l.thumbHolder_do.w/l.smallImageOriginalW,t=l.thumbHolder_do.h/l.smallImageOriginalH,s=0;t<=e?s=e:e<=t&&(s=t),l.thumbnail_do.setWidth(Math.round(l.smallImageOriginalW*s)),l.thumbnail_do.setHeight(Math.round(l.smallImageOriginalH*s)),l.thumbnail_do.setX(Math.round((l.thumbHolder_do.w-l.thumbnail_do.w)/2)),l.thumbnail_do.setY(Math.round((l.thumbHolder_do.h-l.thumbnail_do.h)/2)),l.thumbnail_do.setAlpha(0),FWDAnimation.to(l.thumbnail_do,.8,{alpha:1}),l.updateText()},this.updateText=function(e){e&&this.text_do.setInnerHTML(e),this.hasThumbanil_bl?(this.text_do.setX(16),this.text_do.setWidth(this.totalWidth-this.totalHeight-26)):(this.text_do.setX(8),this.text_do.setWidth(this.totalWidth-16)),this.text_do.setY(parseInt((l.totalHeight-l.text_do.getHeight())/2))},this.show=function(e){this.isShowed_bl||(this.isShowed_bl=!0,this.setVisible(!0),FWDAnimation.killTweensOf(this.main_do),e&&!l.isMbl?"left"==this.position_str?FWDAnimation.to(this.main_do,.8,{x:0,delay:.2,ease:Expo.easeInOut}):FWDAnimation.to(this.main_do,.8,{x:1-this.totalWidth,delay:.2,ease:Expo.easeInOut}):"left"==this.position_str?this.main_do.setX(0):this.main_do.setX(-this.totalWidth))},this.hide=function(e,t){(this.isShowed_bl||t)&&(this.isShowed_bl=!1,this.hasThumbanil_bl=!1,FWDAnimation.killTweensOf(this.main_do),e&&!l.isMbl?"left"==this.position_str?FWDAnimation.to(this.main_do,.8,{x:-this.totalWidth,ease:Expo.easeInOut,onComplete:this.hideCompleteHandler}):FWDAnimation.to(this.main_do,.8,{x:0,ease:Expo.easeInOut,onComplete:this.hideCompleteHandler}):("left"==this.position_str?this.main_do.setX(-this.totalWidth):this.main_do.setX(0),this.hideCompleteHandler()))},this.hideCompleteHandler=function(){l.smallImage_img&&(l.smallImage_img.onload=null,l.smallImage_img.src="",FWDAnimation.killTweensOf(l.thumbnail_do)),1!=l.main_do.alpha&&l.main_do.setAlpha(1),l.thumbHolder_do.setVisible(!1),l.setVisible(!1)},this.hideWithOpacity=function(){FWDUVPUtils.isIEAndLessThen9||FWDAnimation.to(this.main_do,.8,{alpha:.5})},this.showWithOpacity=function(){FWDUVPUtils.isIEAndLessThen9||FWDAnimation.to(this.main_do,.8,{alpha:1})},l.init()};n.setPrototype=function(){n.prototype=null,n.prototype=new FWDUVPTransformDisplayObject("div")},n.CLICK="onClick",n.MOUSE_OVER="onMouseOver",n.SHOW_TOOLTIP="showTooltip",n.MOUSE_OUT="onMouseOut",n.MOUSE_UP="onMouseDown",n.prototype=null,e.FWDUVPAdsStart=n}(window),function(window){var FWDUVPAnnotation=function(props_obj){var self=this,prototype=FWDUVPAnnotation.prototype;this.id=props_obj.id,this.startTime=props_obj.start,this.endTime=props_obj.end,this.htmlContent_str=props_obj.content,this.left=props_obj.left,this.top=props_obj.top,this.showCloseButton_bl=props_obj.showCloseButton_bl,this.clickSource=props_obj.clickSource,this.clickSourceTarget=props_obj.clickSourceTarget,this.closeButtonNpath=props_obj.closeButtonNpath,this.closeButtonSPath=props_obj.closeButtonSPath,this.normalStateClass=props_obj.normalStateClass,this.selectedStateClass=props_obj.selectedStateClass,this.showAnnotationsPositionTool_bl=props_obj.showAnnotationsPositionTool_bl,this.prt=props_obj.prt,this.curX=this.left,this.curY=this.top,this.data=props_obj.data,this.useHEX=props_obj.useHEX,this.nBC=props_obj.nBC,this.sBC=props_obj.sBC,this.handPath_str=props_obj.handPath_str,this.grabPath_str=props_obj.grabPath_str,this.dummy_do=null,this.isShowed_bl=!1,this.isClsd=!1,self.init=function(){-1!=this.data.sknPth.indexOf("hex_white")&&(self.sBC="#FFFFFF"),self.setOverflow("visible"),self.setAlpha(0),self.setVisible(!1),FWDUVPUtils.hasTransform2d&&(this.getStyle().transformOrigin="0% 0%"),this.screen.innerHTML=this.htmlContent_str,this.screen.className=this.normalStateClass,this.setBackfaceVisibility(),this.getStyle().fontSmoothing="antialiased",this.getStyle().webkitFontSmoothing="antialiased",this.getStyle().textRendering="optimizeLegibility",this.dummy_do=new FWDUVPDisplayObject("div"),this.dummy_do.getStyle().width="100%",this.dummy_do.getStyle().height="100%",this.addChild(this.dummy_do),setTimeout(function(){self.w=self.getWidth(),self.h=self.getHeight()},100),self.showCloseButton_bl&&!self.showAnnotationsPositionTool_bl&&(FWDUVPSimpleSizeButton.setPrototype(),self.clsBtn=new FWDUVPSimpleSizeButton(self.closeButtonNpath,self.closeButtonSPath,26,26,this.useHEX,this.nBC,this.sBC,!0),self.clsBtn.setScale2(0),self.clsBtn.addListener(FWDUVPSimpleSizeButton.MOUSE_UP,self.closeClickButtonCloseHandler),self.clsBtn.getStyle().position="absolute",self.addChild(self.clsBtn)),self.showAnnotationsPositionTool_bl&&(self.info_do=new FWDUVPDisplayObject("div"),self.info_do.getStyle().backgroundColor="#FFFFFF",self.info_do.getStyle().boxShadow="2px 2px 2px #888888;",this.info_do.getStyle().fontSmoothing="antialiased",this.info_do.getStyle().webkitFontSmoothing="antialiased",this.info_do.getStyle().textRendering="optimizeLegibility",this.addChild(this.info_do),setTimeout(function(){self.info_do.screen.innerHTML="
data-left="+Math.round(self.curX*self.prt.scaleInverse)+"
data-top="+Math.round(self.curY*self.prt.scaleInverse)+"
",self.setX(Math.round(self.curX*self.prt.scale)),self.setY(Math.round(self.curY*self.prt.scale))},100),self.isMbl?self.hasPointerEvent_bl?self.screen.addEventListener("pointerdown",self.selfOnDownHandler):self.screen.addEventListener("touchdown",self.selfOnDownHandler):window.addEventListener&&self.screen.addEventListener("mousedown",self.selfOnDownHandler),self.getStyle().cursor="url("+self.handPath_str+"), default"),self.clickSource&&!self.showAnnotationsPositionTool_bl&&(self.dummy_do.setButtonMode(!0),self.dummy_do.screen.addEventListener("click",this.onClickHandler),self.dummy_do.screen.addEventListener("mouseover",this.onMouseOverHandler),self.dummy_do.screen.addEventListener("mouseout",this.onMouseOutHandler))},this.selfOnDownHandler=function(e){e.preventDefault&&e.preventDefault(),self.getStyle().cursor="url("+self.grabPath_str+"), default",self.prt.addChild(self);var t=FWDUVPUtils.getViewportMouseCoordinates(e);self.startX=t.screenX-self.prt.getGlobalX(),self.startY=t.screenY-self.prt.getGlobalY(),self.curX=self.x,self.curY=self.y,self.isMbl?self.hasPointerEvent_bl?(window.addEventListener("pointermove",self.selfMoveHandler),window.addEventListener("pointerup",self.selfEndHandler)):(window.addEventListener("touchmove",self.selfMoveHandler),window.addEventListener("touchend",self.selfEndHandler)):window.addEventListener&&(window.addEventListener("mousemove",self.selfMoveHandler),window.addEventListener("mouseup",self.selfEndHandler))},this.selfMoveHandler=function(e){e.preventDefault&&e.preventDefault();var t=FWDUVPUtils.getViewportMouseCoordinates(e);self.localX=t.screenX-self.prt.getGlobalX(),self.localY=t.screenY-self.prt.getGlobalY(),self.curX=self.x,self.curY=self.y,self.curX+=self.localX-self.startX,self.curY+=self.localY-self.startY,self.setX(self.curX),self.setY(self.curY),self.startX=t.screenX-self.prt.getGlobalX(),self.startY=t.screenY-self.prt.getGlobalY(),self.info_do.screen.innerHTML="
data-left="+Math.round(self.curX*self.prt.scaleInverse)+"
data-top="+Math.round(self.curY*self.prt.scaleInverse)+"
"},this.selfEndHandler=function(e){self.getStyle().cursor="url("+self.handPath_str+"), default",self.isMbl?self.hasPointerEvent_bl?(window.removeEventListener("pointermove",self.selfMoveHandler),window.removeEventListener("pointerup",self.selfEndHandler)):(window.removeEventListener("touchmove",self.selfMoveHandler),window.removeEventListener("touchend",self.selfEndHandler)):window.removeEventListener&&(window.removeEventListener("mousemove",self.selfMoveHandler),window.removeEventListener("mouseup",self.selfEndHandler))},this.onMouseOverHandler=function(e){self.setSelectedAtate()},this.onMouseOutHandler=function(e){self.setNormalState()},this.onClickHandler=function(){-1!=self.clickSource.indexOf("https")||-1!=self.clickSource.indexOf("http")?window.open(self.clickSource,self.clickSourceTarget):eval(self.clickSource)},this.closeClickButtonCloseHandler=function(){self.hide(),self.isClsd=!0},this.show=function(){this.isShowed_bl||this.isClsd||(self.isShowed_bl=!0,self.setVisible(!0),FWDAnimation.killTweensOf(self),FWDAnimation.to(self,.8,{alpha:1,ease:Quint.easeOut}),self.clsBtn&&FWDAnimation.to(self.clsBtn,.8,{scale:1,delay:.2,ease:Elastic.easeOut}))},this.hide=function(){this.isShowed_bl&&(FWDAnimation.killTweensOf(self),self.isShowed_bl=!1,self.setVisible(!1),self.setAlpha(0),self.clsBtn&&(FWDAnimation.killTweensOf(self.clsBtn),self.clsBtn.setScale2(0)))},this.setNormalState=function(){self.selectedStateClass&&FWDAnimation.to(self.screen,.8,{className:self.normalStateClass,ease:Quint.easeOut})},this.setSelectedAtate=function(){self.selectedStateClass&&FWDAnimation.to(self.screen,.8,{className:self.selectedStateClass,ease:Quint.easeOut})},this.updateHEXColors=function(e,t){self.clsBtn&&self.clsBtn.updateHEXColors(e,t,self.buttonWidth,self.buttonHeight)},self.init()};FWDUVPAnnotation.setPrototype=function(){FWDUVPAnnotation.prototype=null,FWDUVPUtils.hasTransform2d?FWDUVPAnnotation.prototype=new FWDUVPTransformDisplayObject("div"):FWDUVPAnnotation.prototype=new FWDUVPDisplayObject("div")},FWDUVPAnnotation.prototype=null,window.FWDUVPAnnotation=FWDUVPAnnotation}(window),function(a){var e=function(i,l){var n=this;e.prototype;n.nBC=l.nBC,n.sBC=l.sBC,this.ann_ar=[],this.showAnnotationsPositionTool_bl=l.showAnnotationsPositionTool_bl,n.init=function(){n.setOverflow("visible")},n.setupAnnotations=function(e){if(n.ann_ar)for(var t=0;t=t.startTime&&e<=t.endTime?(t.show(),n.position()):t.hide()},this.position=function(e){var t=i.sW/i.maxWidth;if(n.setX(Math.round((i.sW-t*i.maxWidth)/2)),n.setY(Math.round((i.tempVidStageHeight-t*i.maxHeight)/2)),n.scale=i.sW/i.maxWidth,n.scaleY=n.scale,n.scaleX=n.scale,n.scaleInverse=i.maxWidth/i.sW,!n.showAnnotationsPositionTool_bl)for(var s=0;si.maxWidth/3&&(o.finalX-=i.playlistWidth+i.spaceBetweenControllerAndPlaylist),o.finalY=Math.floor(o.top*n.scaleY),o.clsBtn&&(o.clsBtn.setWidth(Math.round(o.clsBtn.buttonWidth*n.scaleInverse)),o.clsBtn.setHeight(Math.round(o.clsBtn.buttonHeight*n.scaleInverse)),o.clsBtn.n_do.setWidth(Math.round(o.clsBtn.buttonWidth*n.scaleInverse)),o.clsBtn.n_do.setHeight(Math.round(o.clsBtn.buttonHeight*n.scaleInverse)),o.clsBtn.n_do_canvas&&(o.clsBtn.n_do_canvas.style.width=Math.round(o.clsBtn.buttonWidth*n.scaleInverse)+"px",o.clsBtn.n_do_canvas.style.height=Math.round(o.clsBtn.buttonheight*n.scaleInverse)+"px",o.clsBtn.s_do_canvas.style.width=Math.round(o.clsBtn.buttonWidth*n.scaleInverse)+"px",o.clsBtn.s_do_canvas.style.height=Math.round(o.clsBtn.buttonheight*n.scaleInverse)+"px"),o.clsBtn.s_do.setWidth(Math.round(o.clsBtn.buttonWidth*n.scaleInverse)),o.clsBtn.s_do.setHeight(Math.round(o.clsBtn.buttonHeight*n.scaleInverse)),o.clsBtn.setX(Math.floor(o.getWidth()-o.clsBtn.w/2)),o.clsBtn.setY(Math.floor(-o.clsBtn.h/2))),o.prevFinalX!=o.finalX&&(e?FWDAnimation.to(o,.8,{x:o.finalX,ease:Expo.easeInOut}):o.setX(o.finalX)),o.prevFinalY!=o.finalY&&(e?FWDAnimation.to(o,.8,{y:o.finalY,ease:Expo.easeInOut}):o.setY(o.finalY)),o.prevFinalX=o.finalX,o.prevFinalY=o.finalY}},this.updateHEXColors=function(e,t){if(n.nBC=e,n.sBC=t,n.ann_ar)for(var s=0;s",void 0,"UVPCategoriesNextAndPrevNormalState","UVPCategoriesNextAndPrevSelectedState")):(FWDUVPSimpleButton.setPrototype(),p.clsBtn=new FWDUVPSimpleButton(p.catCloseN_img,s.catCloseSPath_str,void 0,!0,s.useHEX,s.nBC,p.sBC,!1,!1,!1,!1,!0)),p.clsBtn.addListener(FWDUVPSimpleButton.MOUSE_UP,p.closeButtonOnMouseUpHandler),p.useVectorIcons_bl?(FWDUVPSimpleButton.setPrototype(),p.nextButton_do=new FWDUVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"
",void 0,"UVPCategoriesNextAndPrevNormalState","UVPCategoriesNextAndPrevSelectedState")):(FWDUVPSimpleButton.setPrototype(),p.nextButton_do=new FWDUVPSimpleButton(p.catNextN_img,s.catNextSPath_str,void 0,!0,s.useHEX,s.nBC,p.sBC,!1,!1,!1,!1,!0)),p.nextButton_do.addListener(FWDUVPSimpleButton.MOUSE_UP,p.nextButtonOnMouseUpHandler),p.useVectorIcons_bl?(FWDUVPSimpleButton.setPrototype(),p.prevButton_do=new FWDUVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"
",void 0,"UVPCategoriesNextAndPrevNormalState","UVPCategoriesNextAndPrevSelectedState")):(FWDUVPSimpleButton.setPrototype(),p.prevButton_do=new FWDUVPSimpleButton(p.catPrevN_img,s.catPrevSPath_str,void 0,!0,s.useHEX,s.nBC,p.sBC,!1,!1,!1,!1,!0)),p.prevButton_do.addListener(FWDUVPSimpleButton.MOUSE_UP,p.prevButtonOnMouseUpHandler))},this.closeButtonOnMouseUpHandler=function(){p.hide()},this.nextButtonOnMouseUpHandler=function(){var e=p.howManyThumbsToDisplayH*p.howManyThumbsToDisplayV;p.tempId+=e,p.tempId>p.totalThumbnails-1&&(p.tempId=p.totalThumbnails-1);var t=Math.floor(p.tempId/e);p.tempId=t*e,p.resizeAndPositionThumbnails(!0,"next"),p.disableEnableNextAndPrevButtons(!1,!0)},this.prevButtonOnMouseUpHandler=function(){var e=p.howManyThumbsToDisplayH*p.howManyThumbsToDisplayV;p.tempId-=e,p.tempId<0&&(p.tempId=0);var t=Math.floor(p.tempId/e);p.tempId=t*e,p.resizeAndPositionThumbnails(!0,"prev"),p.disableEnableNextAndPrevButtons(!0,!1)},this.positionButtons=function(){p.clsBtn.setX(p.sW-p.clsBtn.w-p.buttonsMargins),p.clsBtn.setY(p.buttonsMargins),p.nextButton_do.setX(p.sW-p.nextButton_do.w-p.buttonsMargins),p.nextButton_do.setY(parseInt((p.sH-p.nextButton_do.h)/2)),p.prevButton_do.setX(p.buttonsMargins),p.prevButton_do.setY(parseInt((p.sH-p.prevButton_do.h)/2))},this.disableEnableNextAndPrevButtons=function(e,t){var s=p.howManyThumbsToDisplayH*p.howManyThumbsToDisplayV,o=Math.floor(p.tempId/s),i=Math.ceil(p.totalThumbnails/s)-1;p.howManyThumbsToDisplayH,p.howManyThumbsToDisplayH;s>=p.totalThumbnails?(p.nextButton_do.disable(),p.prevButton_do.disable(),p.nextButton_do.setDisabledState(),p.prevButton_do.setDisabledState()):0==o?(p.nextButton_do.enable(),p.prevButton_do.disable(),p.nextButton_do.setEnabledState(),p.prevButton_do.setDisabledState()):(o==i?(p.nextButton_do.disable(),p.prevButton_do.enable(),p.nextButton_do.setDisabledState()):(p.nextButton_do.enable(),p.prevButton_do.enable(),p.nextButton_do.setEnabledState()),p.prevButton_do.setEnabledState()),e||p.prevButton_do.setNormalState(),t||p.nextButton_do.setNormalState()},this.setupMobileMove=function(){p.hasPointerEvent_bl?p.screen.addEventListener("pointerdown",p.mobileDownHandler):p.screen.addEventListener("touchstart",p.mobileDownHandler)},this.mobileDownHandler=function(e){if(!e.touches||1==e.touches.length){var t=FWDUVPUtils.getViewportMouseCoordinates(e);p.mouseX=t.screenX,p.mouseY=t.screenY,p.hasPointerEvent_bl?(window.addEventListener("pointerup",p.mobileUpHandler),window.addEventListener("pointermove",p.mobileMoveHandler)):(window.addEventListener("touchend",p.mobileUpHandler),window.addEventListener("touchmove",p.mobileMoveHandler))}},this.mobileMoveHandler=function(e){if(e.preventDefault&&e.preventDefault(),!e.touches||1==e.touches.length){p.showDisable();var t=FWDUVPUtils.getViewportMouseCoordinates(e);p.dif=p.mouseX-t.screenX,p.mouseX=t.screenX,p.mouseY=t.screenY}},this.mobileUpHandler=function(e){p.hideDisable(),10p.thumbnailMaxWidth&&(p.howManyThumbsToDisplayH+=1,p.thumbW=Math.floor((_-p.spacerH*(p.howManyThumbsToDisplayH-1))/p.howManyThumbsToDisplayH)),p.thumbH=Math.floor(p.thumbW/p.thumbnailMaxWidth*p.thumbnailMaxHeight),p.howManyThumbsToDisplayV=Math.floor(f/(p.thumbH+p.spacerV)),p.howManyThumbsToDisplayV<1&&(p.howManyThumbsToDisplayV=1),l=Math.min(p.howManyThumbsToDisplayH,p.totalThumbnails)*(p.thumbW+p.spacerH)-p.spacerH,n=Math.min(Math.ceil(p.totalThumbnails/p.howManyThumbsToDisplayH),p.howManyThumbsToDisplayV)*(p.thumbH+p.spacerV)-p.spacerV,a=p.howManyThumbsToDisplayH>p.totalThumbnails?0:_-l,p.howManyThumbsToDisplayH>p.totalThumbnails&&(p.howManyThumbsToDisplayH=p.totalThumbnails),u=p.howManyThumbsToDisplayH*p.howManyThumbsToDisplayV,o=Math.floor(p.tempId/u),p.isSearched_bl&&(o=0),d=p.howManyThumbsToDisplayH*o,firstId=o*u,(r=firstId+u)>p.totalThumbnails&&(r=p.totalThumbnails);for(c=0;c=firstId&&c=p.totalThumbnails?(p.nextButton_do.setVisible(!1),p.prevButton_do.setVisible(!1)):(p.nextButton_do.setVisible(!0),p.prevButton_do.setVisible(!0))}},this.loadImages=function(){p.countLoadedThumbs>p.totalThumbnails-1||(p.image_img&&(p.image_img.onload=null,p.image_img.onerror=null),p.image_img=new Image,p.image_img.onerror=p.onImageLoadError,p.image_img.onload=p.onImageLoadComplete,p.image_img.src=p.categories_ar[p.countLoadedThumbs].thumbnailPath)},this.onImageLoadError=function(e){},this.onImageLoadComplete=function(e){p.thumbs_ar[p.countLoadedThumbs].setImage(p.image_img),p.countLoadedThumbs++,p.loadWithDelayId_to=setTimeout(p.loadImages,40)},this.disableOrEnableThumbnails=function(){for(var e,t=0;tn.mainButtonsHolder_do.h?n.allowToScrollAndScrollBarIsActive_bl=!0:n.allowToScrollAndScrollBarIsActive_bl=!1,!n.allowToScrollAndScrollBarIsActive_bl&&n.scrMainHolder_do?n.scrMainHolder_do.setVisible(!1):n.allowToScrollAndScrollBarIsActive_bl&&n.scrMainHolder_do&&n.isShd&&n.scrMainHolder_do.setVisible(!0),n.scrHandler_do&&n.updateScrollBarSizeActiveAndDeactivate(),this.getMaxWidthResizeAndPosition(),n.updateScrollBarHandlerAndContent()},this.hide=function(e,t){(n.isShd||t)&&(FWDAnimation.killTweensOf(this),n.isShd=!1,FWDAnimation.killTweensOf(n.mainButtonsHolder_do),FWDAnimation.killTweensOf(n.bk_do),e?(FWDAnimation.to(n.mainButtonsHolder_do,.8,{y:-n.ttBtnH,ease:Expo.easeInOut,onComplete:n.hideComplete}),FWDAnimation.to(n.bk_do,.8,{alpha:0})):(n.mainButtonsHolder_do.setY(n.buttonHeight-n.ttBtnH),n.bk_do.setAlpha(0),n.setHeight(n.buttonHeight)))},this.hideComplete=function(){n.mainButtonsHolder_do.setVisible(!1),n.bk_do.setVisible(!1)},this.show=function(e,t){n.isShd&&!t||(FWDAnimation.killTweensOf(this),n.mainButtonsHolder_do.setY(-n.ttBtnH),n.isShd=!0,n.mainButtonsHolder_do.setVisible(!0),n.bk_do.setVisible(!0),n.resizeAndPosition(),FWDAnimation.killTweensOf(n.mainButtonsHolder_do),FWDAnimation.killTweensOf(n.bk_do),n.scrMainHolder_do&&n.allowToScrollAndScrollBarIsActive_bl&&n.scrMainHolder_do.setVisible(!0),e?(FWDAnimation.to(n.bk_do,.8,{alpha:1}),FWDAnimation.to(n.mainButtonsHolder_do,.8,{y:n.buttonHeight+i.spaceBetweenThumbnails,ease:Expo.easeInOut})):(n.bk_do.setAlpha(1),n.mainButtonsHolder_do.setY(n.buttonHeight+i.spaceBetweenThumbnails)))},this.setupScrollLogic=function(){n.setupMobileScrollbar(),n.isMbl||n.setupScrollbar(),n.addMouseWheelSupport_bl&&n.addMouseWheelSupport()},this.setupMobileScrollbar=function(){n.hasPointEvt?n.mainButtonsHolder_do.screen.addEventListener("pointerdown",n.scrollBarTouchStartHandler):n.mainButtonsHolder_do.screen.addEventListener("touchstart",n.scrollBarTouchStartHandler),n.isMbl&&(n.updateMobileScrollBarId_int=setInterval(n.updateMobileScrollBar,16))},this.scrollBarTouchStartHandler=function(e){e.preventDefault&&e.preventDefault(),n.isScrollingOnMove_bl=!1,FWDAnimation.killTweensOf(n.buttonsHolder_do);var t=FWDUVPUtils.getViewportMouseCoordinates(e);n.isDragging_bl=!0,n.lastPresedY=t.screenY,n.checkLastPresedY=t.screenY,n.hasPointEvt?(o.addEventListener("pointerup",n.scrollBarTouchEndHandler),o.addEventListener("pointermove",n.scrollBarTouchMoveHandler)):(o.addEventListener("touchend",n.scrollBarTouchEndHandler),o.addEventListener("touchmove",n.scrollBarTouchMoveHandler)),o.addEventListener("mouseup",n.scrollBarTouchEndHandler),o.addEventListener("mousemove",n.scrollBarTouchMoveHandler),clearInterval(n.updateMoveMobileScrollbarId_int),n.updateMoveMobileScrollbarId_int=setInterval(n.updateMoveMobileScrollbar,20)},this.scrollBarTouchMoveHandler=function(e){if(e.preventDefault&&e.preventDefault(),e.stopImmediatePropagation(),!(n.ttBtnH=n.checkLastPresedY+6||t.screenY<=n.checkLastPresedY-6)&&(n.isScrollingOnMove_bl=!0);var s=t.screenY-n.lastPresedY;if(n.thmbsFinY+=s,n.thmbsFinY=Math.round(n.thmbsFinY),n.lastPresedY=t.screenY,n.vy=2*s,!n.isMobile){0n.scrMainHolder_do.h-n.scrHandler_do.h-1&&(n.scrBarHandY=n.scrMainHolder_do.h-n.scrHandler_do.h-1),FWDAnimation.killTweensOf(n.scrHandler_do),FWDAnimation.killTweensOf(n.scrHandlerLines_do),n.scrHandler_do.setY(n.scrBarHandY),n.scrHandlerLines_do.setY(n.scrBarHandY+parseInt((n.scrHandler_do.h-n.scrHandlerLinesN_do.h)/2)))}}},this.scrollBarTouchEndHandler=function(e){n.isDragging_bl=!1,clearInterval(n.updateMoveMobileScrollbarId_int),clearTimeout(n.disableOnMoveId_to),n.disableOnMoveId_to=setTimeout(function(){i.prt.hideDisable()},100),n.hasPointEvt?(o.removeEventListener("pointerup",n.scrollBarTouchEndHandler),o.removeEventListener("pointermove",n.scrollBarTouchMoveHandler)):(o.removeEventListener("touchend",n.scrollBarTouchEndHandler),o.removeEventListener("touchmove",n.scrollBarTouchMoveHandler)),o.removeEventListener("mousemove",n.scrollBarTouchMoveHandler)},this.updateMoveMobileScrollbar=function(){n.buttonsHolder_do.setY(n.thmbsFinY)},this.updateMobileScrollBar=function(e){n.isDragging_bl||(n.ttBtnH=n.scrTrack_do.h-n.scrHandler_do.h?n.scrBarHandY=n.scrTrack_do.h-n.scrHandler_do.h:n.scrBarHandY<=0&&(n.scrBarHandY=0),n.scrHandler_do.setY(n.scrBarHandY),FWDAnimation.killTweensOf(n.scrHandler_do),FWDAnimation.to(n.scrHandlerLines_do,.8,{y:s,ease:Quart.easeOut}),n.updateScrollBarHandlerAndContent(!0)},n.scrollBarHandlerEndHandler=function(e){var t=FWDUVPUtils.getViewportMouseCoordinates(e);n.isDragging_bl=!1,FWDUVPUtils.hitTest(n.scrHandler_do.screen,t.screenX,t.screenY)||(FWDAnimation.killTweensOf(n.scrHandlerLinesN_do),FWDAnimation.killTweensOf(n.scrHandlerLinesS_do),FWDAnimation.to(n.scrHandlerLinesN_do,.8,{alpha:1,ease:Expo.easeOut}),FWDAnimation.to(n.scrHandlerLinesS_do,.8,{alpha:0,ease:Expo.easeOut})),i.prt.hideDisable(),FWDAnimation.killTweensOf(n.scrHandler_do),FWDAnimation.to(n.scrHandler_do,.4,{y:n.scrBarHandY,ease:Quart.easeOut}),o.removeEventListener?(o.removeEventListener("mousemove",n.scrollBarHandlerMoveHandler),o.removeEventListener("mouseup",n.scrollBarHandlerEndHandler)):document.detachEvent&&(document.detachEvent("onmousemove",n.scrollBarHandlerMoveHandler),document.detachEvent("onmouseup",n.scrollBarHandlerEndHandler))},this.updateScrollBarSizeActiveAndDeactivate=function(){n.disableForAWhileAfterThumbClick_bl||(n.allowToScrollAndScrollBarIsActive_bl?(n.allowToScrollAndScrollBarIsActive_bl=!0,n.scrMainHolder_do.setX(n.sW-n.scrMainHolder_do.w),n.scrMainHolder_do.setHeight(n.mainButtonsHolder_do.h),n.scrTrack_do.setHeight(n.scrMainHolder_do.h),n.scrTrackMiddle_do.setHeight(n.scrTrack_do.h-2*n.scrTrackTop_do.h),n.scrTrackBottom_do.setY(n.scrTrackMiddle_do.y+n.scrTrackMiddle_do.h),n.scrMainHolder_do.setAlpha(1),n.scrHandler_do.setButtonMode(!0),n.scrHandlerLines_do.setButtonMode(!0)):(n.allowToScrollAndScrollBarIsActive_bl=!1,n.scrMainHolder_do.setX(n.sW-n.scrMainHolder_do.w),n.scrMainHolder_do.setHeight(n.mainButtonsHolder_do.h),n.scrTrack_do.setHeight(n.scrMainHolder_do.h),n.scrTrackMiddle_do.setHeight(n.scrTrack_do.h-2*n.scrTrackTop_do.h),n.scrTrackBottom_do.setY(n.scrTrackMiddle_do.y+n.scrTrackMiddle_do.h),n.scrMainHolder_do.setAlpha(.5),n.scrHandler_do.setY(0),n.scrHandler_do.setButtonMode(!1),n.scrHandlerLines_do.setButtonMode(!1)),n.scrHandler_do.setHeight(Math.max(120,Math.round(Math.min(1,n.scrMainHolder_do.h/n.ttBtnH)*n.scrMainHolder_do.h))),n.scrHandlerMiddle_do.setHeight(n.scrHandler_do.h-2*n.scrHandlerTop_do.h),n.scrHandlerBottom_do.setY(n.scrHandlerMiddle_do.y+n.scrHandlerMiddle_do.h),FWDAnimation.killTweensOf(n.scrHandlerLines_do),n.scrHandlerLines_do.setY(n.scrBarHandY+parseInt((n.scrHandler_do.h-n.scrHandlerLines_do.h)/2)),n.scrHandlerBottom_do.setY(n.scrHandler_do.h-n.scrHandlerBottom_do.h))},this.addMouseWheelSupport=function(){n.screen.addEventListener?(n.screen.addEventListener("DOMMouseScroll",n.mouseWheelHandler),n.screen.addEventListener("mousewheel",n.mouseWheelHandler)):n.screen.attachEvent&&n.screen.attachEvent("onmousewheel",n.mouseWheelHandler)},n.mouseWheelHandler=function(e){if(e.preventDefault&&e.preventDefault(),n.disableMouseWheel_bl||n.isDragging_bl)return!1;var t=e.detail||e.wheelDelta;e.wheelDelta&&(t*=-1),0=n.scrTrack_do.h-n.scrHandler_do.h?n.scrBarHandY=n.scrTrack_do.h-n.scrHandler_do.h:n.scrBarHandY<=0&&(n.scrBarHandY=0);var s=n.scrBarHandY+parseInt((n.scrHandler_do.h-n.scrHandlerLines_do.h)/2);if(FWDAnimation.killTweensOf(n.scrHandler_do),FWDAnimation.killTweensOf(n.scrHandlerLines_do),FWDAnimation.to(n.scrHandlerLines_do,.8,{y:s,ease:Quart.easeOut}),FWDAnimation.to(n.scrHandler_do,.5,{y:n.scrBarHandY,ease:Quart.easeOut}),n.isDragging_bl=!0,n.updateScrollBarHandlerAndContent(!0),n.isDragging_bl=!1,!e.preventDefault)return!1;e.preventDefault()},this.updateScrollBarHandlerAndContent=function(e,t){if(!n.disableForAWhileAfterThumbClick_bl&&(n.allowToScrollAndScrollBarIsActive_bl||t)){var s=0;n.isDragging_bl&&!n.isMbl?("Infinity"==(s=n.scrBarHandY/(n.scrMainHolder_do.h-n.scrHandler_do.h))?s=0:1<=s&&(scrollPercent=1),n.thmbsFinY=-1*Math.round(s*(n.ttBtnH-n.mainButtonsHolder_do.h)),0==n.mainButtonsHolder_do.h&&(n.thmbsFinY=0)):(s=n.curId/(n.ttBtns-1),n.thmbsFinY=Math.min(0,-1*Math.round(s*(n.ttBtnH-n.mainButtonsHolder_do.h))),0==n.mainButtonsHolder_do.h&&(n.thmbsFinY=0),n.scrMainHolder_do&&(n.scrBarHandY=Math.round((n.scrMainHolder_do.h-n.scrHandler_do.h)*s),n.scrBarHandY<0?n.scrBarHandY=0:n.scrBarHandY>n.scrMainHolder_do.h-n.scrHandler_do.h-1&&(n.scrBarHandY=n.scrMainHolder_do.h-n.scrHandler_do.h-1),FWDAnimation.killTweensOf(n.scrHandler_do),FWDAnimation.killTweensOf(n.scrHandlerLines_do),e?(FWDAnimation.to(n.scrHandler_do,.4,{y:n.scrBarHandY,ease:Quart.easeOut}),FWDAnimation.to(n.scrHandlerLines_do,.8,{y:n.scrBarHandY+parseInt((n.scrHandler_do.h-n.scrHandlerLinesN_do.h)/2),ease:Quart.easeOut})):(n.scrHandler_do.setY(n.scrBarHandY),n.scrHandlerLines_do.setY(n.scrBarHandY+parseInt((n.scrHandler_do.h-n.scrHandlerLinesN_do.h)/2))))),n.lastThumbnailFinalY!=n.thmbsFinY&&(FWDAnimation.killTweensOf(n.buttonsHolder_do),e?FWDAnimation.to(n.buttonsHolder_do,.5,{y:n.thmbsFinY,ease:Quart.easeOut}):n.buttonsHolder_do.setY(n.thmbsFinY)),n.lastThumbnailFinalY=n.thmbsFinY}},this.init()};t.setPrototype=function(){t.prototype=new FWDUVPDisplayObject("div")},t.OPEN="open",t.HIDE_COMPLETE="infoWindowHideComplete",t.BUTTON_PRESSED="buttonPressed",t.prototype=null,o.FWDUVPComboBox=t}(window),function(){var d=function(t,e,s,o,i,l,n,a){var r=this;d.prototype;this.bk_sdo=null,this.text_sdo=null,this.dumy_sdo=null,this.label1_str=e,this.bkNClr=s,this.bkSClr=o,this.txtNClr=i,this.txtSClr=l,this.totalWidth=400,this.totalHeight=a,this.id=n,this.hasPointerEvent_bl=FWDUVPUtils.hasPointerEvent,this.isMbl=FWDUVPUtils.isMobile,this.isDisabled_bl=!1,r.init=function(){r.setBackfaceVisibility(),r.setButtonMode(!0),r.setupMainContainers(),r.setWidth(r.totalWidth),r.setHeight(r.totalHeight),r.setNormalState()},r.setupMainContainers=function(){r.bk_sdo=new FWDUVPDisplayObject("div"),r.bk_sdo.setBkColor(r.bkNClr),r.addChild(r.bk_sdo),r.text_sdo=new FWDUVPDisplayObject("div"),r.text_sdo.getStyle().whiteSpace="nowrap",r.text_sdo.screen.className="fwduvp-cb-button",r.text_sdo.setBackfaceVisibility(),r.text_sdo.setOverflow("visible"),r.text_sdo.setDisplay("inline-block"),r.text_sdo.getStyle().fontFamily="Arial",r.text_sdo.getStyle().fontSize="13px",r.text_sdo.getStyle().padding="6px",r.text_sdo.getStyle().fontWeight="100",r.text_sdo.getStyle().color=r.nBC,r.text_sdo.getStyle().fontSmoothing="antialiased",r.text_sdo.getStyle().webkitFontSmoothing="antialiased",r.text_sdo.getStyle().textRendering="optimizeLegibility",FWDUVPUtils.isIEAndLessThen9?r.text_sdo.screen.innerText=r.label1_str:r.text_sdo.setInnerHTML(r.label1_str),r.addChild(r.text_sdo),r.dumy_sdo=new FWDUVPDisplayObject("div"),FWDUVPUtils.isIE&&(r.dumy_sdo.setBkColor("#FF0000"),r.dumy_sdo.setAlpha(0)),r.addChild(r.dumy_sdo),r.hasPointerEvent_bl?(r.screen.addEventListener("pointerup",r.onClick),r.screen.addEventListener("pointerover",r.onMouseOver),r.screen.addEventListener("pointerout",r.onMouseOut)):r.screen.addEventListener&&(r.isMbl||(r.screen.addEventListener("mouseover",r.onMouseOver),r.screen.addEventListener("mouseout",r.onMouseOut),r.screen.addEventListener("mouseup",r.onClick)),r.screen.addEventListener("touchend",r.onClick))},r.onMouseOver=function(e){r.isDisabled_bl||e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE||(FWDAnimation.killTweensOf(r.text_sdo),r.setSelectedState(!0),r.dispatchEvent(d.MOUSE_OVER))},r.onMouseOut=function(e){r.isDisabled_bl||e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE||(FWDAnimation.killTweensOf(r.text_sdo),r.setNormalState(!0),r.dispatchEvent(d.MOUSE_OUT))},r.onClick=function(e){r.isDisabled_bl||t.isScrollingOnMove_bl||(e.preventDefault&&e.preventDefault(),r.dispatchEvent(d.CLICK))},r.onMouseDown=function(e){r.isDisabled_bl||t.isScrollingOnMove_bl||(e.preventDefault&&e.preventDefault(),r.dispatchEvent(d.MOUSE_DOWN,{e:e}))},this.setSelectedState=function(e){FWDAnimation.killTweensOf(r.bk_sdo.screen),FWDAnimation.killTweensOf(r.text_sdo.screen),e?(FWDAnimation.to(r.bk_sdo.screen,.6,{css:{backgroundColor:r.bkSClr},ease:Quart.easeOut}),FWDAnimation.to(r.text_sdo.screen,.6,{css:{color:r.txtSClr},ease:Quart.easeOut})):(r.bk_sdo.setBkColor(r.bkSClr),r.text_sdo.getStyle().color=r.txtSClr)},this.setNormalState=function(e){FWDAnimation.killTweensOf(r.bk_sdo.screen),FWDAnimation.killTweensOf(r.text_sdo.screen),e?(FWDAnimation.to(r.bk_sdo.screen,.6,{css:{backgroundColor:r.bkNClr},ease:Quart.easeOut}),FWDAnimation.to(r.text_sdo.screen,.6,{css:{color:r.txtNClr},ease:Quart.easeOut})):(r.bk_sdo.setBkColor(r.bkNClr),r.text_sdo.getStyle().color=r.txtNClr)},r.centerText=function(){r.dumy_sdo.setWidth(r.totalWidth),r.dumy_sdo.setHeight(r.totalHeight),r.bk_sdo.setWidth(r.totalWidth),r.bk_sdo.setHeight(r.totalHeight),r.text_sdo.setX(4),r.text_sdo.setY(Math.round((r.totalHeight-r.text_sdo.getHeight())/2))},r.getMaxTextWidth=function(){return r.text_sdo.getWidth()},this.disable=function(){r.isDisabled_bl=!0,r.setButtonMode(!1),r.setSelectedState(!0)},this.enable=function(){r.isDisabled_bl=!1,r.setNormalState(!0),r.setButtonMode(!0)},r.init()};d.setPrototype=function(){d.prototype=new FWDUVPDisplayObject("div")},d.FIRST_BUTTON_CLICK="onFirstClick",d.SECOND_BUTTON_CLICK="secondButtonOnClick",d.MOUSE_OVER="onMouseOver",d.MOUSE_OUT="onMouseOut",d.MOUSE_DOWN="onMouseDown",d.CLICK="onClick",d.prototype=null,window.FWDUVPComboBoxButton=d}(window),function(){var f=function(e,t,s,o,i,l,n,a,r,d,u,h,c){var _=this;f.prototype;this.arrowN_str=s,this.arrowS_str=o,this.label1_str=i,this.bkNColor=l,this.bkSColor=n,this.tNColor=a,this.tSColor=r,_.useHEX=u,_.nBC=h,_.sBC=c,this.totalWidth=400,this.totalHeight=d,this.arrowWidth=e,this.arrowHeight=t,this.hasPointEvt=FWDUVPUtils.hasPointerEvent,this.isMbl=FWDUVPUtils.isMobile,this.isDble=!1,_.init=function(){_.setBackfaceVisibility(),_.setButtonMode(!0),_.setupMainContainers(),_.setWidth(_.totalWidth),_.setHeight(_.totalHeight)},_.setupMainContainers=function(){_.bk_sdo=new FWDUVPDisplayObject("div"),_.bk_sdo.getStyle().backgroundColor=_.bkNColor,_.addChild(_.bk_sdo),_.text_sdo=new FWDUVPDisplayObject("div"),_.text_sdo.getStyle().whiteSpace="nowrap",_.text_sdo.screen.className="fwduvp-cb-selector",_.text_sdo.setBackfaceVisibility(),_.text_sdo.setOverflow("visible"),_.text_sdo.setDisplay("inline-block"),_.text_sdo.getStyle().fontFamily="Arial",_.text_sdo.getStyle().fontSize="13px",_.text_sdo.getStyle().fontWeight="100",_.text_sdo.getStyle().padding="6px",_.text_sdo.getStyle().color=_.nBC,_.text_sdo.getStyle().fontSmoothing="antialiased",_.text_sdo.getStyle().webkitFontSmoothing="antialiased",_.text_sdo.getStyle().textRendering="optimizeLegibility",FWDUVPUtils.isIEAndLessThen9?_.text_sdo.screen.innerText=_.label1_str:_.text_sdo.setInnerHTML(_.label1_str),_.addChild(_.text_sdo),_.arrow_do=new FWDUVPDisplayObject("div"),_.arrow_do.screen.className="arrow",_.arrow_do.setOverflow("visible"),_.useHEX?(_.arrowN_img=new Image,_.arrowN_img.src=_.arrowN_str,_.arrowS_img=new Image,_.arrowS_img.src=_.arrowS_str,_.arrowN_sdo=new FWDUVPDisplayObject("div"),_.arrowS_sdo=new FWDUVPDisplayObject("div"),_.arrowS_img.onload=function(){_.arrowN_sdo.setWidth(_.arrowN_img.width),_.arrowN_sdo.setHeight(_.arrowN_img.height),_.nBC=_.bkNColor,_.scrubberLines_n_canvas=FWDUVPUtils.getCanvasWithModifiedColor(_.arrowN_img,_.nBC,!0),_.scrubbelinesNImage_img=_.scrubberLines_n_canvas.image,_.arrowN_sdo.getStyle().background="url('"+_.scrubbelinesNImage_img.src+"') repeat-y",_.arrowS_sdo.setWidth(_.arrowS_img.width),_.arrowS_sdo.setHeight(_.arrowS_img.height),_.sBC=_.arrowS_str,_.scrubberLines_s_canvas=FWDUVPUtils.getCanvasWithModifiedColor(_.arrowS_img,_.sBC,!0),_.scrubbelinesSImage_img=_.scrubberLines_s_canvas.image,_.arrowS_sdo.getStyle().background="url('"+_.scrubbelinesSImage_img.src+"') repeat-y"}):(_.arrowN_sdo=new FWDUVPDisplayObject("div"),_.arrowN_sdo.screen.style.backgroundImage="url("+_.arrowN_str+")",_.arrowS_sdo=new FWDUVPDisplayObject("div"),_.arrowS_sdo.screen.style.backgroundImage="url("+_.arrowS_str+")"),_.arrowS_sdo.setAlpha(0),_.arrow_do.addChild(_.arrowN_sdo),_.arrow_do.addChild(_.arrowS_sdo),_.addChild(_.arrow_do),_.arrowN_sdo.setWidth(_.arrowWidth),_.arrowN_sdo.setHeight(_.arrowHeight),_.arrowS_sdo.setWidth(_.arrowWidth),_.arrowS_sdo.setHeight(_.arrowHeight),_.dumy_sdo=new FWDUVPDisplayObject("div"),FWDUVPUtils.isIE&&(_.dumy_sdo.setBkColor("#FF0000"),_.dumy_sdo.setAlpha(0)),_.addChild(_.dumy_sdo),_.hasPointEvt?(_.screen.addEventListener("pointerup",_.onClick),_.screen.addEventListener("pointerover",_.onMouseOver),_.screen.addEventListener("pointerout",_.onMouseOut)):_.screen.addEventListener&&(_.screen.addEventListener("mouseover",_.onMouseOver),_.screen.addEventListener("mouseout",_.onMouseOut),_.screen.addEventListener("mouseup",_.onClick),_.screen.addEventListener("touchend",_.onClick))},_.onMouseOver=function(e){_.isDble||e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE||(FWDAnimation.killTweensOf(_.text_sdo),_.setSelectedState(!0,0),_.dispatchEvent(f.MOUSE_OVER))},_.onMouseOut=function(e){_.isDble||e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE||(FWDAnimation.killTweensOf(_.text_sdo),_.setNormalState(!0,!0),_.dispatchEvent(f.MOUSE_OUT))},_.onClick=function(e){_.isDeveleper_bl?window.open("http://www.webdesign-flash.ro","_blank"):(e.preventDefault&&e.preventDefault(),_.dispatchEvent(f.CLICK,{e:e}))},_.onMouseDown=function(e){e.preventDefault&&e.preventDefault(),_.dispatchEvent(f.MOUSE_DOWN,{e:e})},this.setSelectedState=function(e,t){e?(FWDAnimation.to(_.bk_sdo,.6,{alpha:1,ease:Expo.easeOut}),FWDAnimation.to(_.text_sdo.screen,.6,{css:{color:_.tSColor},ease:Expo.easeOut}),FWDAnimation.to(_.arrowS_sdo,.6,{alpha:1,ease:Expo.easeOut})):(_.bk_sdo.setAlpha(1),_.text_sdo.getStyle().color=_.tSColor,_.arrowS_sdo.alpha=1)},this.setNormalState=function(e,t){var s=.6;t&&(s=0),s=0,FWDAnimation.killTweensOf(_.bk_sdo),FWDAnimation.killTweensOf(_.text_sdo.screen),FWDAnimation.killTweensOf(_.arrowS_sdo),e?(FWDAnimation.to(_.bk_sdo,.6,{alpha:0,delay:s,ease:Expo.easeOut}),FWDAnimation.to(_.text_sdo.screen,.6,{css:{color:_.tNColor},delay:s,ease:Expo.easeOut}),FWDAnimation.to(_.arrowS_sdo,.6,{alpha:0,delay:s,ease:Expo.easeOut})):(_.bk_sdo.setAlpha(0),_.text_sdo.getStyle().color=_.tNColor,_.arrowS_sdo.alpha=0)},_.centerText=function(){_.dumy_sdo.setWidth(_.totalWidth),_.dumy_sdo.setHeight(_.totalHeight),_.bk_sdo.setWidth(_.totalWidth),_.bk_sdo.setHeight(_.totalHeight),_.text_sdo.setX(2),_.text_sdo.setY(Math.round((_.totalHeight-_.text_sdo.getHeight())/2)),_.arrow_do.setX(_.totalWidth-_.arrowWidth-5),_.arrow_do.setY(Math.round((_.totalHeight-_.arrowHeight)/2))},_.getMaxTextWidth=function(){return _.text_sdo.getWidth()},this.disable=function(){_.isDble=!0,_.setSelectedState(!0),FWDUVPUtils.hasTransform2d&&(FWDAnimation.to(_.arrowN_sdo.screen,.8,{css:{rotation:180},ease:Quart.easeOut}),FWDAnimation.to(_.arrowS_sdo.screen,.8,{css:{rotation:180},ease:Quart.easeOut})),_.setNormalState(!0)},this.enable=function(){_.isDble=!1,FWDUVPUtils.hasTransform2d&&(FWDAnimation.to(_.arrowN_sdo.screen,.8,{css:{rotation:0},ease:Quart.easeOut}),FWDAnimation.to(_.arrowS_sdo.screen,.8,{css:{rotation:0},ease:Quart.easeOut})),_.setButtonMode(!0)},this.setText=function(e){FWDUVPUtils.isIEAndLessThen9?_.text_sdo.screen.innerText=e:_.text_sdo.setInnerHTML(e)},_.init()};f.setPrototype=function(){f.prototype=new FWDUVPDisplayObject("div")},f.FIRST_BUTTON_CLICK="onFirstClick",f.SECOND_BUTTON_CLICK="secondButtonOnClick",f.MOUSE_OVER="onMouseOver",f.MOUSE_OUT="onMouseOut",f.MOUSE_DOWN="onMouseDown",f.CLICK="onClick",f.prototype=null,window.FWDUVPComboBoxSelector=f}(window),function(){var _=function(e,t,s,o,i,l,n,a,r,d,u,h){var c=this;_.prototype;this.iconCSSString=r,this.icon2CSSString=d,this.normalCalssName=u,this.selectedCalssName=h,this.n1Img=e,this.s1Path_str=t,this.n2Img=s,this.s2Path_str=o,this.firstButton_do,this.n1_do,this.s1_do,this.secondButton_do,this.n2_do,this.s2_do,this.n1Img&&(this.buttonWidth=c.n1Img.width,this.buttonHeight=c.n1Img.height),this.useHEX=l,this.nBC=n,this.sBC=a,this.isSelectedState_bl=!1,this.currentState=1,this.isDisabled_bl=!1,this.isMaximized_bl=!1,this.disptachMainEvent_bl=i,this.isDisabled_bl=!1,this.isMbl=FWDUVPUtils.isMobile,this.hasPointerEvent_bl=FWDUVPUtils.hasPointerEvent,this.allowToCreateSecondButton_bl=!c.isMbl||c.hasPointerEvent_bl,this.useFontAwesome_bl=Boolean(this.iconCSSString),c.init=function(){c.hasTransform2d_bl=!1,c.setButtonMode(!0),c.setWidth(c.buttonWidth),c.setHeight(c.buttonHeight),c.setupMainContainers(),c.secondButton_do.setVisible(!1),c.setNormalState()},c.setupMainContainers=function(){c.useFontAwesome_bl?(c.setOverflow("visible"),c.firstButton_do=new FWDUVPDisplayObject("div"),c.firstButton_do.setOverflow("visible"),c.n1_do=new FWDUVPDisplayObject("div"),c.n1_do.setBac,c.n1_do.setInnerHTML(c.iconCSSString),c.firstButton_do.addChild(c.n1_do),c.secondButton_do=new FWDUVPDisplayObject("div"),c.secondButton_do.setOverflow("visible"),c.n2_do=new FWDUVPDisplayObject("div"),c.n2_do.setInnerHTML(c.icon2CSSString),c.secondButton_do.addChild(c.n2_do),c.setFinalSize()):(c.firstButton_do=new FWDUVPDisplayObject("div"),c.firstButton_do.setWidth(c.buttonWidth),c.firstButton_do.setHeight(c.buttonHeight),c.useHEX?(c.n1_do=new FWDUVPDisplayObject("div"),c.n1_do.setWidth(c.buttonWidth),c.n1_do.setHeight(c.buttonHeight),c.n1_sdo_canvas=FWDUVPUtils.getCanvasWithModifiedColor(c.n1Img,c.nBC).canvas,c.n1_do.screen.appendChild(c.n1_sdo_canvas)):(c.n1_do=new FWDUVPDisplayObject("img"),c.n1_do.setScreen(c.n1Img)),c.firstButton_do.addChild(c.n1_do),c.allowToCreateSecondButton_bl&&(c.s1_img=new Image,c.s1_img.src=c.s1Path_str,c.useHEX?(c.s1_do=new FWDUVPTransformDisplayObject("div"),c.s1_do.setWidth(c.buttonWidth),c.s1_do.setHeight(c.buttonHeight),c.s1_img.onload=function(){c.s1_do_canvas=FWDUVPUtils.getCanvasWithModifiedColor(c.s1_img,c.sBC).canvas,c.s1_do.screen.appendChild(c.s1_do_canvas)}):(c.s1_do=new FWDUVPDisplayObject("img"),c.s1_do.setScreen(c.s1_img),c.s1_do.setWidth(c.buttonWidth),c.s1_do.setHeight(c.buttonHeight)),c.s1_do.setAlpha(0),c.firstButton_do.addChild(c.s1_do)),c.secondButton_do=new FWDUVPDisplayObject("div"),c.secondButton_do.setWidth(c.buttonWidth),c.secondButton_do.setHeight(c.buttonHeight),c.useHEX?(c.n2_do=new FWDUVPDisplayObject("div"),c.n2_do.setWidth(c.buttonWidth),c.n2_do.setHeight(c.buttonHeight),c.n2_sdo_canvas=FWDUVPUtils.getCanvasWithModifiedColor(c.n2Img,c.nBC).canvas,c.n2_do.screen.appendChild(c.n2_sdo_canvas)):(c.n2_do=new FWDUVPDisplayObject("img"),c.n2_do.setScreen(c.n2Img)),c.secondButton_do.addChild(c.n2_do),c.allowToCreateSecondButton_bl&&(c.s2_img=new Image,c.s2_img.src=c.s2Path_str,c.useHEX?(c.s2_do=new FWDUVPTransformDisplayObject("div"),c.s2_do.setWidth(c.buttonWidth),c.s2_do.setHeight(c.buttonHeight),c.s2_img.onload=function(){c.s2_do_canvas=FWDUVPUtils.getCanvasWithModifiedColor(c.s2_img,c.sBC).canvas,c.s2_do.screen.appendChild(c.s2_do_canvas)}):(c.s2_do=new FWDUVPDisplayObject("img"),c.s2_do.setScreen(c.s2_img),c.s2_do.setWidth(c.buttonWidth),c.s2_do.setHeight(c.buttonHeight)),c.s2_do.setAlpha(0),c.secondButton_do.addChild(c.s2_do))),c.addChild(c.secondButton_do),c.addChild(c.firstButton_do),c.hasPointerEvent_bl?(c.screen.addEventListener("pointerup",c.onMouseUp),c.screen.addEventListener("pointerover",c.onMouseOver),c.screen.addEventListener("pointerout",c.onMouseOut)):c.screen.addEventListener&&(c.isMbl||(c.screen.addEventListener("mouseover",c.onMouseOver),c.screen.addEventListener("mouseout",c.onMouseOut),c.screen.addEventListener("mouseup",c.onMouseUp)),c.screen.addEventListener("toustart",c.onDown),c.screen.addEventListener("touchend",c.onMouseUp))},c.onMouseOver=function(e,t){c.isDisabled_bl||c.isSelectedState_bl||e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE&&"mouse"!=e.pointerType||(c.dispatchEvent(_.MOUSE_OVER,{e:e}),c.dispatchEvent(_.SHOW_TOOLTIP,{e:e}),c.setSelectedState(!0))},c.onMouseOut=function(e){!c.isDisabled_bl&&c.isSelectedState_bl&&(e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE&&"mouse"!=e.pointerType||(c.setNormalState(!0),c.dispatchEvent(_.MOUSE_OUT)))},c.onDown=function(e){e.preventDefault&&e.preventDefault()},c.onMouseUp=function(e){c.isDisabled_bl||2==e.button||(e.preventDefault&&e.preventDefault(),c.isMbl||c.onMouseOver(e,!1),c.disptachMainEvent_bl&&c.dispatchEvent(_.MOUSE_UP,{e:e}))},c.checkCount=0,this.setFinalSize=function(){if(clearInterval(c.checkId_int),c.lastWidth=c.n1_do.screen.firstChild.offsetWidth,!(5r.totalWidth&&(r.totalWidth=e.getMaxTextWidth());for(o=0;os-2&&(n=i-r.totalWidth),n<0&&(n=parseInt((s-r.totalWidth)/2)),n<0&&(n=0),a+r.totalHeight>o-2&&(a=l-r.totalHeight),a<0&&(a=parseInt((o-r.totalHeight)/2)),a<0&&(a=0),r.setX(n),r.setY(a)},r.disable=function(){r.copyURL_do&&r.copyURL_do.disable(),r.copyURLTime_do&&r.copyURLTime_do.disable()},r.enable=function(){r.copyURL_do&&r.copyURL_do.enable(),r.copyURLTime_do&&r.copyURLTime_do.enable()},r.removeFromDOM=function(){r.setX(-5e3)},r.init()};e.setPrototype=function(){e.prototype=new FWDUVPDisplayObject("div")},e.prototype=null,window.FWDUVPContextMenu=e}(window),function(){var a=function(e,t,s,o,i,l){var n=this;a.prototype;n.label1_str=e,n.label2_str=t,n.nBC=s,n.sBC=o,n.disabledColor_str=i,n.totalWidth=400,n.totalHeight=20,n.padding,n.text1_sdo=null,n.text2_sdo=null,n.dumy_sdo=null,n.isMbl=FWDUVPUtils.isMobile,n.currentState=1,n.isDisabled_bl=!1,n.isMaximized_bl=!1,n.showSecondButton_bl=null!=t,n.isDeveleper_bl=!1,n.init=function(){n.setBackfaceVisibility(),n.setButtonMode(!0),n.setupMainContainers(),n.setWidth(n.totalWidth),n.setHeight(n.totalHeight),n.setButtonState(0)},n.setupMainContainers=function(){n.text1_sdo=new FWDUVPDisplayObject("div"),n.text1_sdo.setBackfaceVisibility(),n.text1_sdo.setDisplay("inline-block"),n.text1_sdo.getStyle().fontFamily="Arial",n.text1_sdo.getStyle().fontSize="12px",n.text1_sdo.getStyle().color=n.nBC,n.text1_sdo.getStyle().fontSmoothing="antialiased",n.text1_sdo.setInnerHTML(n.label1_str),n.addChild(n.text1_sdo),n.showSecondButton_bl&&(n.text2_sdo=new FWDUVPDisplayObject("div"),n.text2_sdo.setBackfaceVisibility(),n.text2_sdo.setDisplay("inline-block"),n.text2_sdo.getStyle().fontFamily="Arial",n.text2_sdo.getStyle().fontSize="12px",n.text2_sdo.getStyle().color=n.nBC,n.text2_sdo.getStyle().fontSmoothing="antialiased",n.text2_sdo.setInnerHTML(n.label2_str),n.addChild(n.text2_sdo)),n.dumy_sdo=new FWDUVPDisplayObject("div"),FWDUVPUtils.isIE&&(n.dumy_sdo.setBkColor("#FF0000"),n.dumy_sdo.setAlpha(0)),n.addChild(n.dumy_sdo),n.isMbl?n.screen.addEventListener("touchstart",n.onMouseDown):n.screen.addEventListener&&(n.screen.addEventListener("mouseover",n.onMouseOver),n.screen.addEventListener("mouseout",n.onMouseOut),n.screen.addEventListener("mousedown",n.onMouseDown),n.screen.addEventListener("click",n.onClick))},n.onMouseOver=function(e){n.isDisabled_bl||(FWDAnimation.killTweensOf(n.text1_sdo),e?(FWDAnimation.to(n.text1_sdo.screen,.5,{css:{color:n.sBC},ease:Expo.easeOut}),n.showSecondButton_bl&&FWDAnimation.to(n.text2_sdo.screen,.5,{css:{color:n.sBC},ease:Expo.easeOut})):(n.text1_sdo.getStyle().color=n.sBC,n.showSecondButton_bl&&(FWDAnimation.killTweensOf(n.text2_sdo),n.text2_sdo.getStyle().color=n.sBC)),n.dispatchEvent(a.MOUSE_OVER))},n.onMouseOut=function(e){n.isDisabled_bl||(FWDAnimation.killTweensOf(n.text1_sdo),FWDAnimation.to(n.text1_sdo.screen,.5,{css:{color:n.nBC},ease:Expo.easeOut}),n.showSecondButton_bl&&(FWDAnimation.killTweensOf(n.text2_sdo),FWDAnimation.to(n.text2_sdo.screen,.5,{css:{color:n.nBC},ease:Expo.easeOut})),n.dispatchEvent(a.MOUSE_OUT))},n.onClick=function(e){n.isDeveleper_bl?window.open("http://www.webdesign-flash.ro","_blank"):n.isDisabled_bl||(e.preventDefault&&e.preventDefault(),n.dispatchEvent(a.CLICK))},n.onMouseDown=function(e){n.isDisabled_bl||(e.preventDefault&&e.preventDefault(),n.dispatchEvent(a.MOUSE_DOWN,{e:e}))},n.toggleButton=function(){n.showSecondButton_bl&&(1==n.currentState?(n.text1_sdo.setVisible(!0),n.text2_sdo.setVisible(!1),n.currentState=0,n.dispatchEvent(a.FIRST_BUTTON_CLICK)):(n.text1_sdo.setVisible(!1),n.text2_sdo.setVisible(!0),n.currentState=1,n.dispatchEvent(a.SECOND_BUTTON_CLICK)))},n.setButtonState=function(e){0==e?(n.text1_sdo.setVisible(!0),n.showSecondButton_bl&&n.text2_sdo.setVisible(!1),n.currentState=0):1==e&&(n.text1_sdo.setVisible(!1),n.showSecondButton_bl&&n.text2_sdo.setVisible(!0),n.currentState=1)},n.centerText=function(){n.dumy_sdo.setWidth(n.totalWidth),n.dumy_sdo.setHeight(n.totalHeight),FWDUVPUtils.isIEAndLessThen9?(n.text1_sdo.setY(Math.round((n.totalHeight-n.text1_sdo.getHeight())/2)-1),n.showSecondButton_bl&&n.text2_sdo.setY(Math.round((n.totalHeight-n.text2_sdo.getHeight())/2)-1)):(n.text1_sdo.setY(Math.round((n.totalHeight-n.text1_sdo.getHeight())/2)),n.showSecondButton_bl&&n.text2_sdo.setY(Math.round((n.totalHeight-n.text2_sdo.getHeight())/2))),n.text1_sdo.setHeight(n.totalHeight+2),n.showSecondButton_bl&&n.text2_sdo.setHeight(n.totalHeight+2)},n.getMaxTextWidth=function(){var e=n.text1_sdo.getWidth(),t=0;return n.showSecondButton_bl&&(t=n.text2_sdo.getWidth()),Math.max(e,t)},n.disable=function(){n.isDisabled_bl=!0,FWDAnimation.killTweensOf(n.text1_sdo),FWDAnimation.to(n.text1_sdo.screen,.5,{css:{color:n.disabledColor_str},ease:Expo.easeOut}),n.setButtonMode(!1)},n.enable=function(){n.isDisabled_bl=!1,FWDAnimation.killTweensOf(n.text1_sdo),FWDAnimation.to(n.text1_sdo.screen,.5,{css:{color:n.nBC},ease:Expo.easeOut}),n.setButtonMode(!0)},n.init()};a.setPrototype=function(){a.prototype=new FWDUVPDisplayObject("div")},a.FIRST_BUTTON_CLICK="onFirstClick",a.SECOND_BUTTON_CLICK="secondButtonOnClick",a.MOUSE_OVER="onMouseOver",a.MOUSE_OUT="onMouseOut",a.MOUSE_DOWN="onMouseDown",a.CLICK="onClick",a.prototype=null,window.FWDUVPContextMenuButton=a}(window),function(){var o=function(p,m){var b=this;o.prototype;this.data=p,this.bkLeft_img=p.bkLeft_img,this.bkRight_img=p.bkRight_img,this.playN_img=p.playN_img,this.pauseN_img=p.pauseN_img,this.mainScrubberBkLeft_img=p.mainScrubberBkLeft_img,this.mainScrubberDragLeft_img=p.mainScrubberDragLeft_img,this.mainScrubberDragLeftSource=p.mainScrubberDragLeft_img.src,this.mainScrubberLine_img=p.mainScrubberLine_img,this.volumeScrubberBkLeft_img=p.volumeScrubberBkLeft_img,this.volumeScrubberDragBottom_img=p.volumeScrubberDragBottom_img,this.volumeScrubberLine_img=p.volumeScrubberLine_img,this.volumeN_img=p.volumeN_img,this.progressLeft_img=p.progressLeft_img,this.categoriesN_img=p.categoriesN_img,this.prt=m,this.playlistN_img=p.playlistN_img,this.ytbQualityN_img=p.ytbQualityN_img,this.infoN_img=p.infoN_img,this.downloadN_img=p.downloadN_img,this.facebookN_img=p.facebookN_img,this.fullScreenN_img=p.fullScreenN_img,this.normalScreenN_img=p.normalScreenN_img,this.hidePlaylistN_img=p.hidePlaylistN_img,this.showPlaylistN_img=p.showPlaylistN_img,this.embedN_img=p.embedN_img,this.buttons_ar=[],b.useHEX=p.useHEX,b.nBC=p.nBC,b.sBC=p.sBC,this.bkMiddlePath_str=p.bkMiddlePath_str,this.mainScrubberBkMiddlePath_str=p.mainScrubberBkMiddlePath_str,this.volumeScrubberBkMiddlePath_str=p.volumeScrubberBkMiddlePath_str,this.mainScrubberDragMiddlePath_str=p.mainScrubberDragMiddlePath_str,this.volumeScrubberDragMiddlePath_str=p.volumeScrubberDragMiddlePath_str,this.timeColor_str=p.timeColor_str,this.progressMiddlePath_str=p.progressMiddlePath_str,this.youtubeQualityButtonNormalColor_str=p.youtubeQualityButtonNormalColor_str,this.youtubeQualityButtonSelectedColor_str=p.youtubeQualityButtonSelectedColor_str,this.youtubeQualityArrowPath_str=p.youtubeQualityArrowPath_str,this.controllerBkPath_str=p.controllerBkPath_str,this.ytbQualityButtonPointerPath_str=p.ytbQualityButtonPointerPath_str,this.buttonsToolTipFontColor_str=p.buttonsToolTipFontColor_str,this.buttonsToolTipHideDelay=p.buttonsToolTipHideDelay,this.ttYtbBtns=0,this.sW=0,this.sH=p.controllerHeight,this.scrbsBkLARW=this.mainScrubberBkLeft_img.width,this.maiScrbW=0,this.mainScrbMinW=100,this.volumeScrubberOfsetHeight=p.volumeScrubberOfsetHeight,this.volumeScrubberHeight=p.volumeScrubberHeight+b.volumeScrubberOfsetHeight,this.volScrbW=b.mainScrubberBkLeft_img.height,this.mainScrbH=this.mainScrubberBkLeft_img.height,this.mainScrbDrgLW=b.mainScrubberDragLeft_img.width,this.scrubbersOffsetWidth=p.scrubbersOffsetWidth,this.volume=p.volume,this.lastVolume=b.volume,this.startSpaceBetweenButtons=p.startSpaceBetweenButtons,this.spaceBetweenButtons=p.spaceBetweenButtons,this.percentPlayed=0,this.percentLoaded=0,this.lastTimeLength=0,this.prevYtbQualityButtonsLength=0,this.pointerWidth=8,this.pointerHeight=5,this.timeOffsetLeftWidth=p.timeOffsetLeftWidth,this.timeOffsetRightWidth=p.timeOffsetRightWidth,this.timeOffsetTop=p.timeOffsetTop,this.mainScrubberOffestTop=p.mainScrubberOffestTop,this.isVolumeScrubberShowed_bl=!0,this.volumeScrubberIsDragging_bl=!1,this.showButtonsToolTip_bl=p.showButtonsToolTip_bl,this.showPlaylistsButtonAndPlaylists_bl=p.showPlaylistsButtonAndPlaylists_bl,this.showPlaylistButtonAndPlaylist_bl=p.showPlaylistButtonAndPlaylist_bl,this.showEmbedButton_bl=p.showEmbedButton_bl,this.showPlaylistByDefault_bl=p.showPlaylistByDefault_bl,this.showShuffleButton_bl=p.showShuffleButton_bl,this.showLoopButton_bl=p.showLoopButton_bl,this.showNP_bl=m.data.showNextAndPrevButtonsInController_bl,this.showNextAndPrevButtonsInController_bl=p.showNextAndPrevButtonsInController_bl,this.showFullScreenButton_bl=p.showFullScreenButton_bl,this.disableVideoScrubber_bl=p.disableVideoScrubber_bl,this.showYoutubeQualityButton_bl=p.showYoutubeQualityButton_bl,this.showShareButton_bl=p.showShareButton_bl,this.showInfoButton_bl=p.showInfoButton_bl,this.showDownloadVideoButton_bl=p.showDownloadVideoButton_bl,this.showVolumeScrubber_bl=p.showVolumeScrubber_bl,this.allowToChangeVolume_bl=p.allowToChangeVolume_bl,this.showTime_bl=p.showTime_bl,this.showVolumeButton_bl=p.showVolumeButton_bl,this.showControllerWhenVideoIsStopped_bl=p.showControllerWhenVideoIsStopped_bl,this.showRewindButton_bl=p.showRewindButton_bl,this.isMainScrubberScrubbing_bl=!1,this.isMainScrubberDisabled_bl=!1,this.isVolumeScrubberDisabled_bl=!1,this.isMainScrubberLineVisible_bl=!1,this.isVolumeScrubberLineVisible_bl=!1,this.showSubBtn=p.showSubBtn,this.hasYtbButton_bl=!1,this.isMute_bl=!1,this.isShowed_bl=!0,this.forceToShowMainScrubberOverCotroller_bl=!1,this.isMainScrubberOnTop_bl=!1,this.showNextAndPrevButtons_bl=p.showNextAndPrevButtons_bl,this.isPlaylistShowed_bl=p.isPlaylistShowed_bl,this.areYtbQualityButtonsShowed_bl=!0,this.repeatBackground_bl=p.repeatBackground_bl,this.isMbl=FWDUVPUtils.isMobile,this.hasPointerEvent_bl=FWDUVPUtils.hasPointerEvent,this.useVectorIcons_bl=p.useVectorIcons_bl,b.init=function(){if(b.setOverflow("visible"),b.mainHld=new FWDUVPDisplayObject("div"),p.useAToB&&b.setupATB(),b.repeatBackground_bl)b.bk_do=new FWDUVPDisplayObject("div"),b.bk_do.getStyle().background="url('"+b.controllerBkPath_str+"')";else{b.bk_do=new FWDUVPDisplayObject("img");var e=new Image;e.src=b.controllerBkPath_str,b.bk_do.setScreen(e)}b.mainHld.addChild(b.bk_do),b.mainHld.setOverflow("visible"),b.mainHld.getStyle().zIndex=1,b.addChild(b.mainHld),b.showYoutubeQualityButton_bl&&(b.ytbQuality_ar=["hd2160","hd1440","highres","hd1080","hd720","large","medium","small","tiny"],b.ytbButtons_ar=[],b.ttYtbBtns=b.ytbQuality_ar.length,b.setupYtbButtons()),b.showNextAndPrevButtonsInController_bl&&b.setupPrevButton(),b.setupPlayPauseButton(),b.showRewindButton_bl&&b.setupRewindButton(),b.showNextAndPrevButtonsInController_bl&&b.setupNextButton(),b.setupMainScrubber(),b.showTime_bl&&b.setupTime(),b.showVolumeButton_bl&&b.setupVolumeButton(),b.showPlaylistsButtonAndPlaylists_bl&&b.setupCategoriesButton(),b.showPlaylistButtonAndPlaylist_bl&&b.setupPlaylistButton(),b.showYoutubeQualityButton_bl&&b.setupYoutubeQualityButton(),b.showShareButton_bl&&b.setupShareButton(),b.showEmbedButton_bl&&b.setupEmbedButton(),p.useAToB&&b.setupAtbButton(),b.showInfoButton_bl&&b.setupInfoButton(),p.showPlaybackRateButton_bl&&b.setupPlaybackRateButton(),b.showDownloadVideoButton_bl&&b.setupDownloadButton(),b.showSubBtn&&b.setupSubtitleButton(),p.showChromecastButton_bl&&b.setupChromecastButton(),b.showFullScreenButton_bl&&b.setupFullscreenButton(),b.showButtonsToolTip_bl&&b.setupToolTips(),b.showVolumeScrubber_bl&&(b.setupVolumeScrubber(),b.hideVolumeScrubber()),b.hide(!1)},b.resizeAndPosition=function(){b.sW=m.tempVidStageWidth,b.positionButtons(),b.setY(m.tempVidStageHeight-b.sH),b.hideQualityButtons(!1),b.ytbButtonsHolder_do&&(FWDAnimation.killTweensOf(b.ytbButtonsHolder_do),b.ytbButtonsHolder_do.setY(m.tempStageHeight)),b.subtitlesButtonsHolder_do&&(FWDAnimation.killTweensOf(b.subtitlesButtonsHolder_do),b.subtitlesButtonsHolder_do.setY(m.sH)),b.playbackRatesButtonsHolder_do&&(FWDAnimation.killTweensOf(b.playbackRatesButtonsHolder_do),b.playbackRatesButtonsHolder_do.setY(m.sH)),b.positionAdsLines()},this.getButtonIndex=function(e){return FWDUVPUtils.indexOfArray(b.buttons_ar,e)},b.positionButtons=function(){if(b.sW){var e,t,s,o=0,i=0,l=0,n=0,a=b.showTime_bl;if(p.playlist_ar[m.id]){var r;if(b.showDownloadVideoButton_bl)if(p.playlist_ar[m.id].downloadable)-1==b.getButtonIndex(b.downloadButton_do)&&(b.ccBtn_do&&-1!=b.getButtonIndex(b.ccBtn_do)?(s=b.getButtonIndex(b.ccBtn_do),b.buttons_ar.splice(s,0,b.downloadButton_do)):b.fullScreenButton_do?(s=b.getButtonIndex(b.fullScreenButton_do),b.buttons_ar.splice(s,0,b.downloadButton_do)):b.buttons_ar.splice(b.buttons_ar.length,0,b.downloadButton_do),b.downloadButton_do.setVisible(!0));else-1!=(r=b.getButtonIndex(b.downloadButton_do))&&(b.buttons_ar.splice(r,1),b.downloadButton_do.setVisible(!1));if(b.showInfoButton_bl)if(p.playlist_ar[m.id].desc)-1==b.getButtonIndex(b.infoButton_do)&&(b.downloadButton_do&&-1!=b.getButtonIndex(b.downloadButton_do)?(s=b.getButtonIndex(b.downloadButton_do),b.buttons_ar.splice(s,0,b.infoButton_do)):b.ccBtn_do&&-1!=b.getButtonIndex(b.ccBtn_do)?(s=b.getButtonIndex(b.ccBtn_do),b.buttons_ar.splice(s,0,b.infoButton_do)):b.fullScreenButton_do?(s=b.getButtonIndex(b.fullScreenButton_do),b.buttons_ar.splice(s,0,b.infoButton_do)):b.buttons_ar.splice(b.buttons_ar.length,0,b.infoButton_do),b.infoButton_do.setVisible(!0));else-1!=(r=b.getButtonIndex(b.infoButton_do))&&(b.buttons_ar.splice(r,1),b.infoButton_do.setVisible(!1));if(p.useAToB)if(p.playlist_ar[m.id].atb)-1==FWDUVPUtils.indexOfArray(b.buttons_ar,b.atbButton_do)&&(b.infoButton_do&&-1!=b.getButtonIndex(b.infoButton_do)?(s=b.getButtonIndex(b.infoButton_do),b.buttons_ar.splice(s,0,b.atbButton_do)):b.downloadButton_do&&-1!=b.getButtonIndex(b.downloadButton_do)?(s=b.getButtonIndex(b.downloadButton_do),b.buttons_ar.splice(s,0,b.atbButton_do)):b.ccBtn_do&&-1!=b.getButtonIndex(b.ccBtn_do)?(s=b.getButtonIndex(b.ccBtn_do),b.buttons_ar.splice(s,0,b.atbButton_do)):b.fullScreenButton_do?(s=b.getButtonIndex(b.fullScreenButton_do),b.buttons_ar.splice(s,0,b.atbButton_do)):b.buttons_ar.splice(b.buttons_ar.length,0,b.atbButton_do),b.atbButton_do.setVisible(!0));else{var d=FWDUVPUtils.indexOfArray(b.buttons_ar,b.atbButton_do);-1!=d&&(b.buttons_ar.splice(d,1),b.atbButton_do.setVisible(!1),b.atb.hide(!0))}if(b.showSubBtn)if(p.playlist_ar[m.id].subtitleSource)-1==FWDUVPUtils.indexOfArray(b.buttons_ar,b.subtitleButton_do)&&(b.playbackRateButton_do&&-1!=b.getButtonIndex(b.playbackRateButton_do)?(s=b.getButtonIndex(b.playbackRateButton_do),b.buttons_ar.splice(s,0,b.subtitleButton_do)):b.atbButton_do&&-1!=b.getButtonIndex(b.atbButton_do)?(s=b.getButtonIndex(b.atbButton_do),b.buttons_ar.splice(s,0,b.subtitleButton_do)):b.infoButton_do&&-1!=b.getButtonIndex(b.infoButton_do)?(s=b.getButtonIndex(b.infoButton_do),b.buttons_ar.splice(s,0,b.subtitleButton_do)):b.downloadButton_do&&-1!=b.getButtonIndex(b.downloadButton_do)?(s=b.getButtonIndex(b.downloadButton_do),b.buttons_ar.splice(s,0,b.subtitleButton_do)):b.ccBtn_do&&-1!=b.getButtonIndex(b.ccBtn_do)?(s=b.getButtonIndex(b.ccBtn_do),b.buttons_ar.splice(s,0,b.subtitleButton_do)):b.fullScreenButton_do?(s=b.getButtonIndex(b.fullScreenButton_do),b.buttons_ar.splice(s,0,b.subtitleButton_do)):b.buttons_ar.splice(b.buttons_ar.length,0,b.subtitleButton_do),b.subtitleButton_do.setVisible(!0));else{var u=FWDUVPUtils.indexOfArray(b.buttons_ar,b.subtitleButton_do);-1!=u&&(b.buttons_ar.splice(u,1),b.subtitleButton_do.setVisible(!1),b.subtitleButton_do.setX(-5e3))}if(m.videoType_str!=FWDUVPlayer.VIMEO||p.showDefaultControllerForVimeo_bl)-1==FWDUVPUtils.indexOfArray(b.buttons_ar,b.playPauseButton_do)&&b.playPauseButton_do&&(s=0,b.buttons_ar.splice(s,0,b.playPauseButton_do),b.playPauseButton_do.setVisible(!0)),-1==FWDUVPUtils.indexOfArray(b.buttons_ar,b.rewindButton_do)&&b.rewindButton_do&&(s=FWDUVPUtils.indexOfArray(b.buttons_ar,b.playPauseButton_do),b.buttons_ar.splice(s,0,b.rewindButton_do),b.rewindButton_do.setVisible(!0)),b.showVolumeButton_bl&&(b.showTime_bl?-1==FWDUVPUtils.indexOfArray(b.buttons_ar,b.volBtn)&&(s=FWDUVPUtils.indexOfArray(b.buttons_ar,b.time_do)+1,b.buttons_ar.splice(s,0,b.volBtn),b.volBtn.setVisible(!0)):-1==FWDUVPUtils.indexOfArray(b.buttons_ar,b.volBtn)&&(s=FWDUVPUtils.indexOfArray(b.buttons_ar,b.mainScrubber_do)+1,b.buttons_ar.splice(s,0,b.volBtn),b.volBtn.setVisible(!0))),b.mainScrubber_do.setVisible(!0);else{var h=FWDUVPUtils.indexOfArray(b.buttons_ar,b.playPauseButton_do);-1!=h&&(b.buttons_ar.splice(h,1),b.playPauseButton_do.setVisible(!1),b.playPauseButton_do.setX(-500)),b.mainScrubber_do.setVisible(!1)}for(var c=[],_=0;_l.w&&(o+=-1*(n=-1*(l.w-(o+t.w)))),t.positionPointer(n,!1),t.setX(o),t.setY(i),t.show()}},this.setupAdsLines=function(e,t,s,o){if(!this.createdAdsOnce_bl&&(b.curLinesId!=t||b.curLinesCat!=s||o)&&(b.curLinesId=t,b.curLinesCat=s,e)){if(b.resetsAdsLines(),this.linesHolder_do||(this.linesHolder_do=new FWDUVPDisplayObject("div"),this.linesHolder_do.setOverflow("visible"),this.mainScrubber_do.addChild(this.linesHolder_do)),this.createdAdsOnce_bl=!0,this.lines_ar=e,this.lines_ar){var i;this.line_ar=[];for(var l=0;l",void 0,"UVPMainButtonsNormalState","UVPMainButtonsSelectedState")):(FWDUVPSimpleButton.setPrototype(),b.playbackRateButton_do=new FWDUVPSimpleButton(p.playbackRateNPath_img,p.playbackRateSPath_str,void 0,!0,b.useHEX,b.nBC,b.sBC)),b.playbackRateButton_do.setY(parseInt((b.sH-b.playbackRateButton_do.h)/2));var e=setInterval(function(){0i&&(i=s.w),s.setY(o),o+=s.h):-3e3!=s.x&&s.setX(-3e3);for(e=0;eb.sW-b.thumbnailsPreview_do.w&&(s=b.sW-b.thumbnailsPreview_do.w),b.thumbnailsPreview_do.setLabel(FWDUVPUtils.formatTime(Math.round(m.totalDuration*t)),Math.round(m.totalDuration*t)),b.thumbnailsPreview_do.setX(s),b.thumbnailsPreview_do.setY(b.mainScrubber_do.y-b.thumbnailsPreview_do.h-2)}},this.updateTooltipOnMove=function(e){var t=FWDUVPUtils.getViewportMouseCoordinates(e).screenX-b.mainScrubber_do.getGlobalX();t<0?t=0:t>b.maiScrbW-b.scrubbersOffsetWidth&&(t=b.maiScrbW-b.scrubbersOffsetWidth);var s=t/b.maiScrbW;b.updateToolTip(t,s),b.updateThumbnailsPreview(t,s)},b.mainScrubberWMouseMove=function(e){var t=FWDUVPUtils.getViewportMouseCoordinates(e);b.vcX=t.screenX,b.vcY=t.screenY,FWDUVPUtils.hitTest(b.mainScrubber_do.screen,b.vcX,b.vcY)||b.isMainScrubberScrubbing_bl||(window.removeEventListener("mousemove",b.mainScrubberWMouseMove),b.ttm.hide());var s=FWDUVPUtils.getViewportMouseCoordinates(e).screenX-b.mainScrubber_do.getGlobalX();s<0?s=0:s>b.maiScrbW-b.scrubbersOffsetWidth&&(s=b.maiScrbW-b.scrubbersOffsetWidth);var o=s/b.maiScrbW;b.updateThumbnailsPreview(s,o)},this.mainScrubberOnOverHandler=function(e){if(!b.isMainScrubberDisabled_bl){p.showMainScrubberToolTipLabel_bl&&!m.hasThumbnailsPreview&&b.ttm.show(),b.thumbnailsPreview_do&&m.hasThumbnailsPreview&&b.thumbnailsPreview_do.show(),b.isMbl||!b.ttm&&!b.thumbnailsPreview_do||(window.removeEventListener("mousemove",b.mainScrubberWMouseMove),window.addEventListener("mousemove",b.mainScrubberWMouseMove));var t=FWDUVPUtils.getViewportMouseCoordinates(e).screenX-b.mainScrubber_do.getGlobalX();t<0?t=0:t>b.maiScrbW-b.scrubbersOffsetWidth&&(t=b.maiScrbW-b.scrubbersOffsetWidth);var s=t/b.maiScrbW;b.updateToolTip(t,s),b.updateThumbnailsPreview(t,s)}},this.mainScrubberOnOutHandler=function(e){b.isMainScrubberScrubbing_bl||(b.ttm&&b.ttm.hide(),b.thumbnailsPreview_do&&m.hasThumbnailsPreview&&b.thumbnailsPreview_do.hide())},this.mainScrubberOnDownHandler=function(e){if(!b.isMainScrubberDisabled_bl&&2!=e.button){m.showDisable(),e.preventDefault&&e.preventDefault(),b.isMainScrubberScrubbing_bl=!0;var t=FWDUVPUtils.getViewportMouseCoordinates(e).screenX-b.mainScrubber_do.getGlobalX();t<0?t=0:t>b.maiScrbW-b.scrubbersOffsetWidth&&(t=b.maiScrbW-b.scrubbersOffsetWidth);var s=t/b.maiScrbW;p.showMainScrubberToolTipLabel_bl&&!m.hasThumbnailsPreview&&b.ttm.show(),b.thumbnailsPreview_do&&m.hasThumbnailsPreview&&b.thumbnailsPreview_do.show(),b.updateToolTip(t,s),b.updateMainScrubber(s),b.updateThumbnailsPreview(t,s),b.dispatchEvent(o.START_TO_SCRUB),b.dispatchEvent(o.SCRUB,{percent:s}),b.hasPointerEvent_bl?(window.addEventListener("pointermove",b.mainScrubberMoveHandler),window.addEventListener("pointerup",b.mainScrubberEndHandler)):(window.addEventListener("mousemove",b.mainScrubberMoveHandler),window.addEventListener("mouseup",b.mainScrubberEndHandler),window.addEventListener("touchmove",b.mainScrubberMoveHandler),window.addEventListener("touchend",b.mainScrubberEndHandler))}},this.mainScrubberMoveHandler=function(e){e.preventDefault&&e.preventDefault();var t=FWDUVPUtils.getViewportMouseCoordinates(e).screenX-b.mainScrubber_do.getGlobalX();t<0?t=0:t>b.maiScrbW-b.scrubbersOffsetWidth&&(t=b.maiScrbW-b.scrubbersOffsetWidth);var s=t/b.maiScrbW;b.updateToolTip(t,s),b.updateMainScrubber(s),b.updateThumbnailsPreview(t,s),b.dispatchEvent(o.SCRUB,{percent:s})},this.mainScrubberEndHandler=function(e){if(m.hideDisable(),e){var t=FWDUVPUtils.getViewportMouseCoordinates(e);FWDUVPUtils.hitTest(b.mainScrubber_do.screen,t.screenX,t.screenY)||(b.ttm&&b.ttm.hide(),b.thumbnailsPreview_do&&m.hasThumbnailsPreview&&b.thumbnailsPreview_do.hide())}b.isMainScrubberScrubbing_bl=!1,b.dispatchEvent(o.STOP_TO_SCRUB),b.hasPointerEvent_bl?(window.removeEventListener("pointermove",b.mainScrubberMoveHandler),window.removeEventListener("pointerup",b.mainScrubberEndHandler)):(window.removeEventListener("mousemove",b.mainScrubberMoveHandler),window.removeEventListener("mouseup",b.mainScrubberEndHandler),window.removeEventListener("touchmove",b.mainScrubberMoveHandler),window.removeEventListener("touchend",b.mainScrubberEndHandler))},this.disableMainScrubber=function(){b.mainScrubber_do&&(b.isMainScrubberDisabled_bl=!0,b.mainScrubber_do.setButtonMode(!1),b.mainScrubberEndHandler(),b.mainScrubberOnOutHandler(),b.updateMainScrubber(0),b.updatePreloaderBar(0))},this.enableMainScrubber=function(){b.mainScrubber_do&&!b.isLive&&(b.isMainScrubberDisabled_bl=!1,b.disableVideoScrubber_bl||b.mainScrubber_do.setButtonMode(!0))},this.updateMainScrubber=function(e){if(b.mainScrubber_do){b.isLive&&(e=0);var t=parseInt(e*b.maiScrbW);isNaN(t)||null==t||(t<0&&(t=0),b.percentPlayed=e,!FWDUVPlayer.hasHTML5Video&&t>=b.mainProgress_do.w&&(t=b.mainProgress_do.w),t<1&&b.isMainScrubberLineVisible_bl?(b.isMainScrubberLineVisible_bl=!1,FWDAnimation.to(b.mainScrubberBarLine_do,.5,{alpha:0})):1b.maiScrbW-b.scrubbersOffsetWidth&&(t=b.maiScrbW-b.scrubbersOffsetWidth),t<0&&(t=0),FWDAnimation.to(b.mainScrubberBarLine_do,.8,{x:t+1,ease:Expo.easeOut}))}},this.updatePreloaderBar=function(e){if(b.mainProgress_do){b.isLive&&(e=0),b.percentLoaded=e;var t=parseInt(b.percentLoaded*b.maiScrbW);isNaN(t)||null==t||(t<0&&(t=0),.98<=b.percentLoaded?(b.percentLoaded=1,b.mainProgress_do.setY(-30)):0!=b.mainProgress_do.y&&1!=b.percentLoaded&&b.mainProgress_do.setY(0),t>b.maiScrbW-b.scrubbersOffsetWidth&&(t=b.maiScrbW-b.scrubbersOffsetWidth),t<0&&(t=0),b.mainProgress_do.setWidth(t))}},this.setupPrevButton=function(){b.useVectorIcons_bl?(FWDUVPSimpleButton.setPrototype(),b.prevButton_do=new FWDUVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"",void 0,"UVPMainButtonsNormalState","UVPMainButtonsSelectedState")):(FWDUVPSimpleButton.setPrototype(),b.prevButton_do=new FWDUVPSimpleButton(p.prev2N_img,p.prevSPath_str,void 0,!0,b.useHEX,b.nBC,b.sBC)),b.prevButton_do.addListener(FWDUVPSimpleButton.SHOW_TOOLTIP,b.prevButtonShowTooltipHandler),b.prevButton_do.addListener(FWDUVPSimpleButton.MOUSE_UP,b.prevButtonOnMouseUpHandler),b.prevButton_do.setY(parseInt((b.sH-b.prevButton_do.h)/2));var e=setInterval(function(){0",void 0,"UVPMainButtonsNormalState","UVPMainButtonsSelectedState")):(FWDUVPSimpleButton.setPrototype(),b.nextButton_do=new FWDUVPSimpleButton(p.next2N_img,p.nextSPath_str,void 0,!0,b.useHEX,b.nBC,b.sBC)),b.nextButton_do.addListener(FWDUVPSimpleButton.SHOW_TOOLTIP,b.nextButtonShowTooltipHandler),b.nextButton_do.addListener(FWDUVPSimpleButton.MOUSE_UP,b.nextButtonOnMouseUpHandler),b.nextButton_do.setY(parseInt((b.sH-b.nextButton_do.h)/2));var e=setInterval(function(){0","","UVPMainButtonsNormalState play","UVPMainButtonsSelectedState play")):(FWDUVPComplexButton.setPrototype(),b.playPauseButton_do=new FWDUVPComplexButton(b.playN_img,p.playSPath_str,b.pauseN_img,p.pauseSPath_str,!0,b.useHEX,b.nBC,b.sBC)),b.buttons_ar.push(b.playPauseButton_do),b.playPauseButton_do.setY(parseInt((b.sH-b.playPauseButton_do.buttonHeight)/2));var e=setInterval(function(){0",void 0,"UVPMainButtonsNormalState cats","UVPMainButtonsSelectedState cats")):(FWDUVPSimpleButton.setPrototype(),b.categoriesButton_do=new FWDUVPSimpleButton(b.categoriesN_img,p.categoriesSPath_str,void 0,!0,b.useHEX,b.nBC,b.sBC)),b.categoriesButton_do.addListener(FWDUVPSimpleButton.SHOW_TOOLTIP,b.categoriesButtonShowTooltipHandler),b.categoriesButton_do.addListener(FWDUVPSimpleButton.MOUSE_UP,b.categoriesButtonOnMouseUpHandler),b.categoriesButton_do.setY(parseInt((b.sH-b.categoriesButton_do.h)/2));var e=setInterval(function(){0","","UVPMainButtonsNormalState playlist","UVPMainButtonsSelectedState playlist")):(FWDUVPComplexButton.setPrototype(),b.playlistButton_do=new FWDUVPComplexButton(b.hidePlaylistN_img,p.hidePlaylistSPath_str,b.showPlaylistN_img,p.showPlaylistSPath_str,!0,b.useHEX,b.nBC,b.sBC)),b.buttons_ar.push(b.playlistButton_do),b.playlistButton_do.setY(parseInt((b.sH-b.playlistButton_do.buttonHeight)/2));var e=setInterval(function(){0",void 0,"UVPMainButtonsNormalState","UVPMainButtonsSelectedState")):(FWDUVPSimpleButton.setPrototype(),b.embedButton_do=new FWDUVPSimpleButton(b.embedN_img,p.embedPathS_str,void 0,!0,b.useHEX,b.nBC,b.sBC)),b.embedButton_do.addListener(FWDUVPSimpleButton.SHOW_TOOLTIP,b.embedButtonShowToolTipHandler),b.embedButton_do.addListener(FWDUVPSimpleButton.MOUSE_UP,b.embedButtonOnMouseUpHandler),b.embedButton_do.setY(parseInt((b.sH-b.embedButton_do.h)/2));var e=setInterval(function(){0i&&(i=s.w),s.setY(o),o+=s.h):-3e3!=s.x&&s.setX(-3e3);for(e=0;e","","UVPMainButtonsNormalState","UVPMainButtonsSelectedState")):(FWDUVPComplexButton.setPrototype(),b.subtitleButton_do=new FWDUVPComplexButton(p.showSubtitleNPath_img,p.showSubtitleSPath_str,p.hideSubtitleNPath_img,p.hideSubtitleSPath_str,!0,b.useHEX,b.nBC,b.sBC));var e=setInterval(function(){0i&&(i=s.w),s.setY(o),o+=s.h):-3e3!=s.x&&s.setX(-3e3);for(e=0;e",p.hdIcn,"UVPMainButtonsNormalState","UVPMainButtonsSelectedState")):(FWDUVPSimpleButton.setPrototype(),b.ytbQualityButton_do=new FWDUVPSimpleButton(b.ytbQualityN_img,p.ytbQualitySPath_str,p.ytbQualityDPath_str,!0,b.useHEX,b.nBC,b.sBC)),b.ytbQualityButton_do.setX(-300),b.ytbQualityButton_do.setY(parseInt((b.sH-b.ytbQualityButton_do.h)/2));var e=setInterval(function(){0",void 0,"UVPMainButtonsNormalState","UVPMainButtonsSelectedState")):(FWDUVPSimpleButton.setPrototype(),b.infoButton_do=new FWDUVPSimpleButton(b.infoN_img,p.infoSPath_str,void 0,!0,b.useHEX,b.nBC,b.sBC));var e=setInterval(function(){0",void 0,"UVPMainButtonsNormalState dw","UVPMainButtonsSelectedState dw")):(FWDUVPSimpleButton.setPrototype(),b.downloadButton_do=new FWDUVPSimpleButton(b.downloadN_img,p.downloadSPath_str,void 0,!0,b.useHEX,b.nBC,b.sBC)),b.downloadButton_do.addListener(FWDUVPSimpleButton.SHOW_TOOLTIP,b.downloadButtonShowToolTipHandler),b.downloadButton_do.addListener(FWDUVPSimpleButton.MOUSE_UP,b.downloadButtonOnMouseUpHandler),b.downloadButton_do.setX(-300),b.downloadButton_do.setY(parseInt((b.sH-b.downloadButton_do.h)/2));var e=setInterval(function(){0",void 0,"UVPMainButtonsNormalState","UVPMainButtonsSelectedState")):(FWDUVPSimpleButton.setPrototype(),b.atbButton_do=new FWDUVPSimpleButton(p.atbNPath_img,p.atbSPath_str,void 0,!0,b.useHEX,b.nBC,b.sBC)),b.atbButton_do.setX(-5e3),b.atbButton_do.setY(parseInt((b.sH-b.atbButton_do.h)/2));var e=setInterval(function(){0",void 0,"UVPMainButtonsNormalState","UVPMainButtonsSelectedState")):(FWDUVPSimpleButton.setPrototype(),b.shareButton_do=new FWDUVPSimpleButton(p.shareN_img,p.shareSPath_str,void 0,!0,b.useHEX,b.nBC,b.sBC)),b.buttons_ar.push(b.shareButton_do),b.shareButton_do.setY(parseInt((b.sH-b.shareButton_do.h)/2));var e=setInterval(function(){0","","UVPMainButtonsNormalState","UVPMainButtonsSelectedState")):(FWDUVPComplexButton.setPrototype(),b.ccBtn_do=new FWDUVPComplexButton(p.castN_img,p.castSPath_str,p.uncastN_img,p.uncastSPath_str,!0,b.useHEX,b.nBC,b.sBC));var e=setInterval(function(){0","","UVPMainButtonsNormalState","UVPMainButtonsSelectedState")):(FWDUVPComplexButton.setPrototype(),b.fullScreenButton_do=new FWDUVPComplexButton(b.fullScreenN_img,p.fullScreenSPath_str,b.normalScreenN_img,p.normalScreenSPath_str,!0,b.useHEX,b.nBC,b.sBC)),b.buttons_ar.push(b.fullScreenButton_do),b.fullScreenButton_do.setY(parseInt((b.sH-b.fullScreenButton_do.buttonHeight)/2));var e=setInterval(function(){0",void 0,"UVPMainButtonsNormalState","UVPMainButtonsSelectedState")):(FWDUVPSimpleButton.setPrototype(),b.rewindButton_do=new FWDUVPSimpleButton(p.rewindN_img,p.rewindSPath_str,void 0,!0,b.useHEX,b.nBC,b.sBC)),b.buttons_ar.push(b.rewindButton_do),b.rewindButton_do.setY(parseInt((b.sH-b.rewindButton_do.h)/2));var e=setInterval(function(){0","","UVPMainButtonsNormalState volume","UVPMainButtonsSelectedState volume")):(FWDUVPVolumeButton.setPrototype(),b.volBtn=new FWDUVPVolumeButton(b.volumeN_img,p.volumeSPath_str,p.volumeDPath_str,b.useHEX,b.nBC,b.sBC)),b.volBtn.addListener(FWDUVPVolumeButton.SHOW_TOOLTIP,b.volumeButtonShowTooltipHandler),b.volBtn.addListener(FWDUVPVolumeButton.MOUSE_OVER,b.volumeOnMouseOverHandler),b.volBtn.addListener(FWDUVPVolumeButton.MOUSE_UP,b.volumeOnMouseUpHandler),b.volBtn.setY(parseInt((b.sH-b.volBtn.h)/2));var e=setInterval(function(){0b.volumeScrubber_do.h-b.scrubbersOffsetWidth&&(t=b.volumeScrubber_do.h-b.scrubbersOffsetWidth);var s=1-t/b.volumeScrubber_do.h;b.lastVolume=s,b.updateVolume(s),b.isMbl?b.hasPointerEvent_bl?(window.addEventListener("MSPointerMove",b.volumeScrubberMoveHandler),window.addEventListener("pointerup",b.volumeScrubberEndHandler)):(window.addEventListener("touchmove",b.volumeScrubberMoveHandler),window.addEventListener("touchend",b.volumeScrubberEndHandler)):window.addEventListener?(window.addEventListener("mousemove",b.volumeScrubberMoveHandler),window.addEventListener("mouseup",b.volumeScrubberEndHandler)):document.attachEvent&&(document.attachEvent("onmousemove",b.volumeScrubberMoveHandler),document.attachEvent("onmouseup",b.volumeScrubberEndHandler))}},this.volumeScrubberMoveHandler=function(e){if(!b.isVolumeScrubberDisabled_bl){e.preventDefault&&e.preventDefault();var t=FWDUVPUtils.getViewportMouseCoordinates(e).screenY-b.volumeScrubber_do.getGlobalY();tb.volumeScrubber_do.h&&(t=b.volumeScrubber_do.h);var s=1-t/b.volumeScrubber_do.h;b.lastVolume=s,b.updateVolume(s)}},this.volumeScrubberEndHandler=function(){m.hideDisable(),b.volumeScrubberIsDragging_bl=!1,b.isMbl?b.hasPointerEvent_bl?(window.removeEventListener("MSPointerMove",b.volumeScrubberMoveHandler),window.removeEventListener("pointerup",b.volumeScrubberEndHandler)):(window.removeEventListener("touchmove",b.volumeScrubberMoveHandler),window.removeEventListener("touchend",b.volumeScrubberEndHandler)):window.removeEventListener?(window.removeEventListener("mousemove",b.volumeScrubberMoveHandler),window.removeEventListener("mouseup",b.volumeScrubberEndHandler)):document.detachEvent&&(document.detachEvent("onmousemove",b.volumeScrubberMoveHandler),document.detachEvent("onmouseup",b.volumeScrubberEndHandler))},this.disableVolumeScrubber=function(){b.isVolumeScrubberDisabled_bl=!0,b.volumeScrubber_do.setButtonMode(!1),b.volumeScrubberEndHandler()},this.enableVolumeScrubber=function(){b.isVolumeScrubberDisabled_bl=!1,b.volumeScrubber_do.setButtonMode(!0)},this.updateVolumeScrubber=function(e){var t=b.volumeScrubberHeight-b.volumeScrubberOfsetHeight,s=Math.round(e*t);b.volumeScrubberDrag_do.setHeight(Math.max(0,s-b.volumeScrubberDragBottom_do.h)),b.volumeScrubberDrag_do.setY(t-s),s<1&&b.isVolumeScrubberLineVisible_bl?(b.isVolumeScrubberLineVisible_bl=!1,FWDAnimation.to(b.volumeScrubberBarLine_do,.5,{alpha:0}),FWDAnimation.to(b.volumeScrubberDragBottom_do,.5,{alpha:0})):1data-source is required in the plalists html element at position "+(t+1)})},50);if(!FWDUVPUtils.hasAttribute(child,"data-thumbnail-path"))return void setTimeout(function(){null!=self&&self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Attribute data-thumbnail-path is required in the playlists html element at position "+(t+1)})},50);s.source=FWDUVPUtils.getAttributeValue(child,"data-source"),o=-1==s.source.indexOf("=")&&-1==s.source.indexOf(".xml")&&-1==s.source.indexOf("vimeo.com")&&-1==s.source.indexOf("youtube.")?document.getElementById(s.source):s.source,self.catsRef_ar.push(o),s.thumbnailPath=FWDUVPUtils.getAttributeValue(child,"data-thumbnail-path"),s.htmlContent=child.innerHTML,s.htmlText_str=child.innerText,s.vimeoUserId=FWDUVPUtils.getAttributeValue(child,"data-user-id"),s.clientId=FWDUVPUtils.getAttributeValue(child,"data-client-id"),s.vimeoSecret=FWDUVPUtils.getAttributeValue(child,"data-vimeo-secret"),s.vimeoToken=FWDUVPUtils.getAttributeValue(child,"data-vimeo-token"),FWDUVPUtils.hasAttribute(child,"data-playlist-name")?s.playlistName=FWDUVPUtils.getAttributeValue(child,"data-playlist-name"):s.playlistName="not defined!",s.pass=FWDUVPUtils.getAttributeValue(child,"data-password"),self.cats_ar[t]=s}for(t=0;tself.totalCats-1&&(self.startAtPlaylist=self.totalCats-1),self.playlistBottomHeight=self.props_obj.playlistBottomHeight||0,self.playlistBottomHeight=Math.min(800,self.playlistBottomHeight),self.subtitlesOffLabel_str=self.props_obj.subtitlesOffLabel||"Subtitle off",self.videoSourcePath_str=self.props_obj.videoSourcePath||void 0,self.timeColor_str=self.props_obj.timeColor||"#FF0000",self.youtubeQualityButtonNormalColor_str=self.props_obj.youtubeQualityButtonNormalColor||"#FF0000",self.youtubeQualityButtonSelectedColor_str=self.props_obj.youtubeQualityButtonSelectedColor||"#FF0000",self.posterBackgroundColor_str=self.props_obj.posterBackgroundColor||"transparent",self.showPlaylistButtonAndPlaylist_bl=self.props_obj.showPlaylistButtonAndPlaylist,self.showPlaylistButtonAndPlaylist_bl="no"!=self.showPlaylistButtonAndPlaylist_bl,self.useResumeOnPlay_bl=self.props_obj.useResumeOnPlay,self.useResumeOnPlay_bl="yes"==self.useResumeOnPlay_bl,self.useResumeOnPlay_bl=self.props_obj.useResumeOnPlay,self.useResumeOnPlay_bl="yes"==self.useResumeOnPlay_bl,self.showPlaylistOnFullScreen=self.props_obj.showPlaylistOnFullScreen,self.showPlaylistOnFullScreen="yes"==self.showPlaylistOnFullScreen,self.stopAfterLastVideoHasPlayed_bl=self.props_obj.stopAfterLastVideoHasPlayed,self.stopAfterLastVideoHasPlayed_bl="yes"==self.stopAfterLastVideoHasPlayed_bl,self.usePlaylistsSelectBox_bl=self.props_obj.usePlaylistsSelectBox,self.usePlaylistsSelectBox_bl="yes"==self.usePlaylistsSelectBox_bl,self.executeCuepointsOnlyOnce_bl=self.props_obj.executeCuepointsOnlyOnce,self.executeCuepointsOnlyOnce_bl="yes"==self.executeCuepointsOnlyOnce_bl,self.showPlaylistByDefault_bl=self.props_obj.showPlaylistByDefault,self.showPlaylistByDefault_bl="no"!=self.showPlaylistByDefault_bl,self.showThumbnail_bl=self.props_obj.showThumbnail,self.showThumbnail_bl="no"!=self.showThumbnail_bl,self.playAfterVideoStop_bl=self.props_obj.playAfterVideoStop,self.playAfterVideoStop_bl="no"!=self.playAfterVideoStop_bl,self.openerAlignment_str=self.props_obj.openerAlignment,self.openerEqulizerOffsetTop=self.props_obj.openerEqulizerOffsetTop||0,self.openerEqulizerOffsetLeft=self.props_obj.openerEqulizerOffsetLeft||0,self.showOpener_bl=self.props_obj.showOpener,self.showOpener_bl="yes"==self.showOpener_bl,self.stickyOnScrollShowOpener_bl=self.props_obj.stickyOnScrollShowOpener,self.stickyOnScrollShowOpener_bl="yes"==self.stickyOnScrollShowOpener_bl,self.showOpenerPlayPauseButton_bl=self.props_obj.showOpenerPlayPauseButton,self.showOpenerPlayPauseButton_bl="yes"==self.showOpenerPlayPauseButton_bl,self.animate_bl=self.props_obj.animatePlayer,self.animate_bl="yes"==self.animate_bl,self.showChromecastButton_bl=self.props_obj.showChromecastButton,self.showChromecastButton_bl="yes"==self.showChromecastButton_bl,FWDUVPUtils.isChrome&&!FWDUVPUtils.isLocal&&-1!=location.href.indexOf("https:")||(self.showChromecastButton_bl=!1),self.showAnnotationsPositionTool_bl=self.props_obj.showAnnotationsPositionTool,self.showAnnotationsPositionTool_bl="yes"==self.showAnnotationsPositionTool_bl,self.showAnnotationsPositionTool_bl&&(self.showPlaylistByDefault_bl=!1),self.showPlaylistName_bl=self.props_obj.showPlaylistName,self.showPlaylistName_bl="no"!=self.showPlaylistName_bl,self.showSearchInpt=self.props_obj.showSearchInput,self.showSearchInpt="no"!=self.showSearchInpt,self.showSubByDflt=self.props_obj.showSubtitleByDefault,self.showSubByDflt="no"!=self.showSubByDflt,self.showSubBtn=self.props_obj.showSubtitleButton,self.showSubBtn="no"!=self.showSubBtn,self.forceDisableDownloadButtonForFolder_bl=self.props_obj.forceDisableDownloadButtonForFolder,self.forceDisableDownloadButtonForFolder_bl="yes"==self.forceDisableDownloadButtonForFolder_bl,self.nBC=self.props_obj.normalHEXButtonsColor||"#FFFFFF",-1!=self.sknPth.indexOf("dark")?self.sBC="#FFFFFF":self.sBC="#000000",self.playlistPosition_str=self.props_obj.playlistPosition||"bottom",test="bottom"==self.playlistPosition_str||"right"==self.playlistPosition_str,test||(self.playlistPosition_str="right"),self.folderVideoLabel_str=self.props_obj.folderVideoLabel||"Video ",self.logoPosition_str=self.props_obj.logoPosition||"topleft",self.logoPosition_str=String(self.logoPosition_str).toLowerCase(),test="topleft"==self.logoPosition_str||"topright"==self.logoPosition_str||"bottomleft"==self.logoPosition_str||"bottomright"==self.logoPosition_str,test||(self.logoPosition_str="topleft"),self.thumbnailSelectedType_str=self.props_obj.thumbnailSelectedType||"opacity","blackAndWhite"!=self.thumbnailSelectedType_str&&"threshold"!=self.thumbnailSelectedType_str&&"opacity"!=self.thumbnailSelectedType_str&&(self.thumbnailSelectedType_str="opacity"),(self.isMbl||FWDUVPUtils.isIEAndLessThen9)&&(self.thumbnailSelectedType_str="opacity"),"file:"==document.location.protocol&&(self.thumbnailSelectedType_str="opacity"),self.adsButtonsPosition_str=self.props_obj.adsButtonsPosition||"left",self.adsButtonsPosition_str=String(self.adsButtonsPosition_str).toLowerCase(),test="left"==self.adsButtonsPosition_str||"right"==self.adsButtonsPosition_str,test||(self.adsButtonsPosition_str="left"),self.skipToVideoButtonText_str=self.props_obj.skipToVideoButtonText||"not defined",self.skipToVideoText_str=self.props_obj.skipToVideoText,self.adsTextNormalColor=self.props_obj.adsTextNormalColor||"#FF0000",self.adsTextSelectedColor=self.props_obj.adsTextSelectedColor||"#FF0000",self.adsBorderNormalColor_str=self.props_obj.adsBorderNormalColor||"#FF0000",self.adsBorderSelectedColor_str=self.props_obj.adsBorderSelectedColor||"#FF0000",self.volume=self.props_obj.volume,null==self.volume&&(self.volume=1),isNaN(self.volume)&&(volume=1),1"+self.categoriesId_str+" is not found!",self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:errorMessage_str}))},50);else setTimeout(function(){null!=self&&(errorMessage_str="The skinPath property is not defined in the constructor function!",self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:errorMessage_str}))},50);else setTimeout(function(){null!=self&&(errorMessage_str="The mainFolderPath property is not defined in the constructor function!",self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:errorMessage_str}))},50);else setTimeout(function(){null!=self&&(errorMessage_str="The playlistsId property is not defined in the constructor function!",self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:errorMessage_str}))},50)},this.onPreloaderLoadHandler=function(){self.countLoadedSCript=0,self.scripts=[],self.useAToB&&self.scripts.push("FWDUVPATB.js"),self.thumbnailsPreview&&self.scripts.push("FWDUVPThumbnailsPreview.js"),self.showChromecastButton_bl&&(self.scripts.push("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"),self.scripts.push("FWDUVPCC.js")),self.totalScripts=self.scripts.length,self.dispatchEvent(FWDUVPData.PRELOADER_LOAD_DONE),self.loadPlugin()},self.loadPlugin=function(){if(self.countLoadedSCript==self.totalScripts)self.loadSkin();else{var e=document.createElement("script"),t=self.scripts[self.countLoadedSCript];document.head.appendChild(e),-1!=t.indexOf("gstatic")?e.src=t:e.src=self.mainFolderPath_str+"java/"+t,e.onload=self.loadPlugin,e.onerror=function(e){console.log(e),"FWDUVPATB.js"==t?self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:'You have enabled the A to B plugin
A to B js file named FWDUVPATB.js is not found. Please make sure that the content folder contains the java folder that contains the FWDUVPATB.js file. '}):"FWDUVPThumbnailsPreview.js"==t?self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:'You have enabled the thumbnal preview plugin
thumbnail preview js file named FWDUVPThumbnailsPreview.js is not found. Please make sure that the content folder contains the java folder that contains the FWDUVPThumbnailsPreview.js file. '}):"FWDUVPCC.js"==t?self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:'You have enabled the chromecast plugin
js file named FWDUVPCC.js is not found. Please make sure that the content folder contains the java folder that contains the FWDUVPCC.js file.'}):-1!=t.indexOf("gstatic.js")&&self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:'Choromecast framework javascript file can\'t be loaded '+t+" "})}}self.countLoadedSCript++},self.countImaLoadedSCript=0,self.startToLoadIMA=function(){self.imaScripts||(self.imaScripts=["//imasdk.googleapis.com/js/sdkloader/ima3.js",self.mainFolderPath_str+"java/FWDUVPIMA.js"],self.totalImaScripts=self.imaScripts.length,self.loadIMA())},self.loadIMA=function(){if(self.countImaLoadedSCript==self.totalImaScripts)self.imaReady=!0,self.dispatchEvent(FWDUVPData.IMA_READY);else{var e=document.createElement("script"),t=self.imaScripts[self.countImaLoadedSCript];document.head.appendChild(e),e.src=t,e.onload=self.loadIMA,e.onerror=function(e){1==self.countImaLoadedSCript?self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"IMA SDK can't be loaded"}):2==self.countImaLoadedSCript&&self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:'IMA file FWDUVPIMA.js is not found. Please make sure that the content folder contains the java folder that contains the FWDUVPIMA.js file. '}),self.dispatchEvent(FWDUVPData.IMA_ERROR)},self.countImaLoadedSCript++}},self.loadSkin=function(){for(var e,t,s=0;s"+e.target.src+"
can't be loaded, check path!",window.console&&console.log(e);var t={text:message};setTimeout(function(){self.dispatchEvent(FWDUVPData.LOAD_ERROR,t)},50)},this.downloadVideo=function(e,t){if(FWDUVPUtils.isLocal)return self.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Downloading video files local is not allowed or possible! To function properly please test online."}),self.isPlaylistDispatchingError_bl=!1},50));if(!e)return self.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Not allowed to download this video!"}),self.isPlaylistDispatchingError_bl=!1},50));if(-1==String(e.indexOf(".mp4")))return self.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Only mp4 video files hosted on your server can be downloaded."}),self.isPlaylistDispatchingError_bl=!1},50));var s=e,o=location.origin,i=location.pathname;if(-1!=i.indexOf(".")&&(i=i.substr(0,i.lastIndexOf("/")+1)),-1==e.indexOf("http:")&&-1==e.indexOf("https:")&&(e=o+i+e),t){40<(t=(t=decodeURIComponent(t)).replace(/[^A-Z0-9\-\_\.]+/gi,"_")).length&&(t=t.substr(0,40)+"..."),/\.(mp4)$/i.test(t)||(t+=".mp4"),e=FWDUVPUtils.getValidSource(e);var l=self.videoDownloaderPath_str;if(self.dlIframe||(self.dlIframe=document.createElement("IFRAME"),self.dlIframe.style.display="none",document.documentElement.appendChild(self.dlIframe)),self.isMbl&&!FWDUVPUtils.isAndroid){if(self.openDownloadLinkOnMobile_bl)return void window.open(s,"_blank");var n=self.getValidEmail();if(!n)return;if(null!=self.emailXHR){try{self.emailXHR.abort()}catch(e){}self.emailXHR.onreadystatechange=null,self.emailXHR.onerror=null,self.emailXHR=null}return self.emailXHR=new XMLHttpRequest,self.emailXHR.onreadystatechange=function(e){4==self.emailXHR.readyState&&(200==self.emailXHR.status?"sent"==self.emailXHR.responseText?alert("Email sent."):alert("Error sending email, this is a server side error, the php file can't send the email!"):alert("Error sending email: "+self.emailXHR.status+": "+self.emailXHR.statusText))},self.emailXHR.onerror=function(e){try{window.console&&console.log(e),window.console&&console.log(e.message)}catch(e){}alert("Error sending email: "+e.message)},self.emailXHR.open("get",self.mailPath_str+"?mail="+n+"&name="+t+"&path="+e,!0),void self.emailXHR.send()}self.dlIframe.src=l+"?path="+e+"&name="+t}},this.getValidEmail=function(){for(var e=prompt("Please enter your email address where the video download link will be sent:"),t=/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;!t.test(e)||""==e;){if(null===e)return;e=prompt("Please enter a valid email address:")}return e},this.loadPlaylist=function(e){if(self.id=e,self.playlist_ar=void 0,self.stopToLoadPlaylist(),!self.isPlaylistDispatchingError_bl){clearTimeout(self.dispatchPlaylistLoadCompleteWidthDelayId_to);var t=self.catsRef_ar[e];if(void 0===t)return self.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"loadPlaylist() - Please specify a DOM playlist id or youtube playlist id!"}),self.isPlaylistDispatchingError_bl=!1},50));if(null===t)return self.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"The playlist with id "+self.cats_ar[e].source+" is not found in the DOM."}),self.isPlaylistDispatchingError_bl=!1},50));if(!isNaN(t))return self.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"loadPlaylist() - The parameter must be of type string!"}),self.isPlaylistDispatchingError_bl=!1},50));if(self.resetYutubeVimeoPlaylistLoader(),self.isYoutbe_bl=!1,self.loadFromFolder_bl=!1,self.isVimeoAlbum_bl=!1,self.playlist_ar=[],self.playlistPass=self.cats_ar[e].pass,t.length)if(-1!=t.indexOf("list=")||-1!=t.indexOf("youtube."))self.isYoutbe_bl=!0,self.playlist_ar=self.plsCache_ar[self.id],self.playlist_ar?self.youtubePlLoadComplete():self.loadYoutubePlaylist(t);else if(-1!=t.indexOf("vimeo.com"))self.isVimeo_bl=!0,self.loadVimeoPlaylist(t,self.cats_ar[e].vimeoUserId,self.cats_ar[e].clientId,self.cats_ar[e].vimeoSecret,self.cats_ar[e].vimeoToken);else{if(-1!=t.indexOf("list="))return self.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Loading youtube playlist is only possible by setting useYoutube=\"yes\"."}),self.isPlaylistDispatchingError_bl=!1},50));-1!=t.indexOf("folder=")?self.loadFolderPlaylist(t):-1==t.indexOf(".xml")&&-1==t.indexOf("http:")&&-1==t.indexOf("https:")&&-1==t.indexOf("www.")||self.loadXMLPlaylist(t)}else self.parseDOMPlaylist(t,self.cats_ar[e].source)}},this.loadXMLPlaylist=function(e){if(!self.isPlaylistDispatchingError_bl){if("file:"==document.location.protocol)return self.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Loading XML files local is not allowed or possible!. To function properly please test online."}),self.isPlaylistDispatchingError_bl=!1},50));self.sourceURL_str=e,self.xhr=new XMLHttpRequest,self.xhr.onreadystatechange=self.ajaxOnLoadHandler,self.xhr.onerror=self.ajaxOnErrorHandler;try{self.xhr.open("get",self.proxyPath_str+"?url="+self.sourceURL_str+"&rand="+parseInt(99999999*Math.random()),!0),self.xhr.setRequestHeader("Content-Type","text/xml"),self.xhr.send()}catch(e){var t=e;e&&e.message&&(t=e.message),self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"XML file can't be loaded! "+self.sourceURL_str+". "+t})}}},this.loadFolderPlaylist=function(e){if(!self.isPlaylistDispatchingError_bl){if("file:"==document.location.protocol)return self.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Creating a video playlist from a folder is not allowed or possible local! To function properly please test online."}),self.isPlaylistDispatchingError_bl=!1},50));self.loadFromFolder_bl=!0,self.sourceURL_str=e.substr(e.indexOf("=")+1),self.xhr=new XMLHttpRequest,self.xhr.onreadystatechange=self.ajaxOnLoadHandler,self.xhr.onerror=self.ajaxOnErrorHandler;try{self.xhr.open("get",self.proxyFolderPath_str+"?dir="+encodeURIComponent(self.sourceURL_str)+"&videoLabel="+self.folderVideoLabel_str+"&rand="+parseInt(9999999*Math.random()),!0),self.xhr.send()}catch(e){e&&e.message&&e.message,self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Folder proxy file path is not found: "+self.proxyFolderPath_str+""})}}},this.loadVimeoPlaylist=function(e,t,s,o,i){if("file:"==document.location.protocol)return self.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Loading Vimeo albums local is not allowed or possible! To function properly please test online."}),self.isPlaylistDispatchingError_bl=!1},50));self.isVimeoAlbum_bl=!0,e&&(self.vimeoAlbumURL=e),t&&(self.userId=t),s&&(self.clientId=s),o&&(self.vimeoSecret=o),i&&(self.vimeoToken=i);var l=self.vimeoAlbumURL.match(/\/[\d]+/gi);l=l[0].substr(1);var n="";self.clientId&&(n="&client_id="+self.clientId+"&vimeo_secret="+self.vimeoSecret+"&vimeo_token="+self.vimeoToken),self.nextPageToken_str?self.sourceURL_str=self.mainFolderPath_str+"vimeo/vimeo_data.php?rand="+Math.round(99999999*Math.random())+"&type=vimeo_user_album&user="+self.userId+"&album_id="+l+"&page="+self.nextPageToken_str+"&per_page=50"+n:self.sourceURL_str=self.mainFolderPath_str+"vimeo/vimeo_data.php?rand="+Math.round(99999999*Math.random())+"&type=vimeo_user_album&user="+self.userId+"&album_id="+l+"&page=1&per_page=50"+n,self.xhr=new XMLHttpRequest,self.xhr.onreadystatechange=self.ajaxOnLoadHandler,self.xhr.onerror=self.ajaxOnErrorHandler;try{self.xhr.open("get",self.sourceURL_str,!0),self.xhr.send()}catch(e){e&&e.message&&e.message,self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Error loading vimeo album! "+self.vimeoAlbumURL+""})}},this.parseVimeoPlaylist=function(e){if(self.stopToLoadPlaylist(),e.body.error)self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:e.body.error+" "+e.body.developer_message});else{var t,s;e=e.body,self.vimeoObject_ar||(self.vimeoObject_ar=[]);for(var o=0;o"+s.name+"

";var n=s.description;n=n||"",n=(n=165"+s.name+"

"+s.description+"

",i.downloadable=!1;try{i.thumbSource=s.pictures.sizes[2].link}catch(e){}i.posterSource="none",i.downloadable=!1,self.playlist_ar.push(i)}self.randomizePlaylist_bl&&(self.playlist_ar=FWDUVPUtils.randomizeArray(self.playlist_ar)),self.maxPlaylistItems"+self.youtubeUrl_str+"")},6e3)}},this.JSONPRequestTimeoutError=function(e){self.stopToLoadPlaylist(),self.isPlaylistDispatchingError_bl=!0,showLoadPlaylistErrorId_to=setTimeout(function(){self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:e}),self.isPlaylistDispatchingError_bl=!1},50)},this.resetYutubeVimeoPlaylistLoader=function(){self.isYoutbe_bl=!1,self.youtubeObject_ar=null,self.vimeoObject_ar=null,self.nextPageToken_str=null,self.youtubeUrl_str=null},this.ajaxOnErrorHandler=function(e){try{window.console&&console.log(e),window.console&&console.log(e.message)}catch(e){}self.isVimeoAlbum_bl?self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Error loading vimeo album! "+self.vimeoAlbumURL+""}):self.loadFromFolder_bl?self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Error loading file:"+self.proxyFolderPath_str+". Make sure the path is correct"}):self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Error loading file:"+self.proxyPath_str+". Make sure the path is correct"})},this.ajaxOnLoadHandler=function(e){var response,isXML=!1;if(4==self.xhr.readyState)if(404==self.xhr.status)self.isVimeoAlbum_bl?self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Error loading vimeo album! "+self.vimeoAlbumURL+""}):self.loadFromFolder_bl?self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Folder proxy file path is not found: "+self.proxyFolderPath_str+""}):self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Proxy file path is not found: "+self.proxyPath_str+""});else if(408==self.xhr.status)self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Server has timeout!"});else if(200==self.xhr.status){if(-1!=self.xhr.responseText.indexOf("Warning:"))return void self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Error loading folder: "+self.sourceURL_str+". Make sure that the folder path is correct!"});response=window.JSON?JSON.parse(self.xhr.responseText):eval("("+self.xhr.responseText+")"),response.body?self.parseVimeoPlaylist(response):response.folder?self.parseFolderJSON(response):response.li?self.parseXML(response):response.error&&self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Error loading file: "+self.sourceURL_str+". Make sure the file path (xml or podcast) is correct and well formatted!"})}},this.parseYoutubePlaylist=function(e){if(!self.isPlaylistDispatchingError_bl&&self.isYoutbe_bl){var t,s,o;if(e.error)return self.isChannel&&(t="channel"),self.JSONPRequestTimeoutError("Error loading youtube "+t+"! "+self.youtubeUrl_str+""),void(console&&console.log(e));self.playlist_ar=[],self.youtubeObject_ar||(self.youtubeObject_ar=[]);for(var i=0;i"+o.snippet.title+"

";var n=o.snippet.description;n=(n=190 "+n+"

",l.titleText=o.snippet.title,l.titleText=o.snippet.title,l.desc=void 0,l.desc="

"+o.snippet.title+"

"+o.snippet.description+"

",l.downloadable=!1;try{l.thumbSource=o.snippet.thumbnails.default.url}catch(e){}l.posterSource="none",-1==o.snippet.title.indexOf("eleted video")&&-1==o.snippet.title.indexOf("his video is unavailable")&&self.playlist_ar.push(l)}}self.randomizePlaylist_bl&&(self.playlist_ar=FWDUVPUtils.randomizeArray(self.playlist_ar)),self.maxPlaylistItemsdata-thumb-source is required in the playlist at position "+(i+1)})},50));if(!FWDUVPUtils.hasAttribute(child,"data-video-source"))return self.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Attribute data-video-source is required in the playlist at position "+(i+1)})},50));if(obj.thumbSource=encodeURI(FWDUVPUtils.getAttributeValue(child,"data-thumb-source")),obj.videoSource=FWDUVPUtils.getAttributeValue(child,"data-video-source"),obj.dataPlaybackRate=FWDUVPUtils.getAttributeValue(child,"data-playback-rate"),obj.startAtVideo=FWDUVPUtils.getAttributeValue(child,"data-start-at-video")||0,obj.isLive=FWDUVPUtils.getAttributeValue(child,"data-is-live"),obj.atb="yes"==FWDUVPUtils.getAttributeValue(child,"data-use-a-to-b"),obj.thumbnailsPreview=FWDUVPUtils.getAttributeValue(child,"data-thumbnails-preview"),self.useAToB||(obj.atb=!1),"yes"==obj.isLive?obj.isLive=!0:obj.isLive=!1,obj.isPrivate=FWDUVPUtils.getAttributeValue(child,"data-is-private"),"yes"==obj.isPrivate?obj.isPrivate=!0:obj.isPrivate=!1,obj.redirectURL=FWDUVPUtils.getAttributeValue(child,"data-redirect-url"),obj.redirectTarget=FWDUVPUtils.getAttributeValue(child,"data-redirect-target"),obj.privateVideoPassword_str=FWDUVPUtils.getAttributeValue(child,"data-private-video-password"),obj.startAtTime=FWDUVPUtils.getAttributeValue(child,"data-start-at-time"),"00:00:00"!=obj.startAtTime&&FWDUVPUtils.checkTime(obj.startAtTime)||(obj.startAtTime=void 0),obj.stopAtTime=FWDUVPUtils.getAttributeValue(child,"data-stop-at-time"),"00:00:00"!=obj.stopAtTime&&FWDUVPUtils.checkTime(obj.stopAtTime)||(obj.stopAtTime=void 0),-1!=obj.videoSource.indexOf("{source:"))try{obj.videoLabels_ar=[],obj.videoSource=eval(obj.videoSource);for(var m=0;mdata-video-source attribute contains an array of videos at position "+(i+1)+""})},50))}else src=obj.videoSource,-1!=src.indexOf("encrypt:")&&(src=atob(src.substr(8))),obj.videoSource=[{source:FWDUVPUtils.getValidSource(src)}];if(FWDUVPUtils.hasAttribute(child,"data-subtitle-soruce")){if(obj.subtitleSource=FWDUVPUtils.getAttributeValue(child,"data-subtitle-soruce"),-1!=obj.subtitleSource.indexOf("{source:")){if(obj.startAtSubtitle=FWDUVPUtils.getAttributeValue(child,"data-start-at-subtitle")||0,-1!=obj.subtitleSource.indexOf("{source:")){try{obj.subtitleSource=eval(obj.subtitleSource)}catch(e){return self.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"Please make sure that the data-subtitle-source attribute contains an array of subtitles at position "+(i+1)+""})},50))}obj.subtitleSource.splice(0,0,{source:"none",label:self.subtitlesOffLabel_str}),obj.subtitleSource.reverse()}}else obj.subtitleSource=[{source:obj.subtitleSource}];if(obj.subtitleSource)for(var x=0;x"+id+""}),self.isPlaylistDispatchingError_bl=!1},50)}},this.parseFolderJSON=function(e){var t;self.playlist_ar=[];for(var s=e.folder,o=0;o...

",t.titleText=s[o]["@attributes"]["data-title"],t.title="

"+s[o]["@attributes"]["data-title"]+"

",t.desc=void 0,self.playlist_ar[o]=t;self.randomizePlaylist_bl&&(self.playlist_ar=FWDUVPUtils.randomizeArray(self.playlist_ar)),self.maxPlaylistItemsdata-video-source attribute contains an array of videos at position "+(i+1)+""})},50))}else{var src=obj.videoSource;-1!=src.indexOf("encrypt:")&&(src=atob(src.substr(8))),obj.videoSource=[{source:FWDUVPUtils.getValidSource(src)}]}if(obj.subtitleSource=obj_ar[i]["@attributes"]["data-subtitle-soruce"],obj.startAtSubtitle=obj_ar[i]["@attributes"]["data-start-at-subtitle"]||0,obj.subtitleSource){if(-1!=obj.subtitleSource.indexOf("{source:")){if(-1!=obj.subtitleSource.indexOf("{source:")){try{obj.subtitleSource=eval(obj.subtitleSource),-1!=obj.subtitleSource.indexOf("encrypt:")&&(obj.subtitleSource=atob(src.substr(8)))}catch(e){return self.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){self.dispatchEvent(FWDRVPData.LOAD_ERROR,{text:"Please make sure that the data-subtitle-source attribute contains an array of subtitles at position "+(i+1)+""})},50))}obj.subtitleSource.splice(0,0,{source:"none",label:self.subtitlesOffLabel_str}),obj.subtitleSource.reverse()}}else obj.subtitleSource=[{source:obj.subtitleSource}];if(obj.subtitleSource)for(var x=0;xFWDUVPVast.js is not found. Please make sure that the content folder contains the java folder that contains the FWDUVPVast.js file. '})},void(self.vastLoaded_bl=!0)}self.vast.setSource(e)},this.closeVast=function(){self.vast&&self.vast.closeVast()},this.fixVmapTimes=function(e,t,s,o){self.vast&&self.vast.fixVmapTimes(e,t,s,o)},this.resetVastId=function(){self.vast&&(self.vast.id=-1)},self.showPropertyError=function(e){self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"The property called "+e+" is not defined."})},this.stopToLoadPlaylist=function(){self.closeJsonPLoader();try{self.scs_el.src=null,document.documentElement.removeChild(self.scs_el),self.scs_el=null}catch(e){}if(null!=self.xhr){try{self.xhr.abort()}catch(e){}self.xhr.onreadystatechange=null,self.xhr.onerror=null,self.xhr=null}},self.showPropertyError=function(e){self.dispatchEvent(FWDUVPData.LOAD_ERROR,{text:"The property called "+e+" is not defined."})},self.init()};FWDUVPData.setPrototype=function(){FWDUVPData.prototype=new FWDUVPEventDispatcher},FWDUVPData.prototype=null,FWDUVPData.VAST_LOADING="vastLoading",FWDUVPData.VAST_LOADED="vastLoaded",FWDUVPData.PLAYLIST_LOAD_COMPLETE="playlistLoadComplete",FWDUVPData.PRELOADER_LOAD_DONE="onPreloaderLoadDone",FWDUVPData.LOAD_DONE="onLoadDone",FWDUVPData.LOAD_ERROR="onLoadError",FWDUVPData.IMAGE_LOADED="onImageLoaded",FWDUVPData.SKIN_LOAD_COMPLETE="onSkinLoadComplete",FWDUVPData.SKIN_PROGRESS="onSkinProgress",FWDUVPData.IMAGES_PROGRESS="onImagesPogress",FWDUVPData.IMA_READY="imaReady",FWDUVPData.IMA_ERROR="ima_error",window.FWDUVPData=FWDUVPData}(window),window.FWDUVPDisplayObject=function(e,t,s,o){var i=this;i.listeners={events_ar:[]},i.type=e,this.children_ar=[],this.style,this.screen,this.transform,this.position=t||"absolute",this.overflow=s||"hidden",this.display=o||"inline-block",this.visible=!0,this.buttonMode,this.x=0,this.y=0,this.w=0,this.h=0,this.rect,this.alpha=1,this.innerHTML="",this.opacityType="",this.isHtml5_bl=!1,this.hasTransform3d_bl=FWDUVPUtils.hasTransform3d,this.hasTransform2d_bl=FWDUVPUtils.hasTransform2d,this.hasBeenSetSelectable_bl=!1,i.init=function(){i.setScreen()},i.getTransform=function(){for(var e,t=["transform","msTransform","WebkitTransform","MozTransform","OTransform"];e=t.shift();)if(void 0!==i.screen.style[e])return e;return!1},i.getOpacityType=function(){return void 0!==i.screen.style.opacity?"opacity":"filter"},i.setScreen=function(e){"img"==i.type&&e?(i.screen=null,i.screen=e):i.screen=document.createElement(i.type),i.setMainProperties()},i.setMainProperties=function(){i.transform=i.getTransform(),i.setPosition(i.position),i.setOverflow(i.overflow),i.opacityType=i.getOpacityType(),"opacity"==i.opacityType&&(i.isHtml5_bl=!0),"filter"==i.opacityType&&(i.screen.style.filter="inherit"),i.screen.style.left="0px",i.screen.style.top="0px",i.screen.style.margin="0px",i.screen.style.padding="0px",i.screen.style.maxWidth="none",i.screen.style.maxHeight="none",i.screen.style.border="none",i.screen.style.lineHeight="1",i.screen.style.backfaceVisibility="hidden",i.screen.style.webkitBackfaceVisibility="hidden",i.screen.style.MozBackfaceVisibility="hidden","img"==e&&(i.setWidth(i.screen.width),i.setHeight(i.screen.height))},i.setBackfaceVisibility=function(){i.screen.style.backfaceVisibility="visible",i.screen.style.webkitBackfaceVisibility="visible",i.screen.style.MozBackfaceVisibility="visible"},i.setSelectable=function(e){e?(FWDUVPUtils.isFirefox||FWDUVPUtils.isIE?(i.screen.style.userSelect="element",i.screen.style.MozUserSelect="element",i.screen.style.msUserSelect="element"):FWDUVPUtils.isSafari?(i.screen.style.userSelect="text",i.screen.style.webkitUserSelect="text"):(i.screen.style.userSelect="auto",i.screen.style.webkitUserSelect="auto"),i.screen.style.khtmlUserSelect="auto",i.screen.style.oUserSelect="auto",FWDUVPUtils.isIEAndLessThen9?(i.screen.ondragstart=null,i.screen.onselectstart=null,i.screen.ontouchstart=null):(i.screen.ondragstart=void 0,i.screen.onselectstart=void 0,i.screen.ontouchstart=void 0),i.screen.style.webkitTouchCallout="default",i.hasBeenSetSelectable_bl=!1):(i.screen.style.userSelect="none",i.screen.style.MozUserSelect="none",i.screen.style.webkitUserSelect="none",i.screen.style.khtmlUserSelect="none",i.screen.style.oUserSelect="none",i.screen.style.msUserSelect="none",i.screen.msUserSelect="none",i.screen.ondragstart=function(e){return!1},i.screen.onselectstart=function(){return!1},i.screen.ontouchstart=function(){return!1},i.screen.style.webkitTouchCallout="none",i.hasBeenSetSelectable_bl=!0)},i.getScreen=function(){return i.screen},i.setVisible=function(e){i.visible=e,1==i.visible?i.screen.style.visibility="visible":i.screen.style.visibility="hidden"},i.getVisible=function(){return i.visible},i.setResizableSizeAfterParent=function(){i.screen.style.width="100%",i.screen.style.height="100%"},i.getStyle=function(){return i.screen.style},i.setOverflow=function(e){i.overflow=e,i.screen.style.overflow=i.overflow},i.setPosition=function(e){i.position=e,i.screen.style.position=i.position},i.setDisplay=function(e){i.display=e,i.screen.style.display=i.display},i.setButtonMode=function(e){i.buttonMode=e,1==i.buttonMode?i.screen.style.cursor="pointer":i.screen.style.cursor="default"},i.setBkColor=function(e){i.screen.style.backgroundColor=e},i.setInnerHTML=function(e){i.innerHTML=e,i.screen.innerHTML=i.innerHTML},i.getInnerHTML=function(){return i.innerHTML},i.getRect=function(){return i.screen.getBoundingClientRect()},i.setAlpha=function(e){i.alpha=e,"opacity"==i.opacityType?i.screen.style.opacity=i.alpha:"filter"==i.opacityType&&(i.screen.style.filter="alpha(opacity="+100*i.alpha+")",i.screen.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+Math.round(100*i.alpha)+")")},i.getAlpha=function(){return i.alpha},i.getRect=function(){return i.screen.getBoundingClientRect()},i.getGlobalX=function(){return i.getRect().left},i.getGlobalY=function(){return i.getRect().top},i.setX=function(e){i.x=e,i.hasTransform3d_bl?i.screen.style[i.transform]="translate3d("+i.x+"px,"+i.y+"px,0)":i.hasTransform2d_bl?i.screen.style[i.transform]="translate("+i.x+"px,"+i.y+"px)":i.screen.style.left=i.x+"px"},i.getX=function(){return i.x},i.setY=function(e){i.y=e,i.hasTransform3d_bl?i.screen.style[i.transform]="translate3d("+i.x+"px,"+i.y+"px,0)":i.hasTransform2d_bl?i.screen.style[i.transform]="translate("+i.x+"px,"+i.y+"px)":i.screen.style.top=i.y+"px"},i.getY=function(){return i.y},i.setWidth=function(e){i.w=e,"img"==i.type&&(i.screen.width=i.w),i.screen.style.width=i.w+"px"},i.getWidth=function(){return"div"==i.type||"input"==i.type?0!=i.screen.offsetWidth?i.screen.offsetWidth:i.w:"img"==i.type?0!=i.screen.offsetWidth?i.screen.offsetWidth:0!=i.screen.width?i.screen.width:i._w:"canvas"==i.type?0!=i.screen.offsetWidth?i.screen.offsetWidth:i.w:void 0},i.setHeight=function(e){i.h=e,"img"==i.type&&(i.screen.height=i.h),i.screen.style.height=i.h+"px"},i.getHeight=function(){return"div"==i.type||"input"==i.type?0!=i.screen.offsetHeight?i.screen.offsetHeight:i.h:"img"==i.type?0!=i.screen.offsetHeight?i.screen.offsetHeight:0!=i.screen.height?i.screen.height:i.h:"canvas"==i.type?0!=i.screen.offsetHeight?i.screen.offsetHeight:i.h:void 0},i.addChild=function(e){i.contains(e)&&i.children_ar.splice(FWDUVPUtils.indexOfArray(i.children_ar,e),1),i.children_ar.push(e),i.screen.appendChild(e.screen)},i.removeChild=function(e){if(!i.contains(e))throw Error("##removeChild()## Child dose't exist, it can't be removed!");i.children_ar.splice(FWDUVPUtils.indexOfArray(i.children_ar,e),1),i.screen.removeChild(e.screen)},i.contains=function(e){return-1!=FWDUVPUtils.indexOfArray(i.children_ar,e)},i.addChildAt=function(e,t){if(0==i.getNumChildren())i.children_ar.push(e),i.screen.appendChild(e.screen);else if(1==t)i.screen.insertBefore(e.screen,i.children_ar[0].screen),i.screen.insertBefore(i.children_ar[0].screen,e.screen),i.contains(e)?i.children_ar.splice(FWDUVPUtils.indexOfArray(i.children_ar,e),1,e):i.children_ar.splice(FWDUVPUtils.indexOfArray(i.children_ar,e),0,e);else{if(t<0||t>i.getNumChildren()-1)throw Error("##getChildAt()## Index out of bounds!");i.screen.insertBefore(e.screen,i.children_ar[t].screen),i.contains(e)?i.children_ar.splice(FWDUVPUtils.indexOfArray(i.children_ar,e),1,e):i.children_ar.splice(FWDUVPUtils.indexOfArray(i.children_ar,e),0,e)}},i.getChildAt=function(e){if(e<0||e>i.getNumChildren()-1)throw Error("##getChildAt()## Index out of bounds!");if(0==i.getNumChildren())throw Error("##getChildAt## Child dose not exist!");return i.children_ar[e]},i.getChildIndex=function(e){return i.contains(e)?FWDUVPUtils.indexOfArray(i.children_ar,e):0},i.removeChildAtZero=function(){i.screen.removeChild(i.children_ar[0].screen),i.children_ar.shift()},i.getNumChildren=function(){return i.children_ar.length},i.addListener=function(e,t){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");if("function"!=typeof t)throw Error("listener must be of type Function.");var s={};s.type=e,s.listener=t,(s.target=this).listeners.events_ar.push(s)},i.dispatchEvent=function(e,t){if(null!=this.listeners){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");for(var s=0,o=this.listeners.events_ar.length;s"+_d.title+"