// source --> //dalediaz.com/wp-content/plugins/fwdevp/js/FWDEVP.js?ver=7.0 
if(function(e){function t(){for(var e,t,o=["transform","msTransform","WebkitTransform","MozTransform","OTransform","KhtmlTransform"];e=o.shift();)if(void 0!==s.dumy.style[e]&&(s.dumy.style.position="absolute",t=s.dumy.getBoundingClientRect().left,s.dumy.style[e]="translate3d(500px, 0px, 0px)",(t=Math.abs(s.dumy.getBoundingClientRect().left-t))>100&&t<900)){try{document.documentElement.removeChild(s.dumy)}catch(e){}return!0}try{document.documentElement.removeChild(s.dumy)}catch(e){}return!1}function o(){for(var e,t=["transform","msTransform","WebkitTransform","MozTransform","OTransform","KhtmlTransform"];e=t.shift();)if(void 0!==s.dumy.style[e])return!0;try{document.documentElement.removeChild(s.dumy)}catch(e){}return!1}var s=function(){};s.dumy=document.createElement("div"),s.trim=function(e){return e.replace(/\s/gi,"")},s.trimAndFormatUrl=function(e){return e=e.toLocaleLowerCase(),e=e.replace(/ /g,"-")},s.splitAndTrim=function(e,t){for(var o=e.split(","),i=o.length,n=0;n<i;n++)t&&(o[n]=s.trim(o[n]));return o},s.checkTime=function(e){return!!/^(?:2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]$/.test(e)},s.formatTime=function(e){var t=Math.floor(e/3600),o=e%3600,i=Math.floor(o/60),s=o%60,n=Math.ceil(s);return i=i>=10?i:"0"+i,n=n>=10?n:"0"+n,isNaN(n)?"00:00":self.hasHours_bl?t+":"+i+":"+n:i+":"+n},s.isLocal=-1!=location.protocol.indexOf("file:"),s.MD5=function(e){function t(e,t){return e<<t|e>>>32-t}function o(e,t){var o,i,s,n,r;return s=2147483648&e,n=2147483648&t,o=1073741824&e,i=1073741824&t,r=(1073741823&e)+(1073741823&t),o&i?2147483648^r^s^n:o|i?1073741824&r?3221225472^r^s^n:1073741824^r^s^n:r^s^n}function i(e,t,o){return e&t|~e&o}function s(e,t,o){return e&o|t&~o}function n(e,t,o){return e^t^o}function r(e,t,o){return t^(e|~o)}function l(e,s,n,r,l,a,d){return e=o(e,o(o(i(s,n,r),l),d)),o(t(e,a),s)}function a(e,i,n,r,l,a,d){return e=o(e,o(o(s(i,n,r),l),d)),o(t(e,a),i)}function d(e,i,s,r,l,a,d){return e=o(e,o(o(n(i,s,r),l),d)),o(t(e,a),i)}function u(e,i,s,n,l,a,d){return e=o(e,o(o(r(i,s,n),l),d)),o(t(e,a),i)}function h(e){var t,o="",i="";for(t=0;t<=3;t++)o+=(i="0"+(e>>>8*t&255).toString(16)).substr(i.length-2,2);return o}var _,c,f,p,b,m,g,y,v,S=Array();for(S=function(e){for(var t,o=e.length,i=o+8,s=16*((i-i%64)/64+1),n=Array(s-1),r=0,l=0;l<o;)r=l%4*8,n[t=(l-l%4)/4]=n[t]|e.charCodeAt(l)<<r,l++;return t=(l-l%4)/4,r=l%4*8,n[t]=n[t]|128<<r,n[s-2]=o<<3,n[s-1]=o>>>29,n}(e=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",o=0;o<e.length;o++){var i=e.charCodeAt(o);i<128?t+=String.fromCharCode(i):i>127&&i<2048?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(63&i|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(63&i|128))}return t}(e)),m=1732584193,g=4023233417,y=2562383102,v=271733878,_=0;_<S.length;_+=16)c=m,f=g,p=y,b=v,g=u(g=u(g=u(g=u(g=d(g=d(g=d(g=d(g=a(g=a(g=a(g=a(g=l(g=l(g=l(g=l(g,y=l(y,v=l(v,m=l(m,g,y,v,S[_+0],7,3614090360),g,y,S[_+1],12,3905402710),m,g,S[_+2],17,606105819),v,m,S[_+3],22,3250441966),y=l(y,v=l(v,m=l(m,g,y,v,S[_+4],7,4118548399),g,y,S[_+5],12,1200080426),m,g,S[_+6],17,2821735955),v,m,S[_+7],22,4249261313),y=l(y,v=l(v,m=l(m,g,y,v,S[_+8],7,1770035416),g,y,S[_+9],12,2336552879),m,g,S[_+10],17,4294925233),v,m,S[_+11],22,2304563134),y=l(y,v=l(v,m=l(m,g,y,v,S[_+12],7,1804603682),g,y,S[_+13],12,4254626195),m,g,S[_+14],17,2792965006),v,m,S[_+15],22,1236535329),y=a(y,v=a(v,m=a(m,g,y,v,S[_+1],5,4129170786),g,y,S[_+6],9,3225465664),m,g,S[_+11],14,643717713),v,m,S[_+0],20,3921069994),y=a(y,v=a(v,m=a(m,g,y,v,S[_+5],5,3593408605),g,y,S[_+10],9,38016083),m,g,S[_+15],14,3634488961),v,m,S[_+4],20,3889429448),y=a(y,v=a(v,m=a(m,g,y,v,S[_+9],5,568446438),g,y,S[_+14],9,3275163606),m,g,S[_+3],14,4107603335),v,m,S[_+8],20,1163531501),y=a(y,v=a(v,m=a(m,g,y,v,S[_+13],5,2850285829),g,y,S[_+2],9,4243563512),m,g,S[_+7],14,1735328473),v,m,S[_+12],20,2368359562),y=d(y,v=d(v,m=d(m,g,y,v,S[_+5],4,4294588738),g,y,S[_+8],11,2272392833),m,g,S[_+11],16,1839030562),v,m,S[_+14],23,4259657740),y=d(y,v=d(v,m=d(m,g,y,v,S[_+1],4,2763975236),g,y,S[_+4],11,1272893353),m,g,S[_+7],16,4139469664),v,m,S[_+10],23,3200236656),y=d(y,v=d(v,m=d(m,g,y,v,S[_+13],4,681279174),g,y,S[_+0],11,3936430074),m,g,S[_+3],16,3572445317),v,m,S[_+6],23,76029189),y=d(y,v=d(v,m=d(m,g,y,v,S[_+9],4,3654602809),g,y,S[_+12],11,3873151461),m,g,S[_+15],16,530742520),v,m,S[_+2],23,3299628645),y=u(y,v=u(v,m=u(m,g,y,v,S[_+0],6,4096336452),g,y,S[_+7],10,1126891415),m,g,S[_+14],15,2878612391),v,m,S[_+5],21,4237533241),y=u(y,v=u(v,m=u(m,g,y,v,S[_+12],6,1700485571),g,y,S[_+3],10,2399980690),m,g,S[_+10],15,4293915773),v,m,S[_+1],21,2240044497),y=u(y,v=u(v,m=u(m,g,y,v,S[_+8],6,1873313359),g,y,S[_+15],10,4264355552),m,g,S[_+6],15,2734768916),v,m,S[_+13],21,1309151649),y=u(y,v=u(v,m=u(m,g,y,v,S[_+4],6,4149444226),g,y,S[_+11],10,3174756917),m,g,S[_+2],15,718787259),v,m,S[_+9],21,3951481745),m=o(m,c),g=o(g,f),y=o(y,p),v=o(v,b);return(h(m)+h(g)+h(y)+h(v)).toLowerCase()},s.getSecondsFromString=function(e){var t=0,o=0,i=0;if(e)return e=e.split(":"),"0"==(t=e[0])[0]&&"0"!=t[1]&&(t=parseInt(t[1])),"00"==t&&(t=0),"0"==(o=e[1])[0]&&"0"!=o[1]&&(o=parseInt(o[1])),"00"==o&&(o=0),secs=parseInt(e[2].replace(/,.*/gi,"")),"0"==secs[0]&&"0"!=secs[1]&&(secs=parseInt(secs[1])),"00"==secs&&(secs=0),0!=t&&(i+=60*t*60),0!=o&&(i+=60*o),i+=secs},s.indexOfArray=function(e,t){for(var o=e.length,i=0;i<o;i++)if(e[i]===t)return i;return-1},s.randomizeArray=function(e){for(var t=[],o=e.concat(),i=o.length,s=0;s<i;s++){var n=Math.floor(Math.random()*o.length);t.push(o[n]),o.splice(n,1)}return t},s.parent=function(e,t){for(void 0===t&&(t=1);t--&&e;)e=e.parentNode;return e&&1===e.nodeType?e:null},s.sibling=function(e,t){for(;e&&0!==t;)if(t>0){if(e.nextElementSibling)e=e.nextElementSibling;else for(e=e.nextSibling;e&&1!==e.nodeType;e=e.nextSibling);t--}else{if(e.previousElementSibling)e=e.previousElementSibling;else for(var e=e.previousSibling;e&&1!==e.nodeType;e=e.previousSibling);t++}return e},s.getChildAt=function(e,t){var o=s.getChildren(e);return t<0&&(t+=o.length),t<0?null:o[t]},s.getChildById=function(e){return document.getElementById(e)||void 0},s.getChildren=function(e,t){for(var o=[],i=e.firstChild;null!=i;i=i.nextSibling)t?o.push(i):1===i.nodeType&&o.push(i);return o},s.getChildrenFromAttribute=function(e,t,o){for(var i=[],n=e.firstChild;null!=n;n=n.nextSibling)o&&s.hasAttribute(n,t)?i.push(n):1===n.nodeType&&s.hasAttribute(n,t)&&i.push(n);return 0==i.length?void 0:i},s.getChildFromNodeListFromAttribute=function(e,t,o){for(var i=e.firstChild;null!=i;i=i.nextSibling){if(o&&s.hasAttribute(i,t))return i;if(1===i.nodeType&&s.hasAttribute(i,t))return i}},s.getAttributeValue=function(e,t){if(s.hasAttribute(e,t))return e.getAttribute(t)},s.hasAttribute=function(e,t){return e.hasAttribute?e.hasAttribute(t):!!e.attributes[t]},s.insertNodeAt=function(e,t,o){var i=s.children(e);if(o<0||o>i.length)throw new Error("invalid index!");e.insertBefore(t,i[o])},s.hasCanvas=function(){return Boolean(document.createElement("canvas"))},s.getCanvasWithModifiedColor=function(e,t,o){if(e){var i,s=document.createElement("canvas"),n=s.getContext("2d"),r=null,l=null,a=parseInt(t.replace(/^#/,""),16),d={R:a>>>16&255,G:a>>>8&255,B:255&a};s.style.position="absolute",s.style.left="0px",s.style.top="0px",s.style.margin="0px",s.style.padding="0px",s.style.maxWidth="none",s.style.maxHeight="none",s.style.border="none",s.style.lineHeight="1",s.style.backgroundColor="transparent",s.style.backfaceVisibility="hidden",s.style.webkitBackfaceVisibility="hidden",s.style.MozBackfaceVisibility="hidden",s.style.MozImageRendering="optimizeSpeed",s.style.WebkitImageRendering="optimizeSpeed",s.width=e.width,s.height=e.height,n.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.width,e.height),r=n.getImageData(0,0,e.width,e.height),l=n.getImageData(0,0,e.width,e.height);for(var u=0,h=r.data.length;u<h;u+=4)l.data[u+3]>0&&(l.data[u]=r.data[u]/255*d.R,l.data[u+1]=r.data[u+1]/255*d.G,l.data[u+2]=r.data[u+2]/255*d.B);return n.globalAlpha=.5,n.putImageData(l,0,0),n.drawImage(s,0,0),o&&((i=new Image).src=s.toDataURL()),{canvas:s,image:i}}},s.changeCanvasHEXColor=function(e,t,o,i){if(e){var s=(t=t).getContext("2d"),n=null,r=null,l=parseInt(o.replace(/^#/,""),16),a={R:l>>>16&255,G:l>>>8&255,B:255&l};t.width=e.width,t.height=e.height,s.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.width,e.height),n=s.getImageData(0,0,e.width,e.height),r=s.getImageData(0,0,e.width,e.height);for(var d=0,u=n.data.length;d<u;d+=4)r.data[d+3]>0&&(r.data[d]=n.data[d]/255*a.R,r.data[d+1]=n.data[d+1]/255*a.G,r.data[d+2]=n.data[d+2]/255*a.B);if(s.globalAlpha=.5,s.putImageData(r,0,0),s.drawImage(t,0,0),i){var h=new Image;return h.src=t.toDataURL(),h}}},s.hitTest=function(e,t,o){if(!e)throw Error("Hit test target is null!");var i=e.getBoundingClientRect();return t>=i.left&&t<=i.left+(i.right-i.left)&&o>=i.top&&o<=i.top+(i.bottom-i.top)},s.getScrollOffsets=function(){return null!=e.pageXOffset?{x:e.pageXOffset,y:e.pageYOffset}:"CSS1Compat"==document.compatMode?{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}:void 0},s.getViewportSize=function(){return s.hasPointerEvent&&navigator.msMaxTouchPoints>1?{w:document.documentElement.clientWidth||e.innerWidth,h:document.documentElement.clientHeight||e.innerHeight}:s.isMobile?{w:e.innerWidth,h:e.innerHeight}:{w:document.documentElement.clientWidth||e.innerWidth,h:document.documentElement.clientHeight||e.innerHeight}},s.getViewportMouseCoordinates=function(e){var t=s.getScrollOffsets();return e.touches?{screenX:void 0==e.touches[0]?e.touches.pageX-t.x:e.touches[0].pageX-t.x,screenY:void 0==e.touches[0]?e.touches.pageY-t.y:e.touches[0].pageY-t.y}:{screenX:void 0==e.clientX?e.pageX-t.x:e.clientX,screenY:void 0==e.clientY?e.pageY-t.y:e.clientY}},s.hexToRgb=function(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(e,t,o,i){return t+t+o+o+i+i});var o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"rgb("+(o=o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:null).r+","+o.g+","+o.b+")"},s.hasPointerEvent=Boolean(e.navigator.msPointerEnabled)||Boolean(e.navigator.pointerEnabled),s.isMobile=function(){var e=["android","webos","iphone","ipad","blackberry","kfsowi"];for(i in e)if(-1!=navigator.userAgent.toLowerCase().indexOf(e[i]))return!0;return!1}(),s.isAndroid=-1!=navigator.userAgent.toLowerCase().indexOf("android".toLowerCase()),s.hasWEBGL=function(){try{var t=document.createElement("canvas");return!!e.WebGLRenderingContext&&(t.getContext("webgl")||t.getContext("experimental-webgl"))}catch(e){return!1}}(),s.isLocal="file:"==document.location.protocol,s.isChrome=-1!=navigator.userAgent.toLowerCase().indexOf("chrome"),s.isSafari=-1!=navigator.userAgent.toLowerCase().indexOf("safari")&&-1==navigator.userAgent.toLowerCase().indexOf("chrome"),s.isOpera=-1!=navigator.userAgent.toLowerCase().indexOf("opr"),s.isFirefox=-1!=navigator.userAgent.toLowerCase().indexOf("firefox"),s.isIEWebKit=Boolean(document.documentElement.msRequestFullscreen),s.isIE=Boolean(-1!=navigator.userAgent.toLowerCase().indexOf("msie"))||Boolean(-1!=navigator.userAgent.toLowerCase().indexOf("edge"))||Boolean(document.documentElement.msRequestFullscreen),s.isIEAndLessThen9=Boolean(-1!=navigator.userAgent.toLowerCase().indexOf("msie 7"))||Boolean(-1!=navigator.userAgent.toLowerCase().indexOf("msie 8")),s.isIE7=Boolean(-1!=navigator.userAgent.toLowerCase().indexOf("msie 7")),s.isApple=Boolean(-1!=navigator.appVersion.toLowerCase().indexOf("mac")),s.isIphone=navigator.userAgent.match(/(iPhone|iPod)/g),s.hasFullScreen=s.dumy.requestFullScreen||s.dumy.mozRequestFullScreen||s.dumy.webkitRequestFullScreen||s.dumy.msieRequestFullScreen,s.volumeCanBeSet=function(){var e=document.createElement("audio");if(e)return e.volume=0,0==e.volume}(),s.getVideoFormat=function(){var e=document.createElement("video");if(e.canPlayType){var t;return"probably"==e.canPlayType("video/mp4")||"maybe"==e.canPlayType("video/mp4")?t=".mp4":"probably"==e.canPlayType("video/ogg")||"maybe"==e.canPlayType("video/ogg")?t=".ogg":"probably"!=e.canPlayType("video/webm")&&"maybe"!=e.canPlayType("video/webm")||(t=".webm"),e=null,t}}(),s.onReady=function(t){document.addEventListener?e.addEventListener("DOMContentLoaded",function(){s.checkIfHasTransofrms(),s.hasFullScreen=s.checkIfHasFullscreen(),setTimeout(t,100)}):document.onreadystatechange=function(){s.checkIfHasTransofrms(),s.hasFullScreen=s.checkIfHasFullscreen(),"complete"==document.readyState&&setTimeout(t,100)}},s.checkIfHasTransofrms=function(){document.documentElement.appendChild(s.dumy),s.hasTransform3d=t(),s.hasTransform2d=o(),s.isReadyMethodCalled_bl=!0},s.checkIfHasFullscreen=function(){return Boolean(document.documentElement.requestFullScreen||document.documentElement.mozRequestFullScreen||document.documentElement.webkitRequestFullScreen||document.documentElement.msRequestFullscreen)},s.disableElementSelection=function(e){try{e.style.userSelect="none"}catch(e){}try{e.style.MozUserSelect="none"}catch(e){}try{e.style.webkitUserSelect="none"}catch(e){}try{e.style.khtmlUserSelect="none"}catch(e){}try{e.style.oUserSelect="none"}catch(e){}try{e.style.msUserSelect="none"}catch(e){}try{e.msUserSelect="none"}catch(e){}e.onselectstart=function(){return!1}},s.getUrlArgs=function(e){for(var t={},o=e.substr(e.indexOf("?")+1)||location.search.substring(1),i=(o=o.replace(/(\?*)(\/*)/g,"")).split("&"),s=0;s<i.length;s++){var n=i[s].indexOf("="),r=i[s].substring(0,n),l=i[s].substring(n+1);l=decodeURIComponent(l),t[r]=l}return t},s.getHashUrlArgs=function(e){for(var t={},o=e.substr(e.indexOf("#")+1)||location.search.substring(1),i=(o=o.replace(/(\?*)(\/*)/g,"")).split("&"),s=0;s<i.length;s++){var n=i[s].indexOf("="),r=i[s].substring(0,n),l=i[s].substring(n+1);l=decodeURIComponent(l),t[r]=l}return t},s.validateEmail=function(e){return!!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},s.isReadyMethodCalled_bl=!1,e.FWDEVPUtils=s}(window),function(){for(var e=0,t=["ms","moz","webkit","o"],o=0;o<t.length&&!window.requestAnimationFrame;++o)window.requestAnimationFrame=window[t[o]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[o]+"CancelAnimationFrame"]||window[t[o]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,o){var i=(new Date).getTime(),s=Math.max(0,16-(i-e)),n=window.setTimeout(function(){t(i+s)},s);return e=i+s,n}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),!window.FWDAnimation){var _fwd_gsScope="undefined"!=typeof fwd_module&&fwd_module.exports&&"undefined"!=typeof fwd_global?fwd_global:this||window;(_fwd_gsScope._fwd_gsQueue||(_fwd_gsScope._fwd_gsQueue=[])).push(function(){"use strict";_fwd_gsScope.FWDFWD_gsDefine("FWDAnimation",["core.FWDAnim","core.FWDSimpleTimeline","FWDTweenLite"],function(e,t,o){var i=function(e){var t,o=[],i=e.length;for(t=0;t!==i;o.push(e[t++]));return o},s=function(e,t,o){var i,s,n=e.cycle;for(i in n)s=n[i],e[i]="function"==typeof s?s(o,t[o]):s[o%s.length];delete e.cycle},n=function(e,t,i){o.call(this,e,t,i),this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=n.prototype.render},r=o._internals,l=r.isSelector,a=r.isArray,d=n.prototype=o.to({},.1,{}),u=[];n.version="1.19.0",d.constructor=n,d.kill()._gc=!1,n.killTweensOf=n.killDelayedCallsTo=o.killTweensOf,n.getTweensOf=o.getTweensOf,n.lagSmoothing=o.lagSmoothing,n.ticker=o.ticker,n.render=o.render,d.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),o.prototype.invalidate.call(this)},d.updateTo=function(e,t){var i,s=this.ratio,n=this.vars.immediateRender||e.immediateRender;t&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(i in e)this.vars[i]=e[i];if(this._initted||n)if(t)this._initted=!1,n&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&o._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var r=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(r,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||n)for(var l,a=1/(1-s),d=this._firstPT;d;)l=d.s+d.c,d.c*=a,d.s=l-d.c,d=d._next;return this},d.render=function(e,t,o){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var i,s,n,l,a,d,u,h,_=this._dirty?this.totalDuration():this._totalDuration,c=this._time,f=this._totalTime,p=this._cycle,b=this._duration,m=this._rawPrevTime;if(e>=_-1e-7?(this._totalTime=_,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=b,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(i=!0,s="onComplete",o=o||this._timeline.autoRemoveChildren),0===b&&(this._initted||!this.vars.lazy||o)&&(this._startTime===this._timeline._duration&&(e=0),(m<0||e<=0&&e>=-1e-7||1e-10===m&&"isPause"!==this.data)&&m!==e&&(o=!0,m>1e-10&&(s="onReverseComplete")),this._rawPrevTime=h=!t||e||m===e?e:1e-10)):e<1e-7?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==f||0===b&&m>0)&&(s="onReverseComplete",i=this._reversed),e<0&&(this._active=!1,0===b&&(this._initted||!this.vars.lazy||o)&&(m>=0&&(o=!0),this._rawPrevTime=h=!t||e||m===e?e:1e-10)),this._initted||(o=!0)):(this._totalTime=this._time=e,0!==this._repeat&&(l=b+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&f<=e&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!=(1&this._cycle)&&(this._time=b-this._time),this._time>b?this._time=b:this._time<0&&(this._time=0)),this._easeType?(a=this._time/b,d=this._easeType,u=this._easePower,(1===d||3===d&&a>=.5)&&(a=1-a),3===d&&(a*=2),1===u?a*=a:2===u?a*=a*a:3===u?a*=a*a*a:4===u&&(a*=a*a*a*a),1===d?this.ratio=1-a:2===d?this.ratio=a:this._time/b<.5?this.ratio=a/2:this.ratio=1-a/2):this.ratio=this._ease.getRatio(this._time/b)),c!==this._time||o||p!==this._cycle){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!o&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=c,this._totalTime=f,this._rawPrevTime=m,this._cycle=p,r.lazyTweens.push(this),void(this._lazy=[e,t]);this._time&&!i?this.ratio=this._ease.getRatio(this._time/b):i&&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&&e>=0&&(this._active=!0),0===f&&(2===this._initted&&e>0&&this._init(),this._startAt&&(e>=0?this._startAt.render(e,t,o):s||(s="_dummyGS")),this.vars.onStart&&(0===this._totalTime&&0!==b||t||this._callback("onStart"))),n=this._firstPT;n;){if(n.f)n.t[n.p](n.c*this.ratio+n.s);else{var g=n.c*this.ratio+n.s;"x"==n.p?n.t.setX(g):"y"==n.p?n.t.setY(g):"z"==n.p?n.t.setZ(g):"angleX"==n.p?n.t.setAngleX(g):"angleY"==n.p?n.t.setAngleY(g):"angleZ"==n.p?n.t.setAngleZ(g):"w"==n.p?n.t.setWidth(g):"h"==n.p?n.t.setHeight(g):"alpha"==n.p?n.t.setAlpha(g):"scale"==n.p?n.t.setScale2(g):n.t[n.p]=g}n=n._next}this._onUpdate&&(e<0&&this._startAt&&this._startTime&&this._startAt.render(e,t,o),t||(this._totalTime!==f||s)&&this._callback("onUpdate")),this._cycle!==p&&(t||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),s&&(this._gc&&!o||(e<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(e,t,o),i&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[s]&&this._callback(s),0===b&&1e-10===this._rawPrevTime&&1e-10!==h&&(this._rawPrevTime=0)))}else f!==this._totalTime&&this._onUpdate&&(t||this._callback("onUpdate"))},n.to=function(e,t,o){return new n(e,t,o)},n.from=function(e,t,o){return o.runBackwards=!0,o.immediateRender=0!=o.immediateRender,new n(e,t,o)},n.fromTo=function(e,t,o,i){return i.startAt=o,i.immediateRender=0!=i.immediateRender&&0!=o.immediateRender,new n(e,t,i)},n.staggerTo=n.allTo=function(e,t,r,d,h,_,c){d=d||0;var f,p,b,m,g=0,y=[],v=r.cycle,S=r.startAt&&r.startAt.cycle;for(a(e)||("string"==typeof e&&(e=o.selector(e)||e),l(e)&&(e=i(e))),e=e||[],d<0&&((e=i(e)).reverse(),d*=-1),f=e.length-1,b=0;b<=f;b++){p={};for(m in r)p[m]=r[m];if(v&&(s(p,e,b),null!=p.duration&&(t=p.duration,delete p.duration)),S){S=p.startAt={};for(m in r.startAt)S[m]=r.startAt[m];s(p.startAt,e,b)}p.delay=g+(p.delay||0),b===f&&h&&(p.onComplete=function(){r.onComplete&&r.onComplete.apply(r.onCompleteScope||this,arguments),h.apply(c||r.callbackScope||this,_||u)}),y[b]=new n(e[b],t,p),g+=d}return y},n.staggerFrom=n.allFrom=function(e,t,o,i,s,r,l){return o.runBackwards=!0,o.immediateRender=0!=o.immediateRender,n.staggerTo(e,t,o,i,s,r,l)},n.staggerFromTo=n.allFromTo=function(e,t,o,i,s,r,l,a){return i.startAt=o,i.immediateRender=0!=i.immediateRender&&0!=o.immediateRender,n.staggerTo(e,t,i,s,r,l,a)},n.delayedCall=function(e,t,o,i,s){return new n(t,0,{delay:e,onComplete:t,onCompleteParams:o,callbackScope:i,onReverseComplete:t,onReverseCompleteParams:o,immediateRender:!1,useFrames:s,overwrite:0})},n.set=function(e,t){return new n(e,0,t)},n.isTweening=function(e){return o.getTweensOf(e,!0).length>0};var h=function(e,t){for(var i=[],s=0,n=e._first;n;)n instanceof o?i[s++]=n:(t&&(i[s++]=n),s=(i=i.concat(h(n,t))).length),n=n._next;return i},_=n.getAllTweens=function(t){return h(e._rootTimeline,t).concat(h(e._rootFramesTimeline,t))};n.killAll=function(e,o,i,s){null==o&&(o=!0),null==i&&(i=!0);var n,r,l,a=_(0!=s),d=a.length,u=o&&i&&s;for(l=0;l<d;l++)r=a[l],(u||r instanceof t||(n=r.target===r.vars.onComplete)&&i||o&&!n)&&(e?r.totalTime(r._reversed?0:r.totalDuration()):r._enabled(!1,!1))},n.killChildTweensOf=function(e,t){if(null!=e){var s,d,u,h,_,c=r.tweenLookup;if("string"==typeof e&&(e=o.selector(e)||e),l(e)&&(e=i(e)),a(e))for(h=e.length;--h>-1;)n.killChildTweensOf(e[h],t);else{s=[];for(u in c)for(d=c[u].target.parentNode;d;)d===e&&(s=s.concat(c[u].tweens)),d=d.parentNode;for(_=s.length,h=0;h<_;h++)t&&s[h].totalTime(s[h].totalDuration()),s[h]._enabled(!1,!1)}}};var c=function(e,o,i,s){o=!1!==o,i=!1!==i;for(var n,r,l=_(s=!1!==s),a=o&&i&&s,d=l.length;--d>-1;)r=l[d],(a||r instanceof t||(n=r.target===r.vars.onComplete)&&i||o&&!n)&&r.paused(e)};return n.pauseAll=function(e,t,o){c(!0,e,t,o)},n.resumeAll=function(e,t,o){c(!1,e,t,o)},n.globalTimeScale=function(t){var i=e._rootTimeline,s=o.ticker.time;return arguments.length?(t=t||1e-10,i._startTime=s-(s-i._startTime)*i._timeScale/t,i=e._rootFramesTimeline,s=o.ticker.frame,i._startTime=s-(s-i._startTime)*i._timeScale/t,i._timeScale=e._rootTimeline._timeScale=t,t):i._timeScale},d.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-e:e)+this._cycle*(this._duration+this._repeatDelay),t):this._time/this.duration()},d.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()},d.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),e>this._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},d.duration=function(t){return arguments.length?e.prototype.duration.call(this,t):this._duration},d.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)},d.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},d.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},d.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},n},!0),_fwd_gsScope.FWDFWD_gsDefine("FWDTimelineLite",["core.FWDAnim","core.FWDSimpleTimeline","FWDTweenLite"],function(e,t,o){var i=function(e){t.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 o,i,s=this.vars;for(i in s)o=s[i],l(o)&&-1!==o.join("").indexOf("{self}")&&(s[i]=this._swapSelfInParams(o));l(s.tweens)&&this.add(s.tweens,0,s.align,s.stagger)},s=o._internals,n=i._internals={},r=s.isSelector,l=s.isArray,a=s.lazyTweens,d=s.lazyRender,u=_fwd_gsScope.FWDFWD_gsDefine.globals,h=function(e){var t,o={};for(t in e)o[t]=e[t];return o},_=function(e,t,o){var i,s,n=e.cycle;for(i in n)s=n[i],e[i]="function"==typeof s?s.call(t[o],o):s[o%s.length];delete e.cycle},c=n.pauseCallback=function(){},f=function(e){var t,o=[],i=e.length;for(t=0;t!==i;o.push(e[t++]));return o},p=i.prototype=new t;return i.version="1.19.0",p.constructor=i,p.kill()._gc=p._forcingPlayhead=p._hasPause=!1,p.to=function(e,t,i,s){var n=i.repeat&&u.FWDAnimation||o;return t?this.add(new n(e,t,i),s):this.set(e,i,s)},p.from=function(e,t,i,s){return this.add((i.repeat&&u.FWDAnimation||o).from(e,t,i),s)},p.fromTo=function(e,t,i,s,n){var r=s.repeat&&u.FWDAnimation||o;return t?this.add(r.fromTo(e,t,i,s),n):this.set(e,s,n)},p.staggerTo=function(e,t,s,n,l,a,d,u){var c,p,b=new i({onComplete:a,onCompleteParams:d,callbackScope:u,smoothChildTiming:this.smoothChildTiming}),m=s.cycle;for("string"==typeof e&&(e=o.selector(e)||e),r(e=e||[])&&(e=f(e)),(n=n||0)<0&&((e=f(e)).reverse(),n*=-1),p=0;p<e.length;p++)(c=h(s)).startAt&&(c.startAt=h(c.startAt),c.startAt.cycle&&_(c.startAt,e,p)),m&&(_(c,e,p),null!=c.duration&&(t=c.duration,delete c.duration)),b.to(e[p],t,c,p*n);return this.add(b,l)},p.staggerFrom=function(e,t,o,i,s,n,r,l){return o.immediateRender=0!=o.immediateRender,o.runBackwards=!0,this.staggerTo(e,t,o,i,s,n,r,l)},p.staggerFromTo=function(e,t,o,i,s,n,r,l,a){return i.startAt=o,i.immediateRender=0!=i.immediateRender&&0!=o.immediateRender,this.staggerTo(e,t,i,s,n,r,l,a)},p.call=function(e,t,i,s){return this.add(o.delayedCall(0,e,t,i),s)},p.set=function(e,t,i){return i=this._parseTimeOrLabel(i,0,!0),null==t.immediateRender&&(t.immediateRender=i===this._time&&!this._paused),this.add(new o(e,0,t),i)},i.exportRoot=function(e,t){null==(e=e||{}).smoothChildTiming&&(e.smoothChildTiming=!0);var s,n,r=new i(e),l=r._timeline;for(null==t&&(t=!0),l._remove(r,!0),r._startTime=0,r._rawPrevTime=r._time=r._totalTime=l._time,s=l._first;s;)n=s._next,t&&s instanceof o&&s.target===s.vars.onComplete||r.add(s,s._startTime-s._delay),s=n;return l.add(r,0),r},p.add=function(s,n,r,a){var d,u,h,_,c,f;if("number"!=typeof n&&(n=this._parseTimeOrLabel(n,0,!0,s)),!(s instanceof e)){if(s instanceof Array||s&&s.push&&l(s)){for(r=r||"normal",a=a||0,d=n,u=s.length,h=0;h<u;h++)l(_=s[h])&&(_=new i({tweens:_})),this.add(_,d),"string"!=typeof _&&"function"!=typeof _&&("sequence"===r?d=_._startTime+_.totalDuration()/_._timeScale:"start"===r&&(_._startTime-=_.delay())),d+=a;return this._uncache(!0)}if("string"==typeof s)return this.addLabel(s,n);if("function"!=typeof s)throw"Cannot add "+s+" into the timeline; it is not a tween, timeline, function, or string.";s=o.delayedCall(0,s)}if(t.prototype.add.call(this,s,n),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(f=(c=this).rawTime()>s._startTime;c._timeline;)f&&c._timeline.smoothChildTiming?c.totalTime(c._totalTime,!0):c._gc&&c._enabled(!0,!1),c=c._timeline;return this},p.remove=function(t){if(t instanceof e){this._remove(t,!1);var o=t._timeline=t.vars.useFrames?e._rootFramesTimeline:e._rootTimeline;return t._startTime=(t._paused?t._pauseTime:o._time)-(t._reversed?t.totalDuration()-t._totalTime:t._totalTime)/t._timeScale,this}if(t instanceof Array||t&&t.push&&l(t)){for(var i=t.length;--i>-1;)this.remove(t[i]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},p._remove=function(e,o){t.prototype._remove.call(this,e,o);var i=this._last;return i?this._time>i._startTime+i._totalDuration/i._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},p.append=function(e,t){return this.add(e,this._parseTimeOrLabel(null,t,!0,e))},p.insert=p.insertMultiple=function(e,t,o,i){return this.add(e,t||0,o,i)},p.appendMultiple=function(e,t,o,i){return this.add(e,this._parseTimeOrLabel(null,t,!0,e),o,i)},p.addLabel=function(e,t){return this._labels[e]=this._parseTimeOrLabel(t),this},p.addPause=function(e,t,i,s){var n=o.delayedCall(0,c,i,s||this);return n.vars.onComplete=n.vars.onReverseComplete=t,n.data="isPause",this._hasPause=!0,this.add(n,e)},p.removeLabel=function(e){return delete this._labels[e],this},p.getLabelTime=function(e){return null!=this._labels[e]?this._labels[e]:-1},p._parseTimeOrLabel=function(t,o,i,s){var n;if(s instanceof e&&s.timeline===this)this.remove(s);else if(s&&(s instanceof Array||s.push&&l(s)))for(n=s.length;--n>-1;)s[n]instanceof e&&s[n].timeline===this&&this.remove(s[n]);if("string"==typeof o)return this._parseTimeOrLabel(o,i&&"number"==typeof t&&null==this._labels[o]?t-this.duration():0,i);if(o=o||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=this.duration());else{if(-1===(n=t.indexOf("=")))return null==this._labels[t]?i?this._labels[t]=this.duration()+o:o:this._labels[t]+o;o=parseInt(t.charAt(n-1)+"1",10)*Number(t.substr(n+1)),t=n>1?this._parseTimeOrLabel(t.substr(0,n-1),0,i):this.duration()}return Number(t)+o},p.seek=function(e,t){return this.totalTime("number"==typeof e?e:this._parseTimeOrLabel(e),!1!==t)},p.stop=function(){return this.paused(!0)},p.gotoAndPlay=function(e,t){return this.play(e,t)},p.gotoAndStop=function(e,t){return this.pause(e,t)},p.render=function(e,t,o){this._gc&&this._enabled(!0,!1);var i,s,n,r,l,u,h,_=this._dirty?this.totalDuration():this._totalDuration,c=this._time,f=this._startTime,p=this._timeScale,b=this._paused;if(e>=_-1e-7)this._totalTime=this._time=_,this._reversed||this._hasPausedChild()||(s=!0,r="onComplete",l=!!this._timeline.autoRemoveChildren,0===this._duration&&(e<=0&&e>=-1e-7||this._rawPrevTime<0||1e-10===this._rawPrevTime)&&this._rawPrevTime!==e&&this._first&&(l=!0,this._rawPrevTime>1e-10&&(r="onReverseComplete"))),this._rawPrevTime=this._duration||!t||e||this._rawPrevTime===e?e:1e-10,e=_+1e-4;else if(e<1e-7)if(this._totalTime=this._time=0,(0!==c||0===this._duration&&1e-10!==this._rawPrevTime&&(this._rawPrevTime>0||e<0&&this._rawPrevTime>=0))&&(r="onReverseComplete",s=this._reversed),e<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(l=s=!0,r="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(l=!0),this._rawPrevTime=e;else{if(this._rawPrevTime=this._duration||!t||e||this._rawPrevTime===e?e:1e-10,0===e&&s)for(i=this._first;i&&0===i._startTime;)i._duration||(s=!1),i=i._next;e=0,this._initted||(l=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!t){if(e>=c)for(i=this._first;i&&i._startTime<=e&&!u;)i._duration||"isPause"!==i.data||i.ratio||0===i._startTime&&0===this._rawPrevTime||(u=i),i=i._next;else for(i=this._last;i&&i._startTime>=e&&!u;)i._duration||"isPause"===i.data&&i._rawPrevTime>0&&(u=i),i=i._prev;u&&(this._time=e=u._startTime,this._totalTime=e+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=e}if(this._time!==c&&this._first||o||l||u){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==c&&e>0&&(this._active=!0),0===c&&this.vars.onStart&&(0===this._time&&this._duration||t||this._callback("onStart")),(h=this._time)>=c)for(i=this._first;i&&(n=i._next,h===this._time&&(!this._paused||b));)(i._active||i._startTime<=h&&!i._paused&&!i._gc)&&(u===i&&this.pause(),i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,o):i.render((e-i._startTime)*i._timeScale,t,o)),i=n;else for(i=this._last;i&&(n=i._prev,h===this._time&&(!this._paused||b));){if(i._active||i._startTime<=c&&!i._paused&&!i._gc){if(u===i){for(u=i._prev;u&&u.endTime()>this._time;)u.render(u._reversed?u.totalDuration()-(e-u._startTime)*u._timeScale:(e-u._startTime)*u._timeScale,t,o),u=u._prev;u=null,this.pause()}i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,o):i.render((e-i._startTime)*i._timeScale,t,o)}i=n}this._onUpdate&&(t||(a.length&&d(),this._callback("onUpdate"))),r&&(this._gc||f!==this._startTime&&p===this._timeScale||(0===this._time||_>=this.totalDuration())&&(s&&(a.length&&d(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[r]&&this._callback(r)))}},p._hasPausedChild=function(){for(var e=this._first;e;){if(e._paused||e instanceof i&&e._hasPausedChild())return!0;e=e._next}return!1},p.getChildren=function(e,t,i,s){s=s||-9999999999;for(var n=[],r=this._first,l=0;r;)r._startTime<s||(r instanceof o?!1!==t&&(n[l++]=r):(!1!==i&&(n[l++]=r),!1!==e&&(l=(n=n.concat(r.getChildren(!0,t,i))).length))),r=r._next;return n},p.getTweensOf=function(e,t){var i,s,n=this._gc,r=[],l=0;for(n&&this._enabled(!0,!0),s=(i=o.getTweensOf(e)).length;--s>-1;)(i[s].timeline===this||t&&this._contains(i[s]))&&(r[l++]=i[s]);return n&&this._enabled(!1,!0),r},p.recent=function(){return this._recent},p._contains=function(e){for(var t=e.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},p.shiftChildren=function(e,t,o){o=o||0;for(var i,s=this._first,n=this._labels;s;)s._startTime>=o&&(s._startTime+=e),s=s._next;if(t)for(i in n)n[i]>=o&&(n[i]+=e);return this._uncache(!0)},p._kill=function(e,t){if(!e&&!t)return this._enabled(!1,!1);for(var o=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),i=o.length,s=!1;--i>-1;)o[i]._kill(e,t)&&(s=!0);return s},p.clear=function(e){var t=this.getChildren(!1,!0,!0),o=t.length;for(this._time=this._totalTime=0;--o>-1;)t[o]._enabled(!1,!1);return!1!==e&&(this._labels={}),this._uncache(!0)},p.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return e.prototype.invalidate.call(this)},p._enabled=function(e,o){if(e===this._gc)for(var i=this._first;i;)i._enabled(e,!0),i=i._next;return t.prototype._enabled.call(this,e,o)},p.totalTime=function(t,o,i){this._forcingPlayhead=!0;var s=e.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,s},p.duration=function(e){return arguments.length?(0!==this.duration()&&0!==e&&this.timeScale(this._duration/e),this):(this._dirty&&this.totalDuration(),this._duration)},p.totalDuration=function(e){if(!arguments.length){if(this._dirty){for(var t,o,i=0,s=this._last,n=999999999999;s;)t=s._prev,s._dirty&&s.totalDuration(),s._startTime>n&&this._sortChildren&&!s._paused?this.add(s,s._startTime-s._delay):n=s._startTime,s._startTime<0&&!s._paused&&(i-=s._startTime,this._timeline.smoothChildTiming&&(this._startTime+=s._startTime/this._timeScale),this.shiftChildren(-s._startTime,!1,-9999999999),n=0),(o=s._startTime+s._totalDuration/s._timeScale)>i&&(i=o),s=t;this._duration=this._totalDuration=i,this._dirty=!1}return this._totalDuration}return e&&this.totalDuration()?this.timeScale(this._totalDuration/e):this},p.paused=function(t){if(!t)for(var o=this._first,i=this._time;o;)o._startTime===i&&"isPause"===o.data&&(o._rawPrevTime=0),o=o._next;return e.prototype.paused.apply(this,arguments)},p.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===e._rootFramesTimeline},p.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},i},!0),_fwd_gsScope.FWDFWD_gsDefine("TimelineMax",["FWDTimelineLite","FWDTweenLite","easing.Ease"],function(e,t,o){var i=function(t){e.call(this,t),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._dirty=!0},s=t._internals,n=s.lazyTweens,r=s.lazyRender,l=_fwd_gsScope.FWDFWD_gsDefine.globals,a=new o(null,null,1,0),d=i.prototype=new e;return d.constructor=i,d.kill()._gc=!1,i.version="1.19.0",d.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),e.prototype.invalidate.call(this)},d.addCallback=function(e,o,i,s){return this.add(t.delayedCall(0,e,i,s),o)},d.removeCallback=function(e,t){if(e)if(null==t)this._kill(null,e);else for(var o=this.getTweensOf(e,!1),i=o.length,s=this._parseTimeOrLabel(t);--i>-1;)o[i]._startTime===s&&o[i]._enabled(!1,!1);return this},d.removePause=function(t){return this.removeCallback(e._internals.pauseCallback,t)},d.tweenTo=function(e,o){o=o||{};var i,s,n,r={ease:a,useFrames:this.usesFrames(),immediateRender:!1},d=o.repeat&&l.FWDAnimation||t;for(s in o)r[s]=o[s];return r.time=this._parseTimeOrLabel(e),i=Math.abs(Number(r.time)-this._time)/this._timeScale||.001,n=new d(this,i,r),r.onStart=function(){n.target.paused(!0),n.vars.time!==n.target.time()&&i===n.duration()&&n.duration(Math.abs(n.vars.time-n.target.time())/n.target._timeScale),o.onStart&&n._callback("onStart")},n},d.tweenFromTo=function(e,t,o){o=o||{},e=this._parseTimeOrLabel(e),o.startAt={onComplete:this.seek,onCompleteParams:[e],callbackScope:this},o.immediateRender=!1!==o.immediateRender;var i=this.tweenTo(t,o);return i.duration(Math.abs(i.vars.time-e)/this._timeScale||.001)},d.render=function(e,t,o){this._gc&&this._enabled(!0,!1);var i,s,l,a,d,u,h,_,c=this._dirty?this.totalDuration():this._totalDuration,f=this._duration,p=this._time,b=this._totalTime,m=this._startTime,g=this._timeScale,y=this._rawPrevTime,v=this._paused,S=this._cycle;if(e>=c-1e-7)this._locked||(this._totalTime=c,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(s=!0,a="onComplete",d=!!this._timeline.autoRemoveChildren,0===this._duration&&(e<=0&&e>=-1e-7||y<0||1e-10===y)&&y!==e&&this._first&&(d=!0,y>1e-10&&(a="onReverseComplete"))),this._rawPrevTime=this._duration||!t||e||this._rawPrevTime===e?e:1e-10,this._yoyo&&0!=(1&this._cycle)?this._time=e=0:(this._time=f,e=f+1e-4);else if(e<1e-7)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==p||0===f&&1e-10!==y&&(y>0||e<0&&y>=0)&&!this._locked)&&(a="onReverseComplete",s=this._reversed),e<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(d=s=!0,a="onReverseComplete"):y>=0&&this._first&&(d=!0),this._rawPrevTime=e;else{if(this._rawPrevTime=f||!t||e||this._rawPrevTime===e?e:1e-10,0===e&&s)for(i=this._first;i&&0===i._startTime;)i._duration||(s=!1),i=i._next;e=0,this._initted||(d=!0)}else if(0===f&&y<0&&(d=!0),this._time=this._rawPrevTime=e,this._locked||(this._totalTime=e,0!==this._repeat&&(u=f+this._repeatDelay,this._cycle=this._totalTime/u>>0,0!==this._cycle&&this._cycle===this._totalTime/u&&b<=e&&this._cycle--,this._time=this._totalTime-this._cycle*u,this._yoyo&&0!=(1&this._cycle)&&(this._time=f-this._time),this._time>f?(this._time=f,e=f+1e-4):this._time<0?this._time=e=0:e=this._time)),this._hasPause&&!this._forcingPlayhead&&!t){if((e=this._time)>=p)for(i=this._first;i&&i._startTime<=e&&!h;)i._duration||"isPause"!==i.data||i.ratio||0===i._startTime&&0===this._rawPrevTime||(h=i),i=i._next;else for(i=this._last;i&&i._startTime>=e&&!h;)i._duration||"isPause"===i.data&&i._rawPrevTime>0&&(h=i),i=i._prev;h&&(this._time=e=h._startTime,this._totalTime=e+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==S&&!this._locked){var P=this._yoyo&&0!=(1&S),E=P===(this._yoyo&&0!=(1&this._cycle)),w=this._totalTime,T=this._cycle,D=this._rawPrevTime,W=this._time;if(this._totalTime=S*f,this._cycle<S?P=!P:this._totalTime+=f,this._time=p,this._rawPrevTime=0===f?y-1e-4:y,this._cycle=S,this._locked=!0,p=P?0:f,this.render(p,t,0===f),t||this._gc||this.vars.onRepeat&&this._callback("onRepeat"),p!==this._time)return;if(E&&(p=P?f+1e-4:-1e-4,this.render(p,!0,!1)),this._locked=!1,this._paused&&!v)return;this._time=W,this._totalTime=w,this._cycle=T,this._rawPrevTime=D}if(this._time!==p&&this._first||o||d||h){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==b&&e>0&&(this._active=!0),0===b&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||t||this._callback("onStart")),(_=this._time)>=p)for(i=this._first;i&&(l=i._next,_===this._time&&(!this._paused||v));)(i._active||i._startTime<=this._time&&!i._paused&&!i._gc)&&(h===i&&this.pause(),i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,o):i.render((e-i._startTime)*i._timeScale,t,o)),i=l;else for(i=this._last;i&&(l=i._prev,_===this._time&&(!this._paused||v));){if(i._active||i._startTime<=p&&!i._paused&&!i._gc){if(h===i){for(h=i._prev;h&&h.endTime()>this._time;)h.render(h._reversed?h.totalDuration()-(e-h._startTime)*h._timeScale:(e-h._startTime)*h._timeScale,t,o),h=h._prev;h=null,this.pause()}i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,o):i.render((e-i._startTime)*i._timeScale,t,o)}i=l}this._onUpdate&&(t||(n.length&&r(),this._callback("onUpdate"))),a&&(this._locked||this._gc||m!==this._startTime&&g===this._timeScale||(0===this._time||c>=this.totalDuration())&&(s&&(n.length&&r(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[a]&&this._callback(a)))}else b!==this._totalTime&&this._onUpdate&&(t||this._callback("onUpdate"))},d.getActive=function(e,t,o){null==e&&(e=!0),null==t&&(t=!0),null==o&&(o=!1);var i,s,n=[],r=this.getChildren(e,t,o),l=0,a=r.length;for(i=0;i<a;i++)(s=r[i]).isActive()&&(n[l++]=s);return n},d.getLabelAfter=function(e){e||0!==e&&(e=this._time);var t,o=this.getLabelsArray(),i=o.length;for(t=0;t<i;t++)if(o[t].time>e)return o[t].name;return null},d.getLabelBefore=function(e){null==e&&(e=this._time);for(var t=this.getLabelsArray(),o=t.length;--o>-1;)if(t[o].time<e)return t[o].name;return null},d.getLabelsArray=function(){var e,t=[],o=0;for(e in this._labels)t[o++]={time:this._labels[e],name:e};return t.sort(function(e,t){return e.time-t.time}),t},d.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-e:e)+this._cycle*(this._duration+this._repeatDelay),t):this._time/this.duration()},d.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()},d.totalDuration=function(t){return arguments.length?-1!==this._repeat&&t?this.timeScale(this.totalDuration()/t):this:(this._dirty&&(e.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},d.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),e>this._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},d.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},d.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},d.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},d.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.getLabelBefore(this._time+1e-8)},i},!0),function(){var e=180/Math.PI,t=[],o=[],i=[],s={},n=_fwd_gsScope.FWDFWD_gsDefine.globals,r=function(e,t,o,i){o===i&&(o=i-(i-t)/1e6),e===t&&(t=e+(o-e)/1e6),this.a=e,this.b=t,this.c=o,this.d=i,this.da=i-e,this.ca=o-e,this.ba=t-e},l=function(e,t,o,i){var s={a:e},n={},r={},l={c:i},a=(e+t)/2,d=(t+o)/2,u=(o+i)/2,h=(a+d)/2,_=(d+u)/2,c=(_-h)/8;return s.b=a+(e-a)/4,n.b=h+c,s.c=n.a=(s.b+n.b)/2,n.c=r.a=(h+_)/2,r.b=_-c,l.b=u+(i-u)/4,r.c=l.a=(r.b+l.b)/2,[s,n,r,l]},a=function(e,s,n,r,a){var d,u,h,_,c,f,p,b,m,g,y,v,S,P=e.length-1,E=0,w=e[0].a;for(d=0;d<P;d++)u=(c=e[E]).a,h=c.d,_=e[E+1].d,a?(y=t[d],S=((v=o[d])+y)*s*.25/(r?.5:i[d]||.5),b=h-((f=h-(h-u)*(r?.5*s:0!==y?S/y:0))+(((p=h+(_-h)*(r?.5*s:0!==v?S/v:0))-f)*(3*y/(y+v)+.5)/4||0))):b=h-((f=h-(h-u)*s*.5)+(p=h+(_-h)*s*.5))/2,f+=b,p+=b,c.c=m=f,c.b=0!==d?w:w=c.a+.6*(c.c-c.a),c.da=h-u,c.ca=m-u,c.ba=w-u,n?(g=l(u,w,m,h),e.splice(E,1,g[0],g[1],g[2],g[3]),E+=4):E++,w=p;(c=e[E]).b=w,c.c=w+.4*(c.d-w),c.da=c.d-c.a,c.ca=c.c-c.a,c.ba=w-c.a,n&&(g=l(c.a,w,c.c,c.d),e.splice(E,1,g[0],g[1],g[2],g[3]))},d=function(e,i,s,n){var l,a,d,u,h,_,c=[];if(n)for(a=(e=[n].concat(e)).length;--a>-1;)"string"==typeof(_=e[a][i])&&"="===_.charAt(1)&&(e[a][i]=n[i]+Number(_.charAt(0)+_.substr(2)));if((l=e.length-2)<0)return c[0]=new r(e[0][i],0,0,e[l<-1?0:1][i]),c;for(a=0;a<l;a++)d=e[a][i],u=e[a+1][i],c[a]=new r(d,0,0,u),s&&(h=e[a+2][i],t[a]=(t[a]||0)+(u-d)*(u-d),o[a]=(o[a]||0)+(h-u)*(h-u));return c[a]=new r(e[a][i],0,0,e[a+1][i]),c},u=function(e,n,r,l,u,h){var _,c,f,p,b,m,g,y,v={},S=[],P=h||e[0];u="string"==typeof u?","+u+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==n&&(n=1);for(c in e[0])S.push(c);if(e.length>1){for(y=e[e.length-1],g=!0,_=S.length;--_>-1;)if(c=S[_],Math.abs(P[c]-y[c])>.05){g=!1;break}g&&(e=e.concat(),h&&e.unshift(h),e.push(e[1]),h=e[e.length-3])}for(t.length=o.length=i.length=0,_=S.length;--_>-1;)c=S[_],s[c]=-1!==u.indexOf(","+c+","),v[c]=d(e,c,s[c],h);for(_=t.length;--_>-1;)t[_]=Math.sqrt(t[_]),o[_]=Math.sqrt(o[_]);if(!l){for(_=S.length;--_>-1;)if(s[c])for(m=(f=v[S[_]]).length-1,p=0;p<m;p++)b=f[p+1].da/o[p]+f[p].da/t[p]||0,i[p]=(i[p]||0)+b*b;for(_=i.length;--_>-1;)i[_]=Math.sqrt(i[_])}for(_=S.length,p=r?4:1;--_>-1;)f=v[c=S[_]],a(f,n,r,l,s[c]),g&&(f.splice(0,p),f.splice(f.length-p,p));return v},h=function(e,t,o){var i,s,n,l,a,d,u,h,_,c,f,p={},b="cubic"===(t=t||"soft")?3:2,m="soft"===t,g=[];if(m&&o&&(e=[o].concat(e)),null==e||e.length<b+1)throw"invalid Bezier data";for(_ in e[0])g.push(_);for(d=g.length;--d>-1;){for(p[_=g[d]]=a=[],c=0,h=e.length,u=0;u<h;u++)i=null==o?e[u][_]:"string"==typeof(f=e[u][_])&&"="===f.charAt(1)?o[_]+Number(f.charAt(0)+f.substr(2)):Number(f),m&&u>1&&u<h-1&&(a[c++]=(i+a[c-2])/2),a[c++]=i;for(h=c-b+1,c=0,u=0;u<h;u+=b)i=a[u],s=a[u+1],n=a[u+2],l=2===b?0:a[u+3],a[c++]=f=3===b?new r(i,s,n,l):new r(i,(2*s+i)/3,(2*s+n)/3,n);a.length=c}return p},_=function(e,t,o){for(var i,s,n,r,l,a,d,u,h,_,c,f=1/o,p=e.length;--p>-1;)for(n=(_=e[p]).a,r=_.d-n,l=_.c-n,a=_.b-n,i=s=0,u=1;u<=o;u++)i=s-(s=((d=f*u)*d*r+3*(h=1-d)*(d*l+h*a))*d),t[c=p*o+u-1]=(t[c]||0)+i*i},c=function(e,t){var o,i,s,n,r=[],l=[],a=0,d=0,u=(t=t>>0||6)-1,h=[],c=[];for(o in e)_(e[o],r,t);for(s=r.length,i=0;i<s;i++)a+=Math.sqrt(r[i]),c[n=i%t]=a,n===u&&(d+=a,h[n=i/t>>0]=c,l[n]=d,a=0,c=[]);return{length:d,lengths:l,segments:h}},f=_fwd_gsScope.FWDFWD_gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.7",API:2,fwd_global:!0,init:function(e,t,o){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 i,s,n,r,l,a=t.values||[],d={},_=a[0],f=t.autoRotate||o.vars.orientToBezier;this._autoRotate=f?f instanceof Array?f:[["x","y","rotation",!0===f?0:Number(f)||0]]:null;for(i in _)this._props.push(i);for(n=this._props.length;--n>-1;)i=this._props[n],this._overwriteProps.push(i),s=this._func[i]="function"==typeof e[i],d[i]=s?e[i.indexOf("set")||"function"!=typeof e["get"+i.substr(3)]?i:"get"+i.substr(3)]():parseFloat(e[i]),l||d[i]!==a[0][i]&&(l=d);if(this._beziers="cubic"!==t.type&&"quadratic"!==t.type&&"soft"!==t.type?u(a,isNaN(t.curviness)?1:t.curviness,!1,"thruBasic"===t.type,t.correlate,l):h(a,t.type,d),this._segCount=this._beziers[i].length,this._timeRes){var p=c(this._beziers,this._timeRes);this._length=p.length,this._lengths=p.lengths,this._segments=p.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(f=this._autoRotate)for(this._initialRotations=[],f[0]instanceof Array||(this._autoRotate=f=[f]),n=f.length;--n>-1;){for(r=0;r<3;r++)i=f[n][r],this._func[i]="function"==typeof e[i]&&e[i.indexOf("set")||"function"!=typeof e["get"+i.substr(3)]?i:"get"+i.substr(3)];i=f[n][2],this._initialRotations[n]=(this._func[i]?this._func[i].call(this._target):this._target[i])||0,this._overwriteProps.push(i)}return this._startRatio=o.vars.runBackwards?1:0,!0},set:function(t){var o,i,s,n,r,l,a,d,u,h,_=this._segCount,c=this._func,f=this._target,p=t!==this._startRatio;if(this._timeRes){if(u=this._lengths,h=this._curSeg,t*=this._length,s=this._li,t>this._l2&&s<_-1){for(d=_-1;s<d&&(this._l2=u[++s])<=t;);this._l1=u[s-1],this._li=s,this._curSeg=h=this._segments[s],this._s2=h[this._s1=this._si=0]}else if(t<this._l1&&s>0){for(;s>0&&(this._l1=u[--s])>=t;);0===s&&t<this._l1?this._l1=0:s++,this._l2=u[s],this._li=s,this._curSeg=h=this._segments[s],this._s1=h[(this._si=h.length-1)-1]||0,this._s2=h[this._si]}if(o=s,t-=this._l1,s=this._si,t>this._s2&&s<h.length-1){for(d=h.length-1;s<d&&(this._s2=h[++s])<=t;);this._s1=h[s-1],this._si=s}else if(t<this._s1&&s>0){for(;s>0&&(this._s1=h[--s])>=t;);0===s&&t<this._s1?this._s1=0:s++,this._s2=h[s],this._si=s}l=(s+(t-this._s1)/(this._s2-this._s1))*this._prec||0}else l=(t-(o=t<0?0:t>=1?_-1:_*t>>0)*(1/_))*_;for(i=1-l,s=this._props.length;--s>-1;)n=this._props[s],a=(l*l*(r=this._beziers[n][o]).da+3*i*(l*r.ca+i*r.ba))*l+r.a,this._mod[n]&&(a=this._mod[n](a,f)),c[n]?f[n](a):"x"==n?f.setX(a):"y"==n?f.setY(a):"z"==n?f.setZ(a):"angleX"==n?f.setAngleX(a):"angleY"==n?f.setAngleY(a):"angleZ"==n?f.setAngleZ(a):"w"==n?f.setWidth(a):"h"==n?f.setHeight(a):"alpha"==n?f.setAlpha(a):"scale"==n?f.setScale2(a):f[n]=a;if(this._autoRotate){var b,m,g,y,v,S,P,E=this._autoRotate;for(s=E.length;--s>-1;)n=E[s][2],S=E[s][3]||0,P=!0===E[s][4]?1:e,r=this._beziers[E[s][0]],b=this._beziers[E[s][1]],r&&b&&(r=r[o],b=b[o],m=r.a+(r.b-r.a)*l,m+=((y=r.b+(r.c-r.b)*l)-m)*l,y+=(r.c+(r.d-r.c)*l-y)*l,g=b.a+(b.b-b.a)*l,g+=((v=b.b+(b.c-b.b)*l)-g)*l,v+=(b.c+(b.d-b.c)*l-v)*l,a=p?Math.atan2(v-g,y-m)*P+S:this._initialRotations[s],this._mod[n]&&(a=this._mod[n](a,f)),c[n]?f[n](a):f[n]=a)}}}),p=f.prototype;f.bezierThrough=u,f.cubicToQuadratic=l,f._autoCSS=!0,f.quadraticToCubic=function(e,t,o){return new r(e,(2*t+e)/3,(2*t+o)/3,o)},f._cssRegister=function(){var e=n.CSSPlugin;if(e){var t=e._internals,o=t._parseToProxy,i=t._setPluginRatio,s=t.CSSPropTween;t._registerComplexSpecialProp("bezier",{parser:function(e,t,n,r,l,a){t instanceof Array&&(t={values:t}),a=new f;var d,u,h,_=t.values,c=_.length-1,p=[],b={};if(c<0)return l;for(d=0;d<=c;d++)h=o(e,_[d],r,l,a,c!==d),p[d]=h.end;for(u in t)b[u]=t[u];return b.values=p,l=new s(e,"bezier",0,0,h.pt,2),l.data=h,l.plugin=a,l.setRatio=i,0===b.autoRotate&&(b.autoRotate=!0),!b.autoRotate||b.autoRotate instanceof Array||(d=!0===b.autoRotate?0:Number(b.autoRotate),b.autoRotate=null!=h.end.left?[["left","top","rotation",d,!1]]:null!=h.end.x&&[["x","y","rotation",d,!1]]),b.autoRotate&&(r._transform||r._enableTransforms(!1),h.autoRotate=r._target._gsTransform,h.proxy.rotation=h.autoRotate.rotation||0,r._overwriteProps.push("rotation")),a._onInitTween(h.proxy,b,r._tween),l}})}},p._mod=function(e){for(var t,o=this._overwriteProps,i=o.length;--i>-1;)(t=e[o[i]])&&"function"==typeof t&&(this._mod[o[i]]=t)},p._kill=function(e){var t,o,i=this._props;for(t in this._beziers)if(t in e)for(delete this._beziers[t],delete this._func[t],o=i.length;--o>-1;)i[o]===t&&i.splice(o,1);if(i=this._autoRotate)for(o=i.length;--o>-1;)e[i[o][2]]&&i.splice(o,1);return this._super._kill.call(this,e)}}(),_fwd_gsScope.FWDFWD_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","FWDTweenLite"],function(e,t){var o,i,s,n,r=function(){e.call(this,"css"),this._overwriteProps.length=0,this.setRatio=r.prototype.setRatio},l=_fwd_gsScope.FWDFWD_gsDefine.globals,a={},d=r.prototype=new e("css");d.constructor=r,r.version="1.19.0",r.API=2,r.defaultTransformPerspective=0,r.defaultSkewType="compensated",r.defaultSmoothOrigin=!0,d="px",r.suffixMap={top:d,right:d,bottom:d,left:d,width:d,height:d,fontSize:d,padding:d,margin:d,perspective:d,lineHeight:""};var u,h,_,c,f,p,b,m,g=/(?:\-|\.|\b)(\d|\.|e\-)+/g,y=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,v=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,S=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,P=/(?:\d|\-|\+|=|#|\.)*/g,E=/opacity *= *([^)]*)/i,w=/opacity:([^;]*)/i,T=/alpha\(opacity *=.+?\)/i,D=/^(rgb|hsl)/,W=/([A-Z])/g,B=/-([a-z])/gi,C=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,F=function(e,t){return t.toUpperCase()},k=/(?:Left|Right|Width)/i,H=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,O=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,V=/,(?=[^\)]*(?:\(|$))/gi,A=/[\s,\(]/i,x=Math.PI/180,L=180/Math.PI,M={},I=document,R=function(e){return I.createElementNS?I.createElementNS("http://www.w3.org/1999/xhtml",e):I.createElement(e)},U=R("div"),X=R("img"),Y=r._internals={_specialProps:a},N=navigator.userAgent,j=function(){var e=N.indexOf("Android"),t=R("a");return _=-1!==N.indexOf("Safari")&&-1===N.indexOf("Chrome")&&(-1===e||Number(N.substr(e+8,1))>3),f=_&&Number(N.substr(N.indexOf("Version/")+8,1))<6,c=-1!==N.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(N)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(N))&&(p=parseFloat(RegExp.$1)),!!t&&(t.style.cssText="top:1px;opacity:.55;",/^0.55/.test(t.style.opacity))}(),z=function(e){return E.test("string"==typeof e?e:(e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100:1},Q=function(e){window.console&&console.log(e)},G="",q="",K=function(e,t){var o,i,s=(t=t||U).style;if(void 0!==s[e])return e;for(e=e.charAt(0).toUpperCase()+e.substr(1),o=["O","Moz","ms","Ms","Webkit"],i=5;--i>-1&&void 0===s[o[i]+e];);return i>=0?(q=3===i?"ms":o[i],G="-"+q.toLowerCase()+"-",q+e):null},J=I.defaultView?I.defaultView.getComputedStyle:function(){},$=r.getStyle=function(e,t,o,i,s){var n;return j||"opacity"!==t?(!i&&e.style[t]?n=e.style[t]:(o=o||J(e))?n=o[t]||o.getPropertyValue(t)||o.getPropertyValue(t.replace(W,"-$1").toLowerCase()):e.currentStyle&&(n=e.currentStyle[t]),null==s||n&&"none"!==n&&"auto"!==n&&"auto auto"!==n?n:s):z(e)},Z=Y.convertToPixels=function(e,o,i,s,n){if("px"===s||!s)return i;if("auto"===s||!i)return 0;var l,a,d,u=k.test(o),h=e,_=U.style,c=i<0,f=1===i;if(c&&(i=-i),f&&(i*=100),"%"===s&&-1!==o.indexOf("border"))l=i/100*(u?e.clientWidth:e.clientHeight);else{if(_.cssText="border:0 solid red;position:"+$(e,"position")+";line-height:0;","%"!==s&&h.appendChild&&"v"!==s.charAt(0)&&"rem"!==s)_[u?"borderLeftWidth":"borderTopWidth"]=i+s;else{if(h=e.parentNode||I.body,a=h._gsCache,d=t.ticker.frame,a&&u&&a.time===d)return a.width*i/100;_[u?"width":"height"]=i+s}h.appendChild(U),l=parseFloat(U[u?"offsetWidth":"offsetHeight"]),h.removeChild(U),u&&"%"===s&&!1!==r.cacheWidths&&((a=h._gsCache=h._gsCache||{}).time=d,a.width=l/i*100),0!==l||n||(l=Z(e,o,i,s,!0))}return f&&(l/=100),c?-l:l},ee=Y.calculateOffset=function(e,t,o){if("absolute"!==$(e,"position",o))return 0;var i="left"===t?"Left":"Top",s=$(e,"margin"+i,o);return e["offset"+i]-(Z(e,t,parseFloat(s),s.replace(P,""))||0)},te=function(e,t){var o,i,s,n={};if(t=t||J(e,null))if(o=t.length)for(;--o>-1;)-1!==(s=t[o]).indexOf("-transform")&&Be!==s||(n[s.replace(B,F)]=t.getPropertyValue(s));else for(o in t)-1!==o.indexOf("Transform")&&We!==o||(n[o]=t[o]);else if(t=e.currentStyle||e.style)for(o in t)"string"==typeof o&&void 0===n[o]&&(n[o.replace(B,F)]=t[o]);return j||(n.opacity=z(e)),i=Ue(e,t,!1),n.rotation=i.rotation,n.skewX=i.skewX,n.scaleX=i.scaleX,n.scaleY=i.scaleY,n.x=i.x,n.y=i.y,Fe&&(n.z=i.z,n.rotationX=i.rotationX,n.rotationY=i.rotationY,n.scaleZ=i.scaleZ),n.filters&&delete n.filters,n},oe=function(e,t,o,i,s){var n,r,l,a={},d=e.style;for(r in o)"cssText"!==r&&"length"!==r&&isNaN(r)&&(t[r]!==(n=o[r])||s&&s[r])&&-1===r.indexOf("Origin")&&("number"!=typeof n&&"string"!=typeof n||(a[r]="auto"!==n||"left"!==r&&"top"!==r?""!==n&&"auto"!==n&&"none"!==n||"string"!=typeof t[r]||""===t[r].replace(S,"")?n:0:ee(e,r),void 0!==d[r]&&(l=new me(d,r,d[r],l))));if(i)for(r in i)"className"!==r&&(a[r]=i[r]);return{difs:a,firstMPT:l}},ie={width:["Left","Right"],height:["Top","Bottom"]},se=["marginLeft","marginRight","marginTop","marginBottom"],ne=function(e,t,o){if("svg"===(e.nodeName+"").toLowerCase())return(o||J(e))[t]||0;if(e.getBBox&&Me(e))return e.getBBox()[t]||0;var i=parseFloat("width"===t?e.offsetWidth:e.offsetHeight),s=ie[t],n=s.length;for(o=o||J(e,null);--n>-1;)i-=parseFloat($(e,"padding"+s[n],o,!0))||0,i-=parseFloat($(e,"border"+s[n]+"Width",o,!0))||0;return i},re=function(e,t){if("contain"===e||"auto"===e||"auto auto"===e)return e+" ";null!=e&&""!==e||(e="0 0");var o,i=e.split(" "),s=-1!==e.indexOf("left")?"0%":-1!==e.indexOf("right")?"100%":i[0],n=-1!==e.indexOf("top")?"0%":-1!==e.indexOf("bottom")?"100%":i[1];if(i.length>3&&!t){for(i=e.split(", ").join(",").split(","),e=[],o=0;o<i.length;o++)e.push(re(i[o]));return e.join(",")}return null==n?n="center"===s?"50%":"0":"center"===n&&(n="50%"),("center"===s||isNaN(parseFloat(s))&&-1===(s+"").indexOf("="))&&(s="50%"),e=s+" "+n+(i.length>2?" "+i[2]:""),t&&(t.oxp=-1!==s.indexOf("%"),t.oyp=-1!==n.indexOf("%"),t.oxr="="===s.charAt(1),t.oyr="="===n.charAt(1),t.ox=parseFloat(s.replace(S,"")),t.oy=parseFloat(n.replace(S,"")),t.v=e),t||e},le=function(e,t){return"function"==typeof e&&(e=e(m,b)),"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2)):parseFloat(e)-parseFloat(t)||0},ae=function(e,t){return"function"==typeof e&&(e=e(m,b)),null==e?t:"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2))+t:parseFloat(e)||0},de=function(e,t,o,i){var s,n,r,l,a;return"function"==typeof e&&(e=e(m,b)),null==e?l=t:"number"==typeof e?l=e:(s=360,n=e.split("_"),r=((a="="===e.charAt(1))?parseInt(e.charAt(0)+"1",10)*parseFloat(n[0].substr(2)):parseFloat(n[0]))*(-1===e.indexOf("rad")?1:L)-(a?0:t),n.length&&(i&&(i[o]=t+r),-1!==e.indexOf("short")&&(r%=s)!==r%(s/2)&&(r=r<0?r+s:r-s),-1!==e.indexOf("_cw")&&r<0?r=(r+9999999999*s)%s-(r/s|0)*s:-1!==e.indexOf("ccw")&&r>0&&(r=(r-9999999999*s)%s-(r/s|0)*s)),l=t+r),l<1e-6&&l>-1e-6&&(l=0),l},ue={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},he=function(e,t,o){return e=e<0?e+1:e>1?e-1:e,255*(6*e<1?t+(o-t)*e*6:e<.5?o:3*e<2?t+(o-t)*(2/3-e)*6:t)+.5|0},_e=r.parseColor=function(e,t){var o,i,s,n,r,l,a,d,u,h,_;if(e)if("number"==typeof e)o=[e>>16,e>>8&255,255&e];else{if(","===e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)),ue[e])o=ue[e];else if("#"===e.charAt(0))4===e.length&&(e="#"+(i=e.charAt(1))+i+(s=e.charAt(2))+s+(n=e.charAt(3))+n),o=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e];else if("hsl"===e.substr(0,3))if(o=_=e.match(g),t){if(-1!==e.indexOf("="))return e.match(y)}else r=Number(o[0])%360/360,l=Number(o[1])/100,i=2*(a=Number(o[2])/100)-(s=a<=.5?a*(l+1):a+l-a*l),o.length>3&&(o[3]=Number(e[3])),o[0]=he(r+1/3,i,s),o[1]=he(r,i,s),o[2]=he(r-1/3,i,s);else o=e.match(g)||ue.transparent;o[0]=Number(o[0]),o[1]=Number(o[1]),o[2]=Number(o[2]),o.length>3&&(o[3]=Number(o[3]))}else o=ue.black;return t&&!_&&(i=o[0]/255,s=o[1]/255,n=o[2]/255,a=((d=Math.max(i,s,n))+(u=Math.min(i,s,n)))/2,d===u?r=l=0:(h=d-u,l=a>.5?h/(2-d-u):h/(d+u),r=d===i?(s-n)/h+(s<n?6:0):d===s?(n-i)/h+2:(i-s)/h+4,r*=60),o[0]=r+.5|0,o[1]=100*l+.5|0,o[2]=100*a+.5|0),o},ce=function(e,t){var o,i,s,n=e.match(fe)||[],r=0,l=n.length?"":e;for(o=0;o<n.length;o++)i=n[o],r+=(s=e.substr(r,e.indexOf(i,r)-r)).length+i.length,3===(i=_e(i,t)).length&&i.push(1),l+=s+(t?"hsla("+i[0]+","+i[1]+"%,"+i[2]+"%,"+i[3]:"rgba("+i.join(","))+")";return l+e.substr(r)},fe="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(d in ue)fe+="|"+d+"\\b";fe=new RegExp(fe+")","gi"),r.colorStringFilter=function(e){var t,o=e[0]+e[1];fe.test(o)&&(t=-1!==o.indexOf("hsl(")||-1!==o.indexOf("hsla("),e[0]=ce(e[0],t),e[1]=ce(e[1],t)),fe.lastIndex=0},t.defaultStringFilter||(t.defaultStringFilter=r.colorStringFilter);var pe=function(e,t,o,i){if(null==e)return function(e){return e};var s,n=t?(e.match(fe)||[""])[0]:"",r=e.split(n).join("").match(v)||[],l=e.substr(0,e.indexOf(r[0])),a=")"===e.charAt(e.length-1)?")":"",d=-1!==e.indexOf(" ")?" ":",",u=r.length,h=u>0?r[0].replace(g,""):"";return u?s=t?function(e){var t,_,c,f;if("number"==typeof e)e+=h;else if(i&&V.test(e)){for(f=e.replace(V,"|").split("|"),c=0;c<f.length;c++)f[c]=s(f[c]);return f.join(",")}if(t=(e.match(fe)||[n])[0],_=e.split(t).join("").match(v)||[],c=_.length,u>c--)for(;++c<u;)_[c]=o?_[(c-1)/2|0]:r[c];return l+_.join(d)+d+t+a+(-1!==e.indexOf("inset")?" inset":"")}:function(e){var t,n,_;if("number"==typeof e)e+=h;else if(i&&V.test(e)){for(n=e.replace(V,"|").split("|"),_=0;_<n.length;_++)n[_]=s(n[_]);return n.join(",")}if(t=e.match(v)||[],_=t.length,u>_--)for(;++_<u;)t[_]=o?t[(_-1)/2|0]:r[_];return l+t.join(d)+a}:function(e){return e}},be=function(e){return e=e.split(","),function(t,o,i,s,n,r,l){var a,d=(o+"").split(" ");for(l={},a=0;a<4;a++)l[e[a]]=d[a]=d[a]||d[(a-1)/2>>0];return s.parse(t,l,n,r)}},me=(Y._setPluginRatio=function(e){this.plugin.setRatio(e);for(var t,o,i,s,n,r=this.data,l=r.proxy,a=r.firstMPT;a;)t=l[a.v],a.r?t=Math.round(t):t<1e-6&&t>-1e-6&&(t=0),a.t[a.p]=t,a=a._next;if(r.autoRotate&&(r.autoRotate.rotation=r.mod?r.mod(l.rotation,this.t):l.rotation),1===e||0===e)for(a=r.firstMPT,n=1===e?"e":"b";a;){if((o=a.t).type){if(1===o.type){for(s=o.xs0+o.s+o.xs1,i=1;i<o.l;i++)s+=o["xn"+i]+o["xs"+(i+1)];o[n]=s}}else o[n]=o.s+o.xs0;a=a._next}},function(e,t,o,i,s){this.t=e,this.p=t,this.v=o,this.r=s,i&&(i._prev=this,this._next=i)}),ge=(Y._parseToProxy=function(e,t,o,i,s,n){var r,l,a,d,u,h=i,_={},c={},f=o._transform,p=M;for(o._transform=null,M=t,i=u=o.parse(e,t,i,s),M=p,n&&(o._transform=f,h&&(h._prev=null,h._prev&&(h._prev._next=null)));i&&i!==h;){if(i.type<=1&&(l=i.p,c[l]=i.s+i.c,_[l]=i.s,n||(d=new me(i,"s",l,d,i.r),i.c=0),1===i.type))for(r=i.l;--r>0;)a="xn"+r,c[l=i.p+"_"+a]=i.data[a],_[l]=i[a],n||(d=new me(i,a,l,d,i.rxp[a]));i=i._next}return{proxy:_,end:c,firstMPT:d,pt:u}},Y.CSSPropTween=function(e,t,i,s,r,l,a,d,u,h,_){this.t=e,this.p=t,this.s=i,this.c=s,this.n=a||t,e instanceof ge||n.push(this.n),this.r=d,this.type=l||0,u&&(this.pr=u,o=!0),this.b=void 0===h?i:h,this.e=void 0===_?i+s:_,r&&(this._next=r,r._prev=this)}),ye=function(e,t,o,i,s,n){var r=new ge(e,t,o,i-o,s,-1,n);return r.b=o,r.e=r.xs0=i,r},ve=r.parseComplex=function(e,t,o,i,s,n,l,a,d,h){o=o||n||"","function"==typeof i&&(i=i(m,b)),l=new ge(e,t,0,0,l,h?2:1,null,!1,a,o,i),i+="",s&&fe.test(i+o)&&(i=[o,i],r.colorStringFilter(i),o=i[0],i=i[1]);var _,c,f,p,v,S,P,E,w,T,D,W,B,C=o.split(", ").join(",").split(" "),F=i.split(", ").join(",").split(" "),k=C.length,H=!1!==u;for(-1===i.indexOf(",")&&-1===o.indexOf(",")||(C=C.join(" ").replace(V,", ").split(" "),F=F.join(" ").replace(V,", ").split(" "),k=C.length),k!==F.length&&(k=(C=(n||"").split(" ")).length),l.plugin=d,l.setRatio=h,fe.lastIndex=0,_=0;_<k;_++)if(p=C[_],v=F[_],(E=parseFloat(p))||0===E)l.appendXtra("",E,le(v,E),v.replace(y,""),H&&-1!==v.indexOf("px"),!0);else if(s&&fe.test(p))W=")"+((W=v.indexOf(")")+1)?v.substr(W):""),B=-1!==v.indexOf("hsl")&&j,p=_e(p,B),v=_e(v,B),(w=p.length+v.length>6)&&!j&&0===v[3]?(l["xs"+l.l]+=l.l?" transparent":"transparent",l.e=l.e.split(F[_]).join("transparent")):(j||(w=!1),B?l.appendXtra(w?"hsla(":"hsl(",p[0],le(v[0],p[0]),",",!1,!0).appendXtra("",p[1],le(v[1],p[1]),"%,",!1).appendXtra("",p[2],le(v[2],p[2]),w?"%,":"%"+W,!1):l.appendXtra(w?"rgba(":"rgb(",p[0],v[0]-p[0],",",!0,!0).appendXtra("",p[1],v[1]-p[1],",",!0).appendXtra("",p[2],v[2]-p[2],w?",":W,!0),w&&(p=p.length<4?1:p[3],l.appendXtra("",p,(v.length<4?1:v[3])-p,W,!1))),fe.lastIndex=0;else if(S=p.match(g)){if(!(P=v.match(y))||P.length!==S.length)return l;for(f=0,c=0;c<S.length;c++)D=S[c],T=p.indexOf(D,f),l.appendXtra(p.substr(f,T-f),Number(D),le(P[c],D),"",H&&"px"===p.substr(T+D.length,2),0===c),f=T+D.length;l["xs"+l.l]+=p.substr(f)}else l["xs"+l.l]+=l.l||l["xs"+l.l]?" "+v:v;if(-1!==i.indexOf("=")&&l.data){for(W=l.xs0+l.data.s,_=1;_<l.l;_++)W+=l["xs"+_]+l.data["xn"+_];l.e=W+l["xs"+_]}return l.l||(l.type=-1,l.xs0=l.e),l.xfirst||l},Se=9;for((d=ge.prototype).l=d.pr=0;--Se>0;)d["xn"+Se]=0,d["xs"+Se]="";d.xs0="",d._next=d._prev=d.xfirst=d.data=d.plugin=d.setRatio=d.rxp=null,d.appendXtra=function(e,t,o,i,s,n){var r=this,l=r.l;return r["xs"+l]+=n&&(l||r["xs"+l])?" "+e:e||"",o||0===l||r.plugin?(r.l++,r.type=r.setRatio?2:1,r["xs"+r.l]=i||"",l>0?(r.data["xn"+l]=t+o,r.rxp["xn"+l]=s,r["xn"+l]=t,r.plugin||(r.xfirst=new ge(r,"xn"+l,t,o,r.xfirst||r,0,r.n,s,r.pr),r.xfirst.xs0=0),r):(r.data={s:t+o},r.rxp={},r.s=t,r.c=o,r.r=s,r)):(r["xs"+l]+=t+(i||""),r)};var Pe=function(e,t){t=t||{},this.p=t.prefix?K(e)||e:e,a[e]=a[this.p]=this,this.format=t.formatter||pe(t.defaultValue,t.color,t.collapsible,t.multi),t.parser&&(this.parse=t.parser),this.clrs=t.color,this.multi=t.multi,this.keyword=t.keyword,this.dflt=t.defaultValue,this.pr=t.priority||0},Ee=Y._registerComplexSpecialProp=function(e,t,o){"object"!=typeof t&&(t={parser:o});var i,s=e.split(","),n=t.defaultValue;for(o=o||[n],i=0;i<s.length;i++)t.prefix=0===i&&t.prefix,t.defaultValue=o[i]||n,new Pe(s[i],t)},we=Y._registerPluginProp=function(e){if(!a[e]){var t=e.charAt(0).toUpperCase()+e.substr(1)+"Plugin";Ee(e,{parser:function(e,o,i,s,n,r,d){var u=l.com.greensock.plugins[t];return u?(u._cssRegister(),a[i].parse(e,o,i,s,n,r,d)):(Q("Error: "+t+" js file not loaded."),n)}})}};(d=Pe.prototype).parseComplex=function(e,t,o,i,s,n){var r,l,a,d,u,h,_=this.keyword;if(this.multi&&(V.test(o)||V.test(t)?(l=t.replace(V,"|").split("|"),a=o.replace(V,"|").split("|")):_&&(l=[t],a=[o])),a){for(d=a.length>l.length?a.length:l.length,r=0;r<d;r++)t=l[r]=l[r]||this.dflt,o=a[r]=a[r]||this.dflt,_&&(u=t.indexOf(_))!==(h=o.indexOf(_))&&(-1===h?l[r]=l[r].split(_).join(""):-1===u&&(l[r]+=" "+_));t=l.join(", "),o=a.join(", ")}return ve(e,this.p,t,o,this.clrs,this.dflt,i,this.pr,s,n)},d.parse=function(e,t,o,i,n,r,l){return this.parseComplex(e.style,this.format($(e,this.p,s,!1,this.dflt)),this.format(t),n,r)},r.registerSpecialProp=function(e,t,o){Ee(e,{parser:function(e,i,s,n,r,l,a){var d=new ge(e,s,0,0,r,2,s,!1,o);return d.plugin=l,d.setRatio=t(e,i,n._tween,s),d},priority:o})},r.useSVGTransformAttr=_||c;var Te,De="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),We=K("transform"),Be=G+"transform",Ce=K("transformOrigin"),Fe=null!==K("perspective"),ke=Y.Transform=function(){this.perspective=parseFloat(r.defaultTransformPerspective)||0,this.force3D=!(!1===r.defaultForce3D||!Fe)&&(r.defaultForce3D||"auto")},He=window.SVGElement,Oe=function(e,t,o){var i,s=I.createElementNS("http://www.w3.org/2000/svg",e),n=/([a-z])([A-Z])/g;for(i in o)s.setAttributeNS(null,i.replace(n,"$1-$2").toLowerCase(),o[i]);return t.appendChild(s),s},Ve=I.documentElement,Ae=function(){var e,t,o,i=p||/Android/i.test(N)&&!window.chrome;return I.createElementNS&&!i&&(e=Oe("svg",Ve),o=(t=Oe("rect",e,{width:100,height:50,x:100})).getBoundingClientRect().width,t.style[Ce]="50% 50%",t.style[We]="scaleX(0.5)",i=o===t.getBoundingClientRect().width&&!(c&&Fe),Ve.removeChild(e)),i}(),xe=function(e,t,o,i,s,n){var l,a,d,u,h,_,c,f,p,b,m,g,y,v,S=e._gsTransform,P=Re(e,!0);S&&(y=S.xOrigin,v=S.yOrigin),(!i||(l=i.split(" ")).length<2)&&(c=e.getBBox(),l=[(-1!==(t=re(t).split(" "))[0].indexOf("%")?parseFloat(t[0])/100*c.width:parseFloat(t[0]))+c.x,(-1!==t[1].indexOf("%")?parseFloat(t[1])/100*c.height:parseFloat(t[1]))+c.y]),o.xOrigin=u=parseFloat(l[0]),o.yOrigin=h=parseFloat(l[1]),i&&P!==Ie&&(_=P[0],c=P[1],f=P[2],p=P[3],b=P[4],a=u*(p/(g=_*p-c*f))+h*(-f/g)+(f*(m=P[5])-p*b)/g,d=u*(-c/g)+h*(_/g)-(_*m-c*b)/g,u=o.xOrigin=l[0]=a,h=o.yOrigin=l[1]=d),S&&(n&&(o.xOffset=S.xOffset,o.yOffset=S.yOffset,S=o),s||!1!==s&&!1!==r.defaultSmoothOrigin?(a=u-y,d=h-v,S.xOffset+=a*P[0]+d*P[2]-a,S.yOffset+=a*P[1]+d*P[3]-d):S.xOffset=S.yOffset=0),n||e.setAttribute("data-svg-origin",l.join(" "))},Le=function(e){try{return e.getBBox()}catch(e){}},Me=function(e){return!!(He&&e.getBBox&&e.getCTM&&Le(e)&&(!e.parentNode||e.parentNode.getBBox&&e.parentNode.getCTM))},Ie=[1,0,0,1,0,0],Re=function(e,t){var o,i,s,n,r,l,a=e._gsTransform||new ke,d=e.style;if(We?i=$(e,Be,null,!0):e.currentStyle&&(i=(i=e.currentStyle.filter.match(H))&&4===i.length?[i[0].substr(4),Number(i[2].substr(4)),Number(i[1].substr(4)),i[3].substr(4),a.x||0,a.y||0].join(","):""),(o=!i||"none"===i||"matrix(1, 0, 0, 1, 0, 0)"===i)&&We&&((l="none"===J(e).display)||!e.parentNode)&&(l&&(n=d.display,d.display="block"),e.parentNode||(r=1,Ve.appendChild(e)),o=!(i=$(e,Be,null,!0))||"none"===i||"matrix(1, 0, 0, 1, 0, 0)"===i,n?d.display=n:l&&je(d,"display"),r&&Ve.removeChild(e)),(a.svg||e.getBBox&&Me(e))&&(o&&-1!==(d[We]+"").indexOf("matrix")&&(i=d[We],o=0),s=e.getAttribute("transform"),o&&s&&(-1!==s.indexOf("matrix")?(i=s,o=0):-1!==s.indexOf("translate")&&(i="matrix(1,0,0,1,"+s.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",o=0))),o)return Ie;for(s=(i||"").match(g)||[],Se=s.length;--Se>-1;)n=Number(s[Se]),s[Se]=(r=n-(n|=0))?(1e5*r+(r<0?-.5:.5)|0)/1e5+n:n;return t&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s},Ue=Y.getTransform=function(e,o,i,s){if(e._gsTransform&&i&&!s)return e._gsTransform;var n,l,a,d,u,h,_=i?e._gsTransform||new ke:new ke,c=_.scaleX<0,f=Fe?parseFloat($(e,Ce,o,!1,"0 0 0").split(" ")[2])||_.zOrigin||0:0,p=parseFloat(r.defaultTransformPerspective)||0;if(_.svg=!(!e.getBBox||!Me(e)),_.svg&&(xe(e,$(e,Ce,o,!1,"50% 50%")+"",_,e.getAttribute("data-svg-origin")),Te=r.useSVGTransformAttr||Ae),(n=Re(e))!==Ie){if(16===n.length){var b,m,g,y,v,S=n[0],P=n[1],E=n[2],w=n[3],T=n[4],D=n[5],W=n[6],B=n[7],C=n[8],F=n[9],k=n[10],H=n[12],O=n[13],V=n[14],A=n[11],x=Math.atan2(W,k);_.zOrigin&&(H=C*(V=-_.zOrigin)-n[12],O=F*V-n[13],V=k*V+_.zOrigin-n[14]),_.rotationX=x*L,x&&(b=T*(y=Math.cos(-x))+C*(v=Math.sin(-x)),m=D*y+F*v,g=W*y+k*v,C=T*-v+C*y,F=D*-v+F*y,k=W*-v+k*y,A=B*-v+A*y,T=b,D=m,W=g),x=Math.atan2(-E,k),_.rotationY=x*L,x&&(m=P*(y=Math.cos(-x))-F*(v=Math.sin(-x)),g=E*y-k*v,F=P*v+F*y,k=E*v+k*y,A=w*v+A*y,S=b=S*y-C*v,P=m,E=g),x=Math.atan2(P,S),_.rotation=x*L,x&&(S=S*(y=Math.cos(-x))+T*(v=Math.sin(-x)),m=P*y+D*v,D=P*-v+D*y,W=E*-v+W*y,P=m),_.rotationX&&Math.abs(_.rotationX)+Math.abs(_.rotation)>359.9&&(_.rotationX=_.rotation=0,_.rotationY=180-_.rotationY),_.scaleX=(1e5*Math.sqrt(S*S+P*P)+.5|0)/1e5,_.scaleY=(1e5*Math.sqrt(D*D+F*F)+.5|0)/1e5,_.scaleZ=(1e5*Math.sqrt(W*W+k*k)+.5|0)/1e5,_.rotationX||_.rotationY?_.skewX=0:(_.skewX=T||D?Math.atan2(T,D)*L+_.rotation:_.skewX||0,Math.abs(_.skewX)>90&&Math.abs(_.skewX)<270&&(c?(_.scaleX*=-1,_.skewX+=_.rotation<=0?180:-180,_.rotation+=_.rotation<=0?180:-180):(_.scaleY*=-1,_.skewX+=_.skewX<=0?180:-180))),_.perspective=A?1/(A<0?-A:A):0,_.x=H,_.y=O,_.z=V,_.svg&&(_.x-=_.xOrigin-(_.xOrigin*S-_.yOrigin*T),_.y-=_.yOrigin-(_.yOrigin*P-_.xOrigin*D))}else if(!Fe||s||!n.length||_.x!==n[4]||_.y!==n[5]||!_.rotationX&&!_.rotationY){var M=n.length>=6,I=M?n[0]:1,R=n[1]||0,U=n[2]||0,X=M?n[3]:1;_.x=n[4]||0,_.y=n[5]||0,a=Math.sqrt(I*I+R*R),d=Math.sqrt(X*X+U*U),u=I||R?Math.atan2(R,I)*L:_.rotation||0,h=U||X?Math.atan2(U,X)*L+u:_.skewX||0,Math.abs(h)>90&&Math.abs(h)<270&&(c?(a*=-1,h+=u<=0?180:-180,u+=u<=0?180:-180):(d*=-1,h+=h<=0?180:-180)),_.scaleX=a,_.scaleY=d,_.rotation=u,_.skewX=h,Fe&&(_.rotationX=_.rotationY=_.z=0,_.perspective=p,_.scaleZ=1),_.svg&&(_.x-=_.xOrigin-(_.xOrigin*I+_.yOrigin*U),_.y-=_.yOrigin-(_.xOrigin*R+_.yOrigin*X))}_.zOrigin=f;for(l in _)_[l]<2e-5&&_[l]>-2e-5&&(_[l]=0)}return i&&(e._gsTransform=_,_.svg&&(Te&&e.style[We]?t.delayedCall(.001,function(){je(e.style,We)}):!Te&&e.getAttribute("transform")&&t.delayedCall(.001,function(){e.removeAttribute("transform")}))),_},Xe=function(e){var t,o,i=this.data,s=-i.rotation*x,n=s+i.skewX*x,r=(Math.cos(s)*i.scaleX*1e5|0)/1e5,l=(Math.sin(s)*i.scaleX*1e5|0)/1e5,a=(Math.sin(n)*-i.scaleY*1e5|0)/1e5,d=(Math.cos(n)*i.scaleY*1e5|0)/1e5,u=this.t.style,h=this.t.currentStyle;if(h){o=l,l=-a,a=-o,t=h.filter,u.filter="";var _,c,f=this.t.offsetWidth,b=this.t.offsetHeight,m="absolute"!==h.position,g="progid:DXImageTransform.Microsoft.Matrix(M11="+r+", M12="+l+", M21="+a+", M22="+d,y=i.x+f*i.xPercent/100,v=i.y+b*i.yPercent/100;if(null!=i.ox&&(y+=(_=(i.oxp?f*i.ox*.01:i.ox)-f/2)-(_*r+(c=(i.oyp?b*i.oy*.01:i.oy)-b/2)*l),v+=c-(_*a+c*d)),g+=m?", Dx="+((_=f/2)-(_*r+(c=b/2)*l)+y)+", Dy="+(c-(_*a+c*d)+v)+")":", sizingMethod='auto expand')",-1!==t.indexOf("DXImageTransform.Microsoft.Matrix(")?u.filter=t.replace(O,g):u.filter=g+" "+t,0!==e&&1!==e||1===r&&0===l&&0===a&&1===d&&(m&&-1===g.indexOf("Dx=0, Dy=0")||E.test(t)&&100!==parseFloat(RegExp.$1)||-1===t.indexOf(t.indexOf("Alpha"))&&u.removeAttribute("filter")),!m){var S,w,T,D=p<8?1:-1;for(_=i.ieOffsetX||0,c=i.ieOffsetY||0,i.ieOffsetX=Math.round((f-((r<0?-r:r)*f+(l<0?-l:l)*b))/2+y),i.ieOffsetY=Math.round((b-((d<0?-d:d)*b+(a<0?-a:a)*f))/2+v),Se=0;Se<4;Se++)T=(o=-1!==(S=h[w=se[Se]]).indexOf("px")?parseFloat(S):Z(this.t,w,parseFloat(S),S.replace(P,""))||0)!==i[w]?Se<2?-i.ieOffsetX:-i.ieOffsetY:Se<2?_-i.ieOffsetX:c-i.ieOffsetY,u[w]=(i[w]=Math.round(o-T*(0===Se||2===Se?1:D)))+"px"}}},Ye=Y.set3DTransformRatio=Y.setTransformRatio=function(e){var t,o,i,s,n,r,l,a,d,u,h,_,f,p,b,m,g,y,v,S,P,E=this.data,w=this.t.style,T=E.rotation,D=E.rotationX,W=E.rotationY,B=E.scaleX,C=E.scaleY,F=E.scaleZ,k=E.x,H=E.y,O=E.z,V=E.svg,A=E.perspective,L=E.force3D;if(!((1!==e&&0!==e||"auto"!==L||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&L||O||A||W||D||1!==F)||Te&&V||!Fe)T||E.skewX||V?(T*=x,S=E.skewX*x,P=1e5,t=Math.cos(T)*B,s=Math.sin(T)*B,o=Math.sin(T-S)*-C,n=Math.cos(T-S)*C,S&&"simple"===E.skewType&&(g=Math.tan(S-E.skewY*x),o*=g=Math.sqrt(1+g*g),n*=g,E.skewY&&(g=Math.tan(E.skewY*x),t*=g=Math.sqrt(1+g*g),s*=g)),V&&(k+=E.xOrigin-(E.xOrigin*t+E.yOrigin*o)+E.xOffset,H+=E.yOrigin-(E.xOrigin*s+E.yOrigin*n)+E.yOffset,Te&&(E.xPercent||E.yPercent)&&(p=this.t.getBBox(),k+=.01*E.xPercent*p.width,H+=.01*E.yPercent*p.height),k<(p=1e-6)&&k>-p&&(k=0),H<p&&H>-p&&(H=0)),v=(t*P|0)/P+","+(s*P|0)/P+","+(o*P|0)/P+","+(n*P|0)/P+","+k+","+H+")",V&&Te?this.t.setAttribute("transform","matrix("+v):w[We]=(E.xPercent||E.yPercent?"translate("+E.xPercent+"%,"+E.yPercent+"%) matrix(":"matrix(")+v):w[We]=(E.xPercent||E.yPercent?"translate("+E.xPercent+"%,"+E.yPercent+"%) matrix(":"matrix(")+B+",0,0,"+C+","+k+","+H+")";else{if(c&&(B<(p=1e-4)&&B>-p&&(B=F=2e-5),C<p&&C>-p&&(C=F=2e-5),!A||E.z||E.rotationX||E.rotationY||(A=0)),T||E.skewX)T*=x,b=t=Math.cos(T),m=s=Math.sin(T),E.skewX&&(T-=E.skewX*x,b=Math.cos(T),m=Math.sin(T),"simple"===E.skewType&&(g=Math.tan((E.skewX-E.skewY)*x),b*=g=Math.sqrt(1+g*g),m*=g,E.skewY&&(g=Math.tan(E.skewY*x),t*=g=Math.sqrt(1+g*g),s*=g))),o=-m,n=b;else{if(!(W||D||1!==F||A||V))return void(w[We]=(E.xPercent||E.yPercent?"translate("+E.xPercent+"%,"+E.yPercent+"%) translate3d(":"translate3d(")+k+"px,"+H+"px,"+O+"px)"+(1!==B||1!==C?" scale("+B+","+C+")":""));t=n=1,o=s=0}d=1,i=r=l=a=u=h=0,_=A?-1/A:0,f=E.zOrigin,p=1e-6,",","0",(T=W*x)&&(b=Math.cos(T),l=-(m=Math.sin(T)),u=_*-m,i=t*m,r=s*m,d=b,_*=b,t*=b,s*=b),(T=D*x)&&(g=o*(b=Math.cos(T))+i*(m=Math.sin(T)),y=n*b+r*m,a=d*m,h=_*m,i=o*-m+i*b,r=n*-m+r*b,d*=b,_*=b,o=g,n=y),1!==F&&(i*=F,r*=F,d*=F,_*=F),1!==C&&(o*=C,n*=C,a*=C,h*=C),1!==B&&(t*=B,s*=B,l*=B,u*=B),(f||V)&&(f&&(k+=i*-f,H+=r*-f,O+=d*-f+f),V&&(k+=E.xOrigin-(E.xOrigin*t+E.yOrigin*o)+E.xOffset,H+=E.yOrigin-(E.xOrigin*s+E.yOrigin*n)+E.yOffset),k<p&&k>-p&&(k="0"),H<p&&H>-p&&(H="0"),O<p&&O>-p&&(O=0)),v=E.xPercent||E.yPercent?"translate("+E.xPercent+"%,"+E.yPercent+"%) matrix3d(":"matrix3d(",v+=(t<p&&t>-p?"0":t)+","+(s<p&&s>-p?"0":s)+","+(l<p&&l>-p?"0":l),v+=","+(u<p&&u>-p?"0":u)+","+(o<p&&o>-p?"0":o)+","+(n<p&&n>-p?"0":n),D||W||1!==F?(v+=","+(a<p&&a>-p?"0":a)+","+(h<p&&h>-p?"0":h)+","+(i<p&&i>-p?"0":i),v+=","+(r<p&&r>-p?"0":r)+","+(d<p&&d>-p?"0":d)+","+(_<p&&_>-p?"0":_)+","):v+=",0,0,0,0,1,0,",v+=k+","+H+","+O+","+(A?1+-O/A:1)+")",w[We]=v}};(d=ke.prototype).x=d.y=d.z=d.skewX=d.skewY=d.rotation=d.rotationX=d.rotationY=d.zOrigin=d.xPercent=d.yPercent=d.xOffset=d.yOffset=0,d.scaleX=d.scaleY=d.scaleZ=1,Ee("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(e,t,o,i,n,l,a){if(i._lastParsedTransform===a)return n;i._lastParsedTransform=a;var d;"function"==typeof a[o]&&(d=a[o],a[o]=t);var u,h,_,c,f,p,g,y,v,S=e._gsTransform,P=e.style,E=De.length,w=a,T={},D=Ue(e,s,!0,w.parseTransform),W=w.transform&&("function"==typeof w.transform?w.transform(m,b):w.transform);if(i._transform=D,W&&"string"==typeof W&&We)(h=U.style)[We]=W,h.display="block",h.position="absolute",I.body.appendChild(U),u=Ue(U,null,!1),D.svg&&(p=D.xOrigin,g=D.yOrigin,u.x-=D.xOffset,u.y-=D.yOffset,(w.transformOrigin||w.svgOrigin)&&(W={},xe(e,re(w.transformOrigin),W,w.svgOrigin,w.smoothOrigin,!0),p=W.xOrigin,g=W.yOrigin,u.x-=W.xOffset-D.xOffset,u.y-=W.yOffset-D.yOffset),(p||g)&&(y=Re(U,!0),u.x-=p-(p*y[0]+g*y[2]),u.y-=g-(p*y[1]+g*y[3]))),I.body.removeChild(U),u.perspective||(u.perspective=D.perspective),null!=w.xPercent&&(u.xPercent=ae(w.xPercent,D.xPercent)),null!=w.yPercent&&(u.yPercent=ae(w.yPercent,D.yPercent));else if("object"==typeof w){if(u={scaleX:ae(null!=w.scaleX?w.scaleX:w.scale,D.scaleX),scaleY:ae(null!=w.scaleY?w.scaleY:w.scale,D.scaleY),scaleZ:ae(w.scaleZ,D.scaleZ),x:ae(w.x,D.x),y:ae(w.y,D.y),z:ae(w.z,D.z),xPercent:ae(w.xPercent,D.xPercent),yPercent:ae(w.yPercent,D.yPercent),perspective:ae(w.transformPerspective,D.perspective)},null!=(f=w.directionalRotation))if("object"==typeof f)for(h in f)w[h]=f[h];else w.rotation=f;"string"==typeof w.x&&-1!==w.x.indexOf("%")&&(u.x=0,u.xPercent=ae(w.x,D.xPercent)),"string"==typeof w.y&&-1!==w.y.indexOf("%")&&(u.y=0,u.yPercent=ae(w.y,D.yPercent)),u.rotation=de("rotation"in w?w.rotation:"shortRotation"in w?w.shortRotation+"_short":"rotationZ"in w?w.rotationZ:D.rotation-D.skewY,D.rotation-D.skewY,"rotation",T),Fe&&(u.rotationX=de("rotationX"in w?w.rotationX:"shortRotationX"in w?w.shortRotationX+"_short":D.rotationX||0,D.rotationX,"rotationX",T),u.rotationY=de("rotationY"in w?w.rotationY:"shortRotationY"in w?w.shortRotationY+"_short":D.rotationY||0,D.rotationY,"rotationY",T)),u.skewX=de(w.skewX,D.skewX-D.skewY),(u.skewY=de(w.skewY,D.skewY))&&(u.skewX+=u.skewY,u.rotation+=u.skewY)}for(Fe&&null!=w.force3D&&(D.force3D=w.force3D,c=!0),D.skewType=w.skewType||D.skewType||r.defaultSkewType,(_=D.force3D||D.z||D.rotationX||D.rotationY||u.z||u.rotationX||u.rotationY||u.perspective)||null==w.scale||(u.scaleZ=1);--E>-1;)((W=u[v=De[E]]-D[v])>1e-6||W<-1e-6||null!=w[v]||null!=M[v])&&(c=!0,n=new ge(D,v,D[v],W,n),v in T&&(n.e=T[v]),n.xs0=0,n.plugin=l,i._overwriteProps.push(n.n));return W=w.transformOrigin,D.svg&&(W||w.svgOrigin)&&(p=D.xOffset,g=D.yOffset,xe(e,re(W),u,w.svgOrigin,w.smoothOrigin),n=ye(D,"xOrigin",(S?D:u).xOrigin,u.xOrigin,n,"transformOrigin"),n=ye(D,"yOrigin",(S?D:u).yOrigin,u.yOrigin,n,"transformOrigin"),p===D.xOffset&&g===D.yOffset||(n=ye(D,"xOffset",S?p:D.xOffset,D.xOffset,n,"transformOrigin"),n=ye(D,"yOffset",S?g:D.yOffset,D.yOffset,n,"transformOrigin")),W=Te?null:"0px 0px"),(W||Fe&&_&&D.zOrigin)&&(We?(c=!0,v=Ce,W=(W||$(e,v,s,!1,"50% 50%"))+"",(n=new ge(P,v,0,0,n,-1,"transformOrigin")).b=P[v],n.plugin=l,Fe?(h=D.zOrigin,W=W.split(" "),D.zOrigin=(W.length>2&&(0===h||"0px"!==W[2])?parseFloat(W[2]):h)||0,n.xs0=n.e=W[0]+" "+(W[1]||"50%")+" 0px",(n=new ge(D,"zOrigin",0,0,n,-1,n.n)).b=h,n.xs0=n.e=D.zOrigin):n.xs0=n.e=W):re(W+"",D)),c&&(i._transformType=D.svg&&Te||!_&&3!==this._transformType?2:3),d&&(a[o]=d),n},prefix:!0}),Ee("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Ee("borderRadius",{defaultValue:"0px",parser:function(e,t,o,n,r,l){t=this.format(t);var a,d,u,h,_,c,f,p,b,m,g,y,v,S,P,E,w=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],T=e.style;for(b=parseFloat(e.offsetWidth),m=parseFloat(e.offsetHeight),a=t.split(" "),d=0;d<w.length;d++)this.p.indexOf("border")&&(w[d]=K(w[d])),-1!==(_=h=$(e,w[d],s,!1,"0px")).indexOf(" ")&&(_=(h=_.split(" "))[0],h=h[1]),c=u=a[d],f=parseFloat(_),y=_.substr((f+"").length),(v="="===c.charAt(1))?(p=parseInt(c.charAt(0)+"1",10),c=c.substr(2),p*=parseFloat(c),g=c.substr((p+"").length-(p<0?1:0))||""):(p=parseFloat(c),g=c.substr((p+"").length)),""===g&&(g=i[o]||y),g!==y&&(S=Z(e,"borderLeft",f,y),P=Z(e,"borderTop",f,y),"%"===g?(_=S/b*100+"%",h=P/m*100+"%"):"em"===g?(_=S/(E=Z(e,"borderLeft",1,"em"))+"em",h=P/E+"em"):(_=S+"px",h=P+"px"),v&&(c=parseFloat(_)+p+g,u=parseFloat(h)+p+g)),r=ve(T,w[d],_+" "+h,c+" "+u,!1,"0px",r);return r},prefix:!0,formatter:pe("0px 0px 0px 0px",!1,!0)}),Ee("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(e,t,o,i,n,r){return ve(e.style,o,this.format($(e,o,s,!1,"0px 0px")),this.format(t),!1,"0px",n)},prefix:!0,formatter:pe("0px 0px",!1,!0)}),Ee("backgroundPosition",{defaultValue:"0 0",parser:function(e,t,o,i,n,r){var l,a,d,u,h,_,c="background-position",f=s||J(e,null),b=this.format((f?p?f.getPropertyValue(c+"-x")+" "+f.getPropertyValue(c+"-y"):f.getPropertyValue(c):e.currentStyle.backgroundPositionX+" "+e.currentStyle.backgroundPositionY)||"0 0"),m=this.format(t);if(-1!==b.indexOf("%")!=(-1!==m.indexOf("%"))&&m.split(",").length<2&&(_=$(e,"backgroundImage").replace(C,""))&&"none"!==_){for(l=b.split(" "),a=m.split(" "),X.setAttribute("src",_),d=2;--d>-1;)(u=-1!==(b=l[d]).indexOf("%"))!==(-1!==a[d].indexOf("%"))&&(h=0===d?e.offsetWidth-X.width:e.offsetHeight-X.height,l[d]=u?parseFloat(b)/100*h+"px":parseFloat(b)/h*100+"%");b=l.join(" ")}return this.parseComplex(e.style,b,m,n,r)},formatter:re}),Ee("backgroundSize",{defaultValue:"0 0",formatter:function(e){return e+="",re(-1===e.indexOf(" ")?e+" "+e:e)}}),Ee("perspective",{defaultValue:"0px",prefix:!0}),Ee("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Ee("transformStyle",{prefix:!0}),Ee("backfaceVisibility",{prefix:!0}),Ee("userSelect",{prefix:!0}),Ee("margin",{parser:be("marginTop,marginRight,marginBottom,marginLeft")}),Ee("padding",{parser:be("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Ee("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(e,t,o,i,n,r){var l,a,d;return p<9?(a=e.currentStyle,d=p<8?" ":",",l="rect("+a.clipTop+d+a.clipRight+d+a.clipBottom+d+a.clipLeft+")",t=this.format(t).split(",").join(d)):(l=this.format($(e,this.p,s,!1,this.dflt)),t=this.format(t)),this.parseComplex(e.style,l,t,n,r)}}),Ee("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Ee("autoRound,strictUnits",{parser:function(e,t,o,i,s){return s}}),Ee("border",{defaultValue:"0px solid #000",parser:function(e,t,o,i,n,r){var l=$(e,"borderTopWidth",s,!1,"0px"),a=this.format(t).split(" "),d=a[0].replace(P,"");return"px"!==d&&(l=parseFloat(l)/Z(e,"borderTopWidth",1,d)+d),this.parseComplex(e.style,this.format(l+" "+$(e,"borderTopStyle",s,!1,"solid")+" "+$(e,"borderTopColor",s,!1,"#000")),a.join(" "),n,r)},color:!0,formatter:function(e){var t=e.split(" ");return t[0]+" "+(t[1]||"solid")+" "+(e.match(fe)||["#000"])[0]}}),Ee("borderWidth",{parser:be("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Ee("float,cssFloat,styleFloat",{parser:function(e,t,o,i,s,n){var r=e.style,l="cssFloat"in r?"cssFloat":"styleFloat";return new ge(r,l,0,0,s,-1,o,!1,0,r[l],t)}});var Ne=function(e){var t,o=this.t,i=o.filter||$(this.data,"filter")||"",s=this.s+this.c*e|0;100===s&&(-1===i.indexOf("atrix(")&&-1===i.indexOf("radient(")&&-1===i.indexOf("oader(")?(o.removeAttribute("filter"),t=!$(this.data,"filter")):(o.filter=i.replace(T,""),t=!0)),t||(this.xn1&&(o.filter=i=i||"alpha(opacity="+s+")"),-1===i.indexOf("pacity")?0===s&&this.xn1||(o.filter=i+" alpha(opacity="+s+")"):o.filter=i.replace(E,"opacity="+s))};Ee("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(e,t,o,i,n,r){var l=parseFloat($(e,"opacity",s,!1,"1")),a=e.style,d="autoAlpha"===o;return"string"==typeof t&&"="===t.charAt(1)&&(t=("-"===t.charAt(0)?-1:1)*parseFloat(t.substr(2))+l),d&&1===l&&"hidden"===$(e,"visibility",s)&&0!==t&&(l=0),j?n=new ge(a,"opacity",l,t-l,n):((n=new ge(a,"opacity",100*l,100*(t-l),n)).xn1=d?1:0,a.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=e,n.plugin=r,n.setRatio=Ne),d&&((n=new ge(a,"visibility",0,0,n,-1,null,!1,0,0!==l?"inherit":"hidden",0===t?"hidden":"inherit")).xs0="inherit",i._overwriteProps.push(n.n),i._overwriteProps.push(o)),n}});var je=function(e,t){t&&(e.removeProperty?("ms"!==t.substr(0,2)&&"webkit"!==t.substr(0,6)||(t="-"+t),e.removeProperty(t.replace(W,"-$1").toLowerCase())):e.removeAttribute(t))},ze=function(e){if(this.t._gsClassPT=this,1===e||0===e){this.t.setAttribute("class",0===e?this.b:this.e);for(var t=this.data,o=this.t.style;t;)t.v?o[t.p]=t.v:je(o,t.p),t=t._next;1===e&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Ee("className",{parser:function(e,t,i,n,r,l,a){var d,u,h,_,c,f=e.getAttribute("class")||"",p=e.style.cssText;if(r=n._classNamePT=new ge(e,i,0,0,r,2),r.setRatio=ze,r.pr=-11,o=!0,r.b=f,u=te(e,s),h=e._gsClassPT){for(_={},c=h.data;c;)_[c.p]=1,c=c._next;h.setRatio(1)}return e._gsClassPT=r,r.e="="!==t.charAt(1)?t:f.replace(new RegExp("(?:\\s|^)"+t.substr(2)+"(?![\\w-])"),"")+("+"===t.charAt(0)?" "+t.substr(2):""),e.setAttribute("class",r.e),d=oe(e,u,te(e),a,_),e.setAttribute("class",f),r.data=d.firstMPT,e.style.cssText=p,r=r.xfirst=n.parse(e,d.difs,r,l)}});var Qe=function(e){if((1===e||0===e)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var t,o,i,s,n,r=this.t.style,l=a.transform.parse;if("all"===this.e)r.cssText="",s=!0;else for(i=(t=this.e.split(" ").join("").split(",")).length;--i>-1;)o=t[i],a[o]&&(a[o].parse===l?s=!0:o="transformOrigin"===o?Ce:a[o].p),je(r,o);s&&(je(r,We),(n=this.t._gsTransform)&&(n.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Ee("clearProps",{parser:function(e,t,i,s,n){return n=new ge(e,i,0,0,n,2),n.setRatio=Qe,n.e=t,n.pr=-10,n.data=s._tween,o=!0,n}}),d="bezier,throwProps,physicsProps,physics2D".split(","),Se=d.length;Se--;)we(d[Se]);(d=r.prototype)._firstPT=d._lastParsedTransform=d._transform=null,d._onInitTween=function(e,t,l,d){if(!e.nodeType)return!1;this._target=b=e,this._tween=l,this._vars=t,m=d,u=t.autoRound,o=!1,i=t.suffixMap||r.suffixMap,s=J(e,""),n=this._overwriteProps;var c,p,g,y,v,S,P,E,T,D=e.style;if(h&&""===D.zIndex&&("auto"!==(c=$(e,"zIndex",s))&&""!==c||this._addLazySet(D,"zIndex",0)),"string"==typeof t&&(y=D.cssText,c=te(e,s),D.cssText=y+";"+t,c=oe(e,c,te(e)).difs,!j&&w.test(t)&&(c.opacity=parseFloat(RegExp.$1)),t=c,D.cssText=y),t.className?this._firstPT=p=a.className.parse(e,t.className,"className",this,null,null,t):this._firstPT=p=this.parse(e,t,null),this._transformType){for(T=3===this._transformType,We?_&&(h=!0,""===D.zIndex&&("auto"!==(P=$(e,"zIndex",s))&&""!==P||this._addLazySet(D,"zIndex",0)),f&&this._addLazySet(D,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(T?"visible":"hidden"))):D.zoom=1,g=p;g&&g._next;)g=g._next;E=new ge(e,"transform",0,0,null,2),this._linkCSSP(E,null,g),E.setRatio=We?Ye:Xe,E.data=this._transform||Ue(e,s,!0),E.tween=l,E.pr=-1,n.pop()}if(o){for(;p;){for(S=p._next,g=y;g&&g.pr>p.pr;)g=g._next;(p._prev=g?g._prev:v)?p._prev._next=p:y=p,(p._next=g)?g._prev=p:v=p,p=S}this._firstPT=y}return!0},d.parse=function(e,t,o,n){var r,l,d,h,_,c,f,p,g,y,v=e.style;for(r in t)"function"==typeof(c=t[r])&&(c=c(m,b)),(l=a[r])?o=l.parse(e,c,r,this,o,n,t):(_=$(e,r,s)+"",g="string"==typeof c,"color"===r||"fill"===r||"stroke"===r||-1!==r.indexOf("Color")||g&&D.test(c)?(g||(c=((c=_e(c)).length>3?"rgba(":"rgb(")+c.join(",")+")"),o=ve(v,r,_,c,!0,"transparent",o,0,n)):g&&A.test(c)?o=ve(v,r,_,c,!0,null,o,0,n):(f=(d=parseFloat(_))||0===d?_.substr((d+"").length):"",""!==_&&"auto"!==_||("width"===r||"height"===r?(d=ne(e,r,s),f="px"):"left"===r||"top"===r?(d=ee(e,r,s),f="px"):(d="opacity"!==r?0:1,f="")),(y=g&&"="===c.charAt(1))?(h=parseInt(c.charAt(0)+"1",10),c=c.substr(2),h*=parseFloat(c),p=c.replace(P,"")):(h=parseFloat(c),p=g?c.replace(P,""):""),""===p&&(p=r in i?i[r]:f),c=h||0===h?(y?h+d:h)+p:t[r],f!==p&&""!==p&&(h||0===h)&&d&&(d=Z(e,r,d,f),"%"===p?(d/=Z(e,r,100,"%")/100,!0!==t.strictUnits&&(_=d+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?d/=Z(e,r,1,p):"px"!==p&&(h=Z(e,r,h,p),p="px"),y&&(h||0===h)&&(c=h+d+p)),y&&(h+=d),!d&&0!==d||!h&&0!==h?void 0!==v[r]&&(c||c+""!="NaN"&&null!=c)?(o=new ge(v,r,h||d||0,0,o,-1,r,!1,0,_,c)).xs0="none"!==c||"display"!==r&&-1===r.indexOf("Style")?c:_:Q("invalid "+r+" tween value: "+t[r]):(o=new ge(v,r,d,h-d,o,0,r,!1!==u&&("px"===p||"zIndex"===r),0,_,c)).xs0=p)),n&&o&&!o.plugin&&(o.plugin=n);return o},d.setRatio=function(e){var t,o,i,s=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(;s;){if(t=s.c*e+s.s,s.r?t=Math.round(t):t<1e-6&&t>-1e-6&&(t=0),s.type)if(1===s.type)if(2===(i=s.l))s.t[s.p]=s.xs0+t+s.xs1+s.xn1+s.xs2;else if(3===i)s.t[s.p]=s.xs0+t+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3;else if(4===i)s.t[s.p]=s.xs0+t+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4;else if(5===i)s.t[s.p]=s.xs0+t+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4+s.xn4+s.xs5;else{for(o=s.xs0+t+s.xs1,i=1;i<s.l;i++)o+=s["xn"+i]+s["xs"+(i+1)];s.t[s.p]=o}else-1===s.type?s.t[s.p]=s.xs0:s.setRatio&&s.setRatio(e);else s.t[s.p]=t+s.xs0;s=s._next}else for(;s;)2!==s.type?s.t[s.p]=s.b:s.setRatio(e),s=s._next;else for(;s;){if(2!==s.type)if(s.r&&-1!==s.type)if(t=Math.round(s.s+s.c),s.type){if(1===s.type){for(i=s.l,o=s.xs0+t+s.xs1,i=1;i<s.l;i++)o+=s["xn"+i]+s["xs"+(i+1)];s.t[s.p]=o}}else s.t[s.p]=t+s.xs0;else s.t[s.p]=s.e;else s.setRatio(e);s=s._next}},d._enableTransforms=function(e){this._transform=this._transform||Ue(this._target,s,!0),this._transformType=this._transform.svg&&Te||!e&&3!==this._transformType?2:3};var Ge=function(e){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};d._addLazySet=function(e,t,o){var i=this._firstPT=new ge(e,t,0,0,this._firstPT,2);i.e=o,i.setRatio=Ge,i.data=this},d._linkCSSP=function(e,t,o,i){return e&&(t&&(t._prev=e),e._next&&(e._next._prev=e._prev),e._prev?e._prev._next=e._next:this._firstPT===e&&(this._firstPT=e._next,i=!0),o?o._next=e:i||null!==this._firstPT||(this._firstPT=e),e._next=t,e._prev=o),e},d._mod=function(e){for(var t=this._firstPT;t;)"function"==typeof e[t.p]&&e[t.p]===Math.round&&(t.r=1),t=t._next},d._kill=function(t){var o,i,s,n=t;if(t.autoAlpha||t.alpha){n={};for(i in t)n[i]=t[i];n.opacity=1,n.autoAlpha&&(n.visibility=1)}for(t.className&&(o=this._classNamePT)&&((s=o.xfirst)&&s._prev?this._linkCSSP(s._prev,o._next,s._prev._prev):s===this._firstPT&&(this._firstPT=o._next),o._next&&this._linkCSSP(o._next,o._next._next,s._prev),this._classNamePT=null),o=this._firstPT;o;)o.plugin&&o.plugin!==i&&o.plugin._kill&&(o.plugin._kill(t),i=o.plugin),o=o._next;return e.prototype._kill.call(this,n)};var qe=function(e,t,o){var i,s,n,r;if(e.slice)for(s=e.length;--s>-1;)qe(e[s],t,o);else for(s=(i=e.childNodes).length;--s>-1;)r=(n=i[s]).type,n.style&&(t.push(te(n)),o&&o.push(n)),1!==r&&9!==r&&11!==r||!n.childNodes.length||qe(n,t,o)};return r.cascadeTo=function(e,o,i){var s,n,r,l,a=t.to(e,o,i),d=[a],u=[],h=[],_=[],c=t._internals.reservedProps;for(e=a._targets||a.target,qe(e,u,_),a.render(o,!0,!0),qe(e,h),a.render(0,!0,!0),a._enabled(!0),s=_.length;--s>-1;)if((n=oe(_[s],u[s],h[s])).firstMPT){n=n.difs;for(r in i)c[r]&&(n[r]=i[r]);l={};for(r in n)l[r]=u[s][r];d.push(t.fromTo(_[s],o,l,n))}return d},e.activate([r]),r},!0),function(){var e=function(e){for(;e;)e.f||e.blob||(e.m=Math.round),e=e._next},t=_fwd_gsScope.FWDFWD_gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(e,t,o){return this._tween=o,!0}}).prototype;t._onInitAllProps=function(){for(var t,o,i,s=this._tween,n=s.vars.roundProps.join?s.vars.roundProps:s.vars.roundProps.split(","),r=n.length,l={},a=s._propLookup.roundProps;--r>-1;)l[n[r]]=Math.round;for(r=n.length;--r>-1;)for(t=n[r],o=s._firstPT;o;)i=o._next,o.pg?o.t._mod(l):o.n===t&&(2===o.f&&o.t?e(o.t._firstPT):(this._add(o.t,t,o.s,o.c),i&&(i._prev=o._prev),o._prev?o._prev._next=i:s._firstPT===o&&(s._firstPT=i),o._next=o._prev=null,s._propLookup[t]=a)),o=i;return!1},t._add=function(e,t,o,i){this._addTween(e,t,o,o+i,t,Math.round),this._overwriteProps.push(t)}}(),_fwd_gsScope.FWDFWD_gsDefine.plugin({propName:"attr",API:2,version:"0.6.0",init:function(e,t,o,i){var s,n;if("function"!=typeof e.setAttribute)return!1;for(s in t)"function"==typeof(n=t[s])&&(n=n(i,e)),this._addTween(e,"setAttribute",e.getAttribute(s)+"",n+"",s,!1,s),this._overwriteProps.push(s);return!0}}),_fwd_gsScope.FWDFWD_gsDefine.plugin({propName:"directionalRotation",version:"0.3.0",API:2,init:function(e,t,o,i){"object"!=typeof t&&(t={rotation:t}),this.finals={};var s,n,r,l,a,d,u=!0===t.useRadians?2*Math.PI:360;for(s in t)"useRadians"!==s&&("function"==typeof(l=t[s])&&(l=l(i,e)),n=(d=(l+"").split("_"))[0],r=parseFloat("function"!=typeof e[s]?e[s]:e[s.indexOf("set")||"function"!=typeof e["get"+s.substr(3)]?s:"get"+s.substr(3)]()),a=(l=this.finals[s]="string"==typeof n&&"="===n.charAt(1)?r+parseInt(n.charAt(0)+"1",10)*Number(n.substr(2)):Number(n)||0)-r,d.length&&(-1!==(n=d.join("_")).indexOf("short")&&(a%=u)!==a%(u/2)&&(a=a<0?a+u:a-u),-1!==n.indexOf("_cw")&&a<0?a=(a+9999999999*u)%u-(a/u|0)*u:-1!==n.indexOf("ccw")&&a>0&&(a=(a-9999999999*u)%u-(a/u|0)*u)),(a>1e-6||a<-1e-6)&&(this._addTween(e,s,r,r+a,s),this._overwriteProps.push(s)));return!0},set:function(e){var t;if(1!==e)this._super.setRatio.call(this,e);else for(t=this._firstPT;t;)t.f?t.t[t.p](this.finals[t.p]):t.t[t.p]=this.finals[t.p],t=t._next}})._autoCSS=!0,_fwd_gsScope.FWDFWD_gsDefine("easing.Back",["easing.Ease"],function(e){var t,o,i,s=_fwd_gsScope.FWDGreenSockGlobals||_fwd_gsScope,n=s.com.greensock,r=2*Math.PI,l=Math.PI/2,a=n._class,d=function(t,o){var i=a("easing."+t,function(){},!0),s=i.prototype=new e;return s.constructor=i,s.getRatio=o,i},u=e.register||function(){},h=function(e,t,o,i,s){var n=a("easing."+e,{easeOut:new t,easeIn:new o,easeInOut:new i},!0);return u(n,e),n},_=function(e,t,o){this.t=e,this.v=t,o&&(this.next=o,o.prev=this,this.c=o.v-t,this.gap=o.t-e)},c=function(t,o){var i=a("easing."+t,function(e){this._p1=e||0===e?e:1.70158,this._p2=1.525*this._p1},!0),s=i.prototype=new e;return s.constructor=i,s.getRatio=o,s.config=function(e){return new i(e)},i},f=h("Back",c("BackOut",function(e){return(e-=1)*e*((this._p1+1)*e+this._p1)+1}),c("BackIn",function(e){return e*e*((this._p1+1)*e-this._p1)}),c("BackInOut",function(e){return(e*=2)<1?.5*e*e*((this._p2+1)*e-this._p2):.5*((e-=2)*e*((this._p2+1)*e+this._p2)+2)})),p=a("easing.SlowMo",function(e,t,o){t=t||0===t?t:.7,null==e?e=.7:e>1&&(e=1),this._p=1!==e?t:0,this._p1=(1-e)/2,this._p2=e,this._p3=this._p1+this._p2,this._calcEnd=!0===o},!0),b=p.prototype=new e;return b.constructor=p,b.getRatio=function(e){var t=e+(.5-e)*this._p;return e<this._p1?this._calcEnd?1-(e=1-e/this._p1)*e:t-(e=1-e/this._p1)*e*e*e*t:e>this._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},p.ease=new p(.7,.7),b.config=p.config=function(e,t,o){return new p(e,t,o)},t=a("easing.SteppedEase",function(e){e=e||1,this._p1=1/e,this._p2=e+1},!0),b=t.prototype=new e,b.constructor=t,b.getRatio=function(e){return e<0?e=0:e>=1&&(e=.999999999),(this._p2*e>>0)*this._p1},b.config=t.config=function(e){return new t(e)},o=a("easing.RoughEase",function(t){for(var o,i,s,n,r,l,a=(t=t||{}).taper||"none",d=[],u=0,h=0|(t.points||20),c=h,f=!1!==t.randomize,p=!0===t.clamp,b=t.template instanceof e?t.template:null,m="number"==typeof t.strength?.4*t.strength:.4;--c>-1;)o=f?Math.random():1/h*c,i=b?b.getRatio(o):o,s="none"===a?m:"out"===a?(n=1-o)*n*m:"in"===a?o*o*m:o<.5?(n=2*o)*n*.5*m:(n=2*(1-o))*n*.5*m,f?i+=Math.random()*s-.5*s:c%2?i+=.5*s:i-=.5*s,p&&(i>1?i=1:i<0&&(i=0)),d[u++]={x:o,y:i};for(d.sort(function(e,t){return e.x-t.x}),l=new _(1,1,null),c=h;--c>-1;)r=d[c],l=new _(r.x,r.y,l);this._prev=new _(0,0,0!==l.t?l:l.next)},!0),b=o.prototype=new e,b.constructor=o,b.getRatio=function(e){var t=this._prev;if(e>t.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,t.v+(e-t.t)/t.gap*t.c},b.config=function(e){return new o(e)},o.ease=new o,h("Bounce",d("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}),d("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)}),d("BounceInOut",function(e){var t=e<.5;return e=t?1-2*e:2*e-1,e<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})),h("Circ",d("CircOut",function(e){return Math.sqrt(1-(e-=1)*e)}),d("CircIn",function(e){return-(Math.sqrt(1-e*e)-1)}),d("CircInOut",function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)})),i=function(t,o,i){var s=a("easing."+t,function(e,t){this._p1=e>=1?e:1,this._p2=(t||i)/(e<1?e:1),this._p3=this._p2/r*(Math.asin(1/this._p1)||0),this._p2=r/this._p2},!0),n=s.prototype=new e;return n.constructor=s,n.getRatio=o,n.config=function(e,t){return new s(e,t)},s},h("Elastic",i("ElasticOut",function(e){return this._p1*Math.pow(2,-10*e)*Math.sin((e-this._p3)*this._p2)+1},.3),i("ElasticIn",function(e){return-this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*this._p2)},.3),i("ElasticInOut",function(e){return(e*=2)<1?this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(e-=1))*Math.sin((e-this._p3)*this._p2)*.5+1},.45)),h("Expo",d("ExpoOut",function(e){return 1-Math.pow(2,-10*e)}),d("ExpoIn",function(e){return Math.pow(2,10*(e-1))-.001}),d("ExpoInOut",function(e){return(e*=2)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*(e-1)))})),h("Sine",d("SineOut",function(e){return Math.sin(e*l)}),d("SineIn",function(e){return 1-Math.cos(e*l)}),d("SineInOut",function(e){return-.5*(Math.cos(Math.PI*e)-1)})),a("easing.EaseLookup",{find:function(t){return e.map[t]}},!0),u(s.SlowMo,"SlowMo","ease,"),u(o,"RoughEase","ease,"),u(t,"SteppedEase","ease,"),f},!0)}),_fwd_gsScope.FWDFWD_gsDefine&&_fwd_gsScope._fwd_gsQueue.pop()(),function(e,t){"use strict";var o={},i=e.FWDGreenSockGlobals=e.FWDGreenSockGlobals||e;if(!i.FWDTweenLite){var s,n,r,l,a,d=function(e){var t,o=e.split("."),s=i;for(t=0;t<o.length;t++)s[o[t]]=s=s[o[t]]||{};return s},u=d("com.greensock"),h=function(e){var t,o=[],i=e.length;for(t=0;t!==i;o.push(e[t++]));return o},_=function(){},c=function(){var e=Object.prototype.toString,t=e.call([]);return function(o){return null!=o&&(o instanceof Array||"object"==typeof o&&!!o.push&&e.call(o)===t)}}(),f={},p=function(t,s,n,r){this.sc=f[t]?f[t].sc:[],f[t]=this,this.gsClass=null,this.func=n;var l=[];this.check=function(a){for(var u,h,_,c,b,m=s.length,g=m;--m>-1;)(u=f[s[m]]||new p(s[m],[])).gsClass?(l[m]=u.gsClass,g--):a&&u.sc.push(this);if(0===g&&n){if(h=("com.greensock."+t).split("."),_=h.pop(),c=d(h.join("."))[_]=this.gsClass=n.apply(n,l),r)if(i[_]=o[_]=c,!(b="undefined"!=typeof fwd_module&&fwd_module.exports)&&"function"==typeof define&&define.amd)define((e.FWDGreenSockAMDPath?e.FWDGreenSockAMDPath+"/":"")+t.split(".").pop(),[],function(){return c});else if(b)if("FWDAnimation"===t){fwd_module.exports=o.FWDAnimation=c;for(m in o)c[m]=o[m]}else o.FWDAnimation&&(o.FWDAnimation[_]=c);for(m=0;m<this.sc.length;m++)this.sc[m].check()}},this.check(!0)},b=e.FWDFWD_gsDefine=function(e,t,o,i){return new p(e,t,o,i)},m=u._class=function(e,t,o){return t=t||function(){},b(e,[],function(){return t},o),t};b.globals=i;var g=[0,0,1,1],y=m("easing.Ease",function(e,t,o,i){this._func=e,this._type=o||0,this._power=i||0,this._params=t?g.concat(t):g},!0),v=y.map={},S=y.register=function(e,t,o,i){for(var s,n,r,l,a=t.split(","),d=a.length,h=(o||"easeIn,easeOut,easeInOut").split(",");--d>-1;)for(n=a[d],s=i?m("easing."+n,null,!0):u.easing[n]||{},r=h.length;--r>-1;)l=h[r],v[n+"."+l]=v[l+n]=s[l]=e.getRatio?e:e[l]||new e};for((r=y.prototype)._calcEnd=!1,r.getRatio=function(e){if(this._func)return this._params[0]=e,this._func.apply(null,this._params);var t=this._type,o=this._power,i=1===t?1-e:2===t?e:e<.5?2*e:2*(1-e);return 1===o?i*=i:2===o?i*=i*i:3===o?i*=i*i*i:4===o&&(i*=i*i*i*i),1===t?1-i:2===t?i:e<.5?i/2:1-i/2},n=(s=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;--n>-1;)r=s[n]+",Power"+n,S(new y(null,null,1,n),r,"easeOut",!0),S(new y(null,null,2,n),r,"easeIn"+(0===n?",easeNone":"")),S(new y(null,null,3,n),r,"easeInOut");v.linear=u.easing.Linear.easeIn,v.swing=u.easing.Quad.easeInOut;var P=m("events.EventDispatcher",function(e){this._listeners={},this._eventTarget=e||this});(r=P.prototype).addEventListener=function(e,t,o,i,s){s=s||0;var n,r,d=this._listeners[e],u=0;for(this!==l||a||l.wake(),null==d&&(this._listeners[e]=d=[]),r=d.length;--r>-1;)(n=d[r]).c===t&&n.s===o?d.splice(r,1):0===u&&n.pr<s&&(u=r+1);d.splice(u,0,{c:t,s:o,up:i,pr:s})},r.removeEventListener=function(e,t){var o,i=this._listeners[e];if(i)for(o=i.length;--o>-1;)if(i[o].c===t)return void i.splice(o,1)},r.dispatchEvent=function(e){var t,o,i,s=this._listeners[e];if(s)for((t=s.length)>1&&(s=s.slice(0)),o=this._eventTarget;--t>-1;)(i=s[t])&&(i.up?i.c.call(i.s||o,{type:e,target:o}):i.c.call(i.s||o))};var E=e.requestAnimationFrame,w=e.cancelAnimationFrame,T=Date.now||function(){return(new Date).getTime()},D=T();for(n=(s=["ms","moz","webkit","o"]).length;--n>-1&&!E;)E=e[s[n]+"RequestAnimationFrame"],w=e[s[n]+"CancelAnimationFrame"]||e[s[n]+"CancelRequestAnimationFrame"];m("Ticker",function(e,t){var o,i,s,n,r,d=this,u=T(),h=!(!1===t||!E)&&"auto",c=500,f=33,p=function(e){var t,l,a=T()-D;a>c&&(u+=a-f),D+=a,d.time=(D-u)/1e3,t=d.time-r,(!o||t>0||!0===e)&&(d.frame++,r+=t+(t>=n?.004:n-t),l=!0),!0!==e&&(s=i(p)),l&&d.dispatchEvent("tick")};P.call(d),d.time=d.frame=0,d.tick=function(){p(!0)},d.lagSmoothing=function(e,t){c=e||1e10,f=Math.min(t,c,0)},d.sleep=function(){null!=s&&(h&&w?w(s):clearTimeout(s),i=_,s=null,d===l&&(a=!1))},d.wake=function(e){null!==s?d.sleep():e?u+=-D+(D=T()):d.frame>10&&(D=T()-c+5),i=0===o?_:h&&E?E:function(e){return setTimeout(e,1e3*(r-d.time)+1|0)},d===l&&(a=!0),p(2)},d.fps=function(e){if(!arguments.length)return o;n=1/((o=e)||60),r=this.time+n,d.wake()},d.useRAF=function(e){if(!arguments.length)return h;d.sleep(),h=e,d.fps(o)},d.fps(e),setTimeout(function(){"auto"===h&&d.frame<5&&"hidden"!==document.visibilityState&&d.useRAF(!1)},1500)}),(r=u.Ticker.prototype=new u.events.EventDispatcher).constructor=u.Ticker;var W=m("core.FWDAnim",function(e,t){if(this.vars=t=t||{},this._duration=this._totalDuration=e||0,this._delay=Number(t.delay)||0,this._timeScale=1,this._active=!0===t.immediateRender,this.data=t.data,this._reversed=!0===t.reversed,z){a||l.wake();var o=this.vars.useFrames?j:z;o.add(this,o._time),this.vars.paused&&this.paused(!0)}});l=W.ticker=new u.Ticker,(r=W.prototype)._dirty=r._gc=r._initted=r._paused=!1,r._totalTime=r._time=0,r._rawPrevTime=-1,r._next=r._last=r._onUpdate=r._timeline=r.timeline=null,r._paused=!1;var B=function(){a&&T()-D>2e3&&l.wake(),setTimeout(B,2e3)};B(),r.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},r.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},r.resume=function(e,t){return null!=e&&this.seek(e,t),this.paused(!1)},r.seek=function(e,t){return this.totalTime(Number(e),!1!==t)},r.restart=function(e,t){return this.reversed(!1).paused(!1).totalTime(e?-this._delay:0,!1!==t,!0)},r.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},r.render=function(e,t,o){},r.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},r.isActive=function(){var e,t=this._timeline,o=this._startTime;return!t||!this._gc&&!this._paused&&t.isActive()&&(e=t.rawTime())>=o&&e<o+this.totalDuration()/this._timeScale},r._enabled=function(e,t){return a||l.wake(),this._gc=!e,this._active=this.isActive(),!0!==t&&(e&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!e&&this.timeline&&this._timeline._remove(this,!0)),!1},r._kill=function(e,t){return this._enabled(!1,!1)},r.kill=function(e,t){return this._kill(e,t),this},r._uncache=function(e){for(var t=e?this:this.timeline;t;)t._dirty=!0,t=t.timeline;return this},r._swapSelfInParams=function(e){for(var t=e.length,o=e.concat();--t>-1;)"{self}"===e[t]&&(o[t]=this);return o},r._callback=function(e){var t=this.vars,o=t[e],i=t[e+"Params"],s=t[e+"Scope"]||t.callbackScope||this;switch(i?i.length:0){case 0:o.call(s);break;case 1:o.call(s,i[0]);break;case 2:o.call(s,i[0],i[1]);break;default:o.apply(s,i)}},r.eventCallback=function(e,t,o,i){if("on"===(e||"").substr(0,2)){var s=this.vars;if(1===arguments.length)return s[e];null==t?delete s[e]:(s[e]=t,s[e+"Params"]=c(o)&&-1!==o.join("").indexOf("{self}")?this._swapSelfInParams(o):o,s[e+"Scope"]=i),"onUpdate"===e&&(this._onUpdate=t)}return this},r.delay=function(e){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+e-this._delay),this._delay=e,this):this._delay},r.duration=function(e){return arguments.length?(this._duration=this._totalDuration=e,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==e&&this.totalTime(this._totalTime*(e/this._duration),!0),this):(this._dirty=!1,this._duration)},r.totalDuration=function(e){return this._dirty=!1,arguments.length?this.duration(e):this._totalDuration},r.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(e>this._duration?this._duration:e,t)):this._time},r.totalTime=function(e,t,o){if(a||l.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(e<0&&!o&&(e+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var i=this._totalDuration,s=this._timeline;if(e>i&&!o&&(e=i),this._startTime=(this._paused?this._pauseTime:s._time)-(this._reversed?i-e:e)/this._timeScale,s._dirty||this._uncache(!1),s._timeline)for(;s._timeline;)s._timeline._time!==(s._startTime+s._totalTime)/s._timeScale&&s.totalTime(s._totalTime,!0),s=s._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===e&&0!==this._duration||(O.length&&G(),this.render(e,t,!1),O.length&&G())}return this},r.progress=r.totalProgress=function(e,t){var o=this.duration();return arguments.length?this.totalTime(o*e,t):o?this._time/o:this.ratio},r.startTime=function(e){return arguments.length?(e!==this._startTime&&(this._startTime=e,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,e-this._delay)),this):this._startTime},r.endTime=function(e){return this._startTime+(0!=e?this.totalDuration():this.duration())/this._timeScale},r.timeScale=function(e){if(!arguments.length)return this._timeScale;if(e=e||1e-10,this._timeline&&this._timeline.smoothChildTiming){var t=this._pauseTime,o=t||0===t?t:this._timeline.totalTime();this._startTime=o-(o-this._startTime)*this._timeScale/e}return this._timeScale=e,this._uncache(!1)},r.reversed=function(e){return arguments.length?(e!=this._reversed&&(this._reversed=e,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},r.paused=function(e){if(!arguments.length)return this._paused;var t,o,i=this._timeline;return e!=this._paused&&i&&(a||e||l.wake(),o=(t=i.rawTime())-this._pauseTime,!e&&i.smoothChildTiming&&(this._startTime+=o,this._uncache(!1)),this._pauseTime=e?t:null,this._paused=e,this._active=this.isActive(),!e&&0!==o&&this._initted&&this.duration()&&(t=i.smoothChildTiming?this._totalTime:(t-this._startTime)/this._timeScale,this.render(t,t===this._totalTime,!0))),this._gc&&!e&&this._enabled(!0,!1),this};var C=m("core.FWDSimpleTimeline",function(e){W.call(this,0,e),this.autoRemoveChildren=this.smoothChildTiming=!0});(r=C.prototype=new W).constructor=C,r.kill()._gc=!1,r._first=r._last=r._recent=null,r._sortChildren=!1,r.add=r.insert=function(e,t,o,i){var s,n;if(e._startTime=Number(t||0)+e._delay,e._paused&&this!==e._timeline&&(e._pauseTime=e._startTime+(this.rawTime()-e._startTime)/e._timeScale),e.timeline&&e.timeline._remove(e,!0),e.timeline=e._timeline=this,e._gc&&e._enabled(!0,!0),s=this._last,this._sortChildren)for(n=e._startTime;s&&s._startTime>n;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=this._first,this._first=e),e._next?e._next._prev=e:this._last=e,e._prev=s,this._recent=e,this._timeline&&this._uncache(!0),this},r._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},r.render=function(e,t,o){var i,s=this._first;for(this._totalTime=this._time=this._rawPrevTime=e;s;)i=s._next,(s._active||e>=s._startTime&&!s._paused)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(e-s._startTime)*s._timeScale,t,o):s.render((e-s._startTime)*s._timeScale,t,o)),s=i},r.rawTime=function(){return a||l.wake(),this._totalTime};var F=m("FWDTweenLite",function(t,o,i){if(W.call(this,o,i),this.render=F.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"!=typeof t?t:F.selector(t)||t;var s,n,r,l=t.jquery||t.length&&t!==e&&t[0]&&(t[0]===e||t[0].nodeType&&t[0].style&&!t.nodeType),a=this.vars.overwrite;if(this._overwrite=a=null==a?N[F.defaultOverwrite]:"number"==typeof a?a>>0:N[a],(l||t instanceof Array||t.push&&c(t))&&"number"!=typeof t[0])for(this._targets=r=h(t),this._propLookup=[],this._siblings=[],s=0;s<r.length;s++)(n=r[s])?"string"!=typeof n?n.length&&n!==e&&n[0]&&(n[0]===e||n[0].nodeType&&n[0].style&&!n.nodeType)?(r.splice(s--,1),this._targets=r=r.concat(h(n))):(this._siblings[s]=q(n,this,!1),1===a&&this._siblings[s].length>1&&J(n,this,null,1,this._siblings[s])):"string"==typeof(n=r[s--]=F.selector(n))&&r.splice(s+1,1):r.splice(s--,1);else this._propLookup={},this._siblings=q(t,this,!1),1===a&&this._siblings.length>1&&J(t,this,null,1,this._siblings);(this.vars.immediateRender||0===o&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-1e-10,this.render(Math.min(0,-this._delay)))},!0),k=function(t){return t&&t.length&&t!==e&&t[0]&&(t[0]===e||t[0].nodeType&&t[0].style&&!t.nodeType)},H=function(e,t){var o,i={};for(o in e)Y[o]||o in t&&"transform"!==o&&"x"!==o&&"y"!==o&&"width"!==o&&"height"!==o&&"className"!==o&&"border"!==o||!(!R[o]||R[o]&&R[o]._autoCSS)||(i[o]=e[o],delete e[o]);e.css=i};(r=F.prototype=new W).constructor=F,r.kill()._gc=!1,r.ratio=0,r._firstPT=r._targets=r._overwrittenProps=r._startAt=null,r._notifyPluginsOfEnabled=r._lazy=!1,F.version="1.19.0",F.defaultEase=r._ease=new y(null,null,1,1),F.defaultOverwrite="auto",F.ticker=l,F.autoSleep=120,F.lagSmoothing=function(e,t){l.lagSmoothing(e,t)},F.selector=e.$||e.jQuery||function(t){var o=e.$||e.jQuery;return o?(F.selector=o,o(t)):"undefined"==typeof document?t:document.querySelectorAll?document.querySelectorAll(t):document.getElementById("#"===t.charAt(0)?t.substr(1):t)};var O=[],V={},A=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,x=function(e){for(var t,o=this._firstPT;o;)t=o.blob?e?this.join(""):this.start:o.c*e+o.s,o.m?t=o.m(t,this._target||o.t):t<1e-6&&t>-1e-6&&(t=0),o.f?o.fp?o.t[o.p](o.fp,t):o.t[o.p](t):o.t[o.p]=t,o=o._next},L=function(e,t,o,i){var s,n,r,l,a,d,u,h=[e,t],_=0,c="",f=0;for(h.start=e,o&&(o(h),e=h[0],t=h[1]),h.length=0,s=e.match(A)||[],n=t.match(A)||[],i&&(i._next=null,i.blob=1,h._firstPT=h._applyPT=i),a=n.length,l=0;l<a;l++)u=n[l],c+=(d=t.substr(_,t.indexOf(u,_)-_))||!l?d:",",_+=d.length,f?f=(f+1)%5:"rgba("===d.substr(-5)&&(f=1),u===s[l]||s.length<=l?c+=u:(c&&(h.push(c),c=""),r=parseFloat(s[l]),h.push(r),h._firstPT={_next:h._firstPT,t:h,p:h.length-1,s:r,c:("="===u.charAt(1)?parseInt(u.charAt(0)+"1",10)*parseFloat(u.substr(2)):parseFloat(u)-r)||0,f:0,m:f&&f<4?Math.round:0}),_+=u.length;return(c+=t.substr(_))&&h.push(c),h.setRatio=x,h},M=function(e,t,o,i,s,n,r,l,a){"function"==typeof i&&(i=i(a||0,e));var d,u="get"===o?e[t]:o,h=typeof e[t],_="string"==typeof i&&"="===i.charAt(1),c={t:e,p:t,s:u,f:"function"===h,pg:0,n:s||t,m:n?"function"==typeof n?n:Math.round:0,pr:0,c:_?parseInt(i.charAt(0)+"1",10)*parseFloat(i.substr(2)):parseFloat(i)-u||0};if("number"!==h&&("function"===h&&"get"===o&&(d=t.indexOf("set")||"function"!=typeof e["get"+t.substr(3)]?t:"get"+t.substr(3),c.s=u=r?e[d](r):e[d]()),"string"==typeof u&&(r||isNaN(u))?(c.fp=r,c={t:L(u,i,l||F.defaultStringFilter,c),p:"setRatio",s:0,c:1,f:2,pg:0,n:s||t,pr:0,m:0}):_||(c.s=parseFloat(u),c.c=parseFloat(i)-c.s||0)),c.c)return(c._next=this._firstPT)&&(c._next._prev=c),this._firstPT=c,c},I=F._internals={isArray:c,isSelector:k,lazyTweens:O,blobDif:L},R=F._plugins={},U=I.tweenLookup={},X=0,Y=I.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1},N={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},j=W._rootFramesTimeline=new C,z=W._rootTimeline=new C,Q=30,G=I.lazyRender=function(){var e,t=O.length;for(V={};--t>-1;)(e=O[t])&&!1!==e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);O.length=0};z._startTime=l.time,j._startTime=l.frame,z._active=j._active=!0,setTimeout(G,1),W._updateRoot=F.render=function(){var e,t,o;if(O.length&&G(),z.render((l.time-z._startTime)*z._timeScale,!1,!1),j.render((l.frame-j._startTime)*j._timeScale,!1,!1),O.length&&G(),l.frame>=Q){Q=l.frame+(parseInt(F.autoSleep,10)||120);for(o in U){for(e=(t=U[o].tweens).length;--e>-1;)t[e]._gc&&t.splice(e,1);0===t.length&&delete U[o]}if((!(o=z._first)||o._paused)&&F.autoSleep&&!j._first&&1===l._listeners.tick.length){for(;o&&o._paused;)o=o._next;o||l.sleep()}}},l.addEventListener("tick",W._updateRoot);var q=function(e,t,o){var i,s,n=e._gsTweenID;if(U[n||(e._gsTweenID=n="t"+X++)]||(U[n]={target:e,tweens:[]}),t&&(i=U[n].tweens,i[s=i.length]=t,o))for(;--s>-1;)i[s]===t&&i.splice(s,1);return U[n].tweens},K=function(e,t,o,i){var s,n,r=e.vars.onOverwrite;return r&&(s=r(e,t,o,i)),(r=F.onOverwrite)&&(n=r(e,t,o,i)),!1!==s&&!1!==n},J=function(e,t,o,i,s){var n,r,l,a;if(1===i||i>=4){for(a=s.length,n=0;n<a;n++)if((l=s[n])!==t)l._gc||l._kill(null,e,t)&&(r=!0);else if(5===i)break;return r}var d,u=t._startTime+1e-10,h=[],_=0,c=0===t._duration;for(n=s.length;--n>-1;)(l=s[n])===t||l._gc||l._paused||(l._timeline!==t._timeline?(d=d||$(t,0,c),0===$(l,d,c)&&(h[_++]=l)):l._startTime<=u&&l._startTime+l.totalDuration()/l._timeScale>u&&((c||!l._initted)&&u-l._startTime<=2e-10||(h[_++]=l)));for(n=_;--n>-1;)if(l=h[n],2===i&&l._kill(o,e,t)&&(r=!0),2!==i||!l._firstPT&&l._initted){if(2!==i&&!K(l,t))continue;l._enabled(!1,!1)&&(r=!0)}return r},$=function(e,t,o){for(var i=e._timeline,s=i._timeScale,n=e._startTime;i._timeline;){if(n+=i._startTime,s*=i._timeScale,i._paused)return-100;i=i._timeline}return n/=s,n>t?n-t:o&&n===t||!e._initted&&n-t<2e-10?1e-10:(n+=e.totalDuration()/e._timeScale/s)>t+1e-10?0:n-t-1e-10};r._init=function(){var e,t,o,i,s,n,r=this.vars,l=this._overwrittenProps,a=this._duration,d=!!r.immediateRender,u=r.ease;if(r.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),s={};for(i in r.startAt)s[i]=r.startAt[i];if(s.overwrite=!1,s.immediateRender=!0,s.lazy=d&&!1!==r.lazy,s.startAt=s.delay=null,this._startAt=F.to(this.target,0,s),d)if(this._time>0)this._startAt=null;else if(0!==a)return}else if(r.runBackwards&&0!==a)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(d=!1),o={};for(i in r)Y[i]&&"autoCSS"!==i||(o[i]=r[i]);if(o.overwrite=0,o.data="isFromStart",o.lazy=d&&!1!==r.lazy,o.immediateRender=d,this._startAt=F.to(this.target,0,o),d){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof y?u:"function"==typeof u?new y(u,r.easeParams):v[u]||F.defaultEase:F.defaultEase,r.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,r.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(n=this._targets.length,e=0;e<n;e++)this._initProps(this._targets[e],this._propLookup[e]={},this._siblings[e],l?l[e]:null,e)&&(t=!0);else t=this._initProps(this.target,this._propLookup,this._siblings,l,0);if(t&&F._onPluginEvent("_onInitAllProps",this),l&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),r.runBackwards)for(o=this._firstPT;o;)o.s+=o.c,o.c=-o.c,o=o._next;this._onUpdate=r.onUpdate,this._initted=!0},r._initProps=function(t,o,i,s,n){var r,l,a,d,u,h;if(null==t)return!1;V[t._gsTweenID]&&G(),this.vars.css||t.style&&t!==e&&t.nodeType&&R.css&&!1!==this.vars.autoCSS&&H(this.vars,t);for(r in this.vars)if(h=this.vars[r],Y[r])h&&(h instanceof Array||h.push&&c(h))&&-1!==h.join("").indexOf("{self}")&&(this.vars[r]=h=this._swapSelfInParams(h,this));else if(R[r]&&(d=new R[r])._onInitTween(t,this.vars[r],this,n)){for(this._firstPT=u={_next:this._firstPT,t:d,p:"setRatio",s:0,c:1,f:1,n:r,pg:1,pr:d._priority,m:0},l=d._overwriteProps.length;--l>-1;)o[d._overwriteProps[l]]=this._firstPT;(d._priority||d._onInitAllProps)&&(a=!0),(d._onDisable||d._onEnable)&&(this._notifyPluginsOfEnabled=!0),u._next&&(u._next._prev=u)}else o[r]=M.call(this,t,r,"get",h,r,0,null,this.vars.stringFilter,n);return s&&this._kill(s,t)?this._initProps(t,o,i,s,n):this._overwrite>1&&this._firstPT&&i.length>1&&J(t,this,o,this._overwrite,i)?(this._kill(o,t),this._initProps(t,o,i,s,n)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(V[t._gsTweenID]=!0),a)},r.render=function(e,t,o){var i,s,n,r,l=this._time,a=this._duration,d=this._rawPrevTime;if(e>=a-1e-7)this._totalTime=this._time=a,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(i=!0,s="onComplete",o=o||this._timeline.autoRemoveChildren),0===a&&(this._initted||!this.vars.lazy||o)&&(this._startTime===this._timeline._duration&&(e=0),(d<0||e<=0&&e>=-1e-7||1e-10===d&&"isPause"!==this.data)&&d!==e&&(o=!0,d>1e-10&&(s="onReverseComplete")),this._rawPrevTime=r=!t||e||d===e?e:1e-10);else if(e<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==l||0===a&&d>0)&&(s="onReverseComplete",i=this._reversed),e<0&&(this._active=!1,0===a&&(this._initted||!this.vars.lazy||o)&&(d>=0&&(1e-10!==d||"isPause"!==this.data)&&(o=!0),this._rawPrevTime=r=!t||e||d===e?e:1e-10)),this._initted||(o=!0);else if(this._totalTime=this._time=e,this._easeType){var u=e/a,h=this._easeType,_=this._easePower;(1===h||3===h&&u>=.5)&&(u=1-u),3===h&&(u*=2),1===_?u*=u:2===_?u*=u*u:3===_?u*=u*u*u:4===_&&(u*=u*u*u*u),this.ratio=1===h?1-u:2===h?u:e/a<.5?u/2:1-u/2}else this.ratio=this._ease.getRatio(e/a);if(this._time!==l||o){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!o&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=l,this._rawPrevTime=d,O.push(this),void(this._lazy=[e,t]);this._time&&!i?this.ratio=this._ease.getRatio(this._time/a):i&&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!==l&&e>=0&&(this._active=!0),0===l&&(this._startAt&&(e>=0?this._startAt.render(e,t,o):s||(s="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==a||t||this._callback("onStart"))),n=this._firstPT;n;)n.f?n.t[n.p](n.c*this.ratio+n.s):n.t[n.p]=n.c*this.ratio+n.s,n=n._next;this._onUpdate&&(e<0&&this._startAt&&-1e-4!==e&&this._startAt.render(e,t,o),t||(this._time!==l||i||o)&&this._callback("onUpdate")),s&&(this._gc&&!o||(e<0&&this._startAt&&!this._onUpdate&&-1e-4!==e&&this._startAt.render(e,t,o),i&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[s]&&this._callback(s),0===a&&1e-10===this._rawPrevTime&&1e-10!==r&&(this._rawPrevTime=0)))}},r._kill=function(e,t,o){if("all"===e&&(e=null),null==e&&(null==t||t===this.target))return this._lazy=!1,this._enabled(!1,!1);t="string"!=typeof t?t||this._targets||this.target:F.selector(t)||t;var i,s,n,r,l,a,d,u,h,_=o&&this._time&&o._startTime===this._startTime&&this._timeline===o._timeline;if((c(t)||k(t))&&"number"!=typeof t[0])for(i=t.length;--i>-1;)this._kill(e,t[i],o)&&(a=!0);else{if(this._targets){for(i=this._targets.length;--i>-1;)if(t===this._targets[i]){l=this._propLookup[i]||{},this._overwrittenProps=this._overwrittenProps||[],s=this._overwrittenProps[i]=e?this._overwrittenProps[i]||{}:"all";break}}else{if(t!==this.target)return!1;l=this._propLookup,s=this._overwrittenProps=e?this._overwrittenProps||{}:"all"}if(l){if(d=e||l,u=e!==s&&"all"!==s&&e!==l&&("object"!=typeof e||!e._tempKill),o&&(F.onOverwrite||this.vars.onOverwrite)){for(n in d)l[n]&&(h||(h=[]),h.push(n));if((h||!e)&&!K(this,o,t,h))return!1}for(n in d)(r=l[n])&&(_&&(r.f?r.t[r.p](r.s):r.t[r.p]=r.s,a=!0),r.pg&&r.t._kill(d)&&(a=!0),r.pg&&0!==r.t._overwriteProps.length||(r._prev?r._prev._next=r._next:r===this._firstPT&&(this._firstPT=r._next),r._next&&(r._next._prev=r._prev),r._next=r._prev=null),delete l[n]),u&&(s[n]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return a},r.invalidate=function(){return this._notifyPluginsOfEnabled&&F._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],W.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-1e-10,this.render(Math.min(0,-this._delay))),this},r._enabled=function(e,t){if(a||l.wake(),e&&this._gc){var o,i=this._targets;if(i)for(o=i.length;--o>-1;)this._siblings[o]=q(i[o],this,!0);else this._siblings=q(this.target,this,!0)}return W.prototype._enabled.call(this,e,t),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&F._onPluginEvent(e?"_onEnable":"_onDisable",this)},F.to=function(e,t,o){return new F(e,t,o)},F.from=function(e,t,o){return o.runBackwards=!0,o.immediateRender=0!=o.immediateRender,new F(e,t,o)},F.fromTo=function(e,t,o,i){return i.startAt=o,i.immediateRender=0!=i.immediateRender&&0!=o.immediateRender,new F(e,t,i)},F.delayedCall=function(e,t,o,i,s){return new F(t,0,{delay:e,onComplete:t,onCompleteParams:o,callbackScope:i,onReverseComplete:t,onReverseCompleteParams:o,immediateRender:!1,lazy:!1,useFrames:s,overwrite:0})},F.set=function(e,t){return new F(e,0,t)},F.getTweensOf=function(e,t){if(null==e)return[];e="string"!=typeof e?e:F.selector(e)||e;var o,i,s,n;if((c(e)||k(e))&&"number"!=typeof e[0]){for(o=e.length,i=[];--o>-1;)i=i.concat(F.getTweensOf(e[o],t));for(o=i.length;--o>-1;)for(n=i[o],s=o;--s>-1;)n===i[s]&&i.splice(o,1)}else for(o=(i=q(e).concat()).length;--o>-1;)(i[o]._gc||t&&!i[o].isActive())&&i.splice(o,1);return i},F.killTweensOf=F.killDelayedCallsTo=function(e,t,o){"object"==typeof t&&(o=t,t=!1);for(var i=F.getTweensOf(e,t),s=i.length;--s>-1;)i[s]._kill(o,e)};var Z=m("plugins.TweenPlugin",function(e,t){this._overwriteProps=(e||"").split(","),this._propName=this._overwriteProps[0],this._priority=t||0,this._super=Z.prototype},!0);if(r=Z.prototype,Z.version="1.19.0",Z.API=2,r._firstPT=null,r._addTween=M,r.setRatio=x,r._kill=function(e){var t,o=this._overwriteProps,i=this._firstPT;if(null!=e[this._propName])this._overwriteProps=[];else for(t=o.length;--t>-1;)null!=e[o[t]]&&o.splice(t,1);for(;i;)null!=e[i.n]&&(i._next&&(i._next._prev=i._prev),i._prev?(i._prev._next=i._next,i._prev=null):this._firstPT===i&&(this._firstPT=i._next)),i=i._next;return!1},r._mod=r._roundProps=function(e){for(var t,o=this._firstPT;o;)(t=e[this._propName]||null!=o.n&&e[o.n.split(this._propName+"_").join("")])&&"function"==typeof t&&(2===o.f?o.t._applyPT.m=t:o.m=t),o=o._next},F._onPluginEvent=function(e,t){var o,i,s,n,r,l=t._firstPT;if("_onInitAllProps"===e){for(;l;){for(r=l._next,i=s;i&&i.pr>l.pr;)i=i._next;(l._prev=i?i._prev:n)?l._prev._next=l:s=l,(l._next=i)?i._prev=l:n=l,l=r}l=t._firstPT=s}for(;l;)l.pg&&"function"==typeof l.t[e]&&l.t[e]()&&(o=!0),l=l._next;return o},Z.activate=function(e){for(var t=e.length;--t>-1;)e[t].API===Z.API&&(R[(new e[t])._propName]=e[t]);return!0},b.plugin=function(e){if(!(e&&e.propName&&e.init&&e.API))throw"illegal plugin definition.";var t,o=e.propName,i=e.priority||0,s=e.overwriteProps,n={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},r=m("plugins."+o.charAt(0).toUpperCase()+o.substr(1)+"Plugin",function(){Z.call(this,o,i),this._overwriteProps=s||[]},!0===e.fwd_global),l=r.prototype=new Z(o);l.constructor=r,r.API=e.API;for(t in n)"function"==typeof e[t]&&(l[n[t]]=e[t]);return r.version=e.version,Z.activate([r]),r},s=e._fwd_gsQueue){for(n=0;n<s.length;n++)s[n]();for(r in f)f[r].func||e.console.log("GSAP encountered missing dependency: "+r)}a=!1}}("undefined"!=typeof fwd_module&&fwd_module.exports&&"undefined"!=typeof fwd_global?fwd_global:this||window)}!function(e){var t=function(){var o=this;t.prototype;this.main_do=null,this.init=function(){this.setupScreen(),e.onerror=this.showError,this.screen.style.zIndex=1e25,setTimeout(this.addConsoleToDom,100),setInterval(this.position,100)},this.position=function(){var e=FWDEVPUtils.getScrollOffsets();o.setX(e.x),o.setY(e.y)},this.addConsoleToDom=function(){-1!=navigator.userAgent.toLowerCase().indexOf("msie 7")?document.getElementsByTagName("body")[0].appendChild(o.screen):document.documentElement.appendChild(o.screen)},this.setupScreen=function(){this.main_do=new FWDEVPDisplayObject("div","absolute"),this.main_do.setOverflow("auto"),this.main_do.setWidth(300),this.main_do.setHeight(200),this.setWidth(300),this.setHeight(200),this.main_do.setBkColor("#FFFFFF"),this.addChild(this.main_do)},this.showError=function(e,t,i){var s=o.main_do.getInnerHTML()+"<br>JavaScript error: "+e+" on line "+i+" for "+t;o.main_do.setInnerHTML(s),o.main_do.screen.scrollTop=o.main_do.screen.scrollHeight},this.log=function(e){var t=o.main_do.getInnerHTML()+"<br>"+e;o.main_do.setInnerHTML(t),o.main_do.getScreen().scrollTop=1e4},this.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div","absolute")},t.prototype=null,e.FWDConsole=t}(window),function(e){var t=function(e,o,i,s,n,r,l,a,d,u,h,_){var c=this;t.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.useHEXColorsForSkin_bl=u,c.normalButtonsColor_str=h,c.selectedButtonsColor_str=_,this.borderNColor_str=n,this.borderSColor_str=r,this.adsBackgroundPath_str=l,this.position_str=s,this.textNormalColor_str=a,this.textSelectedColor_str=d,this.text_str=i,this.iconOverPath_str=o,this.totalWidth=215,this.totalHeight=64,this.fontSize=12,this.hasThumbanil_bl=!1,this.isShowed_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,c.init=function(){c.setOverflow("visible"),c.setupMainContainers(),c.hide(!1,!0)},c.setupMainContainers=function(){this.main_do=new FWDEVPDisplayObject("div"),this.main_do.hasTransform3d_bl=!1,this.main_do.hasTransform2d_bl=!1,this.main_do.setBackfaceVisibility(),this.bk_do=new FWDEVPDisplayObject("div"),this.bk_do.getStyle().background="url('"+this.adsBackgroundPath_str+"')",this.text_do=new FWDEVPDisplayObject("div"),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 FWDEVPDisplayObject("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 FWDEVPDisplayObject("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.setHeight(this.totalHeight-2)):(this.border_do.setWidth(this.totalWidth),this.border_do.setHeight(this.totalHeight-2)),this.setWidth(this.totalWidth),this.setHeight(this.totalHeight),this.useHEXColorsForSkin_bl?(this.icon_do=new FWDEVPDisplayObject("div"),this.icon_do.setWidth(c.icon_img.width),this.icon_do.setHeight(c.icon_img.height),this.icon_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(this.icon_img,this.normalButtonsColor_str).canvas,this.icon_do.screen.appendChild(c.icon_do_canvas)):(this.icon_do=new FWDEVPDisplayObject("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.useHEXColorsForSkin_bl?(this.iconS_do=new FWDEVPDisplayObject("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=FWDEVPUtils.getCanvasWithModifiedColor(c.iconS_img,c.selectedButtonsColor_str).canvas,c.iconS_do.screen.appendChild(c.iconS_do_canvas)}):(this.iconS_do=new FWDEVPDisplayObject("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),FWDEVPUtils.isIEAndLessThen9&&(this.dumy_do=new FWDEVPDisplayObject("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),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.isMobile_bl||(c.screen.addEventListener("mouseover",c.onMouseOver),c.screen.addEventListener("mouseout",c.onMouseOut),c.screen.addEventListener("mouseup",c.onMouseUp)),c.screen.addEventListener("touchend",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(t.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.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.isMobile_bl?"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.hide=function(e,t){(this.isShowed_bl||t)&&(this.isShowed_bl=!1,this.hasThumbanil_bl=!1,FWDAnimation.killTweensOf(this.main_do),e&&!c.isMobile_bl?"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(){FWDEVPUtils.isIEAndLessThen9||FWDAnimation.to(this.main_do,.8,{alpha:.5})},this.showWithOpacity=function(){FWDEVPUtils.isIEAndLessThen9||FWDAnimation.to(this.main_do,.8,{alpha:1})},c.updateHEXColors=function(e,t){FWDEVPUtils.changeCanvasHEXColor(c.icon_img,c.icon_do_canvas,e),FWDEVPUtils.changeCanvasHEXColor(c.iconS_img,c.iconS_do_canvas,t),this.text_do.getStyle().color=e,this.borderNColor_str=e,this.borderSColor_str=t,this.border_do.getStyle().border="1px solid "+this.borderNColor_str},c.init()};t.setPrototype=function(){t.prototype=null,t.prototype=new FWDEVPTransformDisplayObject("div")},t.CLICK="onClick",t.MOUSE_OVER="onMouseOver",t.SHOW_TOOLTIP="showTooltip",t.MOUSE_OUT="onMouseOut",t.MOUSE_UP="onMouseDown",t.prototype=null,e.FWDEVPAdsButton=t}(window),function(e){var t=function(e,o,i,s,n){var r=this;t.prototype;this.main_do=null,this.bk_do=null,this.text_do=null,this.border_do=null,this.thumbHolder_do=null,this.borderNColor_str=o,this.borderSColor_str=i,this.adsBackgroundPath_str=s,this.position_str=e,this.timeColor_str=n,this.totalWidth=215,this.totalHeight=64,this.fontSize=12,this.hasThumbanil_bl=!1,this.isShowed_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,r.init=function(){r.setOverflow("visible"),r.setupMainContainers(),r.hide(!1,!0)},r.setupMainContainers=function(){this.main_do=new FWDEVPDisplayObject("div"),this.main_do.hasTransform3d_bl=!1,this.main_do.hasTransform2d_bl=!1,this.main_do.setBackfaceVisibility(),this.bk_do=new FWDEVPDisplayObject("div"),this.bk_do.getStyle().background="url('"+this.adsBackgroundPath_str+"')",this.text_do=new FWDEVPDisplayObject("div"),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 FWDEVPDisplayObject("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 FWDEVPDisplayObject("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.setHeight(this.totalHeight-2)):(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){this.hasThumbanil_bl=!0,this.thumbnail_do||(this.thumbnail_do=new FWDEVPDisplayObject("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(){r.smallImageOriginalW=r.smallImage_img.width,r.smallImageOriginalH=r.smallImage_img.height,r.thumbnail_do.setScreen(r.smallImage_img),r.thumbHolder_do.addChild(r.thumbnail_do);var e=r.thumbHolder_do.w/r.smallImageOriginalW,t=r.thumbHolder_do.h/r.smallImageOriginalH,o=0;e>=t?o=e:e<=t&&(o=t),r.thumbnail_do.setWidth(Math.round(r.smallImageOriginalW*o)),r.thumbnail_do.setHeight(Math.round(r.smallImageOriginalH*o)),r.thumbnail_do.setX(Math.round((r.thumbHolder_do.w-r.thumbnail_do.w)/2)),r.thumbnail_do.setY(Math.round((r.thumbHolder_do.h-r.thumbnail_do.h)/2)),r.thumbnail_do.setAlpha(0),FWDAnimation.to(r.thumbnail_do,.8,{alpha:1})},this.updateText=function(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((r.totalHeight-r.text_do.getHeight())/2))},this.show=function(e){this.isShowed_bl||(this.isShowed_bl=!0,this.setVisible(!0),FWDAnimation.killTweensOf(this.main_do),e&&!r.isMobile_bl?"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&&!r.isMobile_bl?"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(){r.smallImage_img&&(r.smallImage_img.onload=null,r.smallImage_img.src="",FWDAnimation.killTweensOf(r.thumbnail_do)),1!=r.main_do.alpha&&r.main_do.setAlpha(1),r.thumbHolder_do.setVisible(!1),r.setVisible(!1)},this.hideWithOpacity=function(){FWDEVPUtils.isIEAndLessThen9||FWDAnimation.to(this.main_do,.8,{alpha:.5})},this.showWithOpacity=function(){FWDEVPUtils.isIEAndLessThen9||FWDAnimation.to(this.main_do,.8,{alpha:1})},r.init()};t.setPrototype=function(){t.prototype=null,t.prototype=new FWDEVPTransformDisplayObject("div")},t.CLICK="onClick",t.MOUSE_OVER="onMouseOver",t.SHOW_TOOLTIP="showTooltip",t.MOUSE_OUT="onMouseOut",t.MOUSE_UP="onMouseDown",t.prototype=null,e.FWDEVPAdsStart=t}(window),function(window){var FWDEVPAnnotation=function(props_obj){var self=this,prototype=FWDEVPAnnotation.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.parent=props_obj.parent,this.curX=this.left,this.curY=this.top,this.handPath_str=props_obj.handPath_str,this.grabPath_str=props_obj.grabPath_str,this.dummy_do=null,this.isShowed_bl=!1,this.isClosed_bl=!1,self.init=function(){self.setOverflow("visible"),self.setAlpha(0),self.setVisible(!1),FWDEVPUtils.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 FWDEVPDisplayObject("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&&(FWDEVPSimpleSizeButton.setPrototype(),self.closeButton_do=new FWDEVPSimpleSizeButton(self.closeButtonNpath,self.closeButtonSPath,21,21),self.closeButton_do.setScale2(0),self.closeButton_do.addListener(FWDEVPSimpleSizeButton.CLICK,self.closeClickButtonCloseHandler),self.closeButton_do.getStyle().position="absolute",self.addChild(self.closeButton_do)),self.showAnnotationsPositionTool_bl&&(self.info_do=new FWDEVPDisplayObject("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="<div style='padding:4px; maring:4px; color:#000000'> data-left="+Math.round(self.curX*self.parent.scaleInverse)+"</div><div style='padding:4px; margin:4px; color:#000000;'> data-top="+Math.round(self.curY*self.parent.scaleInverse)+"</div>",self.setX(Math.round(self.curX*self.parent.scale)),self.setY(Math.round(self.curY*self.parent.scale))},100),self.isMobile_bl?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.parent.addChild(self);var t=FWDEVPUtils.getViewportMouseCoordinates(e);self.startX=t.screenX-self.parent.getGlobalX(),self.startY=t.screenY-self.parent.getGlobalY(),self.curX=self.x,self.curY=self.y,self.isMobile_bl?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=FWDEVPUtils.getViewportMouseCoordinates(e);self.localX=t.screenX-self.parent.getGlobalX(),self.localY=t.screenY-self.parent.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.parent.getGlobalX(),self.startY=t.screenY-self.parent.getGlobalY(),self.info_do.screen.innerHTML="<div style='padding:4px; maring:4px; color:#000000'> data-left="+Math.round(self.curX*self.parent.scaleInverse)+"</div><div style='padding:4px; margin:4px; color:#000000;'> data-top="+Math.round(self.curY*self.parent.scaleInverse)+"</div>"},this.selfEndHandler=function(e){self.getStyle().cursor="url("+self.handPath_str+"), default",self.isMobile_bl?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("http")?window.open(self.clickSource,self.target):eval(self.clickSource)},this.closeClickButtonCloseHandler=function(){self.hide(),self.isClosed_bl=!0},this.show=function(){this.isShowed_bl||this.isClosed_bl||(self.isShowed_bl=!0,self.setVisible(!0),FWDAnimation.killTweensOf(self),FWDAnimation.to(self,.8,{alpha:1,ease:Quint.easeOut}),self.closeButton_do&&FWDAnimation.to(self.closeButton_do,.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.closeButton_do&&(FWDAnimation.killTweensOf(self.closeButton_do),self.closeButton_do.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})},self.init()};FWDEVPAnnotation.setPrototype=function(){FWDEVPAnnotation.prototype=null,FWDEVPUtils.hasTransform2d?FWDEVPAnnotation.prototype=new FWDEVPTransformDisplayObject("div"):FWDEVPAnnotation.prototype=new FWDEVPDisplayObject("div","absolute")},FWDEVPAnnotation.prototype=null,window.FWDEVPAnnotation=FWDEVPAnnotation}(window),function(e){var t=function(e,o){var i=this;t.prototype;this.source_ar=o.annotations_ar,this.ann_ar=[],this.totalAnnotations=i.source_ar.length,this.showAnnotationsPositionTool_bl=o.showAnnotationsPositionTool_bl,i.init=function(){i.setOverflow("visible"),i.setupAnnotations()},i.setupAnnotations=function(){for(var e=0;e<i.totalAnnotations;e++){FWDEVPAnnotation.setPrototype();var t=new FWDEVPAnnotation({id:e,start:this.source_ar[e].start,end:this.source_ar[e].end,left:this.source_ar[e].left,top:this.source_ar[e].top,clickSource:this.source_ar[e].clickSource,clickSourceTarget:this.source_ar[e].clickSourceTarget,content:this.source_ar[e].content,showCloseButton_bl:this.source_ar[e].showCloseButton_bl,closeButtonNpath:o.annotationAddCloseNPath_str,closeButtonSPath:o.annotationAddCloseSPath_str,normalStateClass:this.source_ar[e].normalStateClass,selectedStateClass:this.source_ar[e].selectedStateClass,showAnnotationsPositionTool_bl:i.showAnnotationsPositionTool_bl,parent:i,handPath_str:o.handPath_str,grabPath_str:o.grabPath_str});this.ann_ar[e]=t,this.addChild(t)}},this.update=function(e){if(0!=i.totalAnnotations&&0!=e)for(var t,o=0;o<i.totalAnnotations;o++)t=i.ann_ar[o],e<0?t.hide():e>=t.startTime&&e<=t.endTime?(t.show(),i.position()):t.hide()},this.position=function(t){var o=e.stageWidth/e.maxWidth;if(i.setX(Math.round((e.stageWidth-o*e.maxWidth)/2)),i.setY(Math.round((e.tempVidStageHeight-o*e.maxHeight)/2)),i.scale=e.stageWidth/e.maxWidth,i.scaleY=i.scale,i.scaleX=i.scale,i.scaleInverse=e.maxWidth/e.stageWidth,!i.showAnnotationsPositionTool_bl)for(var s=0;s<i.totalAnnotations;s++){var n=this.ann_ar[s];n.setScale2(i.scale),n.finalX=Math.floor(n.left*i.scaleX),n.finalY=Math.floor(n.top*i.scaleY),n.closeButton_do&&(n.closeButton_do.setWidth(n.closeButton_do.buttonWidth*i.scaleInverse),n.closeButton_do.setHeight(n.closeButton_do.buttonHeight*i.scaleInverse),n.closeButton_do.n_do.setWidth(n.closeButton_do.buttonWidth*i.scaleInverse),n.closeButton_do.n_do.setHeight(n.closeButton_do.buttonHeight*i.scaleInverse),n.closeButton_do.s_do.setWidth(n.closeButton_do.buttonWidth*i.scaleInverse),n.closeButton_do.s_do.setHeight(n.closeButton_do.buttonHeight*i.scaleInverse),n.closeButton_do.setX(Math.floor(n.getWidth()-n.closeButton_do.w/2)),n.closeButton_do.setY(Math.floor(-n.closeButton_do.h/2))),n.prevFinalX!=n.finalX&&(t?FWDAnimation.to(n,.8,{x:n.finalX,ease:Expo.easeInOut}):n.setX(n.finalX)),n.prevFinalY!=n.finalY&&(t?FWDAnimation.to(n,.8,{y:n.finalY,ease:Expo.easeInOut}):n.setY(n.finalY)),n.prevFinalX=n.finalX,n.prevFinalY=n.finalY}},i.init()};t.setPrototype=function(){t.prototype=null,t.prototype=new FWDEVPDisplayObject("div","absolute")},t.prototype=null,e.FWDEVPAnnotations=t}(window),function(e){var t=function(o,i){var s=this;t.prototype;this.audio_el=null,this.sourcePath_str=null,this.lastPercentPlayed=0,this.volume=i,this.curDuration=0,this.countNormalMp3Errors=0,this.countShoutCastErrors=0,this.maxShoutCastCountErrors=5,this.maxNormalCountErrors=1,this.testShoutCastId_to,this.audioVisualizerLinesColor_str=FWDEVPUtils.hexToRgb(o.data.audioVisualizerLinesColor_str),this.audioVisualizerCircleColor_str=FWDEVPUtils.hexToRgb(o.data.audioVisualizerCircleColor_str),this.preload_bl=!1,this.allowScrubing_bl=!1,this.hasError_bl=!0,this.isPlaying_bl=!1,this.isStopped_bl=!0,this.hasPlayedOnce_bl=!1,this.isStartEventDispatched_bl=!1,this.isSafeToBeControlled_bl=!1,this.isShoutcast_bl=!1,this.isNormalMp3_bl=!1,this.init=function(){s.setupAudio(),FWDEVPUtils.isLocal||s.setupSpectrum()},this.resizeAndPosition=function(e,t){e&&(s.stageWidth=e,s.stageHeight=t),s.setWidth(s.stageWidth),s.setHeight(s.stageHeight),s.resizeSpectrumCanvas()},this.setupAudio=function(){null==s.audio_el&&(s.audio_el=document.createElement("audio"),s.screen.appendChild(s.audio_el),s.audio_el.controls=!1,s.audio_el.preload="auto",s.audio_el.volume=s.volume,s.setPlaybackRate(o.data.defaultPlaybackRate_ar[o.data.startAtPlaybackIndex])),s.audio_el.addEventListener("error",s.errorHandler),s.audio_el.addEventListener("canplay",s.safeToBeControlled),s.audio_el.addEventListener("canplaythrough",s.safeToBeControlled),s.audio_el.addEventListener("progress",s.updateProgress),s.audio_el.addEventListener("timeupdate",s.updateAudio),s.audio_el.addEventListener("pause",s.pauseHandler),s.audio_el.addEventListener("play",s.playHandler),s.audio_el.addEventListener("ended",s.endedHandler)},this.destroyAudio=function(){s.audio_el&&(s.audio_el.removeEventListener("error",s.errorHandler),s.audio_el.removeEventListener("canplay",s.safeToBeControlled),s.audio_el.removeEventListener("canplaythrough",s.safeToBeControlled),s.audio_el.removeEventListener("progress",s.updateProgress),s.audio_el.removeEventListener("timeupdate",s.updateAudio),s.audio_el.removeEventListener("pause",s.pauseHandler),s.audio_el.removeEventListener("play",s.playHandler),s.audio_el.removeEventListener("ended",s.endedHandler),s.audio_el.removeEventListener("waiting",s.startToBuffer),s.audio_el.removeEventListener("playing",s.stopToBuffer),s.audio_el.src="",s.audio_el.load())},this.startToBuffer=function(e){s.dispatchEvent(FWDEVPVideoScreen.START_TO_BUFFER)},this.stopToBuffer=function(){s.dispatchEvent(FWDEVPVideoScreen.STOP_TO_BUFFER)},this.togglePlayPause=function(){null!=s&&s.isSafeToBeControlled_bl&&(s.isPlaying_bl?s.pause():s.play())},this.errorHandler=function(o){if(null!=s.sourcePath_str&&void 0!=s.sourcePath_str){if(s.isNormalMp3_bl&&s.countNormalMp3Errors<=s.maxNormalCountErrors)return s.stop(),s.testShoutCastId_to=setTimeout(s.play,200),void s.countNormalMp3Errors++;if(s.isShoutcast_bl&&s.countShoutCastErrors<=s.maxShoutCastCountErrors&&0==s.audio_el.networkState)return s.testShoutCastId_to=setTimeout(s.play,200),void s.countShoutCastErrors++;var i;s.hasError_bl=!0,s.stop(),i=0==s.audio_el.networkState?"error 'self.audio_el.networkState = 1'":1==s.audio_el.networkState?"error 'self.audio_el.networkState = 1'":2==s.audio_el.networkState?"'self.audio_el.networkState = 2'":3==s.audio_el.networkState?"source not found <font color='#FF0000'>"+s.sourcePath_str+"</font>":o,e.console&&e.console.log(s.audio_el.networkState),s.dispatchEvent(t.ERROR,{text:i})}},this.setSource=function(e){s.sourcePath_str=e,clearTimeout(s.testShoutCastId_to),-1!=s.sourcePath_str.indexOf(";")?(s.isShoutcast_bl=!0,s.countShoutCastErrors=0):s.isShoutcast_bl=!1,-1==s.sourcePath_str.indexOf(";")?(s.isNormalMp3_bl=!0,s.countNormalMp3Errors=0):s.isNormalMp3_bl=!1,s.lastPercentPlayed=0,s.audio_el&&s.stop(!0)},this.play=function(e){if(s.isStopped_bl)s.isPlaying_bl=!1,s.hasError_bl=!1,s.allowScrubing_bl=!1,s.isStopped_bl=!1,s.setupAudio(),s.audio_el.src=s.sourcePath_str,s.play(),s.setVisible(!0);else if(!s.audio_el.ended||e)try{s.isPlaying_bl=!0,s.hasPlayedOnce_bl=!0,s.audio_el.play(),FWDEVPUtils.isIE&&s.dispatchEvent(t.PLAY)}catch(e){}},this.resume=function(){s.isStopped_bl||s.play()},this.pause=function(){null!=s&&null!=s.audio_el&&(s.audio_el.ended||(s.audio_el.pause(),s.isPlaying_bl=!1,FWDEVPUtils.isIE&&s.dispatchEvent(t.PAUSE)))},this.pauseHandler=function(){s.allowScrubing_bl||(s.stopSpectrum(),s.dispatchEvent(t.PAUSE))},this.playHandler=function(){s.allowScrubing_bl||(s.isStartEventDispatched_bl||(s.dispatchEvent(t.START),s.isStartEventDispatched_bl=!0),s.startSpectrum(),s.dispatchEvent(t.PLAY))},this.endedHandler=function(){s.dispatchEvent(t.PLAY_COMPLETE)},this.stop=function(e){(null!=s&&null!=s.audio_el&&!s.isStopped_bl||e)&&(s.isPlaying_bl=!1,s.isStopped_bl=!0,s.hasPlayedOnce_bl=!0,s.isSafeToBeControlled_bl=!1,s.isStartEventDispatched_bl=!1,s.setVisible(!1),clearTimeout(s.testShoutCastId_to),s.stopSpectrum(),s.audio_el.pause(),s.destroyAudio(),s.dispatchEvent(t.STOP),s.dispatchEvent(t.LOAD_PROGRESS,{percent:0}),s.dispatchEvent(t.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00"}))},this.safeToBeControlled=function(){s.isSafeToBeControlled_bl||(s.hasHours_bl=Math.floor(s.audio_el.duration/3600)>0,s.isPlaying_bl=!0,s.isSafeToBeControlled_bl=!0,s.dispatchEvent(t.SAFE_TO_SCRUBB),s.dispatchEvent(t.SAFE_TO_UPDATE_VOLUME))},this.updateProgress=function(){var e=0;s.audio_el.buffered.length>0&&(e=s.audio_el.buffered.end(s.audio_el.buffered.length-1).toFixed(1)/s.audio_el.duration.toFixed(1),!isNaN(e)&&e||(e=0)),1==e&&s.audio_el.removeEventListener("progress",s.updateProgress),s.dispatchEvent(t.LOAD_PROGRESS,{percent:e})},this.updateAudio=function(){var e;s.allowScrubing_bl||(e=s.audio_el.currentTime/s.audio_el.duration,s.dispatchEvent(t.UPDATE,{percent:e}));var o=s.formatTime(s.audio_el.duration),i=s.formatTime(s.audio_el.currentTime);isNaN(s.audio_el.duration)?s.dispatchEvent(t.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00",seconds:Math.round(s.audio_el.currentTime)}):s.dispatchEvent(t.UPDATE_TIME,{curTime:i,totalTime:o,seconds:Math.round(s.audio_el.currentTime)}),s.lastPercentPlayed=e,s.curDuration=i},this.startToScrub=function(){s.allowScrubing_bl=!0},this.stopToScrub=function(){s.allowScrubing_bl=!1},this.scrubbAtTime=function(e){s.audio_el.currentTime=e;var t=FWDEVPVideoScreen.formatTime(s.audio_el.duration),o=FWDEVPVideoScreen.formatTime(s.audio_el.currentTime);s.dispatchEvent(FWDEVPVideoScreen.UPDATE_TIME,{curTime:o,totalTime:t})},this.scrub=function(e,o){if(null!=s.audio_el&&s.audio_el.duration){o&&s.startToScrub();try{s.audio_el.currentTime=s.audio_el.duration*e;var i=s.formatTime(s.audio_el.duration),n=s.formatTime(s.audio_el.currentTime);s.dispatchEvent(t.UPDATE_TIME,{curTime:n,totalTime:i})}catch(o){}}},this.replay=function(){s.scrub(0),s.play()},this.setVolume=function(e){e&&(s.volume=e),s.audio_el&&(s.audio_el.volume=s.volume)},this.formatTime=function(e){var t=Math.floor(e/3600),o=e%3600,i=Math.floor(o/60),n=o%60,r=Math.ceil(n);return i=i>=10?i:"0"+i,r=r>=10?r:"0"+r,isNaN(r)?"00:00":s.hasHours_bl?t+":"+i+":"+r:i+":"+r},this.setPlaybackRate=function(e){s.audio_el&&(.25==e&&(e="0.5"),s.audio_el.defaultPlaybackRate=e,s.audio_el.playbackRate=e)},this.setupSpectrum=function(){var o=e.AudioContext||e.webkitAudioContext;!this.canvas_do&&o&&(t.countAudioContext>4||(t.countAudioContext++,this.canvas_do=new FWDEVPDisplayObject("canvas"),this.addChild(this.canvas_do),this.canvas=this.canvas_do.screen,this.ctx=this.canvas.getContext("2d"),this.resizeSpectrumCanvas(),o&&(this.context=new o,this.analyser=this.context.createAnalyser(),this.source=this.context.createMediaElementSource(this.audio_el),this.source.connect(this.analyser),this.analyser.connect(this.context.destination),this.fbc_array=new Uint8Array(this.analyser.frequencyBinCount),this.renderSpectrum())))},this.resizeSpectrumCanvas=function(){s.canvas_do&&(s.canvas_do.setWidth(s.stageWidth),s.canvas_do.setHeight(s.stageHeight),s.canvas.width=s.stageWidth,s.canvas.height=s.stageHeight)},s.bars=200,FWDEVPUtils.isMobile&&(s.bars=100),s.react_x=0,s.react_y=0,s.radius=0,s.deltarad=0,s.shockwave=0,s.rot=0,s.intensity=0,s.isSeeking=0,s.center_x,s.center_y,this.renderSpectrum=function(){if(s.canvas_do){s.resizeSpectrumCanvas();var e=s.ctx.createLinearGradient(0,0,0,s.canvas.height);e.addColorStop(0,"rgba(0, 0, 0, 1)"),e.addColorStop(1,"rgba(0, 0, 0, 1)"),s.ctx.fillStyle=e,s.ctx.fillRect(0,0,s.canvas.width,s.canvas.height),s.ctx.fillStyle="rgba(255, 255, 255, "+(125e-7*s.intensity-.4)+")",s.ctx.fillRect(0,0,s.canvas.width,s.canvas.height),s.rot=s.rot+1e-7*s.intensity,s.react_x=0,s.react_y=0,s.intensity=0,s.analyser.getByteFrequencyData(s.fbc_array);for(var t=0;t<s.bars;t++){rads=2*Math.PI/s.bars,bar_x=s.center_x,bar_y=s.center_y;var o=s.stageHeight/3;isNaN(o)&&(o=10),bar_height=Math.round(s.fbc_array[t]/256*o),bar_width=Math.round(.02*bar_height),bar_x_term=s.center_x+Math.cos(rads*t+s.rot)*(s.radius+bar_height),bar_y_term=s.center_y+Math.sin(rads*t+s.rot)*(s.radius+bar_height),s.ctx.save();var i=s.audioVisualizerLinesColor_str;s.ctx.strokeStyle=i,s.ctx.lineWidth=bar_width,s.ctx.beginPath(),s.ctx.moveTo(bar_x,bar_y),s.ctx.lineTo(bar_x_term,bar_y_term),s.ctx.stroke(),s.react_x+=Math.cos(rads*t+s.rot)*(s.radius+bar_height),s.react_y+=Math.sin(rads*t+s.rot)*(s.radius+bar_height),s.intensity+=bar_height}s.center_x=s.canvas.width/2-.007*s.react_x,s.center_y=s.canvas.height/2-.007*s.react_y,radius_old=s.radius,s.radius=25+.002*s.intensity,s.deltarad=s.radius-radius_old,s.ctx.fillStyle=s.audioVisualizerCircleColor_str,s.ctx.beginPath(),s.ctx.arc(s.center_x,s.center_y,s.radius+2,0,2*Math.PI,!1),s.ctx.fill(),s.shockwave+=60,s.ctx.lineWidth=15,s.ctx.strokeStyle=s.audioVisualizerCircleColor_str,s.ctx.beginPath(),s.ctx.arc(s.center_x,s.center_y,s.shockwave+s.radius,0,2*Math.PI,!1),s.ctx.stroke(),s.deltarad>15&&(s.shockwave=0,s.ctx.fillStyle="rgba(255, 255, 255, 0.7)",s.ctx.fillRect(0,0,s.canvas.width,s.canvas.height),s.rot=s.rot+.4),s.startSpectrum()}},this.startSpectrum=function(){s.canvas_do&&(s.stopSpectrum(),s.spectrumAnimationFrameId=e.requestAnimationFrame(s.renderSpectrum))},this.stopSpectrum=function(){s.canvas_do&&cancelAnimationFrame(s.spectrumAnimationFrameId)},this.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div")},t.countAudioContext=0,t.ERROR="error",t.UPDATE="update",t.UPDATE="update",t.UPDATE_TIME="updateTime",t.SAFE_TO_SCRUBB="safeToControll",t.SAFE_TO_UPDATE_VOLUME="safeToUpdateVolume",t.LOAD_PROGRESS="loadProgress",t.START="start",t.PLAY="play",t.PAUSE="pause",t.STOP="stop",t.PLAY_COMPLETE="playComplete",e.FWDEVPAudioScreen=t}(window),function(){var e=function(t,o,i,s,n,r,l,a){var d=this;e.prototype;this.n1Img=t,this.s1Path_str=o,this.n2Img=i,this.s2Path_str=s,this.firstButton_do,this.n1_do,this.s1_do,this.secondButton_do,this.n2_do,this.s2_do,this.buttonWidth=d.n1Img.width,this.buttonHeight=d.n1Img.height,this.useHEXColorsForSkin_bl=r,this.normalButtonsColor_str=l,this.selectedButtonsColor_str=a,this.isSelectedState_bl=!1,this.currentState=1,this.isDisabled_bl=!1,this.isMaximized_bl=!1,this.disptachMainEvent_bl=n,this.isDisabled_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,this.allowToCreateSecondButton_bl=!d.isMobile_bl||d.hasPointerEvent_bl,d.init=function(){d.hasTransform2d_bl=!1,d.setButtonMode(!0),d.setWidth(d.buttonWidth),d.setHeight(d.buttonHeight),d.setupMainContainers(),d.secondButton_do.setVisible(!1)},d.setupMainContainers=function(){d.firstButton_do=new FWDEVPDisplayObject("div"),d.firstButton_do.setWidth(d.buttonWidth),d.firstButton_do.setHeight(d.buttonHeight),d.useHEXColorsForSkin_bl?(d.n1_do=new FWDEVPDisplayObject("div"),d.n1_do.setWidth(d.buttonWidth),d.n1_do.setHeight(d.buttonHeight),d.n1_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(d.n1Img,d.normalButtonsColor_str).canvas,d.n1_do.screen.appendChild(d.n1_sdo_canvas)):(d.n1_do=new FWDEVPDisplayObject("img"),d.n1_do.setScreen(d.n1Img)),d.firstButton_do.addChild(d.n1_do),d.allowToCreateSecondButton_bl&&(d.s1_img=new Image,d.s1_img.src=d.s1Path_str,d.useHEXColorsForSkin_bl?(d.s1_do=new FWDEVPTransformDisplayObject("div"),d.s1_do.setWidth(d.buttonWidth),d.s1_do.setHeight(d.buttonHeight),d.s1_img.onload=function(){d.s1_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(d.s1_img,d.selectedButtonsColor_str).canvas,d.s1_do.screen.appendChild(d.s1_do_canvas)},d.s1_do.setAlpha(0)):(d.s1_do=new FWDEVPDisplayObject("img"),d.s1_do.setScreen(d.s1_img),d.s1_do.setWidth(d.buttonWidth),d.s1_do.setHeight(d.buttonHeight),d.s1_do.setAlpha(0)),d.firstButton_do.addChild(d.s1_do)),d.secondButton_do=new FWDEVPDisplayObject("div"),d.secondButton_do.setWidth(d.buttonWidth),d.secondButton_do.setHeight(d.buttonHeight),d.useHEXColorsForSkin_bl?(d.n2_do=new FWDEVPDisplayObject("div"),d.n2_do.setWidth(d.buttonWidth),d.n2_do.setHeight(d.buttonHeight),d.n2_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(d.n2Img,d.normalButtonsColor_str).canvas,d.n2_do.screen.appendChild(d.n2_sdo_canvas)):(d.n2_do=new FWDEVPDisplayObject("img"),d.n2_do.setScreen(d.n2Img)),d.secondButton_do.addChild(d.n2_do),d.allowToCreateSecondButton_bl&&(d.s2_img=new Image,d.s2_img.src=d.s2Path_str,d.useHEXColorsForSkin_bl?(d.s2_do=new FWDEVPTransformDisplayObject("div"),d.s2_do.setWidth(d.buttonWidth),d.s2_do.setHeight(d.buttonHeight),d.s2_img.onload=function(){d.s2_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(d.s2_img,d.selectedButtonsColor_str).canvas,d.s2_do.screen.appendChild(d.s2_do_canvas)},d.s2_do.setAlpha(0)):(d.s2_do=new FWDEVPDisplayObject("img"),d.s2_do.setScreen(d.s2_img),d.s2_do.setWidth(d.buttonWidth),d.s2_do.setHeight(d.buttonHeight),d.s2_do.setAlpha(0)),d.secondButton_do.addChild(d.s2_do)),d.addChild(d.secondButton_do),d.addChild(d.firstButton_do),d.hasPointerEvent_bl?(d.screen.addEventListener("pointerup",d.onMouseUp),d.screen.addEventListener("pointerover",d.onMouseOver),d.screen.addEventListener("pointerout",d.onMouseOut)):d.screen.addEventListener&&(d.isMobile_bl||(d.screen.addEventListener("mouseover",d.onMouseOver),d.screen.addEventListener("mouseout",d.onMouseOut),d.screen.addEventListener("mouseup",d.onMouseUp)),d.screen.addEventListener("toustart",d.onDown),d.screen.addEventListener("touchend",d.onMouseUp))},d.onMouseOver=function(t,o){d.isDisabled_bl||d.isSelectedState_bl||t.pointerType&&t.pointerType!=t.MSPOINTER_TYPE_MOUSE&&"mouse"!=t.pointerType||(d.dispatchEvent(e.MOUSE_OVER,{e:t}),d.setSelectedState(!0))},d.onMouseOut=function(t){!d.isDisabled_bl&&d.isSelectedState_bl&&(t.pointerType&&t.pointerType!=t.MSPOINTER_TYPE_MOUSE&&"mouse"!=t.pointerType||(d.setNormalState(),d.dispatchEvent(e.MOUSE_OUT)))},d.onDown=function(e){e.preventDefault&&e.preventDefault()},d.onMouseUp=function(t){d.isDisabled_bl||2==t.button||(t.preventDefault&&t.preventDefault(),d.isMobile_bl||d.onMouseOver(t,!1),d.disptachMainEvent_bl&&d.dispatchEvent(e.MOUSE_UP,{e:t}))},d.toggleButton=function(){1==d.currentState?(d.firstButton_do.setVisible(!1),d.secondButton_do.setVisible(!0),d.currentState=0,d.dispatchEvent(e.FIRST_BUTTON_CLICK)):(d.firstButton_do.setVisible(!0),d.secondButton_do.setVisible(!1),d.currentState=1,d.dispatchEvent(e.SECOND_BUTTON_CLICK))},d.setButtonState=function(e){1==e?(d.firstButton_do.setVisible(!0),d.secondButton_do.setVisible(!1),d.currentState=1):(d.firstButton_do.setVisible(!1),d.secondButton_do.setVisible(!0),d.currentState=0)},this.setNormalState=function(){d.isMobile_bl&&!d.hasPointerEvent_bl||(d.isSelectedState_bl=!1,FWDAnimation.killTweensOf(d.s1_do),FWDAnimation.killTweensOf(d.s2_do),FWDAnimation.to(d.s1_do,.5,{alpha:0,ease:Expo.easeOut}),FWDAnimation.to(d.s2_do,.5,{alpha:0,ease:Expo.easeOut}))},this.setSelectedState=function(e){d.isSelectedState_bl=!0,FWDAnimation.killTweensOf(d.s1_do),FWDAnimation.killTweensOf(d.s2_do),FWDAnimation.to(d.s1_do,.5,{alpha:1,delay:.1,ease:Expo.easeOut}),FWDAnimation.to(d.s2_do,.5,{alpha:1,delay:.1,ease:Expo.easeOut})},this.disable=function(){d.isDisabled_bl||(d.isDisabled_bl=!0,d.setButtonMode(!1),FWDAnimation.killTweensOf(d),FWDAnimation.to(d,.6,{alpha:.4}),d.setNormalState())},this.enable=function(){d.isDisabled_bl&&(d.isDisabled_bl=!1,d.setButtonMode(!0),FWDAnimation.killTweensOf(d),FWDAnimation.to(d,.6,{alpha:1}))},this.updateHEXColors=function(e,t){FWDEVPUtils.changeCanvasHEXColor(d.n1Img,d.n1_sdo_canvas,e),FWDEVPUtils.changeCanvasHEXColor(d.s1_img,d.s1_do_canvas,t),FWDEVPUtils.changeCanvasHEXColor(d.n2Img,d.n2_sdo_canvas,e),FWDEVPUtils.changeCanvasHEXColor(d.s2_img,d.s2_do_canvas,t)},d.init()};e.setPrototype=function(){e.prototype=new FWDEVPDisplayObject("div")},e.FIRST_BUTTON_CLICK="onFirstClick",e.SECOND_BUTTON_CLICK="secondButtonOnClick",e.MOUSE_OVER="onMouseOver",e.MOUSE_OUT="onMouseOut",e.MOUSE_UP="onMouseUp",e.CLICK="onClick",e.prototype=null,window.FWDEVPComplexButton=e}(window),function(){var e=function(e,t){var o=this;this.parent=e,this.url="http://www.webdesign-flash.ro",this.menu_do=null,this.normalMenu_do=null,this.selectedMenu_do=null,this.over_do=null,this.isDisabled_bl=!1,this.showMenu_bl=t,this.init=function(){o.updateParent(o.parent)},this.updateParent=function(e){o.parent&&(o.parent.screen.addEventListener?o.parent.screen.removeEventListener("contextmenu",this.contextMenuHandler):o.parent.screen.detachEvent("oncontextmenu",this.contextMenuHandler)),o.parent=e,o.parent.screen.addEventListener?o.parent.screen.addEventListener("contextmenu",this.contextMenuHandler):o.parent.screen.attachEvent("oncontextmenu",this.contextMenuHandler)},this.contextMenuHandler=function(e){if(!o.isDisabled_bl){if("disabled"==t)return!!e.preventDefault&&void e.preventDefault();if("default"!=t&&-1!=o.url.indexOf("sh.r")){if(o.setupMenus(),o.parent.addChild(o.menu_do),o.menu_do.setVisible(!0),o.positionButtons(e),window.addEventListener?window.addEventListener("mousedown",o.contextMenuWindowOnMouseDownHandler):document.documentElement.attachEvent("onclick",o.contextMenuWindowOnMouseDownHandler),!e.preventDefault)return!1;e.preventDefault()}}},this.contextMenuWindowOnMouseDownHandler=function(e){var t=FWDEVPUtils.getViewportMouseCoordinates(e),i=t.screenX,s=t.screenY;FWDEVPUtils.hitTest(o.menu_do.screen,i,s)||(window.removeEventListener?window.removeEventListener("mousedown",o.contextMenuWindowOnMouseDownHandler):document.documentElement.detachEvent("onclick",o.contextMenuWindowOnMouseDownHandler),o.menu_do.setX(-500))},this.setupMenus=function(){this.menu_do||(this.menu_do=new FWDEVPDisplayObject("div"),o.menu_do.setX(-500),this.menu_do.getStyle().width="100%",this.normalMenu_do=new FWDEVPDisplayObject("div"),this.normalMenu_do.getStyle().fontFamily="Arial, Helvetica, sans-serif",this.normalMenu_do.getStyle().padding="4px",this.normalMenu_do.getStyle().fontSize="12px",this.normalMenu_do.getStyle().color="#000000",this.normalMenu_do.setInnerHTML("&#0169; made by FWD"),this.normalMenu_do.setBkColor("#FFFFFF"),this.selectedMenu_do=new FWDEVPDisplayObject("div"),this.selectedMenu_do.getStyle().fontFamily="Arial, Helvetica, sans-serif",this.selectedMenu_do.getStyle().padding="4px",this.selectedMenu_do.getStyle().fontSize="12px",this.selectedMenu_do.getStyle().color="#FFFFFF",this.selectedMenu_do.setInnerHTML("&#0169; made by FWD"),this.selectedMenu_do.setBkColor("#000000"),this.selectedMenu_do.setAlpha(0),this.over_do=new FWDEVPDisplayObject("div"),this.over_do.setBkColor("#FF0000"),this.over_do.setAlpha(0),this.menu_do.addChild(this.normalMenu_do),this.menu_do.addChild(this.selectedMenu_do),this.menu_do.addChild(this.over_do),this.parent.addChild(this.menu_do),this.over_do.setWidth(this.selectedMenu_do.getWidth()),this.menu_do.setWidth(this.selectedMenu_do.getWidth()),this.over_do.setHeight(this.selectedMenu_do.getHeight()),this.menu_do.setHeight(this.selectedMenu_do.getHeight()),this.menu_do.setVisible(!1),this.menu_do.setButtonMode(!0),this.menu_do.screen.onmouseover=this.mouseOverHandler,this.menu_do.screen.onmouseout=this.mouseOutHandler,this.menu_do.screen.onclick=this.onClickHandler)},this.mouseOverHandler=function(){-1==o.url.indexOf("w.we")&&(o.menu_do.visible=!1),FWDAnimation.to(o.normalMenu_do,.8,{alpha:0,ease:Expo.easeOut}),FWDAnimation.to(o.selectedMenu_do,.8,{alpha:1,ease:Expo.easeOut})},this.mouseOutHandler=function(){FWDAnimation.to(o.normalMenu_do,.8,{alpha:1,ease:Expo.easeOut}),FWDAnimation.to(o.selectedMenu_do,.8,{alpha:0,ease:Expo.easeOut})},this.onClickHandler=function(){window.open(o.url,"_blank")},this.positionButtons=function(e){var t=FWDEVPUtils.getViewportMouseCoordinates(e),i=t.screenX-o.parent.getGlobalX(),s=t.screenY-o.parent.getGlobalY(),n=i+2,r=s+2;n>o.parent.getWidth()-o.menu_do.getWidth()-2&&(n=i-o.menu_do.getWidth()-2),r>o.parent.getHeight()-o.menu_do.getHeight()-2&&(r=s-o.menu_do.getHeight()-2),o.menu_do.setX(n),o.menu_do.setY(r)},this.disable=function(){o.isDisabled_bl=!0},this.enable=function(){o.isDisabled_bl=!1},this.init()};e.prototype=null,window.FWDEVPContextMenu=e}(window),function(){var e=function(t,o){var s=this;e.prototype;this.bkLeft_img=t.bkLeft_img,this.bkRight_img=t.bkRight_img,this.playN_img=t.playN_img,this.playS_img=t.playS_img,this.pauseN_img=t.pauseN_img,this.pauseS_img=t.pauseS_img,this.mainScrubberBkLeft_img=t.mainScrubberBkLeft_img,this.mainScrubberBkRight_img=t.mainScrubberBkRight_img,this.mainScrubberDragLeft_img=t.mainScrubberDragLeft_img,this.mainScrubberDragLeftSource=t.mainScrubberDragLeft_img.src,this.mainScrubberLine_img=t.mainScrubberLine_img,this.volumeScrubberBkLeft_img=t.volumeScrubberBkLeft_img,this.volumeScrubberBkRight_img=t.volumeScrubberBkRight_img,this.volumeScrubberDragLeft_img=t.volumeScrubberDragLeft_img,this.volumeScrubberLine_img=t.volumeScrubberLine_img,this.volumeN_img=t.volumeN_img,this.volumeS_img=t.volumeS_img,this.volumeD_img=t.volumeD_img,this.progressLeft_img=t.progressLeft_img,this.ytbQualityN_img=t.ytbQualityN_img,this.ytbQualityS_img=t.ytbQualityS_img,this.ytbQualityD_img=t.ytbQualityD_img,this.shareN_img=t.shareN_img,this.subtitleN_img=t.subtitleNPath_img,this.facebookS_img=t.facebookS_img,this.fullScreenN_img=t.fullScreenN_img,this.fullScreenS_img=t.fullScreenS_img,this.normalScreenN_img=t.normalScreenN_img,this.normalScreenS_img=t.normalScreenS_img,this.embedN_img=t.embedN_img,this.showSubtitileByDefault_bl=t.showSubtitileByDefault_bl,this.buttons_ar=[],this.ytbQuality_ar=null,this.ytbButtons_ar=null,this.pointer_do,this.ytbDisabledButton_do=null,this.disable_do=null,this.mainHolder_do=null,this.ytbButtonsHolder_do=null,this.playPauseButton_do=null,this.mainScrubber_do=null,this.mainScrubberBkLeft_do=null,this.mainScrubberBkMiddle_do=null,this.mainScrubberBkRight_do=null,this.mainScrubberDrag_do=null,this.mainScrubberDragLeft_do=null,this.mainScrubberDragMiddle_do=null,this.mainScrubberBarLine_do=null,this.mainProgress_do=null,this.progressLeft_do=null,this.progressMiddle_do=null,this.time_do=null,this.volumeButton_do=null,this.volumeScrubber_do=null,this.volumeScrubberBkLeft_do=null,this.volumeScrubberBkMiddle_do=null,this.volumeScrubberBkRight_do=null,this.volumeScrubberDrag_do=null,this.volumeScrubberDragLeft_do=null,this.volumeScrubberDragMiddle_do=null,this.volumeScrubberBarLine_do=null,this.ytbQualityButton_do=null,this.shareButton_do=null,this.fullScreenButton_do=null,this.ytbQualityArrow_do=null,this.bk_do=null,this.isMainScrubberOnTop_bl=!0,this.bkMiddlePath_str=t.bkMiddlePath_str,this.mainScrubberBkMiddlePath_str=t.mainScrubberBkMiddlePath_str,this.volumeScrubberBkMiddlePath_str=t.volumeScrubberBkMiddlePath_str,this.mainScrubberDragMiddlePath_str=t.mainScrubberDragMiddlePath_str,this.mainScrubberDragMiddleAddPath_str=t.mainScrubberDragMiddleAddPath_str,this.volumeScrubberDragMiddlePath_str=t.volumeScrubberDragMiddlePath_str,this.timeColor_str=t.timeColor_str,this.progressMiddlePath_str=t.progressMiddlePath_str,this.youtubeQualityButtonNormalColor_str=t.youtubeQualityButtonNormalColor_str,this.youtubeQualityButtonSelectedColor_str=t.youtubeQualityButtonSelectedColor_str,this.youtubeQualityArrowPath_str=t.youtubeQualityArrowPath_str,this.controllerBkPath_str=t.controllerBkPath_str,this.ytbQualityButtonPointerPath_str=t.ytbQualityButtonPointerPath_str,this.subtitleSPath_str=t.subtitleSPath_str,this.mainScrubberOffestTop=t.mainScrubberOffestTop,this.totalYtbButtons=0,this.stageWidth=0,this.stageHeight=t.controllerHeight,this.scrubbersBkLeftAndRightWidth=this.mainScrubberBkLeft_img.width,this.mainScrubberWidth=0,this.mainScrubberMinWidth=100,this.volumeScrubberWidth=t.volumeScrubberWidth,this.scrubbersHeight=this.mainScrubberBkLeft_img.height,this.mainScrubberDragLeftWidth=s.mainScrubberDragLeft_img.width,this.scrubbersOffsetWidth=t.scrubbersOffsetWidth,this.volumeScrubberOffsetRightWidth=t.volumeScrubberOffsetRightWidth,this.volume=t.volume,this.lastVolume=s.volume,this.startSpaceBetweenButtons=t.startSpaceBetweenButtons,this.spaceBetweenButtons=t.spaceBetweenButtons,this.percentPlayed=0,this.percentLoaded=0,this.lastTimeLength=0,this.prevYtbQualityButtonsLength=0,this.pointerWidth=8,this.pointerHeight=5,this.timeOffsetLeftWidth=t.timeOffsetLeftWidth,this.timeOffsetRightWidth=t.timeOffsetRightWidth,s.useHEXColorsForSkin_bl=t.useHEXColorsForSkin_bl,s.normalButtonsColor_str=t.normalButtonsColor_str,s.selectedButtonsColor_str=t.selectedButtonsColor_str,this.showFullScreenButton_bl=t.showFullScreenButton_bl,this.showYoutubeQualityButton_bl=t.showYoutubeQualityButton_bl,this.showSubtitleButton_bl=t.showSubtitleButton_bl,this.showShareButton_bl=t.showShareButton_bl,this.showVolumeScrubber_bl=t.showVolumeScrubber_bl,this.allowToChangeVolume_bl=!0,this.showTime_bl=t.showTime_bl,this.showVolumeButton_bl=t.showVolumeButton_bl,this.showControllerWhenVideoIsStopped_bl=t.showControllerWhenVideoIsStopped_bl,this.showDownloadVideoButton_bl=t.showDownloadVideoButton_bl,this.showEmbedButton_bl=t.showEmbedButton_bl,this.showPlaybackRateButton_bl=t.showPlaybackRateButton_bl,this.isMainScrubberScrubbing_bl=!1,this.isMainScrubberDisabled_bl=!1,this.isVolumeScrubberDisabled_bl=!1,this.isMainScrubberLineVisible_bl=!1,this.isVolumeScrubberLineVisible_bl=!1,this.hasYtbButton_bl=!1,this.isMute_bl=!1,this.isShowed_bl=!0,this.areYtbQualityButtonsShowed_bl=!0,this.repeatBackground_bl=t.repeatBackground_bl,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,s.init=function(){if(s.setOverflow("visible"),s.mainHolder_do=new FWDEVPDisplayObject("div"),s.repeatBackground_bl)s.mainHolder_do.getStyle().background="url('"+s.controllerBkPath_str+"')";else{s.bk_do=new FWDEVPDisplayObject("img");var e=new Image;e.src=s.controllerBkPath_str,s.bk_do.setScreen(e),s.bk_do.setBkColor("#000000"),s.mainHolder_do.addChild(s.bk_do)}s.mainHolder_do.getStyle().backgroundColor="#000000",s.mainHolder_do.setOverflow("visible"),s.addChild(s.mainHolder_do),s.showYoutubeQualityButton_bl&&(s.ytbQuality_ar=["hd2160","hd1440","highres","hd1080","hd720","large","medium","small","tiny"],s.ytbButtons_ar=[],s.totalYtbButtons=s.ytbQuality_ar.length,s.setupYtbButtons()),s.setupPlayPauseButton(),s.setupMainScrubber(),s.showTime_bl&&s.setupTime(),s.showVolumeButton_bl&&s.setupVolumeButton(),s.showVolumeScrubber_bl&&s.setupVolumeScrubber(),s.showPlaybackRateButton_bl&&s.setupPlaybackRateButton(),s.showYoutubeQualityButton_bl&&s.setupYoutubeQualityButton(),s.showSubtitleButton_bl&&s.setupSubtitleButton(),s.showShareButton_bl&&s.setupShareButton(),s.showEmbedButton_bl&&s.setupEmbedButton(),s.showDownloadVideoButton_bl&&s.setupDownloadButton(),s.showFullScreenButton_bl&&s.setupFullscreenButton(),s.isMobile_bl||s.setupDisable(),s.hide(!1,!0),s.showControllerWhenVideoIsStopped_bl&&s.show(!0)},s.resizeAndPosition=function(){s.stageWidth=o.stageWidth,s.positionButtons(),s.setY(o.stageHeight-s.stageHeight),s.hideQualityButtons(!1),s.ytbButtonsHolder_do&&(FWDAnimation.killTweensOf(s.ytbButtonsHolder_do),s.ytbButtonsHolder_do.setY(o.stageHeight)),s.subtitlesButtonsHolder_do&&(FWDAnimation.killTweensOf(s.subtitlesButtonsHolder_do),s.subtitlesButtonsHolder_do.setY(o.stageHeight)),s.playbackRatesButtonsHolder_do&&(FWDAnimation.killTweensOf(s.playbackRatesButtonsHolder_do),s.playbackRatesButtonsHolder_do.setY(o.stageHeight)),s.positionAdsLines()},s.positionButtons=function(){if(s.stageWidth){var e,t,o=s.showTime_bl,i=s.volumeScrubber_do;s.mainHolder_do.setWidth(s.stageWidth),s.mainHolder_do.setHeight(s.stageHeight),s.setWidth(s.stageWidth),s.setHeight(s.stageHeight);for(var n=[],r=0;r<s.buttons_ar.length;r++)n[r]=s.buttons_ar[r];s.mainScrubberWidth=s.stageWidth-2*s.startSpaceBetweenButtons;for(r=0;r<n.length;r++)(e=n[r])!=s.mainScrubber_do&&(s.mainScrubberWidth-=e.w+s.spaceBetweenButtons);var l=3;for(s.hasYtbButton_bl&&(l=4);s.mainScrubberWidth<s.mainScrubberMinWidth&&n.length>l;){s.mainScrubberWidth=s.stageWidth-2*s.startSpaceBetweenButtons,s.volumeScrubber_do&&-1!=FWDEVPUtils.indexOfArray(n,s.volumeScrubber_do)?(n.splice(FWDEVPUtils.indexOfArray(n,s.volumeScrubber_do),1),s.volumeScrubber_do.setX(-1e3)):s.time_do&&-1!=FWDEVPUtils.indexOfArray(n,s.time_do)?(n.splice(FWDEVPUtils.indexOfArray(n,s.time_do),1),s.time_do.setX(-1e3),o=!1):s.volumeButton_do&&-1!=FWDEVPUtils.indexOfArray(n,s.volumeButton_do)?(n.splice(FWDEVPUtils.indexOfArray(n,s.volumeButton_do),1),s.volumeButton_do.setX(-1e3)):s.volumeScrubber_do&&-1!=FWDEVPUtils.indexOfArray(n,s.volumeScrubber_do)?(n.splice(FWDEVPUtils.indexOfArray(n,s.volumeScrubber_do),1),s.volumeScrubber_do.setX(-1e3),i=!1):s.subtitleButton_do&&-1!=FWDEVPUtils.indexOfArray(n,s.subtitleButton_do)?(n.splice(FWDEVPUtils.indexOfArray(n,s.subtitleButton_do),1),s.subtitleButton_do.setX(-1e3)):s.shareButton_do&&-1!=FWDEVPUtils.indexOfArray(n,s.shareButton_do)?(n.splice(FWDEVPUtils.indexOfArray(n,s.shareButton_do),1),s.shareButton_do.setX(-1e3)):s.embedButton_do&&-1!=FWDEVPUtils.indexOfArray(n,s.embedButton_do)&&(n.splice(FWDEVPUtils.indexOfArray(n,s.embedButton_do),1),s.embedButton_do.setX(-1e3));for(r=0;r<n.length;r++)(e=n[r])!=s.mainScrubber_do&&(s.mainScrubberWidth-=e.w+s.spaceBetweenButtons)}o&&(s.mainScrubberWidth-=2*s.timeOffsetLeftWidth),i&&(s.mainScrubberWidth-=s.volumeScrubberOffsetRightWidth);for(r=0;r<n.length;r++)e=n[r],0==r?(e.setX(s.startSpaceBetweenButtons),e.setY(parseInt((s.stageHeight-e.h)/2))):e==s.mainScrubber_do?(t=n[r-1],FWDAnimation.killTweensOf(s.mainScrubber_do),s.mainScrubber_do.setX(t.x+t.w+s.spaceBetweenButtons),s.mainScrubber_do.setY(parseInt((s.stageHeight-s.scrubbersHeight)/2)),s.mainScrubber_do.setWidth(s.mainScrubberWidth),s.mainScrubberBkMiddle_do.setWidth(s.mainScrubberWidth-2*s.scrubbersBkLeftAndRightWidth),s.mainScrubberBkRight_do.setX(s.mainScrubberWidth-s.scrubbersBkLeftAndRightWidth),s.mainScrubberDragMiddle_do.setWidth(s.mainScrubberWidth-s.scrubbersBkLeftAndRightWidth-s.scrubbersOffsetWidth)):e==s.time_do?(t=n[r-1],e.setX(t.x+t.w+s.spaceBetweenButtons+s.timeOffsetLeftWidth),e.setY(parseInt((s.stageHeight-e.h)/2))):e==s.volumeButton_do&&o?(t=n[r-1],e.setX(t.x+t.w+s.spaceBetweenButtons+s.timeOffsetRightWidth),e.setY(parseInt((s.stageHeight-e.h)/2))):(t=n[r-1],i&&t==s.volumeScrubber_do?e.setX(t.x+t.w+s.spaceBetweenButtons+s.volumeScrubberOffsetRightWidth):e.setX(t.x+t.w+s.spaceBetweenButtons),e.setY(parseInt((s.stageHeight-e.h)/2)));s.disable_do&&(s.disable_do.setWidth(s.stageWidth),s.disable_do.setHeight(s.stageHeight)),s.bk_do&&(s.bk_do.setWidth(s.stageWidth),s.bk_do.setHeight(s.stageHeight)),s.isShowed_bl?s.isMainScrubberOnTop_bl=!1:(s.isMainScrubberOnTop_bl=!0,s.positionScrollBarOnTopOfTheController()),s.progressMiddle_do&&s.progressMiddle_do.setWidth(s.mainScrubberWidth-s.scrubbersBkLeftAndRightWidth-s.scrubbersOffsetWidth),s.updateMainScrubber(s.percentPlayed),s.updatePreloaderBar(s.percentLoaded)}},this.positionScrollBarOnTopOfTheController=function(){s.mainScrubberWidth=s.stageWidth,s.updatePreloaderBar(s.percentLoaded),s.mainScrubber_do.setWidth(s.mainScrubberWidth),s.mainScrubberBkMiddle_do.setWidth(s.mainScrubberWidth-2*s.scrubbersBkLeftAndRightWidth),s.mainScrubberBkRight_do.setX(s.mainScrubberWidth-s.scrubbersBkLeftAndRightWidth),s.mainScrubberDragMiddle_do.setWidth(s.mainScrubberWidth-s.scrubbersBkLeftAndRightWidth-s.scrubbersOffsetWidth),FWDAnimation.killTweensOf(s.mainScrubber_do),s.mainScrubber_do.setX(0),s.isMainScrubberOnTop_bl||s.isShowed_bl?s.mainScrubber_do.setY(-s.mainScrubberOffestTop):s.mainScrubber_do.y!=-s.mainScrubberOffestTop&&(s.mainScrubber_do.setY(s.mainScrubber_do.h),FWDAnimation.to(s.mainScrubber_do,.8,{y:-s.mainScrubberOffestTop,ease:Expo.easeOut})),s.isMainScrubberOnTop_bl=!0},this.setupDisable=function(){s.disable_do=new FWDEVPDisplayObject("div"),FWDEVPUtils.isIE&&(s.disable_do.setBkColor("#FFFFFF"),s.disable_do.setAlpha(0))},this.playbackRatesSource_ar=t.defaultPlaybackRate_ar,this.playbackRateButtons_ar=[],this.totalPlaybackRateButtons=6,this.arePlaybackRateButtonsShowed_bl=!0,this.showPlaybackRateButton_bl||(this.arePlaybackRateButtonsShowed_bl=!1),this.setupPlaybackRateButton=function(){FWDEVPSimpleButton.setPrototype(),s.playbackRateButton_do=new FWDEVPSimpleButton(t.playbackRateNPath_img,t.playbackRateSPath_str,void 0,!0,s.useHEXColorsForSkin_bl,s.normalButtonsColor_str,s.selectedButtonsColor_str),s.buttons_ar.push(s.playbackRateButton_do),s.playbackRateButton_do.setY(parseInt((s.stageHeight-s.playbackRateButton_do.h)/2)),s.playbackRateButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,s.playbackRateButtonMouseUpHandler),s.mainHolder_do.addChild(s.playbackRateButton_do),s.disablePlaybackRateButton(),s.setupPlaybackRateButtons()},this.playbackRateButtonMouseUpHandler=function(){s.arePlaybackRateButtonsShowed_bl?s.hidePlaybackRateButtons(!0):s.showPlaybackRateButtons(!0)},this.disablePlaybackRateButton=function(){s.playbackRateButton_do&&s.playbackRateButton_do.disable()},this.enablePlaybackRateButton=function(){s.playbackRateButton_do&&s.playbackRateButton_do.enable()},this.removePlaybackRateButton=function(){s.playbackRateButton_do&&-1!=FWDEVPUtils.indexOfArray(s.buttons_ar,s.playbackRateButton_do)&&(s.buttons_ar.splice(FWDEVPUtils.indexOfArray(s.buttons_ar,s.playbackRateButton_do),1),s.playbackRateButton_do.setX(-300),s.positionButtons())},this.addPlaybackRateButton=function(){s.playbackRateButton_do&&-1==FWDEVPUtils.indexOfArray(s.buttons_ar,s.playbackRateButton_do)&&(s.ytbQualityButton_do&&-1!=FWDEVPUtils.indexOfArray(s.buttons_ar,s.ytbQualityButton_do)?s.buttons_ar.splice(FWDEVPUtils.indexOfArray(s.buttons_ar,s.ytbQualityButton_do),0,s.playbackRateButton_do):s.subtitleButton_do&&-1!=FWDEVPUtils.indexOfArray(s.buttons_ar,s.subtitleButton_do)?s.buttons_ar.splice(FWDEVPUtils.indexOfArray(s.buttons_ar,s.subtitleButton_do),0,s.playbackRateButton_do):s.shareButton_do&&-1!=FWDEVPUtils.indexOfArray(s.buttons_ar,s.shareButton_do)?s.buttons_ar.splice(FWDEVPUtils.indexOfArray(s.buttons_ar,s.shareButton_do),0,s.playbackRateButton_do):s.fullScreenButton_do&&-1!=FWDEVPUtils.indexOfArray(s.buttons_ar,s.fullScreenButton_do)?s.buttons_ar.splice(FWDEVPUtils.indexOfArray(s.buttons_ar,s.fullScreenButton_do),0,s.playbackRateButton_do):s.buttons_ar.splice(s.buttons_ar.length,0,s.playbackRateButton_do),s.positionButtons())},this.updatePlaybackRateButtons=function(e,t){s.playbackRateButton_do&&(s.positionAndResizePlaybackRateButtons(e),setTimeout(function(){s.disablePlaybackRateButtons(t)},65),s.prevplaybackRateIndex=t)},this.setupPlaybackRateButtons=function(){s.playbackRatesButtonsHolder_do=new FWDEVPDisplayObject("div"),s.playbackRatesButtonsHolder_do.setOverflow("visible"),s.repeatBackground_bl?s.playbackRatesButtonsHolder_do.getStyle().background="url('"+s.controllerBkPath_str+"')":(s.playbackRatesButtonsBackground_do=new FWDEVPDisplayObject("img"),(e=new Image).src=s.controllerBkPath_str,s.playbackRatesButtonsBackground_do.setScreen(e),s.playbackRatesButtonsHolder_do.addChild(s.playbackRatesButtonsBackground_do)),s.playbackRatesButtonsHolder_do.setX(300),s.playbackRatesButtonsHolder_do.setY(-300),o.main_do.addChild(s.playbackRatesButtonsHolder_do,0);var e=new Image;e.src=s.ytbQualityButtonPointerPath_str,s.playbackRatesPonter_do=new FWDEVPDisplayObject("img"),s.playbackRatesPonter_do.setScreen(e),s.playbackRatesPonter_do.setWidth(s.pointerWidth),s.playbackRatesPonter_do.setHeight(s.pointerHeight),s.playbackRatesButtonsHolder_do.addChild(s.playbackRatesPonter_do),(e=new Image).src=s.youtubeQualityArrowPath_str,s.playbackRateQualityArrow_do=new FWDEVPDisplayObject("img"),s.playbackRateQualityArrow_do.setScreen(e),s.playbackRateQualityArrow_do.setX(7),s.playbackRateQualityArrow_do.setWidth(5),s.playbackRateQualityArrow_do.setHeight(7),s.playbackRatesButtonsHolder_do.addChild(s.playbackRateQualityArrow_do);for(var t,i=0;i<s.totalPlaybackRateButtons;i++)FWDEVPYTBQButton.setPrototype(),(t=new FWDEVPYTBQButton("no source",s.youtubeQualityButtonNormalColor_str,s.youtubeQualityButtonSelectedColor_str,void 0,i)).addListener(FWDEVPYTBQButton.MOUSE_OVER,s.plbkQualityOver),t.addListener(FWDEVPYTBQButton.MOUSE_OUT,s.plbkQualityOut),t.addListener(FWDEVPYTBQButton.CLICK,s.plbkQualityClick),s.playbackRateButtons_ar[i]=t,s.playbackRatesButtonsHolder_do.addChild(t);s.positionAndResizePlaybackRateButtons(s.playbackRatesSource_ar),s.hidePlaybackRateButtons(!1)},this.plbkQualityOver=function(e){s.setPlaybackRateArrowPosition(e.target)},this.plbkQualityOut=function(e){s.setPlaybackRateArrowPosition(void 0)},this.plbkQualityClick=function(t){s.startAtPlaybackRate=t.id,s.disablePlaybackRateButtons(s.startAtPlaybackRate),s.hidePlaybackRateButtons(!0),s.dispatchEvent(e.CHANGE_PLAYBACK_RATES,{rate:s.playbackRatesSource_ar[t.id]})},this.positionAndResizePlaybackRateButtons=function(e){if(e){var t=e.length;if(s.prevplaybackRatesQualityButtonsLength!=t){this.prevplaybackRatesQualityButtonsLength=t;for(var o,i=5,n=0,r=0,l=0;l<t;l++)o=s.playbackRateButtons_ar[l],1==e[l]?o.updateText("normal"):o.updateText(e[l]),o.setFinalSize();setTimeout(function(){for(e=0;e<t;e++)o=s.playbackRateButtons_ar[e],e<t?(0!=o.x&&o.setX(0),o.w>n&&(n=o.w),o.setY(i),i+=o.h):-3e3!=o.x&&o.setX(-3e3);for(var e=0;e<t;e++)(o=s.playbackRateButtons_ar[e]).dumy_do.w<n&&(o.setWidth(n),o.dumy_do.setWidth(n));r=i+5,s.playbackRatesPonter_do.setX(parseInt((n-s.playbackRatesPonter_do.w)/2)),s.playbackRatesPonter_do.setY(r),s.playbackRatesButtonsBackground_do&&(s.playbackRatesButtonsBackground_do.setWidth(n),s.playbackRatesButtonsBackground_do.setHeight(r)),s.playbackRatesButtonsHolder_do.setWidth(n),s.playbackRatesButtonsHolder_do.setHeight(r)},60)}}},this.disablePlaybackRateButtons=function(e){for(var t=0;t<s.totalPlaybackRateButtons;t++)btn=s.playbackRateButtons_ar[t],t==e?(FWDAnimation.killTweensOf(s.playbackRateQualityArrow_do),s.playbackRateQualityArrow_do.setY(btn.y+parseInt((btn.h-s.playbackRateQualityArrow_do.h)/2)-1),btn.disable(),s.playbackRateDisabledButton_do=btn):btn.enable()},this.setPlaybackRateArrowPosition=function(e){var t=0;t=e?e.y+parseInt((e.h-s.playbackRateQualityArrow_do.h)/2-1):s.playbackRateDisabledButton_do.y+parseInt((s.playbackRateDisabledButton_do.h-s.playbackRateQualityArrow_do.h)/2-1),FWDAnimation.killTweensOf(s.playbackRateQualityArrow_do),FWDAnimation.to(s.playbackRateQualityArrow_do,.6,{y:t,delay:.1,ease:Expo.easeInOut})},this.showPlaybackRateButtons=function(e){if(!s.arePlaybackRateButtonsShowed_bl){s.hideQualityButtons(),s.arePlaybackRateButtonsShowed_bl=!0;var t=parseInt(s.playbackRateButton_do.x+parseInt(s.playbackRateButton_do.w-s.playbackRatesButtonsHolder_do.w)/2),i=parseInt(o.stageHeight-s.stageHeight-s.playbackRatesButtonsHolder_do.h-6);s.hasPointerEvent_bl?window.addEventListener("pointerdown",s.hideplaybackRatesButtonsHandler):(s.isMobile_bl||window.addEventListener("mousedown",s.hideplaybackRatesButtonsHandler),window.addEventListener("touchstart",s.hideplaybackRatesButtonsHandler)),s.playbackRatesButtonsHolder_do.setX(t),e?FWDAnimation.to(s.playbackRatesButtonsHolder_do,.6,{y:i,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(s.playbackRatesButtonsHolder_do),s.playbackRatesButtonsHolder_do.setY(i))}},this.hidePlaybackRateButtons=function(e){s.arePlaybackRateButtonsShowed_bl&&s.showPlaybackRateButton_bl&&(s.arePlaybackRateButtonsShowed_bl=!1,e?FWDAnimation.to(s.playbackRatesButtonsHolder_do,.6,{y:o.stageHeight,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(s.playbackRatesButtonsHolder_do),s.playbackRatesButtonsHolder_do.setY(o.stageHeight)),s.hasPointerEvent_bl?window.removeEventListener("pointerdown",s.hideplaybackRatesButtonsHandler):(s.isMobile_bl||window.removeEventListener("mousedown",s.hideplaybackRatesButtonsHandler),window.removeEventListener("touchstart",s.hideplaybackRatesButtonsHandler)))},this.hideplaybackRatesButtonsHandler=function(e){var t=FWDEVPUtils.getViewportMouseCoordinates(e);FWDEVPUtils.hitTest(s.playbackRateButton_do.screen,t.screenX,t.screenY)||FWDEVPUtils.hitTest(s.playbackRatesButtonsHolder_do.screen,t.screenX,t.screenY)||s.hidePlaybackRateButtons(!0)},this.setupAdsLines=function(e){if(!this.createdAdsOnce_bl){if(this.linesHolder_do||(this.linesHolder_do=new FWDEVPDisplayObject("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 o;this.line_ar=[];for(var i=0;i<this.lines_ar.length;i++)(o=new FWDEVPDisplayObject("div")).getStyle().background="url('"+t.adLinePat_str+"') repeat-x",o.timeStart=e[i].timeStart,o.setWidth(2),o.setHeight(s.mainScrubberDragLeft_img.height),o.isUsed_bl=!1,o.isShowed_bl=!1,o.setAlpha(0),this.line_ar[i]=o,this.linesHolder_do.addChild(o)}s.totalDuration=0}},this.hideAdsLines=function(){if(s.linesHolder_do&&s.linesHolder_do.setX(-5e3),this.line_ar)for(var e=0;e<this.line_ar.length;e++)this.line_ar[e].setAlpha(0),this.line_ar[e].isShowed_bl=!1},this.positionAdsLines=function(e){if(e&&(s.totalDuration=e),o.isAdd_bl?this.linesHolder_do.setX(-5e3):this.linesHolder_do.setX(0),this.line_ar)for(var t,i=0;i<this.line_ar.length;i++)(t=this.line_ar[i]).setX(Math.round(t.timeStart/s.totalDuration*s.mainScrubberWidth)-1),t.x<0&&t.setX(0),t.isUsed_bl||0==s.totalDuration||t.isShowed_bl||(FWDAnimation.to(t,1,{alpha:1,ease:Expo.easeOut}),t.isShowed_bl=!0)},this.setupMainScrubber=function(){s.mainScrubber_do=new FWDEVPDisplayObject("div"),s.mainScrubber_do.setHeight(s.scrubbersHeight),s.mainScrubberBkLeft_do=new FWDEVPDisplayObject("img"),s.mainScrubberBkLeft_do.setScreen(s.mainScrubberBkLeft_img),s.mainScrubberBkRight_do=new FWDEVPDisplayObject("img"),s.mainScrubberBkRight_do.setScreen(s.mainScrubberBkRight_img);var e=new Image;e.src=s.mainScrubberBkMiddlePath_str,s.mainScrubberBkMiddle_do=new FWDEVPDisplayObject("div"),s.mainScrubberBkMiddle_do.getStyle().background="url('"+s.mainScrubberBkMiddlePath_str+"') repeat-x",s.mainScrubberBkMiddle_do.setHeight(s.scrubbersHeight),s.mainScrubberBkMiddle_do.setX(s.scrubbersBkLeftAndRightWidth),s.mainProgress_do=new FWDEVPDisplayObject("div"),s.mainProgress_do.setHeight(s.scrubbersHeight),s.progressLeft_do=new FWDEVPDisplayObject("img"),s.progressLeft_do.setScreen(s.progress),(e=new Image).src=s.progressMiddlePath_str,s.progressMiddle_do=new FWDEVPDisplayObject("div"),s.progressMiddle_do.getStyle().background="url('"+s.progressMiddlePath_str+"') repeat-x",s.progressMiddle_do.setHeight(s.scrubbersHeight),s.progressMiddle_do.setX(s.mainScrubberDragLeftWidth),s.mainScrubberDrag_do=new FWDEVPDisplayObject("div"),s.mainScrubberDrag_do.setHeight(s.scrubbersHeight),s.useHEXColorsForSkin_bl?(s.mainScrubberDragLeft_do=new FWDEVPDisplayObject("div"),s.mainScrubberDragLeft_do.setWidth(s.mainScrubberDragLeft_img.width+20),s.mainScrubberDragLeft_do.setHeight(s.mainScrubberDragLeft_img.height+20),s.mainScrubberDragLeft_canvas=FWDEVPUtils.getCanvasWithModifiedColor(s.mainScrubberDragLeft_img,s.normalButtonsColor_str).canvas,s.mainScrubberDragLeft_do.screen.appendChild(s.mainScrubberDragLeft_canvas)):(s.mainScrubberDragLeft_do=new FWDEVPDisplayObject("img"),s.mainScrubberDragLeft_do.setScreen(s.mainScrubberDragLeft_img)),s.mainScrubberMiddleImage=new Image,s.mainScrubberMiddleImage.src=s.mainScrubberDragMiddlePath_str,s.volumeScrubberDragMiddle_do=new FWDEVPDisplayObject("div"),s.useHEXColorsForSkin_bl?(s.mainScrubberDragMiddle_do=new FWDEVPDisplayObject("div"),s.mainScrubberMiddleImage.onload=function(){var e=FWDEVPUtils.getCanvasWithModifiedColor(s.mainScrubberMiddleImage,s.normalButtonsColor_str,!0);s.mainSCrubberMiddleCanvas=e.canvas,s.mainSCrubberDragMiddleImageBackground=e.image,s.mainScrubberDragMiddle_do.getStyle().background="url('"+s.mainSCrubberDragMiddleImageBackground.src+"') repeat-x",setTimeout(function(){s.volumeScrubberDragMiddle_do.getStyle().background="url('"+s.mainSCrubberDragMiddleImageBackground.src+"') repeat-x"},50)}):(s.mainScrubberDragMiddle_do=new FWDEVPDisplayObject("div"),s.mainScrubberDragMiddle_do.getStyle().background="url('"+s.mainScrubberDragMiddlePath_str+"') repeat-x"),s.mainScrubberDragMiddle_do.setHeight(s.scrubbersHeight),s.mainScrubberDragMiddle_do.setX(s.mainScrubberDragLeftWidth),s.mainScrubberBarLine_do=new FWDEVPDisplayObject("img"),s.mainScrubberBarLine_do.setScreen(s.mainScrubberLine_img),s.mainScrubberBarLine_do.setAlpha(0),s.mainScrubberBarLine_do.hasTransform3d_bl=!1,s.mainScrubberBarLine_do.hasTransform2d_bl=!1,s.buttons_ar.push(s.mainScrubber_do),s.mainScrubber_do.addChild(s.mainScrubberBkLeft_do),s.mainScrubber_do.addChild(s.mainScrubberBkMiddle_do),s.mainScrubber_do.addChild(s.mainScrubberBkRight_do),s.mainScrubber_do.addChild(s.mainScrubberBarLine_do),s.mainScrubberDrag_do.addChild(s.mainScrubberDragLeft_do),s.mainScrubberDrag_do.addChild(s.mainScrubberDragMiddle_do),s.mainProgress_do.addChild(s.progressLeft_do),s.mainProgress_do.addChild(s.progressMiddle_do),s.mainScrubber_do.addChild(s.mainProgress_do),s.mainScrubber_do.addChild(s.mainScrubberDrag_do),s.mainScrubber_do.addChild(s.mainScrubberBarLine_do),s.mainHolder_do.addChild(s.mainScrubber_do),s.disableVideoScrubber_bl||(s.hasPointerEvent_bl?(s.mainScrubber_do.screen.addEventListener("pointerover",s.mainScrubberOnOverHandler),s.mainScrubber_do.screen.addEventListener("pointerout",s.mainScrubberOnOutHandler),s.mainScrubber_do.screen.addEventListener("pointerdown",s.mainScrubberOnDownHandler)):s.screen.addEventListener&&(s.isMobile_bl||(s.mainScrubber_do.screen.addEventListener("mouseover",s.mainScrubberOnOverHandler),s.mainScrubber_do.screen.addEventListener("mouseout",s.mainScrubberOnOutHandler),s.mainScrubber_do.screen.addEventListener("mousedown",s.mainScrubberOnDownHandler)),s.mainScrubber_do.screen.addEventListener("touchstart",s.mainScrubberOnDownHandler))),s.disableMainScrubber(),s.updateMainScrubber(0)},this.mainScrubberOnOverHandler=function(e){s.isMainScrubberDisabled_bl},this.mainScrubberOnOutHandler=function(e){s.isMainScrubberDisabled_bl},this.mainScrubberOnDownHandler=function(t){if(!s.isMainScrubberDisabled_bl&&2!=t.button){t.preventDefault&&t.preventDefault(),s.isMainScrubberScrubbing_bl=!0;var o=FWDEVPUtils.getViewportMouseCoordinates(t).screenX-s.mainScrubber_do.getGlobalX();o<0?o=0:o>s.mainScrubberWidth-s.scrubbersOffsetWidth&&(o=s.mainScrubberWidth-s.scrubbersOffsetWidth);var i=o/s.mainScrubberWidth;s.disable_do&&s.addChild(s.disable_do),s.updateMainScrubber(i),s.dispatchEvent(e.START_TO_SCRUB),s.dispatchEvent(e.SCRUB,{percent:i}),s.hasPointerEvent_bl?(window.addEventListener("pointermove",s.mainScrubberMoveHandler),window.addEventListener("pointerup",s.mainScrubberEndHandler)):(window.addEventListener("mousemove",s.mainScrubberMoveHandler),window.addEventListener("mouseup",s.mainScrubberEndHandler),window.addEventListener("touchmove",s.mainScrubberMoveHandler),window.addEventListener("touchend",s.mainScrubberEndHandler))}},this.mainScrubberMoveHandler=function(t){t.preventDefault&&t.preventDefault();var o=FWDEVPUtils.getViewportMouseCoordinates(t).screenX-s.mainScrubber_do.getGlobalX();o<0?o=0:o>s.mainScrubberWidth-s.scrubbersOffsetWidth&&(o=s.mainScrubberWidth-s.scrubbersOffsetWidth);var i=o/s.mainScrubberWidth;s.updateMainScrubber(i),s.dispatchEvent(e.SCRUB,{percent:i})},this.mainScrubberEndHandler=function(t){s.disable_do&&s.contains(s.disable_do)&&s.removeChild(s.disable_do),s.dispatchEvent(e.STOP_TO_SCRUB),s.hasPointerEvent_bl?(window.removeEventListener("pointermove",s.mainScrubberMoveHandler),window.removeEventListener("pointerup",s.mainScrubberEndHandler)):(window.removeEventListener("mousemove",s.mainScrubberMoveHandler),window.removeEventListener("mouseup",s.mainScrubberEndHandler),window.removeEventListener("touchmove",s.mainScrubberMoveHandler),window.removeEventListener("touchend",s.mainScrubberEndHandler))},this.disableMainScrubber=function(){s.mainScrubber_do&&(s.isMainScrubberDisabled_bl=!0,s.mainScrubber_do.setButtonMode(!1),s.mainScrubberEndHandler(),s.updateMainScrubber(0),s.updatePreloaderBar(0))},this.enableMainScrubber=function(){s.mainScrubber_do&&(s.isMainScrubberDisabled_bl=!1,s.mainScrubber_do.setButtonMode(!0))},this.updateMainScrubber=function(e){if(s.mainScrubber_do){var t=parseInt(e*s.mainScrubberWidth);isNaN(t)||(s.percentPlayed=e,!FWDEVPlayer.hasHTML5Video&&t>=s.mainProgress_do.w&&(t=s.mainProgress_do.w),t<1&&s.isMainScrubberLineVisible_bl?(s.isMainScrubberLineVisible_bl=!1,FWDAnimation.to(s.mainScrubberBarLine_do,.5,{alpha:0})):t>1&&!s.isMainScrubberLineVisible_bl&&(s.isMainScrubberLineVisible_bl=!0,FWDAnimation.to(s.mainScrubberBarLine_do,.5,{alpha:1})),s.mainScrubberDrag_do.setWidth(t),t>s.mainScrubberWidth-s.scrubbersOffsetWidth&&(t=s.mainScrubberWidth-s.scrubbersOffsetWidth),FWDAnimation.to(s.mainScrubberBarLine_do,.8,{x:t+1,ease:Expo.easeOut}))}},this.updatePreloaderBar=function(e){if(s.mainProgress_do){s.percentLoaded=e;var t=parseInt(Math.max(0,s.percentLoaded*s.mainScrubberWidth));s.percentLoaded>=.98?s.mainProgress_do.setY(-30):0!=s.mainProgress_do.y&&1!=s.percentLoaded&&s.mainProgress_do.setY(0),t>s.mainScrubberWidth-s.scrubbersOffsetWidth&&(t=Math.max(0,s.mainScrubberWidth-s.scrubbersOffsetWidth)),t<0&&(t=0),s.mainProgress_do.setWidth(t)}},this.setupPlayPauseButton=function(){FWDEVPComplexButton.setPrototype(),s.playPauseButton_do=new FWDEVPComplexButton(s.playN_img,t.playSPath_str,s.pauseN_img,t.pauseSPath_str,!0,s.useHEXColorsForSkin_bl,s.normalButtonsColor_str,s.selectedButtonsColor_str),s.buttons_ar.push(s.playPauseButton_do),s.playPauseButton_do.setY(parseInt((s.stageHeight-s.playPauseButton_do.buttonHeight)/2)),s.playPauseButton_do.addListener(FWDEVPComplexButton.MOUSE_UP,s.playButtonMouseUpHandler),s.mainHolder_do.addChild(s.playPauseButton_do)},this.showPlayButton=function(){s.playPauseButton_do&&s.playPauseButton_do.setButtonState(1)},this.showPauseButton=function(){s.playPauseButton_do&&s.playPauseButton_do.setButtonState(0)},this.playButtonMouseUpHandler=function(){0==s.playPauseButton_do.currentState?s.dispatchEvent(e.PAUSE):s.dispatchEvent(e.PLAY)},this.setupEmbedButton=function(){FWDEVPSimpleButton.setPrototype(),s.embedButton_do=new FWDEVPSimpleButton(s.embedN_img,t.embedPathS_str,void 0,!0,s.useHEXColorsForSkin_bl,s.normalButtonsColor_str,s.selectedButtonsColor_str),s.embedButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,s.embedButtonOnMouseUpHandler),s.embedButton_do.setY(parseInt((s.stageHeight-s.embedButton_do.h)/2)),s.buttons_ar.push(s.embedButton_do),s.mainHolder_do.addChild(s.embedButton_do)},this.embedButtonOnMouseUpHandler=function(){s.dispatchEvent(e.SHOW_EMBED_WINDOW)},this.setupYtbButtons=function(){s.ytbButtonsHolder_do=new FWDEVPDisplayObject("div"),s.ytbButtonsHolder_do.setOverflow("visible"),s.repeatBackground_bl?s.ytbButtonsHolder_do.getStyle().background="url('"+s.controllerBkPath_str+"')":(s.ytbButtonBackground_do=new FWDEVPDisplayObject("img"),(e=new Image).src=s.controllerBkPath_str,s.ytbButtonBackground_do.setScreen(e),s.ytbButtonsHolder_do.addChild(s.ytbButtonBackground_do)),s.ytbButtonsHolder_do.setX(300),s.ytbButtonsHolder_do.setY(-300),o.main_do.addChild(s.ytbButtonsHolder_do,0);var e=new Image;e.src=s.ytbQualityButtonPointerPath_str,s.pointer_do=new FWDEVPDisplayObject("img"),s.pointer_do.setScreen(e),s.pointer_do.setWidth(s.pointerWidth),s.pointer_do.setHeight(s.pointerHeight),s.ytbButtonsHolder_do.addChild(s.pointer_do),(e=new Image).src=s.youtubeQualityArrowPath_str,s.ytbQualityArrow_do=new FWDEVPDisplayObject("img"),s.ytbQualityArrow_do.setScreen(e),s.ytbQualityArrow_do.setX(7),s.ytbQualityArrow_do.setWidth(5),s.ytbQualityArrow_do.setHeight(7);for(var i,n=0;n<s.totalYtbButtons;n++)FWDEVPYTBQButton.setPrototype(),(i=new FWDEVPYTBQButton(s.ytbQuality_ar[n],s.youtubeQualityButtonNormalColor_str,s.youtubeQualityButtonSelectedColor_str,t.hdPath_str,n)).addListener(FWDEVPYTBQButton.MOUSE_OVER,s.ytbQualityOver),i.addListener(FWDEVPYTBQButton.MOUSE_OUT,s.ytbQualityOut),i.addListener(FWDEVPYTBQButton.CLICK,s.ytbQualityClick),s.ytbButtons_ar[n]=i,s.ytbButtonsHolder_do.addChild(i);s.ytbButtonsHolder_do.addChild(s.ytbQualityArrow_do),s.hideQualityButtons(!1)},this.ytbQualityOver=function(e){s.setYtbQualityArrowPosition(e.target)},this.ytbQualityOut=function(e){s.setYtbQualityArrowPosition(void 0)},this.ytbQualityClick=function(t){s.hideQualityButtons(!0),s.dispatchEvent(e.CHANGE_YOUTUBE_QUALITY,{quality:t.target.label_str,id:t.id})},this.positionAndResizeYtbQualityButtons=function(e){if(e){var t=e.length;if(s.prevYtbQualityButtonsLength!=t){this.prevYtbQualityButtonsLength=t;for(var o,i=5,n=0,r=0,l=0;l<t;l++)(o=s.ytbButtons_ar[l]).updateText(e[l]),o.setFinalSize();setTimeout(function(){for(e=0;e<s.totalYtbButtons;e++)o=s.ytbButtons_ar[e],e<t?(0!=o.x&&o.setX(0),o.w>n&&(n=o.w),o.setY(i),i+=o.h):-3e3!=o.x&&o.setX(-3e3);for(var e=0;e<s.totalYtbButtons;e++)(o=s.ytbButtons_ar[e]).dumy_do.w<n&&(o.setWidth(n),o.dumy_do.setWidth(n));r=i+5,s.pointer_do.setX(parseInt((n-s.pointer_do.w)/2)),s.pointer_do.setY(r),s.ytbButtonBackground_do&&(s.ytbButtonBackground_do.setWidth(n),s.ytbButtonBackground_do.setHeight(r)),s.ytbButtonsHolder_do.setWidth(n),s.ytbButtonsHolder_do.setHeight(r)},60)}}},this.disableQualityButtons=function(e){"highres"==e||"hd1080"==e||"hd720"==e||"hd1440"==e||"hd2160"==e?s.ytbQualityButton_do.showDisabledState():s.ytbQualityButton_do.hideDisabledState();for(var t=0;t<s.totalYtbButtons;t++)btn=s.ytbButtons_ar[t],btn.label_str==e?(FWDAnimation.killTweensOf(s.ytbQualityArrow_do),0!=btn.y&&(s.ytbQualityArrow_do.setY(btn.y+Math.round((btn.h-s.ytbQualityArrow_do.h)/2)),s.ytbDisabledButton_do=btn),btn.disable()):btn.enable()},this.setYtbQualityArrowPosition=function(e){var t=0;t=e?e.y+Math.round((e.h-s.ytbQualityArrow_do.h)/2):s.ytbDisabledButton_do.y+Math.round((s.ytbDisabledButton_do.h-s.ytbQualityArrow_do.h)/2),FWDAnimation.killTweensOf(s.ytbQualityArrow_do),FWDAnimation.to(s.ytbQualityArrow_do,.6,{y:t,delay:.1,ease:Expo.easeInOut})},this.showQualityButtons=function(e){if(!s.areYtbQualityButtonsShowed_bl&&s.showYoutubeQualityButton_bl){s.hideSubtitleButtons(),s.areYtbQualityButtonsShowed_bl=!0;var t=parseInt(s.ytbQualityButton_do.x+parseInt(s.ytbQualityButton_do.w-s.ytbButtonsHolder_do.w)/2),i=parseInt(o.stageHeight-s.stageHeight-s.ytbButtonsHolder_do.h-6);window.hasPointerEvent_bl?window.addEventListener("pointerdown",s.hideQualityButtonsHandler):(s.isMobile_bl||window.addEventListener("mousedown",s.hideQualityButtonsHandler),window.addEventListener("touchstart",s.hideQualityButtonsHandler)),s.ytbButtonsHolder_do.setX(t),e?FWDAnimation.to(s.ytbButtonsHolder_do,.6,{y:i,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(s.ytbButtonsHolder_do),s.ytbButtonsHolder_do.setY(i))}},this.hideQualityButtons=function(e){s.areYtbQualityButtonsShowed_bl&&s.showYoutubeQualityButton_bl&&(s.areYtbQualityButtonsShowed_bl=!1,e?FWDAnimation.to(s.ytbButtonsHolder_do,.6,{y:o.stageHeight,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(s.ytbButtonsHolder_do),s.ytbButtonsHolder_do.setY(o.stageHeight)),window.hasPointerEvent_bl?window.removeEventListener("pointerdown",s.hideQualityButtonsHandler):(s.isMobile_bl||window.removeEventListener("mousedown",s.hideQualityButtonsHandler),window.removeEventListener("touchstart",s.hideQualityButtonsHandler)))},this.setupYoutubeQualityButton=function(){FWDEVPSimpleButton.setPrototype(),s.ytbQualityButton_do=new FWDEVPSimpleButton(s.ytbQualityN_img,t.ytbQualitySPath_str,t.ytbQualityDPath_str,!0,s.useHEXColorsForSkin_bl,s.normalButtonsColor_str,s.selectedButtonsColor_str),s.ytbQualityButton_do.setX(-300),s.ytbQualityButton_do.setY(parseInt((s.stageHeight-s.ytbQualityButton_do.h)/2)),s.ytbQualityButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,s.ytbQualityMouseUpHandler),s.mainHolder_do.addChild(s.ytbQualityButton_do)},this.ytbQualityMouseUpHandler=function(){s.areYtbQualityButtonsShowed_bl?s.hideQualityButtons(!0):s.showQualityButtons(!0)},this.hideQualityButtonsHandler=function(e){var t=FWDEVPUtils.getViewportMouseCoordinates(e);FWDEVPUtils.hitTest(s.ytbQualityButton_do.screen,t.screenX,t.screenY)||FWDEVPUtils.hitTest(s.ytbButtonsHolder_do.screen,t.screenX,t.screenY)||s.hideQualityButtons(!0)},this.addYtbQualityButton=function(){!s.hasYtbButton_bl&&s.showYoutubeQualityButton_bl&&(s.hasYtbButton_bl=!0,s.shareButton_do&&-1!=FWDEVPUtils.indexOfArray(s.buttons_ar,s.shareButton_do)?s.buttons_ar.splice(FWDEVPUtils.indexOfArray(s.buttons_ar,s.shareButton_do),0,s.ytbQualityButton_do):s.fullScreenButton_do&&-1!=FWDEVPUtils.indexOfArray(s.buttons_ar,s.fullScreenButton_do)?s.buttons_ar.splice(FWDEVPUtils.indexOfArray(s.buttons_ar,s.fullScreenButton_do),0,s.ytbQualityButton_do):s.buttons_ar.splice(s.buttons_ar.length,0,s.ytbQualityButton_do),s.ytbQualityButton_do.disable(),s.ytbQualityButton_do.rotation=0,s.ytbQualityButton_do.setRotation(s.ytbQualityButton_do.rotation),s.ytbQualityButton_do.hideDisabledState(),s.hideQualityButtons(!1),s.positionButtons())},this.removeYtbQualityButton=function(){s.hasYtbButton_bl&&s.showYoutubeQualityButton_bl&&(s.hasYtbButton_bl=!1,s.buttons_ar.splice(FWDEVPUtils.indexOfArray(s.buttons_ar,s.ytbQualityButton_do),1),s.ytbQualityButton_do.setX(-300),s.ytbQualityButton_do.hideDisabledState(),s.hideQualityButtons(!1),s.positionButtons())},this.updateQuality=function(e,t){s.hasYtbButton_bl&&s.showYoutubeQualityButton_bl&&!o.isAdd_bl&&(s.positionAndResizeYtbQualityButtons(e),setTimeout(function(){s.disableQualityButtons(t)},65))},this.showSubtitleButton_bl,this.subtitlesSource_ar=t.subtitles_ar,this.subtitleButtons_ar=[],this.totalSubttleButtons=10,this.setupSubtitleButton=function(){FWDEVPComplexButton.setPrototype(),s.subtitleButton_do=new FWDEVPComplexButton(t.showSubtitleNPath_img,t.showSubtitleSPath_str,t.hideSubtitleNPath_img,t.hideSubtitleSPath_str,!0,s.useHEXColorsForSkin_bl,s.normalButtonsColor_str,s.selectedButtonsColor_str),s.buttons_ar.push(s.subtitleButton_do),s.subtitleButton_do.setY(parseInt((s.stageHeight-s.subtitleButton_do.h)/2)),s.subtitleButton_do.addListener(FWDEVPComplexButton.MOUSE_UP,s.subtitleButtonMouseUpHandler),s.mainHolder_do.addChild(s.subtitleButton_do),s.setupSubtitleButtons(),-1!=location.protocol.indexOf("file:")&&s.disableSubtitleButton(),o.subtitle_do.showSubtitileByDefault_bl&&s.subtitleButton_do.setButtonState(0)},this.subtitleButtonMouseUpHandler=function(){s.areSubtitleButtonsShowed_bl?s.hideSubtitleButtons(!0):s.showSubtitleButtons(!0)},this.disableSubtitleButton=function(){s.subtitleButton_do&&s.subtitleButton_do.disable()},this.enableSubtitleButton=function(){s.subtitleButton_do&&s.subtitleButton_do.enable()},this.updateSubtitleButtons=function(e,t){s.subtitleButton_do&&(s.subtitleButton_do.enable(),s.positionAndResizeSubtitleButtons(e),setTimeout(function(){t=s.subtitlesSource_ar.length-1-t,s.disableSubtitleButtons(t)},65),s.prevSubtitleIndex=t)},this.setupSubtitleButtons=function(){s.subtitlesButtonsHolder_do=new FWDEVPDisplayObject("div"),s.subtitlesButtonsHolder_do.setOverflow("visible"),s.repeatBackground_bl?s.subtitlesButtonsHolder_do.getStyle().background="url('"+s.controllerBkPath_str+"')":(s.subtitlesButtonsBackground_do=new FWDEVPDisplayObject("img"),(e=new Image).src=s.controllerBkPath_str,s.subtitlesButtonsBackground_do.setScreen(e),s.subtitlesButtonsHolder_do.addChild(s.subtitlesButtonsBackground_do)),s.subtitlesButtonsHolder_do.setX(300),s.subtitlesButtonsHolder_do.setY(-300),o.main_do.addChild(s.subtitlesButtonsHolder_do,0);var e=new Image;e.src=s.ytbQualityButtonPointerPath_str,s.subtitlesPonter_do=new FWDEVPDisplayObject("img"),s.subtitlesPonter_do.setScreen(e),s.subtitlesPonter_do.setWidth(s.pointerWidth),s.subtitlesPonter_do.setHeight(s.pointerHeight),s.subtitlesButtonsHolder_do.addChild(s.subtitlesPonter_do),(e=new Image).src=s.youtubeQualityArrowPath_str,s.subtitleQualityArrow_do=new FWDEVPDisplayObject("img"),s.subtitleQualityArrow_do.setScreen(e),s.subtitleQualityArrow_do.setX(7),s.subtitleQualityArrow_do.setWidth(5),s.subtitleQualityArrow_do.setHeight(7),s.subtitlesButtonsHolder_do.addChild(s.subtitleQualityArrow_do);for(var i,n=0;n<s.totalSubttleButtons;n++)FWDEVPYTBQButton.setPrototype(),(i=new FWDEVPYTBQButton("no source",s.youtubeQualityButtonNormalColor_str,s.youtubeQualityButtonSelectedColor_str,t.hdPath_str,n)).addListener(FWDEVPYTBQButton.MOUSE_OVER,s.sbtQualityOver),i.addListener(FWDEVPYTBQButton.MOUSE_OUT,s.sbtQualityOut),i.addListener(FWDEVPYTBQButton.CLICK,s.sbtQualityClick),s.subtitleButtons_ar[n]=i,s.subtitlesButtonsHolder_do.addChild(i);s.hideSubtitleButtons(!1)},this.sbtQualityOver=function(e){s.setSubtitleArrowPosition(e.target)},this.sbtQualityOut=function(e){s.setSubtitleArrowPosition(void 0)},this.sbtQualityClick=function(t){s.startAtSubtitle=t.id,s.disableSubtitleButtons(s.startAtSubtitle),s.hideSubtitleButtons(!0),s.dispatchEvent(e.CHANGE_SUBTITLE,{id:s.subtitlesSource_ar.length-1-t.id})},this.positionAndResizeSubtitleButtons=function(e){if(e){var t=e.length;if(s.prevSubtitlesQualityButtonsLength!=t){this.prevSubtitlesQualityButtonsLength=t;for(var o,i=5,n=0,r=0,l=0;l<t;l++)(o=s.subtitleButtons_ar[l]).updateText(e[l].label),o.setFinalSize();setTimeout(function(){for(e=0;e<s.totalSubttleButtons;e++)o=s.subtitleButtons_ar[e],e<t?(0!=o.x&&o.setX(0),o.w>n&&(n=o.w),o.setY(i),i+=o.h):-3e3!=o.x&&o.setX(-3e3);for(var e=0;e<s.totalSubttleButtons;e++)(o=s.subtitleButtons_ar[e]).dumy_do.w<n&&(o.setWidth(n),o.dumy_do.setWidth(n));r=i+5,s.subtitlesPonter_do.setX(parseInt((n-s.subtitlesPonter_do.w)/2)),s.subtitlesPonter_do.setY(r),s.subtitlesButtonsBackground_do&&(s.subtitlesButtonsBackground_do.setWidth(n),s.subtitlesButtonsBackground_do.setHeight(r)),s.subtitlesButtonsHolder_do.setWidth(n),s.subtitlesButtonsHolder_do.setHeight(r)},60)}}},this.disableSubtitleButtons=function(e){for(var t=0;t<s.totalSubttleButtons;t++)btn=s.subtitleButtons_ar[t],t==e?(FWDAnimation.killTweensOf(s.subtitleQualityArrow_do),s.subtitleQualityArrow_do.setY(btn.y+parseInt((btn.h-s.subtitleQualityArrow_do.h)/2)+1),btn.disable(),s.subtitleDisabledButton_do=btn):btn.enable();s.subtitlesSource_ar.length-1-e==0?s.subtitleButton_do.setButtonState(0):s.subtitleButton_do.setButtonState(1)},this.setSubtitleArrowPosition=function(e){var t=0;t=e?e.y+parseInt((e.h-s.subtitleQualityArrow_do.h)/2):s.subtitleDisabledButton_do.y+parseInt((s.subtitleDisabledButton_do.h-s.subtitleQualityArrow_do.h)/2),FWDAnimation.killTweensOf(s.subtitleQualityArrow_do),FWDAnimation.to(s.subtitleQualityArrow_do,.6,{y:t,delay:.1,ease:Expo.easeInOut})},this.showSubtitleButtons=function(e){if(!s.areSubtitleButtonsShowed_bl){s.hideQualityButtons(),s.areSubtitleButtonsShowed_bl=!0;var t=parseInt(s.subtitleButton_do.x+parseInt(s.subtitleButton_do.w-s.subtitlesButtonsHolder_do.w)/2),i=parseInt(o.stageHeight-s.stageHeight-s.subtitlesButtonsHolder_do.h-6);s.hasPointerEvent_bl?window.addEventListener("pointerdown",s.hideSubtitlesButtonsHandler):(s.isMobile_bl||window.addEventListener("mousedown",s.hideSubtitlesButtonsHandler),window.addEventListener("touchstart",s.hideSubtitlesButtonsHandler)),s.subtitlesButtonsHolder_do.setX(t),e?FWDAnimation.to(s.subtitlesButtonsHolder_do,.6,{y:i,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(s.subtitlesButtonsHolder_do),s.subtitlesButtonsHolder_do.setY(i))}},this.hideSubtitleButtons=function(e){s.areSubtitleButtonsShowed_bl&&s.showSubtitleButton_bl&&(s.areSubtitleButtonsShowed_bl=!1,e?FWDAnimation.to(s.subtitlesButtonsHolder_do,.6,{y:o.stageHeight,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(s.subtitlesButtonsHolder_do),s.subtitlesButtonsHolder_do.setY(o.stageHeight)),s.hasPointerEvent_bl?window.removeEventListener("pointerdown",s.hideSubtitlesButtonsHandler):(s.isMobile_bl||window.removeEventListener("mousedown",s.hideSubtitlesButtonsHandler),window.removeEventListener("touchstart",s.hideSubtitlesButtonsHandler)))},this.hideSubtitlesButtonsHandler=function(e){var t=FWDEVPUtils.getViewportMouseCoordinates(e);FWDEVPUtils.hitTest(s.subtitleButton_do.screen,t.screenX,t.screenY)||FWDEVPUtils.hitTest(s.subtitlesButtonsHolder_do.screen,t.screenX,t.screenY)||s.hideSubtitleButtons(!0)},this.setupShareButton=function(){FWDEVPSimpleButton.setPrototype(),s.shareButton_do=new FWDEVPSimpleButton(s.shareN_img,t.shareSPath_str,void 0,!0,s.useHEXColorsForSkin_bl,s.normalButtonsColor_str,s.selectedButtonsColor_str),s.buttons_ar.push(s.shareButton_do),s.shareButton_do.setY(parseInt((s.stageHeight-s.shareButton_do.h)/2)),s.shareButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,s.facebookButtonMouseUpHandler),s.mainHolder_do.addChild(s.shareButton_do)},this.facebookButtonMouseUpHandler=function(){s.dispatchEvent(e.SHARE)},this.setupDownloadButton=function(){FWDEVPSimpleButton.setPrototype(),s.downloadButton_do=new FWDEVPSimpleButton(t.downloadN_img,t.downloadSPath_str,void 0,!0,s.useHEXColorsForSkin_bl,s.normalButtonsColor_str,s.selectedButtonsColor_str),s.downloadButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,s.downloadButtonOnMouseUpHandler),s.buttons_ar.push(s.downloadButton_do),s.mainHolder_do.addChild(s.downloadButton_do)},this.downloadButtonShowToolTipHandler=function(e){},this.downloadButtonOnMouseUpHandler=function(){s.dispatchEvent(e.DOWNLOAD_VIDEO)},this.setupFullscreenButton=function(){FWDEVPComplexButton.setPrototype(),s.fullScreenButton_do=new FWDEVPComplexButton(s.fullScreenN_img,t.fullScreenSPath_str,s.normalScreenN_img,t.normalScreenSPath_str,!0,s.useHEXColorsForSkin_bl,s.normalButtonsColor_str,s.selectedButtonsColor_str),s.buttons_ar.push(s.fullScreenButton_do),s.fullScreenButton_do.setY(parseInt((s.stageHeight-s.fullScreenButton_do.buttonHeight)/2)),s.fullScreenButton_do.addListener(FWDEVPComplexButton.MOUSE_UP,s.fullScreenButtonMouseUpHandler),s.mainHolder_do.addChild(s.fullScreenButton_do)},this.showFullScreenButton=function(){s.fullScreenButton_do&&s.fullScreenButton_do.setButtonState(1)},this.showNormalScreenButton=function(){s.fullScreenButton_do&&s.fullScreenButton_do.setButtonState(0)},this.setNormalStateToFullScreenButton=function(){s.fullScreenButton_do&&(s.fullScreenButton_do.setNormalState(),s.hideQualityButtons(!1))},this.fullScreenButtonMouseUpHandler=function(){1==s.fullScreenButton_do.currentState?s.dispatchEvent(e.FULL_SCREEN):s.dispatchEvent(e.NORMAL_SCREEN)},this.setupTime=function(){s.time_do=new FWDEVPDisplayObject("div"),s.time_do.hasTransform3d_bl=!1,s.time_do.hasTransform2d_bl=!1,s.time_do.setBackfaceVisibility(),s.time_do.getStyle().fontFamily="Arial",s.time_do.getStyle().fontSize="12px",s.time_do.getStyle().whiteSpace="nowrap",s.time_do.getStyle().textAlign="center",s.time_do.getStyle().color=s.timeColor_str,s.time_do.getStyle().fontSmoothing="antialiased",s.time_do.getStyle().webkitFontSmoothing="antialiased",s.time_do.getStyle().textRendering="optimizeLegibility",s.mainHolder_do.addChild(s.time_do),s.updateTime("00:00/00:00"),s.buttons_ar.push(s.time_do)},this.updateTime=function(e){s.time_do&&(s.time_do.setInnerHTML(e),s.lastTimeLength!=e.length&&(s.time_do.w=s.time_do.getWidth(),s.positionButtons(),setTimeout(function(){s.time_do.w=s.time_do.getWidth(),s.time_do.h=s.time_do.getHeight(),s.time_do.setY(parseInt((s.stageHeight-s.time_do.h)/2)+1),s.positionButtons()},50),s.lastTimeLength=e.length))},this.setupVolumeButton=function(){FWDEVPVolumeButton.setPrototype(),s.volumeButton_do=new FWDEVPVolumeButton(s.volumeN_img,t.volumeSPath_str,t.volumeDPath_str,s.useHEXColorsForSkin_bl,s.normalButtonsColor_str,s.selectedButtonsColor_str),s.volumeButton_do.addListener(FWDEVPVolumeButton.MOUSE_UP,s.volumeOnMouseUpHandler),s.volumeButton_do.setY(parseInt((s.stageHeight-s.volumeButton_do.h)/2)),s.buttons_ar.push(s.volumeButton_do),s.mainHolder_do.addChild(s.volumeButton_do),s.allowToChangeVolume_bl||s.volumeButton_do.disable()},this.volumeOnMouseUpHandler=function(){var e=s.lastVolume;s.isMute_bl?(e=s.lastVolume,s.isMute_bl=!1):(e=1e-6,s.isMute_bl=!0),s.updateVolume(e)},this.setupVolumeScrubber=function(){s.volumeScrubber_do=new FWDEVPDisplayObject("div"),s.volumeScrubber_do.setHeight(s.scrubbersHeight),s.volumeScrubberBkLeft_do=new FWDEVPDisplayObject("img"),s.volumeScrubberBkLeft_do.setScreen(s.volumeScrubberBkLeft_img),s.volumeScrubberBkRight_do=new FWDEVPDisplayObject("img"),s.volumeScrubberBkRight_do.setScreen(s.volumeScrubberBkRight_img),(new Image).src=s.volumeScrubberBkMiddlePath_str,i,s.volumeScrubberBkMiddle_do=new FWDEVPDisplayObject("div"),s.volumeScrubberBkMiddle_do.getStyle().background="url('"+s.volumeScrubberBkMiddlePath_str+"') repeat-x",s.volumeScrubberBkMiddle_do.setHeight(s.scrubbersHeight),s.volumeScrubberBkMiddle_do.setX(s.scrubbersBkLeftAndRightWidth),s.volumeScrubberDrag_do=new FWDEVPDisplayObject("div"),s.volumeScrubberDrag_do.setHeight(s.scrubbersHeight),s.useHEXColorsForSkin_bl?(s.volumeScrubberDragLeft_do=new FWDEVPDisplayObject("div"),s.volumeScrubberDragLeft_do.setWidth(s.volumeScrubberDragLeft_img.width),s.volumeScrubberDragLeft_do.setHeight(s.volumeScrubberDragLeft_img.height),s.volumeScrubberDragLeft_canvas=FWDEVPUtils.getCanvasWithModifiedColor(s.volumeScrubberDragLeft_img,s.normalButtonsColor_str).canvas,s.volumeScrubberDragLeft_do.screen.appendChild(s.volumeScrubberDragLeft_canvas)):(s.volumeScrubberDragLeft_do=new FWDEVPDisplayObject("img"),s.volumeScrubberDragLeft_do.setScreen(s.volumeScrubberDragLeft_img)),s.useHEXColorsForSkin_bl||(s.volumeScrubberDragMiddle_do=new FWDEVPDisplayObject("div"),s.volumeScrubberDragMiddle_do.getStyle().background="url('"+s.volumeScrubberDragMiddlePath_str+"') repeat-x"),s.volumeScrubberDragMiddle_do.setHeight(s.scrubbersHeight),s.volumeScrubberDragMiddle_do.setX(s.mainScrubberDragLeftWidth),s.volumeScrubberBarLine_do=new FWDEVPDisplayObject("img"),s.volumeScrubberBarLine_do.setScreen(s.volumeScrubberLine_img),s.volumeScrubberBarLine_do.setAlpha(0),s.volumeScrubberBarLine_do.hasTransform3d_bl=!1,s.volumeScrubberBarLine_do.hasTransform2d_bl=!1,s.volumeScrubber_do.setWidth(s.volumeScrubberWidth),s.volumeScrubberBkMiddle_do.setWidth(s.volumeScrubberWidth-2*s.scrubbersBkLeftAndRightWidth),s.volumeScrubberBkRight_do.setX(s.volumeScrubberWidth-s.scrubbersBkLeftAndRightWidth),s.volumeScrubberDragMiddle_do.setWidth(s.volumeScrubberWidth-s.scrubbersBkLeftAndRightWidth-s.scrubbersOffsetWidth),s.volumeScrubber_do.addChild(s.volumeScrubberBkLeft_do),s.volumeScrubber_do.addChild(s.volumeScrubberBkMiddle_do),s.volumeScrubber_do.addChild(s.volumeScrubberBkRight_do),s.volumeScrubber_do.addChild(s.volumeScrubberBarLine_do),s.volumeScrubberDrag_do.addChild(s.volumeScrubberDragLeft_do),s.volumeScrubberDrag_do.addChild(s.volumeScrubberDragMiddle_do),s.volumeScrubber_do.addChild(s.volumeScrubberDrag_do),s.volumeScrubber_do.addChild(s.volumeScrubberBarLine_do),s.buttons_ar.push(s.volumeScrubber_do),s.mainHolder_do.addChild(s.volumeScrubber_do),s.disableVideoScrubber_bl||(s.hasPointerEvent_bl?(s.volumeScrubber_do.screen.addEventListener("pointerover",s.volumeScrubberOnOverHandler),s.volumeScrubber_do.screen.addEventListener("pointerout",s.volumeScrubberOnOutHandler),s.volumeScrubber_do.screen.addEventListener("pointerdown",s.volumeScrubberOnDownHandler)):s.screen.addEventListener&&(s.isMobile_bl||(s.volumeScrubber_do.screen.addEventListener("mouseover",s.volumeScrubberOnOverHandler),s.volumeScrubber_do.screen.addEventListener("mouseout",s.volumeScrubberOnOutHandler),s.volumeScrubber_do.screen.addEventListener("mousedown",s.volumeScrubberOnDownHandler)),s.volumeScrubber_do.screen.addEventListener("touchstart",s.volumeScrubberOnDownHandler))),s.enableVolumeScrubber(),s.updateVolumeScrubber(s.volume)},this.volumeScrubberOnOverHandler=function(e){s.isVolumeScrubberDisabled_bl},this.volumeScrubberOnOutHandler=function(e){s.isVolumeScrubberDisabled_bl},this.volumeScrubberOnDownHandler=function(e){if(!s.isVolumeScrubberDisabled_bl&&2!=e.button){e.preventDefault&&e.preventDefault();var t=FWDEVPUtils.getViewportMouseCoordinates(e).screenX-s.volumeScrubber_do.getGlobalX();t<0?t=0:t>s.volumeScrubberWidth-s.scrubbersOffsetWidth&&(t=s.volumeScrubberWidth-s.scrubbersOffsetWidth);var o=t/s.volumeScrubberWidth;s.disable_do&&s.addChild(s.disable_do),s.lastVolume=o,s.updateVolume(o),s.hasPointerEvent_bl?(window.addEventListener("pointermove",s.volumeScrubberMoveHandler),window.addEventListener("pointerup",s.volumeScrubberEndHandler)):(window.addEventListener("mousemove",s.volumeScrubberMoveHandler),window.addEventListener("mouseup",s.volumeScrubberEndHandler),window.addEventListener("touchmove",s.volumeScrubberMoveHandler),window.addEventListener("touchend",s.volumeScrubberEndHandler))}},this.volumeScrubberMoveHandler=function(e){if(!s.isVolumeScrubberDisabled_bl){e.preventDefault&&e.preventDefault();var t=FWDEVPUtils.getViewportMouseCoordinates(e).screenX-s.volumeScrubber_do.getGlobalX();t<0?t=0:t>s.volumeScrubberWidth-s.scrubbersOffsetWidth&&(t=s.volumeScrubberWidth-s.scrubbersOffsetWidth);var o=t/s.volumeScrubberWidth;s.lastVolume=o,s.updateVolume(o)}},this.volumeScrubberEndHandler=function(){s.disable_do&&s.contains(s.disable_do)&&s.removeChild(s.disable_do),s.hasPointerEvent_bl?(window.removeEventListener("pointermove",s.volumeScrubberMoveHandler),window.removeEventListener("pointerup",s.volumeScrubberEndHandler)):(window.removeEventListener("mousemove",s.volumeScrubberMoveHandler),window.removeEventListener("mouseup",s.volumeScrubberEndHandler),window.removeEventListener("touchmove",s.volumeScrubberMoveHandler),window.removeEventListener("touchend",s.volumeScrubberEndHandler))},this.disableVolumeScrubber=function(){s.isVolumeScrubberDisabled_bl=!0,s.volumeScrubber_do.setButtonMode(!1),s.volumeScrubberEndHandler()},this.enableVolumeScrubber=function(){s.isVolumeScrubberDisabled_bl=!1,s.volumeScrubber_do.setButtonMode(!0)},this.updateVolumeScrubber=function(e){var t=parseInt(e*s.volumeScrubberWidth);s.volumeScrubberDrag_do.setWidth(t),t<1&&s.isVolumeScrubberLineVisible_bl?(s.isVolumeScrubberLineVisible_bl=!1,FWDAnimation.to(s.volumeScrubberBarLine_do,.5,{alpha:0})):t>1&&!s.isVolumeScrubberLineVisible_bl&&(s.isVolumeScrubberLineVisible_bl=!0,FWDAnimation.to(s.volumeScrubberBarLine_do,.5,{alpha:1})),t>s.volumeScrubberWidth-s.scrubbersOffsetWidth&&(t=s.volumeScrubberWidth-s.scrubbersOffsetWidth),FWDAnimation.to(s.volumeScrubberBarLine_do,.8,{x:t+1,ease:Expo.easeOut})},this.updateVolume=function(t,o){s.showVolumeScrubber_bl&&(s.volume=t,s.volume<=1e-6?(s.isMute_bl=!0,s.volume=1e-6):s.voume>=1?(s.isMute_bl=!1,s.volume=1):s.isMute_bl=!1,1e-6==s.volume?s.volumeButton_do&&s.volumeButton_do.setDisabledState():s.volumeButton_do&&s.volumeButton_do.setEnabledState(),s.volumeScrubberBarLine_do&&s.updateVolumeScrubber(s.volume),o||s.dispatchEvent(e.CHANGE_VOLUME,{percent:s.volume}))},this.show=function(e){s.isShowed_bl||(s.isShowed_bl=!0,e?FWDAnimation.to(s.mainHolder_do,.8,{y:0,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(s.mainHolder_do),s.mainHolder_do.setY(0)),setTimeout(s.positionButtons,200))},this.hide=function(e,t){if(s.isShowed_bl||t){s.isShowed_bl=!1;var o=0;t&&(o=s.mainScrubberOffestTop),e?FWDAnimation.to(s.mainHolder_do,.8,{y:s.stageHeight+o,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(s.mainHolder_do),s.mainHolder_do.setY(s.stageHeight+o)),s.hideQualityButtons(!0),s.hidePlaybackRateButtons(!0),s.hideSubtitleButtons(!0)}},this.updateHexColorForScrubber=function(e){e?(s.mainScrubberDragMiddle_do.getStyle().background="url('"+s.mainScrubberDragMiddleAddPath_str+"') repeat-x",s.mainScrubberDragLeft_do.screen.src=t.mainScrubberDragLeftAddPath_str):(s.mainScrubberDragMiddle_do.getStyle().background="url('"+s.mainScrubberDragMiddlePath_str+"') repeat-x",s.mainScrubberDragLeft_do.screen.src=s.mainScrubberDragLeftSource)},s.updateHEXColors=function(e,t){s.normalColor_str=e,s.selectedColor_str=t,FWDEVPUtils.changeCanvasHEXColor(s.mainScrubberDragLeft_img,s.mainScrubberDragLeft_canvas,e);try{FWDEVPUtils.changeCanvasHEXColor(s.volumeScrubberDragLeft_img,s.volumeScrubberDragLeft_canvas,e)}catch(e){}var o=FWDEVPUtils.changeCanvasHEXColor(s.mainScrubberMiddleImage,s.mainSCrubberMiddleCanvas,e,!0);s.mainScrubberDragMiddle_do.getStyle().background="url('"+o.src+"') repeat-x";try{s.volumeScrubberDragMiddle_do&&(s.volumeScrubberDragMiddle_do.getStyle().background="url('"+o.src+"') repeat-x")}catch(e){}if(s.playPauseButton_do.updateHEXColors(e,t),s.playbackRateButton_do&&s.playbackRateButton_do.updateHEXColors(e,t),s.subtitleButton_do&&s.subtitleButton_do.updateHEXColors(e,t),s.volumeButton_do&&s.volumeButton_do.updateHEXColors(e,t),s.ytbQualityButton_do&&s.ytbQualityButton_do.updateHEXColors(e,t),s.shareButton_do&&s.shareButton_do.updateHEXColors(e,t),s.embedButton_do&&s.embedButton_do.updateHEXColors(e,t),s.fullScreenButton_do&&s.fullScreenButton_do.updateHEXColors(e,t),s.time_do&&(s.time_do.getStyle().color=e),s.ytbButtons_ar)for(i=0;i<s.totalYtbButtons;i++)(n=s.ytbButtons_ar[i])&&(n.normalColor_str=e,n.selectedColor_str=t,n.isSelected_bl?n.setSelectedState():n.setNormalState());if(s.playbackRateButtons_ar)for(i=0;i<s.playbackRateButtons_ar.length;i++)(n=s.playbackRateButtons_ar[i])&&(n.normalColor_str=e,n.selectedColor_str=t,n.isSelected_bl?n.setSelectedState():n.setNormalState());if(s.subtitleButtons_ar)for(var i=0;i<s.totalSubttleButtons;i++){var n=s.subtitleButtons_ar[i];n&&(n.normalColor_str=e,n.selectedColor_str=t,n.isSelected_bl?n.setSelectedState():n.setNormalState())}},this.init()};e.setPrototype=function(){e.prototype=new FWDEVPDisplayObject("div")},e.DOWNLOAD_VIDEO="downloadVideo",e.SHOW_SUBTITLE="showSubtitle",e.HIDE_SUBTITLE="hideSubtitle",e.SHARE="share",e.FULL_SCREEN="fullScreen",e.NORMAL_SCREEN="normalScreen",e.PLAY="play",e.PAUSE="pause",e.START_TO_SCRUB="startToScrub",e.SCRUB="scrub",e.STOP_TO_SCRUB="stopToScrub",e.CHANGE_VOLUME="changeVolume",e.CHANGE_YOUTUBE_QUALITY="changeYoutubeQuality",e.SHOW_EMBED_WINDOW="showEmbedWindow",e.CHANGE_SUBTITLE="changeSubtitle",e.CHANGE_PLAYBACK_RATES="changePlaybackRates",e.prototype=null,window.FWDEVPController=e}(window),function(e){var t=function(o,i){var s=this;t.prototype;this.skipIconPath_img=null,this.mainPreloader_img=null,this.bkLeft_img=null,this.bkMiddle_img=null,this.bkRight_img=null,this.playN_img=null,this.pauseN_img=null,this.mainScrubberBkLeft_img=null,this.mainScrubberBkRight_img=null,this.mainScrubberDragLeft_img=null,this.mainScrubberLine_img=null,this.volumeScrubberBkLeft_img=null,this.volumeScrubberBkRight_img=null,this.volumeScrubberDragLeft_img=null,this.volumeScrubberLine_img=null,this.volumeN_img=null,this.progressLeft_img=null,this.largePlayN_img=null,this.fullScreenN_img=null,this.ytbQualityN_img=null,this.ytbQualityD_img=null,this.shareN_img=null,this.normalScreenN_img=null,this.embedN_img=null,this.embedColoseN_img=null,this.props_obj=o,this.skinPaths_ar=[],this.images_ar=[],this.skinPath_str=null,this.flashPath_str=null,this.flashCopyToCBPath_str=null,this.mainFolderPath_str=null,this.bkMiddlePath_str=null,this.hdPath_str=null,this.youtubeQualityArrowPath_str=null,this.mainScrubberBkMiddlePath_str=null,this.volumeScrubberBkMiddlePath_str=null,this.mainScrubberDragMiddlePath_str=null,this.volumeScrubberDragMiddlePath_str=null,this.timeColor_str=null,this.progressMiddlePath_str=null,this.facebookAppId_str=null,this.ytbQualityButtonPointerPath_str=null,this.youtubeQualityButtonNormalColor_str=null,this.youtubeQualityButtonSelectedColor_str=null,this.controllerBkPath_str=null,this.logoPosition_str=null,this.logoPath_str=null,this.shareAndEmbedTextColor_str=null,this.inputBackgroundColor_str=null,this.borderColor_str=null,this.inputColor_str=null,this.secondaryLabelsColor_str=null,this.mainLabelsColor_str=null,this.embedPathS_str=null,this.embedWindowClosePathS_str=null,this.embedWindowInputBackgroundPath_str=null,this.embedCopyButtonNPath_str=null,this.embedCopyButtonSPath_str=null,this.sendButtonNPath_str=null,this.sendButtonSPath_str=null,this.embedWindowBackground_str=null,this.controllerHeight=0,this.countLoadedSkinImages=0,this.volume=1,this.controllerHideDelay=0,this.startSpaceBetweenButtons=0,this.spaceBetweenButtons=0,this.scrubbersOffsetWidth=0,this.volumeScrubberOffsetRightWidth=0,this.timeOffsetLeftWidth=0,this.timeOffsetTop=0,this.logoMargins=0,this.embedWindowCloseButtonMargins=0,this.loadImageId_to,this.dispatchLoadSkinCompleteWithDelayId_to,this.showEmbedButton_bl,this.showShareButton_bl,this.allowToChangeVolume_bl=!0,this.showContextMenu_bl=!1,this.autoPlay_bl=!1,this.showPoster_bl=!1,this.loop_bl=!1,this.showVolumeScrubber_bl=!1,this.showVolumeButton_bl=!1,this.showControllerWhenVideoIsStopped_bl=!1,this.showLogo_bl=!1,this.hideLogoWithController_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,s.init=function(){s.parseProperties()},s.parseProperties=function(){if(s.useHEXColorsForSkin_bl=s.props_obj.useHEXColorsForSkin,s.useHEXColorsForSkin_bl="yes"==s.useHEXColorsForSkin_bl,-1!=location.protocol.indexOf("file:")&&(s.useHEXColorsForSkin_bl=!1),s.mainFolderPath_str=s.props_obj.mainFolderPath,s.mainFolderPath_str)if(s.mainFolderPath_str.lastIndexOf("/")+1!=s.mainFolderPath_str.length&&(s.mainFolderPath_str+="/"),s.skinPath_str=s.props_obj.skinPath,s.skinPath_str){s.skinPath_str.lastIndexOf("/")+1!=s.skinPath_str.length&&(s.skinPath_str+="/"),s.skinPath_str=s.mainFolderPath_str+s.skinPath_str,s.flashPath_str=s.mainFolderPath_str+"flashlsChromeless.swf",s.flashCopyToCBPath_str=s.mainFolderPath_str+"cb.swf",s.sendToAFriendPath_str=s.mainFolderPath_str+"sendMailToAFriend.php",s.videoDownloaderPath_str=s.mainFolderPath_str+"downloader.php",s.mailPath_str=s.mainFolderPath_str+"sendMail.php",s.hlsPath_str=s.mainFolderPath_str+"hls.js",s.threeJsPath_str=s.mainFolderPath_str+"three.js",s.threeJsControlsPath_str=s.mainFolderPath_str+"threeControled.js",s.timeColor_str=s.props_obj.timeColor||"#FF0000",s.privateVideoPassword_str=s.props_obj.privateVideoPassword,s.adsVideoSourcePath_str=s.props_obj.adsVideoSourcePath,s.adsPageToOpenURL_str=s.props_obj.adsPageToOpenURL,s.adsPageToOpenTarget_str=s.props_obj.adsPageToOpenTarget||"_blank",s.adsThumbnailPath_str=s.props_obj.adsThumbnailPath,s.youtubeQualityButtonNormalColor_str=s.props_obj.youtubeQualityButtonNormalColor||"#FF0000",s.youtubeQualityButtonSelectedColor_str=s.props_obj.youtubeQualityButtonSelectedColor||"#FF0000",s.posterBackgroundColor_str=s.props_obj.posterBackgroundColor||"transparent",s.logoPosition_str=s.props_obj.logoPosition||"topleft",s.logoPosition_str=String(s.logoPosition_str).toLowerCase(),test="topleft"==s.logoPosition_str||"topright"==s.logoPosition_str||"bottomleft"==s.logoPosition_str||"bottomright"==s.logoPosition_str,test||(s.logoPosition_str="topleft"),s.adsButtonsPosition_str=s.props_obj.adsButtonsPosition||"left",s.adsButtonsPosition_str=String(s.adsButtonsPosition_str).toLowerCase(),test="left"==s.adsButtonsPosition_str||"right"==s.adsButtonsPosition_str,test||(s.adsButtonsPosition_str="left"),s.rightClickContextMenu_str=s.props_obj.rightClickContextMenu||"developer",test="developer"==s.rightClickContextMenu_str||"disabled"==s.rightClickContextMenu_str||"default"==s.rightClickContextMenu_str,test||(s.rightClickContextMenu_str="developer"),s.logoLink_str=s.props_obj.logoLink||"none",s.skipToVideoButtonText_str=s.props_obj.skipToVideoButtonText||"not defined",s.skipToVideoText_str=s.props_obj.skipToVideoText,s.shareAndEmbedTextColor_str=s.props_obj.shareAndEmbedTextColor||"#FF0000",s.inputBackgroundColor_str=s.props_obj.inputBackgroundColor||"#FF0000",s.borderColor_str=s.props_obj.borderColor||"#FF0000",s.inputColor_str=s.props_obj.inputColor||"#FF0000",s.secondaryLabelsColor_str=s.props_obj.secondaryLabelsColor||"#FF0000",s.mainLabelsColor_str=s.props_obj.mainLabelsColor||"#FF0000",s.adsTextNormalColor=s.props_obj.adsTextNormalColor||"#FF0000",s.adsTextSelectedColor=s.props_obj.adsTextSelectedColor||"#FF0000",s.adsBorderNormalColor_str=s.props_obj.adsBorderNormalColor||"#FF0000",s.adsBorderSelectedColor_str=s.props_obj.adsBorderSelectedColor||"#FF0000",s.normalButtonsColor_str=s.props_obj.normalHEXButtonsColor||"#FFFFFF",s.selectedButtonsColor_str=s.props_obj.selectedHEXButtonsColor||"#999999",s.volume=s.props_obj.volume,void 0==s.volume&&(s.volume=1),isNaN(s.volume)&&(volume=1),s.volume>1?s.volume=1:s.volume<=0&&(s.volume=0),s.audioVisualizerLinesColor_str=s.props_obj.audioVisualizerLinesColor||"#0099FF",s.audioVisualizerCircleColor_str=s.props_obj.audioVisualizerCircleColor||"#00FF00",s.controllerHeight=s.props_obj.controllerHeight||50,s.startSpaceBetweenButtons=s.props_obj.startSpaceBetweenButtons||0,s.controllerHideDelay=s.props_obj.controllerHideDelay||2,s.controllerHideDelay*=1e3,s.spaceBetweenButtons=s.props_obj.spaceBetweenButtons||0,s.scrubbersOffsetWidth=s.props_obj.scrubbersOffsetWidth||0,s.volumeScrubberOffsetRightWidth=s.props_obj.volumeScrubberOffsetRightWidth||0,s.timeOffsetLeftWidth=s.props_obj.timeOffsetLeftWidth||0,s.timeOffsetRightWidth=s.props_obj.timeOffsetRightWidth||0,s.timeOffsetTop=s.props_obj.timeOffsetTop||0,s.embedWindowCloseButtonMargins=s.props_obj.embedWindowCloseButtonMargins||0,s.logoMargins=s.props_obj.logoMargins||0,s.mainScrubberOffestTop=s.props_obj.mainScrubberOffestTop||0,s.volumeScrubberWidth=s.props_obj.volumeScrubberWidth||10,s.volumeScrubberWidth>200&&(s.volumeScrubberWidth=200),s.timeToHoldAds=4,s.greenScreenTolerance=s.props_obj.greenScreenTolerance||200,s.isMobile_bl&&(s.allowToChangeVolume_bl=!1),s.showContextMenu_bl=s.props_obj.showContextMenu,s.showContextMenu_bl="no"!=s.showContextMenu_bl,s.addKeyboardSupport_bl=s.props_obj.addKeyboardSupport,s.addKeyboardSupport_bl="no"!=s.addKeyboardSupport_bl,s.autoPlay_bl=s.props_obj.autoPlay,s.autoPlay_bl="yes"==s.autoPlay_bl,s.scrubAtTimeAtFirstPlay=s.props_obj.scrubAtTimeAtFirstPlay||"00:00:00",s.scrubAtTimeAtFirstPlay=FWDEVPUtils.getSecondsFromString(s.scrubAtTimeAtFirstPlay),s.loop_bl=s.props_obj.loop,s.loop_bl="yes"==s.loop_bl,s.showLogo_bl=s.props_obj.showLogo,s.showLogo_bl="yes"==s.showLogo_bl,s.openDownloadLinkOnMobile_bl=s.props_obj.openDownloadLinkOnMobile,s.openDownloadLinkOnMobile_bl="yes"==s.openDownloadLinkOnMobile_bl,s.playVideoOnlyWhenLoggedIn_bl=s.props_obj.playVideoOnlyWhenLoggedIn,s.playVideoOnlyWhenLoggedIn_bl="yes"==s.playVideoOnlyWhenLoggedIn_bl,s.isLoggedIn_bl=s.props_obj.isLoggedIn,s.isLoggedIn_bl="yes"==s.isLoggedIn_bl,s.loggedInMessage_str=s.props_obj.loggedInMessage||"Only loggedin users can view this video",s.hideLogoWithController_bl=s.props_obj.hideLogoWithController,s.hideLogoWithController_bl="yes"==s.hideLogoWithController_bl,s.aopwSource=s.props_obj.aopwSource,s.aopwBorderSize=s.props_obj.aopwBorderSize||0,s.aopwTitle=s.props_obj.aopwTitle||"Advertisement",s.aopwTitleColor_str=s.props_obj.aopwTitleColor||"#FFFFFF",s.aopwWidth=s.props_obj.aopwWidth||200,s.aopwHeight=s.props_obj.aopwHeight||200,s.aopwSource&&String(s.aopwSource.length)>5?s.showAopwWindow_bl=!0:s.showAopwWindow_bl=!1,s.fillEntireScreenWithPoster_bl=s.props_obj.fillEntireScreenWithPoster,s.fillEntireScreenWithPoster_bl="yes"==s.fillEntireScreenWithPoster_bl,s.startAtTime=s.props_obj.startAtTime,"00:00:00"!=s.startAtTime&&FWDEVPUtils.checkTime(s.startAtTime)||(s.startAtTime=void 0),s.stopAtTime=s.props_obj.stopAtTime,"00:00:00"!=s.stopAtTime&&FWDEVPUtils.checkTime(s.stopAtTime)||(s.stopAtTime=void 0),s.showPoster_bl=s.props_obj.showPoster,s.showPoster_bl="yes"==s.showPoster_bl,s.showVolumeScrubber_bl=s.props_obj.showVolumeScrubber,s.showVolumeScrubber_bl="no"!=s.showVolumeScrubber_bl,s.showVolumeButton_bl=s.props_obj.showVolumeButton,s.showVolumeButton_bl="no"!=s.showVolumeButton_bl,s.showControllerWhenVideoIsStopped_bl=s.props_obj.showControllerWhenVideoIsStopped,s.showControllerWhenVideoIsStopped_bl="yes"==s.showControllerWhenVideoIsStopped_bl,s.showTime_bl=s.props_obj.showTime,s.showTime_bl="no"!=s.showTime_bl,s.showAnnotationsPositionTool_bl=s.props_obj.showAnnotationsPositionTool,s.showAnnotationsPositionTool_bl="yes"==s.showAnnotationsPositionTool_bl,s.showDownloadVideoButton_bl=s.props_obj.showDownloadButton,s.showDownloadVideoButton_bl="yes"==s.showDownloadVideoButton_bl,s.showFullScreenButton_bl=s.props_obj.showFullScreenButton,s.showFullScreenButton_bl="no"!=s.showFullScreenButton_bl,s.executeCuepointsOnlyOnce_bl=s.props_obj.executeCuepointsOnlyOnce,s.executeCuepointsOnlyOnce_bl="yes"==s.executeCuepointsOnlyOnce_bl,s.showAnnotationsPositionTool_bl&&(s.showFullScreenButton_bl=!1),s.repeatBackground_bl=s.props_obj.repeatBackground,s.repeatBackground_bl="no"!=s.repeatBackground_bl,s.showShareButton_bl=s.props_obj.showShareButton,s.showShareButton_bl="no"!=s.showShareButton_bl,s.showEmbedButton_bl=s.props_obj.showEmbedButton,s.showEmbedButton_bl="no"!=s.showEmbedButton_bl,s.showController_bl=s.props_obj.showController,s.showController_bl="no"!=s.showController_bl,s.fillEntireVideoScreen_bl=s.props_obj.fillEntireVideoScreen,s.fillEntireVideoScreen_bl="yes"==s.fillEntireVideoScreen_bl,s.showSubtitileByDefault_bl=s.props_obj.showSubtitleByDefault,s.showSubtitileByDefault_bl="no"!=s.showSubtitileByDefault_bl,s.showPopupAdsCloseButton_bl=s.props_obj.showPopupAdsCloseButton,s.showPopupAdsCloseButton_bl="no"!=s.showPopupAdsCloseButton_bl,s.showSubtitleButton_bl=s.props_obj.showSubtitleButton,s.showSubtitleButton_bl="no"!=s.showSubtitleButton_bl,s.useChromeless_bl=s.props_obj.useChromeless,s.useChromeless_bl="yes"==s.useChromeless_bl,s.hasAds_bl=s.adsVideoSourcePath_str,s.hasAds_bl="none"!=s.hasAds_bl,s.adsVideoSourcePath_str||(s.hasAds_bl=!1),s.openNewPageAtTheEndOfTheAds_bl=s.props_obj.openNewPageAtTheEndOfTheAds,s.openNewPageAtTheEndOfTheAds_bl="yes"==s.openNewPageAtTheEndOfTheAds_bl,s.showYoutubeQualityButton_bl=s.props_obj.showQualityButton,s.showYoutubeQualityButton_bl="no"!=s.showYoutubeQualityButton_bl,s.showPlaybackRateButton_bl=s.props_obj.showPlaybackRateButton,s.showPlaybackRateButton_bl="yes"==s.showPlaybackRateButton_bl,s.defaultPlaybackRate_str=s.props_obj.defaultPlaybackRate,s.defaultPlaybackRate_ar=["0.25","0.5","1","1.25","1.5","2"],s.startAtPlaybackIndex=3,s.defaultPlaybackRate_ar.reverse();for(var e=!1,o=0;o<s.defaultPlaybackRate_ar.length;o++)s.defaultPlaybackRate_ar[o]==s.defaultPlaybackRate_str&&(e=!0,s.startAtPlaybackIndex=o);e||(s.defaultPlaybackRate_str=1),s.logoPath_str=s.skinPath_str+"logo.png",s.handPath_str=s.skinPath_str+"hand.cur",s.grabPath_str=s.skinPath_str+"grab.cur",s.props_obj.logoPath&&(s.logoPath_str=s.props_obj.logoPath),s.popupAddCloseNPath_str=s.skinPath_str+"close-button-normal.png",s.popupAddCloseSPath_str=s.skinPath_str+"close-button-selected.png",s.annotationAddCloseNPath_str=s.skinPath_str+"annotation-close-button-normal.png",s.annotationAddCloseSPath_str=s.skinPath_str+"annotation-close-button-selected.png",s.adLinePat_str=s.skinPath_str+"ad-line.png",s.playSPath_str=s.skinPath_str+"play-over.png";s.skinPath_str;if(s.pauseSPath_str=s.skinPath_str+"pause-over.png",s.bkMiddlePath_str=s.skinPath_str+"controller-middle.png",s.hdPath_str=s.skinPath_str+"hd.png",s.youtubeQualityArrowPath_str=s.skinPath_str+"youtube-quality-arrow.png",s.ytbQualityButtonPointerPath_str=s.skinPath_str+"youtube-quality-pointer.png",s.controllerBkPath_str=s.skinPath_str+"controller-background.png",s.skipIconSPath_str=s.skinPath_str+"skip-icon-over.png",s.adsBackgroundPath_str=s.skinPath_str+"ads-background.png",s.showSubtitleSPath_str=s.skinPath_str+"show-subtitle-icon-over.png",s.hideSubtitleSPath_str=s.skinPath_str+"hide-subtitle-icon-over.png",s.mainScrubberBkMiddlePath_str=s.skinPath_str+"scrubber-middle-background.png",s.mainScrubberDragMiddlePath_str=s.skinPath_str+"scrubber-middle-drag.png",s.mainScrubberDragLeftAddPath_str=s.skinPath_str+"scrubber-left-drag-add.png",s.mainScrubberDragMiddleAddPath_str=s.skinPath_str+"scrubber-middle-drag-add.png",s.volumeScrubberBkMiddlePath_str=s.skinPath_str+"scrubber-middle-background.png",s.volumeScrubberDragMiddlePath_str=s.skinPath_str+"scrubber-middle-drag.png",s.volumeSPath_str=s.skinPath_str+"volume-over.png",s.volumeDPath_str=s.skinPath_str+"volume-disabled.png",s.largePlayS_str=s.skinPath_str+"large-play-over.png",s.fullScreenSPath_str=s.skinPath_str+"full-screen-over.png",s.ytbQualitySPath_str=s.skinPath_str+"youtube-quality-over.png",s.ytbQualityDPath_str=s.skinPath_str+"youtube-quality-hd.png",s.shareSPath_str=s.skinPath_str+"share-over.png",s.normalScreenSPath_str=s.skinPath_str+"normal-screen-over.png",s.progressMiddlePath_str=s.skinPath_str+"progress-middle.png",s.embedPathS_str=s.skinPath_str+"embed-over.png",s.embedWindowClosePathS_str=s.skinPath_str+"embed-close-button-over.png",s.shareWindowClosePathS_str=s.skinPath_str+"embed-close-button-over.png",s.embedWindowInputBackgroundPath_str=s.skinPath_str+"embed-window-input-background.png",s.embedCopyButtonNPath_str=s.skinPath_str+"embed-copy-button.png",s.embedCopyButtonSPath_str=s.skinPath_str+"embed-copy-button-over.png",s.sendButtonNPath_str=s.skinPath_str+"send-button.png",s.sendButtonSPath_str=s.skinPath_str+"send-button-over.png",s.embedWindowBackground_str=s.skinPath_str+"embed-window-background.png",s.playbackRateSPath_str=s.skinPath_str+"playback-rate-selected.png",s.passButtonNPath_str=s.skinPath_str+"pass-button.png",s.passButtonSPath_str=s.skinPath_str+"pass-button-over.png",s.mainPreloader_img=new Image,s.mainPreloader_img.onerror=s.onSkinLoadErrorHandler,s.mainPreloader_img.onload=s.onPreloaderLoadHandler,s.mainPreloader_img.src=s.skinPath_str+"preloader.jpg",s.annotiationsListId_str=s.props_obj.annotiationsListId,s.annotations_el=FWDEVPUtils.getChildById(s.annotiationsListId_str),s.hasAnnotiations_bl=Boolean(s.annotations_el),s.hasAnnotiations_bl){var i=FWDEVPUtils.getChildren(s.annotations_el);s.annotations_ar=[];for(var n,r=i.length,o=0;o<r;o++){var l={};n=i[o],l.start=FWDEVPSubtitle.getDuration(FWDEVPUtils.getAttributeValue(n,"data-start-time")),l.end=FWDEVPSubtitle.getDuration(FWDEVPUtils.getAttributeValue(n,"data-end-time")),l.left=parseInt(FWDEVPUtils.getAttributeValue(n,"data-left"),10),l.top=parseInt(FWDEVPUtils.getAttributeValue(n,"data-top"),10),l.showCloseButton_bl="yes"==FWDEVPUtils.getAttributeValue(n,"data-show-close-button"),l.clickSource=FWDEVPUtils.getAttributeValue(n,"data-click-source"),l.clickSourceTarget=FWDEVPUtils.getAttributeValue(n,"data-click-source-target"),l.normalStateClass=FWDEVPUtils.getAttributeValue(n,"data-normal-state-class"),l.selectedStateClass=FWDEVPUtils.getAttributeValue(n,"data-selected-state-class"),l.content=n.innerHTML,s.annotations_ar[o]=l}try{s.annotations_el.parentNode.removeChild(s.annotations_el)}catch(e){}}if(s.startAtVideoSource=s.props_obj.startAtVideoSource||0,s.videoSource_ar=s.props_obj.videoSource,s.videoSource_ar){s.videosSource_ar=[],s.videoLabels_ar=[];for(o=0;o<s.videoSource_ar.length;o++)(l={}).source=s.videoSource_ar[o].source,l.videoType=s.videoSource_ar[o].videoType||"normal",l.label=s.videoSource_ar[o].label,s.videoSource_ar[o].videoType=l.videoType,s.videoLabels_ar[o]=s.videoSource_ar[o].label,l.isPrivate=s.videoSource_ar[o].isPrivate||"no",l.isPrivate="yes"==l.isPrivate,s.videosSource_ar[o]=l;s.videoLabels_ar.reverse(),s.startAtVideoSource>s.videoLabels_ar.length-1&&(s.startAtVideoSource=s.videoLabels_ar.length-1)}if(!s.videosSource_ar||s.videoLabels_ar&&0==s.videoSource_ar.length)setTimeout(function(){null!=s&&(errorMessage_str="Please specify at least a video source!",s.dispatchEvent(t.LOAD_ERROR,{text:errorMessage_str}))},100);else{if(-1==s.videoSource_ar[s.startAtVideoSource].source.indexOf(".mp4")&&(s.showDownloadVideoButton_bl=!1),s.startAtSubtitle=s.props_obj.startAtSubtitle||0,s.subtitlesSource_ar=s.props_obj.subtitlesSource,s.subtitlesOffLabel_str=s.props_obj.subtitlesOffLabel||"Subtitle off",s.subtitlesSource_ar){s.subtitles_ar=[];for(o=0;o<s.subtitlesSource_ar.length;o++)(l={}).source=s.subtitlesSource_ar[o].subtitlePath,l.label=s.subtitlesSource_ar[o].subtileLabel,s.subtitles_ar[o]=l;s.subtitles_ar.splice(0,0,{source:"none",label:s.subtitlesOffLabel_str}),s.subtitles_ar.reverse()}if(s.subtitlesSource_ar||(s.showSubtitleButton_bl=!1),s.subtitlesSource_ar&&1==s.subtitlesSource_ar.length&&(s.showSubtitleButton_bl=!1),s.popupAds_ar=s.props_obj.popupCommercialAdsSource,s.popupAds_ar)for(o=0;o<s.popupAds_ar.length;o++)s.popupAds_ar[o].timeStart=FWDEVPUtils.getSecondsFromString(s.popupAds_ar[o].timeStart),s.popupAds_ar[o].timeEnd=FWDEVPUtils.getSecondsFromString(s.popupAds_ar[o].timeEnd);if(s.ads_ar=s.props_obj.adsSource,s.adsSource_ar=[],s.ads_ar)for(o=0;o<s.ads_ar.length;o++){var a={};a.timeStart=FWDEVPUtils.getSecondsFromString(s.ads_ar[o].timeStart),a.addDuration=FWDEVPUtils.getSecondsFromString(s.ads_ar[o].addDuration)||10,a.thumbnailSource=s.ads_ar[o].thumbnailSource,a.timeToHoldAds=s.ads_ar[o].timeToHoldAds||4,a.source=s.ads_ar[o].source,a.link=s.ads_ar[o].link,a.target=s.ads_ar[o].target,s.adsSource_ar[o]=a}if(s.cuePoints_ar=s.props_obj.cuepoints,s.cuePointsSource_ar=[],s.cuePoints_ar)for(o=0;o<s.cuePoints_ar.length;o++){var d={};d.timeStart=FWDEVPUtils.getSecondsFromString(s.cuePoints_ar[o].timeStart),d.javascriptCall=s.cuePoints_ar[o].javascriptCall,d.isPlayed_bl=!1,s.cuePointsSource_ar[o]=d}s.useChromeless_bl||(s.skinPaths_ar=[{img:s.largePlayN_img=new Image,src:s.skinPath_str+"large-play.png"},{img:s.skipIconPath_img=new Image,src:s.skinPath_str+"skip-icon.png"}],s.showController_bl&&s.skinPaths_ar.push({img:s.playN_img=new Image,src:s.skinPath_str+"play.png"},{img:s.pauseN_img=new Image,src:s.skinPath_str+"pause.png"},{img:s.mainScrubberBkLeft_img=new Image,src:s.skinPath_str+"scrubber-left-background.png"},{img:s.mainScrubberBkRight_img=new Image,src:s.skinPath_str+"scrubber-right-background.png"},{img:s.mainScrubberDragLeft_img=new Image,src:s.skinPath_str+"scrubber-left-drag.png"},{img:s.mainScrubberLine_img=new Image,src:s.skinPath_str+"scrubber-line.png"},{img:s.volumeScrubberBkLeft_img=new Image,src:s.skinPath_str+"scrubber-left-background.png"},{img:s.volumeScrubberBkRight_img=new Image,src:s.skinPath_str+"scrubber-right-background.png"},{img:s.volumeScrubberDragLeft_img=new Image,src:s.skinPath_str+"scrubber-left-drag.png"},{img:s.volumeScrubberLine_img=new Image,src:s.skinPath_str+"scrubber-line.png"},{img:s.volumeN_img=new Image,src:s.skinPath_str+"volume.png"},{img:s.progressLeft_img=new Image,src:s.skinPath_str+"progress-left.png"},{img:s.downloadN_img=new Image,src:s.skinPath_str+"download-button.png"},{img:s.fullScreenN_img=new Image,src:s.skinPath_str+"full-screen.png"},{img:s.ytbQualityN_img=new Image,src:s.skinPath_str+"youtube-quality.png"},{img:s.normalScreenN_img=new Image,src:s.skinPath_str+"normal-screen.png"},{img:s.embedN_img=new Image,src:s.skinPath_str+"embed.png"},{img:s.embedColoseN_img=new Image,src:s.skinPath_str+"embed-close-button.png"},{img:s.passColoseN_img=new Image,src:s.skinPath_str+"embed-close-button.png"},{img:s.showSubtitleNPath_img=new Image,src:s.skinPath_str+"show-subtitle-icon.png"},{img:s.hideSubtitleNPath_img=new Image,src:s.skinPath_str+"hide-subtitle-icon.png"},{img:s.playbackRateNPath_img=new Image,src:s.skinPath_str+"playback-rate-normal.png"}),s.showShareButton_bl&&(s.skinPaths_ar.push({img:s.shareN_img=new Image,src:s.skinPath_str+"share.png"},{img:s.shareClooseN_img=new Image,src:s.skinPath_str+"embed-close-button.png"},{img:s.facebookN_img=new Image,src:s.skinPath_str+"facebook.png"},{img:s.googleN_img=new Image,src:s.skinPath_str+"google-plus.png"},{img:s.twitterN_img=new Image,src:s.skinPath_str+"twitter.png"},{img:s.likedInkN_img=new Image,src:s.skinPath_str+"likedin.png"},{img:s.bufferkN_img=new Image,src:s.skinPath_str+"buffer.png"},{img:s.diggN_img=new Image,src:s.skinPath_str+"digg.png"},{img:s.redditN_img=new Image,src:s.skinPath_str+"reddit.png"},{img:s.thumbrlN_img=new Image,src:s.skinPath_str+"thumbrl.png"}),s.shareSPath_str=s.skinPath_str+"share-over.png",s.facebookSPath_str=s.skinPath_str+"facebook-over.png",s.googleSPath_str=s.skinPath_str+"google-plus-over.png",s.downloadSPath_str=s.skinPath_str+"download-button-over.png",s.twitterSPath_str=s.skinPath_str+"twitter-over.png",s.likedInSPath_str=s.skinPath_str+"likedin-over.png",s.bufferSPath_str=s.skinPath_str+"buffer-over.png",s.diggSPath_str=s.skinPath_str+"digg-over.png",s.redditSPath_str=s.skinPath_str+"reddit-over.png",s.thumbrlSPath_str=s.skinPath_str+"thumbrl-over.png")),s.showHelpScreen_bl&&s.skinPaths_ar.push({img:s.helpScreen_img=new Image,src:s.skinPath_str+s.helpScreenPath_str},{img:s.pauseN_img=new Image,src:s.skinPath_str+"ok-button.png"}),s.showAopwWindow_bl&&(s.skinPaths_ar.push({img:s.popwColseN_img=new Image,src:s.skinPath_str+"popw-close-button.png"}),s.popwColseSPath_str=s.skinPath_str+"popw-close-button-over.png",s.popwWindowBackgroundPath_str=s.skinPath_str+"popw-window-background.png",s.popwBarBackgroundPath_str=s.skinPath_str+"popw-bar-background.png"),s.totalGraphics=s.skinPaths_ar.length}}else setTimeout(function(){null!=s&&(errorMessage_str="The <font color='#FF0000'>skinPath</font> property is not defined in the constructor function!",s.dispatchEvent(t.LOAD_ERROR,{text:errorMessage_str}))},50);else setTimeout(function(){null!=s&&(errorMessage_str="The <font color='#FF0000'>mainFolderPath</font> property is not defined in the constructor function!",s.dispatchEvent(t.LOAD_ERROR,{text:errorMessage_str}))},50)},this.onPreloaderLoadHandler=function(){setTimeout(function(){s.dispatchEvent(t.PRELOADER_LOAD_DONE),s.useChromeless_bl?setTimeout(function(){s.dispatchEvent(t.SKIN_LOAD_COMPLETE)},50):s.loadSkin()},50)},s.loadSkin=function(){for(var e,t,o=0;o<s.totalGraphics;o++)e=s.skinPaths_ar[o].img,t=s.skinPaths_ar[o].src,e.onload=s.onSkinLoadHandler,e.onerror=s.onSkinLoadErrorHandler,e.src=t},this.onSkinLoadHandler=function(e){++s.countLoadedSkinImages==s.totalGraphics&&setTimeout(function(){s.dispatchEvent(t.SKIN_LOAD_COMPLETE)},50)},s.onSkinLoadErrorHandler=function(o){FWDEVPUtils.isIEAndLessThen9?message="Graphics image not found!":message="The skin graphics with label <font color='#FF0000'>"+o.target.src+"</font> can't be loaded, check path!",e.console&&console.log(o);var i={text:message};setTimeout(function(){s.dispatchEvent(t.LOAD_ERROR,i)},50)},s.onSkinLoadHandlersss=function(e){++s.countLoadedSkinImages<s.totalGraphics?FWDEVPUtils.isIEAndLessThen9?s.loadImageId_to=setTimeout(s.loadSkin,16):s.loadSkin():setTimeout(function(){s.dispatchEvent(t.SKIN_LOAD_COMPLETE)},50)},this.downloadVideo=function(o,i){var n=o,r=location.origin,l=location.pathname;if(-1!=l.indexOf(".")&&(l=l.substr(0,l.lastIndexOf("/")+1)),-1==o.indexOf("http")||-1==o.indexOf("https:")||(o=r+l+o),"file:"==document.location.protocol)return s.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){s.dispatchEvent(t.LOAD_ERROR,{text:"Downloading video files local is not allowed or possible! To function properly please test online."}),s.isPlaylistDispatchingError_bl=!1},50));if(!o)return s.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){s.dispatchEvent(t.LOAD_ERROR,{text:"Not allowed to download this video!"}),s.isPlaylistDispatchingError_bl=!1},50));if(-1==String(o.indexOf(".mp4")))return s.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){s.dispatchEvent(t.LOAD_ERROR,{text:"Only mp4 video files hosted on your server can be downloaded."}),s.isPlaylistDispatchingError_bl=!1},50));(i=i.replace(/[^A-Z0-9\-\_\.]+/gi,"_")).length>40&&(i=i.substr(0,40)+"..."),-1==o.indexOf("http:")&&(o=(o=o.split(",")[0]).substr(o.indexOf("/")+1),o=encodeURIComponent(o));var a=s.videoDownloaderPath_str;if(s.dlIframe||(s.dlIframe=document.createElement("IFRAME"),s.dlIframe.style.display="none",document.documentElement.appendChild(s.dlIframe)),s.isMobile_bl){if(s.openDownloadLinkOnMobile_bl)return void e.open(n,"_blank");var d=s.getValidEmail();if(!d)return;if(null!=s.emailXHR){try{s.emailXHR.abort()}catch(e){}s.emailXHR.onreadystatechange=null,s.emailXHR.onerror=null,s.emailXHR=null}return s.emailXHR=new XMLHttpRequest,s.emailXHR.onreadystatechange=function(e){4==s.emailXHR.readyState&&(200==s.emailXHR.status?"sent"==s.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: "+s.emailXHR.status+": "+s.emailXHR.statusText))},s.emailXHR.onerror=function(t){try{e.console&&console.log(t),e.console&&console.log(t.message)}catch(t){}alert("Error sending email: "+t.message)},s.emailXHR.open("get",s.mailPath_str+"?mail="+d+"&name="+i+"&path="+o,!0),void s.emailXHR.send()}s.dlIframe.src=a+"?path="+o+"&name="+i},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},s.showPropertyError=function(e){s.dispatchEvent(t.LOAD_ERROR,{text:"The property called <font color='#FF0000'>"+e+"</font> is not defined."})},s.init()};t.setPrototype=function(){t.prototype=new FWDEVPEventDispatcher},t.prototype=null,t.PRELOADER_LOAD_DONE="onPreloaderLoadDone",t.LOAD_DONE="onLoadDone",t.LOAD_ERROR="onLoadError",t.IMAGE_LOADED="onImageLoaded",t.SKIN_LOAD_COMPLETE="onSkinLoadComplete",t.SKIN_PROGRESS="onSkinProgress",t.IMAGES_PROGRESS="onImagesPogress",e.FWDEVPData=t}(window),window.FWDEVPDisplayObject=function(e,t,o,i){var s=this;if(s.listeners={events_ar:[]},"div"!=e&&"img"!=e&&"canvas"!=e&&"input"!=e&&"iframe"!=e)throw Error("Type is not valid! "+e);s.type=e,this.children_ar=[],this.style,this.screen,this.transform,this.position=t||"absolute",this.overflow=o||"hidden",this.display=i||"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=FWDEVPUtils.hasTransform3d,this.hasTransform2d_bl=FWDEVPUtils.hasTransform2d,(FWDEVPUtils.isFirefox||FWDEVPUtils.isIE)&&(s.hasTransform3d_bl=!1),(FWDEVPUtils.isFirefox||FWDEVPUtils.isIE)&&(s.hasTransform2d_bl=!1),this.hasBeenSetSelectable_bl=!1,s.init=function(){s.setScreen()},s.getTransform=function(){for(var e,t=["transform","msTransform","WebkitTransform","MozTransform","OTransform"];e=t.shift();)if(void 0!==s.screen.style[e])return e;return!1},s.getOpacityType=function(){return void 0!==s.screen.style.opacity?"opacity":"filter"},s.setScreen=function(e){"img"==s.type&&e?(s.screen=e,s.setMainProperties()):(s.screen=document.createElement(s.type),s.setMainProperties())},s.setMainProperties=function(){s.transform=s.getTransform(),s.setPosition(s.position),s.setOverflow(s.overflow),s.opacityType=s.getOpacityType(),"opacity"==s.opacityType&&(s.isHtml5_bl=!0),"filter"==s.opacityType&&(s.screen.style.filter="inherit"),s.screen.style.left="0px",s.screen.style.top="0px",s.screen.style.margin="0px",s.screen.style.padding="0px",s.screen.style.maxWidth="none",s.screen.style.maxHeight="none",s.screen.style.border="none",s.screen.style.lineHeight="1",s.screen.style.backgroundColor="transparent",s.screen.style.backfaceVisibility="hidden",s.screen.style.webkitBackfaceVisibility="hidden",s.screen.style.MozBackfaceVisibility="hidden",s.screen.style.MozImageRendering="optimizeSpeed",s.screen.style.WebkitImageRendering="optimizeSpeed","img"==e&&(s.setWidth(s.screen.width),s.setHeight(s.screen.height))},s.setBackfaceVisibility=function(){s.screen.style.backfaceVisibility="visible",s.screen.style.webkitBackfaceVisibility="visible",s.screen.style.MozBackfaceVisibility="visible"},s.setSelectable=function(e){e?(FWDEVPUtils.isFirefox||FWDEVPUtils.isIE?(s.screen.style.userSelect="element",s.screen.style.MozUserSelect="element",s.screen.style.msUserSelect="element"):FWDEVPUtils.isSafari?(s.screen.style.userSelect="text",s.screen.style.webkitUserSelect="text"):(s.screen.style.userSelect="all",s.screen.style.webkitUserSelect="all"),s.screen.style.khtmlUserSelect="all",s.screen.style.oUserSelect="all",FWDEVPUtils.isIEAndLessThen9?(s.screen.ondragstart=null,s.screen.onselectstart=null,s.screen.ontouchstart=null):(s.screen.ondragstart=void 0,s.screen.onselectstart=void 0,s.screen.ontouchstart=void 0),s.screen.style.webkitTouchCallout="default",s.hasBeenSetSelectable_bl=!1):(s.screen.style.userSelect="none",s.screen.style.MozUserSelect="none",s.screen.style.webkitUserSelect="none",s.screen.style.khtmlUserSelect="none",s.screen.style.oUserSelect="none",s.screen.style.msUserSelect="none",s.screen.msUserSelect="none",s.screen.ondragstart=function(e){return!1},s.screen.onselectstart=function(){return!1},s.screen.ontouchstart=function(){return!1},s.screen.style.webkitTouchCallout="none",s.hasBeenSetSelectable_bl=!0)},s.getScreen=function(){return s.screen},s.setVisible=function(e){s.visible=e,1==s.visible?s.screen.style.visibility="visible":s.screen.style.visibility="hidden"},s.getVisible=function(){return s.visible},s.setResizableSizeAfterParent=function(){s.screen.style.width="100%",s.screen.style.height="100%"},s.getStyle=function(){return s.screen.style},s.setOverflow=function(e){s.overflow=e,s.screen.style.overflow=s.overflow},s.setPosition=function(e){s.position=e,s.screen.style.position=s.position},s.setDisplay=function(e){s.display=e,s.screen.style.display=s.display},s.setButtonMode=function(e){s.buttonMode=e,1==s.buttonMode?s.screen.style.cursor="pointer":s.screen.style.cursor="default"},s.setBkColor=function(e){s.screen.style.backgroundColor=e},s.setInnerHTML=function(e){s.innerHTML=e,s.screen.innerHTML=s.innerHTML},s.getInnerHTML=function(){return s.innerHTML},s.getRect=function(){return s.screen.getBoundingClientRect()},s.setAlpha=function(e){s.alpha=e,"opacity"==s.opacityType?s.screen.style.opacity=s.alpha:"filter"==s.opacityType&&(s.screen.style.filter="alpha(opacity="+100*s.alpha+")",s.screen.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+Math.round(100*s.alpha)+")")},s.getAlpha=function(){return s.alpha},s.getRect=function(){return s.screen.getBoundingClientRect()},s.getGlobalX=function(){return s.getRect().left},s.getGlobalY=function(){return s.getRect().top},s.setX=function(e){s.x=e,s.hasTransform3d_bl?s.screen.style[s.transform]="translate3d("+s.x+"px,"+s.y+"px,0)":s.hasTransform2d_bl?s.screen.style[s.transform]="translate("+s.x+"px,"+s.y+"px)":s.screen.style.left=s.x+"px"},s.getX=function(){return s.x},s.setY=function(e){s.y=e,s.hasTransform3d_bl?s.screen.style[s.transform]="translate3d("+s.x+"px,"+s.y+"px,0)":s.hasTransform2d_bl?s.screen.style[s.transform]="translate("+s.x+"px,"+s.y+"px)":s.screen.style.top=s.y+"px"},s.getY=function(){return s.y},s.setWidth=function(e){s.w=e,"img"==s.type?(s.screen.width=s.w,s.screen.style.width=s.w+"px"):s.screen.style.width=s.w+"px"},s.getWidth=function(){return"div"==s.type||"input"==s.type?0!=s.screen.offsetWidth?s.screen.offsetWidth:s.w:"img"==s.type?0!=s.screen.offsetWidth?s.screen.offsetWidth:0!=s.screen.width?s.screen.width:s._w:"canvas"==s.type?0!=s.screen.offsetWidth?s.screen.offsetWidth:s.w:void 0},s.setHeight=function(e){s.h=e,"img"==s.type?(s.screen.height=s.h,s.screen.style.height=s.h+"px"):s.screen.style.height=s.h+"px"},s.getHeight=function(){return"div"==s.type||"input"==s.type?0!=s.screen.offsetHeight?s.screen.offsetHeight:s.h:"img"==s.type?0!=s.screen.offsetHeight?s.screen.offsetHeight:0!=s.screen.height?s.screen.height:s.h:"canvas"==s.type?0!=s.screen.offsetHeight?s.screen.offsetHeight:s.h:void 0},s.addChild=function(e){s.contains(e)?(s.children_ar.splice(FWDEVPUtils.indexOfArray(s.children_ar,e),1),s.children_ar.push(e),s.screen.appendChild(e.screen)):(s.children_ar.push(e),s.screen.appendChild(e.screen))},s.removeChild=function(e){if(!s.contains(e))throw Error("##removeChild()## Child dose't exist, it can't be removed!");s.children_ar.splice(FWDEVPUtils.indexOfArray(s.children_ar,e),1),s.screen.removeChild(e.screen)},s.contains=function(e){return-1!=FWDEVPUtils.indexOfArray(s.children_ar,e)},s.addChildAt=function(e,t){if(0==s.getNumChildren())s.children_ar.push(e),s.screen.appendChild(e.screen);else if(1==t)s.screen.insertBefore(e.screen,s.children_ar[0].screen),s.screen.insertBefore(s.children_ar[0].screen,e.screen),s.contains(e)?s.children_ar.splice(FWDEVPUtils.indexOfArray(s.children_ar,e),1,e):s.children_ar.splice(FWDEVPUtils.indexOfArray(s.children_ar,e),0,e);else{if(t<0||t>s.getNumChildren()-1)throw Error("##getChildAt()## Index out of bounds!");s.screen.insertBefore(e.screen,s.children_ar[t].screen),s.contains(e)?s.children_ar.splice(FWDEVPUtils.indexOfArray(s.children_ar,e),1,e):s.children_ar.splice(FWDEVPUtils.indexOfArray(s.children_ar,e),0,e)}},s.getChildAt=function(e){if(e<0||e>s.getNumChildren()-1)throw Error("##getChildAt()## Index out of bounds!");if(0==s.getNumChildren())throw Errror("##getChildAt## Child dose not exist!");return s.children_ar[e]},s.getChildIndex=function(e){return s.contains(e)?FWDEVPUtils.indexOfArray(s.children_ar,e):0},s.removeChildAtZero=function(){s.screen.removeChild(s.children_ar[0].screen),s.children_ar.shift()},s.getNumChildren=function(){return s.children_ar.length},s.addListener=function(e,t){if(void 0==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 o={};o.type=e,o.listener=t,o.target=this,this.listeners.events_ar.push(o)},s.dispatchEvent=function(e,t){if(null!=this.listeners){if(void 0==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");for(var o=0,i=this.listeners.events_ar.length;o<i;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e){if(t)for(var s in t)this.listeners.events_ar[o][s]=t[s];this.listeners.events_ar[o].listener.call(this,this.listeners.events_ar[o])}}},s.removeListener=function(e,t){if(void 0==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."+e);for(var o=0,i=this.listeners.events_ar.length;o<i;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e&&this.listeners.events_ar[o].listener===t){this.listeners.events_ar.splice(o,1);break}},s.disposeImage=function(){"img"==s.type&&(s.screen.src=null)},s.destroy=function(){s.hasBeenSetSelectable_bl&&(s.screen.ondragstart=null,s.screen.onselectstart=null,s.screen.ontouchstart=null),s.screen.removeAttribute("style"),s.listeners=[],s.listeners=null,s.children_ar=[],s.children_ar=null,s.style=null,s.screen=null,s.transform=null,s.position=null,s.overflow=null,s.display=null,s.visible=null,s.buttonMode=null,s.x=null,s.y=null,s.w=null,s.h=null,s.rect=null,s.alpha=null,s.innerHTML=null,s.opacityType=null,s.isHtml5_bl=null,s.hasTransform3d_bl=null,s.hasTransform2d_bl=null,s=null},s.init()},function(e){var t=function(o,i){function s(){if(e.top==e||!FWDEVPUtils.isIE){var t,o;document.body.createTextRange?((t=document.body.createTextRange()).moveToElementText(this),t.select()):e.getSelection&&document.createRange&&(o=e.getSelection(),(t=document.createRange()).selectNodeContents(this),o.removeAllRanges(),o.addRange(t))}}var n=this;t.prototype;this.xhr=null,this.embedColoseN_img=o.embedColoseN_img,this.bk_do=null,this.mainHolder_do=null,this.embedAndLinkMainLabel_do=null,this.linkAndEmbedHolderBk_do=null,this.linkText_do=null,this.linkLabel_do=null,this.embedText_do=null,this.embedLabel_do=null,this.linkAndEmbedHolder_do=null,this.copyLinkButton_do=null,this.copyEmbedButton_do=null,this.infoText_do=null,this.sendMainHolder_do=null,this.sendMainHolderBk_do=null,this.sendMainLabel_do=null,this.yourEmailLabel_do=null,this.yourEmailInput_do=null,this.friendEmailLabel_do=null,this.friendEmailInput_do=null,this.closeButton_do=null,this.videoLink_str=null,this.embedWindowBackground_str=o.embedWindowBackground_str,this.embedWindowInputBackgroundPath_str=o.embedWindowInputBackgroundPath_str,this.secondaryLabelsColor_str=o.secondaryLabelsColor_str,this.inputColor_str=o.inputColor_str,this.mainLabelsColor_str=o.mainLabelsColor_str,this.sendButtonNPath_str=o.sendButtonNPath_str,this.sendButtonSPath_str=o.sendButtonSPath_str,this.inputBackgroundColor_str=o.inputBackgroundColor_str,this.borderColor_str=o.borderColor_str,this.sendToAFriendPath_str=o.sendToAFriendPath_str,this.maxTextWidth=0,this.totalWidth=0,this.stageWidth=0,this.stageHeight=0,this.buttonWidth=44,this.buttonHeight=19,this.embedWindowCloseButtonMargins=o.embedWindowCloseButtonMargins,this.finalEmbedPath_str=null,this.finalEmbedCode_str=null,this.linkToVideo_str=null,this.shareAndEmbedTextColor_str=o.shareAndEmbedTextColor_str,this.isSending_bl=!1,this.isShowed_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.init=function(){n.setBackfaceVisibility(),n.mainHolder_do=new FWDEVPDisplayObject("div"),n.mainHolder_do.hasTransform3d_bl=!1,n.mainHolder_do.hasTransform2d_bl=!1,n.mainHolder_do.setBackfaceVisibility(),n.bk_do=new FWDEVPDisplayObject("div"),n.bk_do.getStyle().width="100%",n.bk_do.getStyle().height="100%",n.bk_do.setAlpha(.9),n.bk_do.getStyle().background="url('"+n.embedWindowBackground_str+"')",n.linkAndEmbedHolder_do=new FWDEVPDisplayObject("div"),n.linkAndEmbedHolderBk_do=new FWDEVPDisplayObject("div"),n.linkAndEmbedHolderBk_do.getStyle().background="url('"+n.embedWindowBackground_str+"')",n.linkAndEmbedHolderBk_do.getStyle().borderStyle="solid",n.linkAndEmbedHolderBk_do.getStyle().borderWidth="1px",n.linkAndEmbedHolderBk_do.getStyle().borderColor=n.borderColor_str,n.embedAndLinkMainLabel_do=new FWDEVPDisplayObject("div"),n.embedAndLinkMainLabel_do.setBackfaceVisibility(),n.embedAndLinkMainLabel_do.getStyle().fontFamily="Arial",n.embedAndLinkMainLabel_do.getStyle().fontSize="12px",n.embedAndLinkMainLabel_do.getStyle().color=n.mainLabelsColor_str,n.embedAndLinkMainLabel_do.getStyle().whiteSpace="nowrap",n.embedAndLinkMainLabel_do.getStyle().fontSmoothing="antialiased",n.embedAndLinkMainLabel_do.getStyle().webkitFontSmoothing="antialiased",n.embedAndLinkMainLabel_do.getStyle().textRendering="optimizeLegibility",n.embedAndLinkMainLabel_do.getStyle().padding="0px",n.embedAndLinkMainLabel_do.setInnerHTML("SHARE & EMBED"),n.linkLabel_do=new FWDEVPDisplayObject("div"),n.linkLabel_do.setBackfaceVisibility(),n.linkLabel_do.getStyle().fontFamily="Arial",n.linkLabel_do.getStyle().fontSize="12px",n.linkLabel_do.getStyle().color=n.secondaryLabelsColor_str,n.linkLabel_do.getStyle().whiteSpace="nowrap",n.linkLabel_do.getStyle().fontSmoothing="antialiased",n.linkLabel_do.getStyle().webkitFontSmoothing="antialiased",n.linkLabel_do.getStyle().textRendering="optimizeLegibility",n.linkLabel_do.getStyle().padding="0px",n.linkLabel_do.setInnerHTML("Link to this video:"),n.linkText_do=new FWDEVPDisplayObject("div"),n.linkText_do.setBackfaceVisibility(),n.linkText_do.getStyle().fontFamily="Arial",n.linkText_do.getStyle().fontSize="12px",n.linkText_do.getStyle().color=n.shareAndEmbedTextColor_str,FWDEVPUtils.isIEAndLessThen9||(n.linkText_do.getStyle().wordBreak="break-all"),n.linkText_do.getStyle().fontSmoothing="antialiased",n.linkText_do.getStyle().webkitFontSmoothing="antialiased",n.linkText_do.getStyle().textRendering="optimizeLegibility",n.linkText_do.getStyle().padding="6px",n.linkText_do.getStyle().paddingTop="4px",n.linkText_do.getStyle().paddingBottom="4px",n.linkText_do.getStyle().backgroundColor=n.inputBackgroundColor_str,n.linkText_do.screen.onclick=s,n.embedLabel_do=new FWDEVPDisplayObject("div"),n.embedLabel_do.setBackfaceVisibility(),n.embedLabel_do.getStyle().fontFamily="Arial",n.embedLabel_do.getStyle().fontSize="12px",n.embedLabel_do.getStyle().color=n.secondaryLabelsColor_str,n.embedLabel_do.getStyle().whiteSpace="nowrap",n.embedLabel_do.getStyle().fontSmoothing="antialiased",n.embedLabel_do.getStyle().webkitFontSmoothing="antialiased",n.embedLabel_do.getStyle().textRendering="optimizeLegibility",n.embedLabel_do.getStyle().padding="0px",n.embedLabel_do.setInnerHTML("Embed this video:"),n.embedText_do=new FWDEVPDisplayObject("div"),n.embedText_do.setBackfaceVisibility(),FWDEVPUtils.isIEAndLessThen9||(n.embedText_do.getStyle().wordBreak="break-all"),n.embedText_do.getStyle().fontFamily="Arial",n.embedText_do.getStyle().fontSize="12px",n.embedText_do.getStyle().lineHeight="16px",n.embedText_do.getStyle().color=n.shareAndEmbedTextColor_str,n.embedText_do.getStyle().fontSmoothing="antialiased",n.embedText_do.getStyle().webkitFontSmoothing="antialiased",n.embedText_do.getStyle().textRendering="optimizeLegibility",n.embedText_do.getStyle().backgroundColor=n.inputBackgroundColor_str,n.embedText_do.getStyle().padding="6px",n.embedText_do.getStyle().paddingTop="4px",n.embedText_do.getStyle().paddingBottom="4px",n.embedText_do.screen.onclick=s,FWDEVPFlashButton.setPrototype(),n.copyLinkButton_do=new FWDEVPFlashButton(o.embedCopyButtonNPath_str,o.embedCopyButtonSPath_str,o.flashCopyToCBPath_str,i.instanceName_str+"copyLink",i.instanceName_str+".copyLinkButtonOnMouseOver",i.instanceName_str+".copyLinkButtonOnMouseOut",i.instanceName_str+".copyLinkButtonOnMouseClick",i.instanceName_str+".getLinkCopyPath",n.buttonWidth,n.buttonHeight,o.useHEXColorsForSkin_bl,o.normalButtonsColor_str,o.selectedButtonsColor_str),n.copyLinkButton_do.addListener(FWDEVPFlashButton.CLICK,n.showFlashButtonInstallError),FWDEVPFlashButton.setPrototype(),n.copyEmbedButton_do=new FWDEVPFlashButton(o.embedCopyButtonNPath_str,o.embedCopyButtonSPath_str,o.flashCopyToCBPath_str,i.instanceName_str+"embedCode",i.instanceName_str+".embedkButtonOnMouseOver",i.instanceName_str+".embedButtonOnMouseOut",i.instanceName_str+".embedButtonOnMouseClick",i.instanceName_str+".getEmbedCopyPath",n.buttonWidth,n.buttonHeight,o.useHEXColorsForSkin_bl,o.normalButtonsColor_str,o.selectedButtonsColor_str),n.copyEmbedButton_do.addListener(FWDEVPFlashButton.CLICK,n.showFlashButtonInstallError),n.sendMainHolder_do=new FWDEVPDisplayObject("div"),n.sendMainHolderBk_do=new FWDEVPDisplayObject("div"),n.sendMainHolderBk_do.getStyle().background="url('"+n.embedWindowBackground_str+"')",n.sendMainHolderBk_do.getStyle().borderStyle="solid",n.sendMainHolderBk_do.getStyle().borderWidth="1px",n.sendMainHolderBk_do.getStyle().borderColor=n.borderColor_str,n.sendMainLabel_do=new FWDEVPDisplayObject("div"),n.sendMainLabel_do.setBackfaceVisibility(),n.sendMainLabel_do.getStyle().fontFamily="Arial",n.sendMainLabel_do.getStyle().fontSize="12px",n.sendMainLabel_do.getStyle().color=n.mainLabelsColor_str,n.sendMainLabel_do.getStyle().whiteSpace="nowrap",n.sendMainLabel_do.getStyle().fontSmoothing="antialiased",n.sendMainLabel_do.getStyle().webkitFontSmoothing="antialiased",n.sendMainLabel_do.getStyle().textRendering="optimizeLegibility",n.sendMainLabel_do.getStyle().padding="0px",n.sendMainLabel_do.setInnerHTML("SEND TO A FRIEND"),n.yourEmailLabel_do=new FWDEVPDisplayObject("div"),n.yourEmailLabel_do.setBackfaceVisibility(),n.yourEmailLabel_do.getStyle().fontFamily="Arial",n.yourEmailLabel_do.getStyle().fontSize="12px",n.yourEmailLabel_do.getStyle().color=n.secondaryLabelsColor_str,n.yourEmailLabel_do.getStyle().whiteSpace="nowrap",n.yourEmailLabel_do.getStyle().fontSmoothing="antialiased",n.yourEmailLabel_do.getStyle().webkitFontSmoothing="antialiased",n.yourEmailLabel_do.getStyle().textRendering="optimizeLegibility",n.yourEmailLabel_do.getStyle().padding="0px",n.yourEmailLabel_do.setInnerHTML("Your email:"),n.yourEmailInput_do=new FWDEVPDisplayObject("input"),n.yourEmailInput_do.setBackfaceVisibility(),n.yourEmailInput_do.getStyle().fontFamily="Arial",n.yourEmailInput_do.getStyle().fontSize="12px",n.yourEmailInput_do.getStyle().backgroundColor=n.inputBackgroundColor_str,n.yourEmailInput_do.getStyle().color=n.inputColor_str,n.yourEmailInput_do.getStyle().outline=0,n.yourEmailInput_do.getStyle().whiteSpace="nowrap",n.yourEmailInput_do.getStyle().fontSmoothing="antialiased",n.yourEmailInput_do.getStyle().webkitFontSmoothing="antialiased",n.yourEmailInput_do.getStyle().textRendering="optimizeLegibility",n.yourEmailInput_do.getStyle().padding="6px",n.yourEmailInput_do.getStyle().paddingTop="4px",n.yourEmailInput_do.getStyle().paddingBottom="4px",n.friendEmailLabel_do=new FWDEVPDisplayObject("div"),n.friendEmailLabel_do.setBackfaceVisibility(),n.friendEmailLabel_do.getStyle().fontFamily="Arial",n.friendEmailLabel_do.getStyle().fontSize="12px",n.friendEmailLabel_do.getStyle().color=n.secondaryLabelsColor_str,n.friendEmailLabel_do.getStyle().whiteSpace="nowrap",n.friendEmailLabel_do.getStyle().fontSmoothing="antialiased",n.friendEmailLabel_do.getStyle().webkitFontSmoothing="antialiased",n.friendEmailLabel_do.getStyle().textRendering="optimizeLegibility",n.friendEmailLabel_do.getStyle().padding="0px",n.friendEmailLabel_do.setInnerHTML("Your friend's email:"),n.friendEmailInput_do=new FWDEVPDisplayObject("input"),n.friendEmailInput_do.setBackfaceVisibility(),n.friendEmailInput_do.getStyle().fontFamily="Arial",n.friendEmailInput_do.getStyle().fontSize="12px",n.friendEmailInput_do.getStyle().backgroundColor=n.inputBackgroundColor_str,n.friendEmailInput_do.getStyle().color=n.inputColor_str,n.friendEmailInput_do.getStyle().outline=0,n.friendEmailInput_do.getStyle().whiteSpace="nowrap",n.friendEmailInput_do.getStyle().fontSmoothing="antialiased",n.friendEmailInput_do.getStyle().webkitFontSmoothing="antialiased",n.friendEmailInput_do.getStyle().textRendering="optimizeLegibility",n.friendEmailInput_do.getStyle().padding="6px",n.friendEmailInput_do.getStyle().paddingTop="4px",n.friendEmailInput_do.getStyle().paddingBottom="4px",FWDEVPSimpleSizeButton.setPrototype(),n.sendButton_do=new FWDEVPSimpleSizeButton(n.sendButtonNPath_str,n.sendButtonSPath_str,n.buttonWidth,n.buttonHeight,o.useHEXColorsForSkin_bl,o.normalButtonsColor_str,o.selectedButtonsColor_str),n.sendButton_do.addListener(FWDEVPSimpleSizeButton.CLICK,n.sendClickHandler),n.infoText_do=new FWDEVPDisplayObject("div"),n.infoText_do.setBackfaceVisibility(),n.infoText_do.getStyle().fontFamily="Arial",n.infoText_do.getStyle().fontSize="12px",n.infoText_do.getStyle().color=n.secondaryLabelsColor_str,n.infoText_do.getStyle().whiteSpace="nowrap",n.infoText_do.getStyle().fontSmoothing="antialiased",n.infoText_do.getStyle().webkitFontSmoothing="antialiased",n.infoText_do.getStyle().textRendering="optimizeLegibility",n.infoText_do.getStyle().padding="0px",n.infoText_do.getStyle().paddingTop="4px",n.infoText_do.getStyle().textAlign="center",n.infoText_do.getStyle().color=n.mainLabelsColor_str,FWDEVPSimpleButton.setPrototype(),n.closeButton_do=new FWDEVPSimpleButton(n.embedColoseN_img,o.embedWindowClosePathS_str,void 0,!0,o.useHEXColorsForSkin_bl,o.normalButtonsColor_str,o.selectedButtonsColor_str),n.closeButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,n.closeButtonOnMouseUpHandler),n.addChild(n.mainHolder_do),n.mainHolder_do.addChild(n.bk_do),n.linkAndEmbedHolder_do.addChild(n.linkAndEmbedHolderBk_do),n.linkAndEmbedHolder_do.addChild(n.embedAndLinkMainLabel_do),n.linkAndEmbedHolder_do.addChild(n.linkLabel_do),n.linkAndEmbedHolder_do.addChild(n.linkText_do),n.linkAndEmbedHolder_do.addChild(n.embedLabel_do),n.linkAndEmbedHolder_do.addChild(n.embedText_do),n.linkAndEmbedHolder_do.addChild(n.copyLinkButton_do),n.linkAndEmbedHolder_do.addChild(n.copyEmbedButton_do),n.sendMainHolder_do.addChild(n.sendMainHolderBk_do),n.sendMainHolder_do.addChild(n.sendMainLabel_do),n.sendMainHolder_do.addChild(n.yourEmailLabel_do),n.sendMainHolder_do.addChild(n.yourEmailInput_do),n.sendMainHolder_do.addChild(n.friendEmailLabel_do),n.sendMainHolder_do.addChild(n.friendEmailInput_do),n.sendMainHolder_do.addChild(n.sendButton_do),n.mainHolder_do.addChild(n.linkAndEmbedHolder_do),n.mainHolder_do.addChild(n.sendMainHolder_do),n.mainHolder_do.addChild(n.closeButton_do)},this.closeButtonOnMouseUpHandler=function(){n.isShowed_bl&&n.hide()},this.showFlashButtonInstallError=function(){n.dispatchEvent(t.ERROR,{error:"Please install Adobe Flash Player in order to use this feature! To copy text in the clipboard currently flash is the only safe option. <a href='http://www.adobe.com/go/getflashplayer' target='_blank'>Click here to install</a>. <br><br>The video link or embed code can be copyed by selecting the text, right click and copy."})},this.positionAndResize=function(){n.stageWidth=i.stageWidth,n.stageHeight=i.stageHeight,n.maxTextWidth=Math.min(n.stageWidth-150,500),n.totalWidth=n.maxTextWidth+n.buttonWidth+40,n.isMobile_bl?(n.linkText_do.setWidth(n.maxTextWidth+52),n.embedText_do.setWidth(n.maxTextWidth+52)):(n.linkText_do.setWidth(n.maxTextWidth),n.embedText_do.setWidth(n.maxTextWidth)),n.positionFinal(),n.closeButton_do.setX(n.stageWidth-n.closeButton_do.w-n.embedWindowCloseButtonMargins),n.closeButton_do.setY(n.embedWindowCloseButtonMargins),n.setWidth(n.stageWidth),n.setHeight(n.stageHeight),n.mainHolder_do.setWidth(n.stageWidth),n.mainHolder_do.setHeight(n.stageHeight)},this.positionFinal=function(){var e,t=!1;n.stageHeight<360||n.stageWidth<350?(n.linkText_do.getStyle().whiteSpace="nowrap",n.embedText_do.getStyle().whiteSpace="nowrap"):(n.linkText_do.getStyle().whiteSpace="normal",n.embedText_do.getStyle().whiteSpace="normal"),n.linkLabel_do.screen.offsetHeight<6&&(t=!0);var o;o=t?Math.round(100*n.embedAndLinkMainLabel_do.screen.getBoundingClientRect().height):n.embedAndLinkMainLabel_do.getHeight(),n.embedAndLinkMainLabel_do.setX(16),n.linkLabel_do.setX(16),n.linkLabel_do.setY(o+14);var i,s;t?(i=Math.round(100*n.linkLabel_do.screen.getBoundingClientRect().height),s=Math.round(100*n.linkText_do.screen.getBoundingClientRect().height)):(i=n.linkLabel_do.getHeight(),s=n.linkText_do.getHeight()),n.linkText_do.setX(10),n.linkText_do.setY(n.linkLabel_do.y+i+5),n.isMobile_bl?n.copyLinkButton_do.setX(-100):n.copyLinkButton_do.setX(n.maxTextWidth+30),n.copyLinkButton_do.setY(n.linkText_do.y+s-n.buttonHeight),n.embedLabel_do.setX(16),n.embedLabel_do.setY(n.copyLinkButton_do.y+n.copyLinkButton_do.h+14);var r;r=t?Math.round(100*n.embedText_do.screen.getBoundingClientRect().height):n.embedText_do.getHeight(),n.embedText_do.setX(10),n.embedText_do.setY(n.embedLabel_do.y+i+5),n.isMobile_bl?n.copyEmbedButton_do.setX(-100):n.copyEmbedButton_do.setX(n.maxTextWidth+30),n.copyEmbedButton_do.setY(n.embedText_do.y+r-n.buttonHeight),n.linkAndEmbedHolderBk_do.setY(n.linkLabel_do.y-9),n.linkAndEmbedHolderBk_do.setWidth(n.totalWidth-2),n.linkAndEmbedHolderBk_do.setHeight(n.embedText_do.y+r-9),n.linkAndEmbedHolder_do.setWidth(n.totalWidth),n.linkAndEmbedHolder_do.setHeight(n.embedText_do.y+r+14);var l,a;t?(l=Math.round(100*n.sendMainLabel_do.screen.getBoundingClientRect().height),a=Math.round(100*n.yourEmailInput_do.screen.getBoundingClientRect().height)):(l=n.sendMainLabel_do.getHeight(),a=n.yourEmailInput_do.getHeight()),n.sendMainLabel_do.setX(16),n.yourEmailLabel_do.setX(16),n.yourEmailLabel_do.setY(l+14),n.stageWidth>400?(n.yourEmailInput_do.setX(10),n.yourEmailInput_do.setWidth(parseInt(n.totalWidth-52-n.buttonWidth)/2),n.yourEmailInput_do.setY(n.yourEmailLabel_do.y+i+5),n.friendEmailLabel_do.setX(n.yourEmailInput_do.x+n.yourEmailInput_do.w+26),n.friendEmailLabel_do.setY(n.yourEmailLabel_do.y),n.friendEmailInput_do.setX(n.yourEmailInput_do.x+n.yourEmailInput_do.w+20),n.friendEmailInput_do.setWidth(parseInt((n.maxTextWidth-30)/2)),n.friendEmailInput_do.setY(n.yourEmailLabel_do.y+i+5),n.sendButton_do.setX(n.friendEmailInput_do.x+n.yourEmailInput_do.w+10),n.sendButton_do.setY(n.friendEmailInput_do.y+a-n.buttonHeight)):(n.yourEmailInput_do.setX(10),n.yourEmailInput_do.setWidth(n.totalWidth-32),n.yourEmailInput_do.setY(n.yourEmailLabel_do.y+i+5),n.friendEmailLabel_do.setX(16),n.friendEmailLabel_do.setY(n.yourEmailInput_do.y+a+14),n.friendEmailInput_do.setX(10),n.friendEmailInput_do.setY(n.friendEmailLabel_do.y+i+5),n.friendEmailInput_do.setWidth(n.totalWidth-32),n.sendButton_do.setX(n.totalWidth-n.buttonWidth-10),n.sendButton_do.setY(n.friendEmailInput_do.y+a+10)),n.sendMainHolderBk_do.setY(n.yourEmailLabel_do.y-9),n.sendMainHolderBk_do.setWidth(n.totalWidth-2),n.sendMainHolderBk_do.setHeight(n.sendButton_do.y+n.sendButton_do.h-9),n.sendMainHolder_do.setWidth(n.totalWidth),n.sendMainHolder_do.setHeight(n.sendButton_do.y+n.sendButton_do.h+14),e=t?Math.round(100*n.linkAndEmbedHolder_do.screen.getBoundingClientRect().height+100*n.sendMainHolder_do.screen.getBoundingClientRect().height):n.linkAndEmbedHolder_do.getHeight()+n.sendMainHolder_do.getHeight(),n.linkAndEmbedHolder_do.setX(parseInt((n.stageWidth-n.totalWidth)/2)),n.linkAndEmbedHolder_do.setY(parseInt((n.stageHeight-e)/2)-8),n.sendMainHolder_do.setX(parseInt((n.stageWidth-n.totalWidth)/2)),t?n.sendMainHolder_do.setY(Math.round(n.linkAndEmbedHolder_do.y+100*n.linkAndEmbedHolder_do.screen.getBoundingClientRect().height+20)):n.sendMainHolder_do.setY(n.linkAndEmbedHolder_do.y+n.linkAndEmbedHolder_do.getHeight()+20)},this.sendClickHandler=function(){var e=!1;if(!n.getValidEmail(n.yourEmailInput_do.screen.value)){if(FWDAnimation.isTweening(n.yourEmailInput_do.screen))return;FWDAnimation.to(n.yourEmailInput_do.screen,.1,{css:{backgroundColor:"#FF0000"},yoyo:!0,repeat:3}),e=!0}if(!n.getValidEmail(n.friendEmailInput_do.screen.value)){if(FWDAnimation.isTweening(n.friendEmailInput_do.screen))return;FWDAnimation.to(n.friendEmailInput_do.screen,.1,{css:{backgroundColor:"#FF0000"},yoyo:!0,repeat:3}),e=!0}e||n.sendEmail()},this.updateHEXColors=function(e,t){n.copyEmbedButton_do.updateHEXColors(e,t),n.copyLinkButton_do.updateHEXColors(e,t),n.sendButton_do.updateHEXColors(e,t),n.closeButton_do.updateHEXColors(e,t)},this.sendEmail=function(){if(!n.isSending_bl){n.isSending_bl=!0,n.xhr=new XMLHttpRequest,n.xhr.onreadystatechange=n.onChange,n.xhr.onerror=n.ajaxOnErrorHandler;try{n.xhr.open("get",n.sendToAFriendPath_str+"?friendMail="+n.friendEmailInput_do.screen.value+"&yourMail="+n.yourEmailInput_do.screen.value+"&link="+encodeURIComponent(n.linkToVideo_str),!0),n.xhr.send()}catch(e){n.showInfo("ERROR",!0),console&&console.log(e),e.message&&console.log(e.message)}n.resetInputs()}},this.ajaxOnErrorHandler=function(t){n.showInfo("ERROR",!0);try{e.console&&console.log(t),e.console&&console.log(t.message)}catch(t){}n.isSending_bl=!1},this.onChange=function(t){4==n.xhr.readyState&&200==n.xhr.status&&("sent"==n.xhr.responseText?n.showInfo("SENT"):(n.showInfo("ERROR",!0),e.console&&console.log("Error The server can't send the email!")),n.isSending_bl=!1)},this.resetInputs=function(){n.yourEmailInput_do.screen.value="",n.friendEmailInput_do.screen.value=""},this.getValidEmail=function(e){return!(!/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/.test(e)||""==e)},this.setEmbedData=function(){var e=location.href,t=location.protocol+"//"+location.host,o=location.pathname,s=location.hash,r=location.search,l=t+o;r=r.replace(/&?EVPInstanceName=.+/g,""),s=s.replace(/&?EVPInstanceName=.+/g,""),e=e.replace(/&?EVPInstanceName=.+/g,""),"?"==r&&(r=null),r?s?(n.finalEmbedPath_str=l+r+s+"&EVPInstanceName="+i.instanceName_str,n.linkToVideo_str=l+r+s):(n.finalEmbedPath_str=l+r+"&EVPInstanceName="+i.instanceName_str,n.linkToVideo_str=l+r):s?(n.finalEmbedPath_str=l+s+"?EVPInstanceName="+i.instanceName_str,n.linkToVideo_str=l+s):(n.finalEmbedPath_str=l+"?EVPInstanceName="+i.instanceName_str,n.linkToVideo_str=l),n.finalEmbedPath_str=encodeURI(n.finalEmbedPath_str),n.linkToVideo_str=encodeURI(n.linkToVideo_str),n.finalEmbedCode_str="<iframe src='"+n.finalEmbedPath_str+"' width='"+i.stageWidth+"' height='"+i.stageHeight+"' frameborder='0' scrolling='no' allowfullscreen></iframe>",FWDEVPUtils.isIE?(n.linkText_do.screen.innerText=n.linkToVideo_str,n.embedText_do.screen.innerText=n.finalEmbedCode_str):(n.linkText_do.screen.textContent=n.linkToVideo_str,n.embedText_do.screen.textContent=n.finalEmbedCode_str)},this.showInfo=function(e,t){n.infoText_do.setInnerHTML(e),n.sendMainHolder_do.addChild(n.infoText_do),n.infoText_do.setWidth(n.buttonWidth),n.infoText_do.setHeight(n.buttonHeight-4),n.infoText_do.setX(n.sendButton_do.x),n.infoText_do.setY(n.sendButton_do.y-23),n.infoText_do.setAlpha(0),n.infoText_do.getStyle().color=t?"#FF0000":n.mainLabelsColor_str,FWDAnimation.killTweensOf(n.infoText_do),FWDAnimation.to(n.infoText_do,.16,{alpha:1,yoyo:!0,repeat:7})},this.show=function(e){n.isShowed_bl||(n.isShowed_bl=!0,i.main_do.addChild(n),n.resetInputs(),n.setEmbedData(),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&i.main_do.setSelectable(!0),n.positionAndResize(),clearTimeout(n.hideCompleteId_to),clearTimeout(n.showCompleteId_to),n.mainHolder_do.setY(-n.stageHeight),n.showCompleteId_to=setTimeout(n.showCompleteHandler,900),setTimeout(function(){FWDAnimation.to(n.mainHolder_do,.8,{y:0,delay:.1,ease:Expo.easeInOut})},100))},this.showCompleteHandler=function(){},this.hide=function(){n.isShowed_bl&&(n.isShowed_bl=!1,i.customContextMenu_do&&i.customContextMenu_do.enable(),n.positionAndResize(),clearTimeout(n.hideCompleteId_to),clearTimeout(n.showCompleteId_to),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&i.main_do.setSelectable(!1),n.hideCompleteId_to=setTimeout(n.hideCompleteHandler,800),FWDAnimation.killTweensOf(n.mainHolder_do),FWDAnimation.to(n.mainHolder_do,.8,{y:-n.stageHeight,ease:Expo.easeInOut}))},this.hideCompleteHandler=function(){i.main_do.removeChild(n),n.dispatchEvent(t.HIDE_COMPLETE)},this.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div")},t.ERROR="error",t.HIDE_COMPLETE="hideComplete",t.prototype=null,e.FWDEVPEmbedWindow=t}(window),window,window.FWDEVPEventDispatcher=function(){this.listeners={events_ar:[]},this.addListener=function(e,t){if(void 0==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 o={};o.type=e,o.listener=t,o.target=this,this.listeners.events_ar.push(o)},this.dispatchEvent=function(e,t){if(null!=this.listeners){if(void 0==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");for(var o=0,i=this.listeners.events_ar.length;o<i;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e){if(t)for(var s in t)this.listeners.events_ar[o][s]=t[s];this.listeners.events_ar[o].listener.call(this,this.listeners.events_ar[o])}}},this.removeListener=function(e,t){if(void 0==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."+e);for(var o=0,i=this.listeners.events_ar.length;o<i;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e&&this.listeners.events_ar[o].listener===t){this.listeners.events_ar.splice(o,1);break}},this.destroy=function(){this.listeners=null,this.addListener=null,this.dispatchEvent=null,this.removeListener=null}},function(e){var t=function(o){var i=this;t.prototype;this.appId=parseInt(o);i.init=function(){i.checkFBRoot(),e.fbAsyncInit||i.connect()},this.checkFBRoot=function(){var e=Boolean(document.getElementById("fb-root"));e||((e=document.createElement("div")).id="fb-root",document.getElementsByTagName("body")[0].appendChild(e))},this.connect=function(){i.hasStartedToConnect_bl||(i.hasStartedToConnect_bl=!0,e.fbAsyncInit=function(){FB.init({appId:i.appId,status:!0,cookie:!0,xfbml:!0,oauth:!0}),FB.Event.subscribe("auth.authResponseChange",function(e){"connected"===e.status||FB.login()})},function(e){var t,o="facebook-jssdk";e.getElementById(o)||((t=e.createElement("script")).id=o,t.async=!0,t.src="//connect.facebook.net/en_US/all.js",e.getElementsByTagName("body")[0].appendChild(t))}(document))},this.share=function(e,t,o){FB.ui({method:"feed",link:e,caption:t,picture:o},function(e){})},i.init()};t.setPrototype=function(){t.prototype=new FWDEVPEventDispatcher},t.prototype=null,e.FWDEVPFacebookShare=t}(window),function(e){var t=function(e,o,i,s,n,r,l,a,d,u,h,_,c){var f=this;t.prototype;this.useHEXColorsForSkin_bl=h,this.normalButtonsColor_str=_,this.selectedButtonsColor_str=c,this.nImg_img=null,this.sImg_img=null,this.n_do,this.s_do,this.nImgPath_str=e,this.sImgPath_str=o,this.flashPath_str=i,this.flashButtonName_str=s,this.overPath_str=n,this.outPath_str=r,this.clickPath_str=l,this.copyPath_str=a,this.linkFlashObject=null,this.buttonWidth=d,this.buttonHeight=u,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,this.isDisabled_bl=!1,this.init=function(){f.setWidth(f.buttonWidth),f.setHeight(f.buttonHeight),f.isMobile_bl||(f.setupMainContainers(),f.setupFalshButton(),f.setButtonMode(!0))},this.setupMainContainers=function(){f.nImg=new Image,f.nImg.src=f.nImgPath_str,f.useHEXColorsForSkin_bl?(f.n_do=new FWDEVPTransformDisplayObject("div"),f.n_do.setWidth(f.buttonWidth),f.n_do.setHeight(f.buttonHeight),f.nImg.onload=function(){f.n_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(f.nImg,f.normalButtonsColor_str).canvas,f.n_do.screen.appendChild(f.n_do_canvas)},f.addChild(f.n_do)):(f.n_do=new FWDEVPDisplayObject("img"),f.n_do.setScreen(f.nImg),f.n_do.setWidth(f.buttonWidth),f.n_do.setHeight(f.buttonHeight),f.addChild(f.n_do)),f.sImg=new Image,f.sImg.src=f.sImgPath_str,f.useHEXColorsForSkin_bl?(f.s_do=new FWDEVPTransformDisplayObject("div"),f.s_do.setWidth(f.buttonWidth),f.s_do.setHeight(f.buttonHeight),f.sImg.onload=function(){f.s_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(f.sImg,f.selectedButtonsColor_str).canvas,f.s_do.screen.appendChild(f.s_do_canvas)},f.s_do.setAlpha(0),f.addChild(f.s_do)):(f.s_do=new FWDEVPDisplayObject("img"),f.s_do.setScreen(f.sImg),f.s_do.setWidth(f.buttonWidth),f.s_do.setHeight(f.buttonHeight),f.s_do.setAlpha(0),f.addChild(f.s_do)),f.screen.addEventListener?(f.screen.addEventListener("mouseover",f.onMouseOver),f.screen.addEventListener("mouseout",f.onMouseOut),f.screen.addEventListener("mouseup",f.onMouseUp)):f.screen.attachEvent&&(f.screen.attachEvent("onmouseover",f.onMouseOver),f.screen.attachEvent("onmouseout",f.onMouseOut),f.screen.attachEvent("onmouseup",f.onMouseUp))},this.onMouseOver=function(e){if(!e.pointerType||"mouse"==e.pointerType){if(f.isDisabled_bl||f.isSelectedFinal_bl)return;f.setSelectedState()}},this.onMouseOut=function(e){e.pointerType&&"mouse"!=e.pointerType||f.setNormalState()},this.onMouseUp=function(e){FWDEVPFlashTest.hasFlashPlayerVersion("9.0.18")||(e.preventDefault&&e.preventDefault(),f.isDisabled_bl||2==e.button||f.dispatchEvent(t.CLICK))},this.setupFalshButton=function(){if(FWDEVPFlashTest.hasFlashPlayerVersion("9.0.18")){var e='<object id="'+f.flashButtonName_str+'"classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100%" height="100%"><param name="movie" value="'+f.flashPath_str+'"/><param name="wmode" value="transparent"/><param name="scale" value="noscale"/><param name=FlashVars value="clickPath_str='+f.clickPath_str+"&overPath_str="+f.overPath_str+"&outPath_str="+f.outPath_str+"&copyPath_str="+f.copyPath_str+'"/><object type="application/x-shockwave-flash" data="'+f.flashPath_str+'" width="100%" height="100%"><param name="movie" value="'+f.flashPath_str+'"/><param name="wmode" value="transparent"/><param name="scale" value="noscale"/><param name=FlashVars value="clickPath_str='+f.clickPath_str+"&overPath_str="+f.overPath_str+"&outPath_str="+f.outPath_str+"&copyPath_str="+f.copyPath_str+'"/></object></object>',t=new FWDEVPDisplayObject("div");t.setBackfaceVisibility(),t.setResizableSizeAfterParent(),t.screen.innerHTML=e,f.addChild(t),f.linkFlashObject=t.screen.firstChild,FWDEVPUtils.isIE||(f.linkFlashObject=f.linkFlashObject.getElementsByTagName("object")[0])}},this.setNormalState=function(){FWDAnimation.killTweensOf(f.s_do),FWDAnimation.to(f.s_do,.5,{alpha:0,ease:Expo.easeOut})},this.setSelectedState=function(){FWDAnimation.killTweensOf(f.s_do),FWDAnimation.to(f.s_do,.5,{alpha:1,ease:Expo.easeOut})},f.updateHEXColors=function(e,t){FWDEVPUtils.changeCanvasHEXColor(f.nImg,f.n_do_canvas,e),FWDEVPUtils.changeCanvasHEXColor(f.sImg,f.s_do_canvas,t)},f.init()};t.setPrototype=function(){t.prototype=null,t.prototype=new FWDEVPDisplayObject("div")},t.CLICK="onClick",t.MOUSE_OVER="onMouseOver",t.SHOW_TOOLTIP="showTooltip",t.MOUSE_OUT="onMouseOut",t.MOUSE_UP="onMouseDown",t.prototype=null,e.FWDEVPFlashButton=t}(window);var FWDEVPFlashTest=function(){function e(e){var t=a.pv,o=e.split(".");return o[0]=parseInt(o[0],10),o[1]=parseInt(o[1],10)||0,o[2]=parseInt(o[2],10)||0,t[0]>o[0]||t[0]==o[0]&&t[1]>o[1]||t[0]==o[0]&&t[1]==o[1]&&t[2]>=o[2]}var t="undefined",o="object",i="application/x-shockwave-flash",s=window,n=document,r=navigator,l=!1,a=function(){var e=typeof n.getElementById!=t&&typeof n.getElementsByTagName!=t&&typeof n.createElement!=t,a=r.userAgent.toLowerCase(),d=r.platform.toLowerCase(),u=/win/.test(d?d:a),h=/mac/.test(d?d:a),_=!!/webkit/.test(a)&&parseFloat(a.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")),c=!1,f=[0,0,0],p=null;if(typeof r.plugins!=t&&typeof r.plugins["Shockwave Flash"]==o)!(p=r.plugins["Shockwave Flash"].description)||typeof r.mimeTypes!=t&&r.mimeTypes[i]&&!r.mimeTypes[i].enabledPlugin||(l=!0,c=!1,p=p.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),f[0]=parseInt(p.replace(/^(.*)\..*$/,"$1"),10),f[1]=parseInt(p.replace(/^.*\.(.*)\s.*$/,"$1"),10),f[2]=/[a-zA-Z]/.test(p)?parseInt(p.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof s.ActiveXObject!=t)try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");b&&(p=b.GetVariable("$version"))&&(c=!0,p=p.split(" ")[1].split(","),f=[parseInt(p[0],10),parseInt(p[1],10),parseInt(p[2],10)])}catch(e){}return{w3:e,pv:f,wk:_,ie:c,win:u,mac:h}}();return{hasFlashPlayerVersion:e}}();if(function(e){var t=function(o,i,s){var n=this,r=t.prototype;this.screenToTest=o,this.screenToTest2=i,this.hideDelay=s,this.globalX=0,this.globalY=0,this.currentTime,this.checkIntervalId_int,this.hideCompleteId_to,this.hasInitialTestEvents_bl=!1,this.addSecondTestEvents_bl=!1,this.dispatchOnceShow_bl=!0,this.dispatchOnceHide_bl=!1,this.isStopped_bl=!0,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,n.init=function(){},n.start=function(){n.currentTime=(new Date).getTime(),clearInterval(n.checkIntervalId_int),n.checkIntervalId_int=setInterval(n.update,100),n.addMouseOrTouchCheck(),n.isStopped_bl=!1},n.stop=function(){clearInterval(n.checkIntervalId_int),n.isStopped_bl=!0,n.removeMouseOrTouchCheck(),n.removeMouseOrTouchCheck2()},n.addMouseOrTouchCheck=function(){n.hasInitialTestEvents_bl||(n.hasInitialTestEvents_bl=!0,n.isMobile_bl?n.hasPointerEvent_bl?(n.screenToTest.screen.addEventListener("pointerdown",n.onMouseOrTouchUpdate),n.screenToTest.screen.addEventListener("MSPointerMove",n.onMouseOrTouchUpdate)):n.screenToTest.screen.addEventListener("touchstart",n.onMouseOrTouchUpdate):e.addEventListener?e.addEventListener("mousemove",n.onMouseOrTouchUpdate):document.attachEvent&&document.attachEvent("onmousemove",n.onMouseOrTouchUpdate))},n.removeMouseOrTouchCheck=function(){n.hasInitialTestEvents_bl&&(n.hasInitialTestEvents_bl=!1,n.isMobile_bl?n.hasPointerEvent_bl?(n.screenToTest.screen.removeEventListener("pointerdown",n.onMouseOrTouchUpdate),n.screenToTest.screen.removeEventListener("MSPointerMove",n.onMouseOrTouchUpdate)):n.screenToTest.screen.removeEventListener("touchstart",n.onMouseOrTouchUpdate):e.removeEventListener?e.removeEventListener("mousemove",n.onMouseOrTouchUpdate):document.detachEvent&&document.detachEvent("onmousemove",n.onMouseOrTouchUpdate))},n.addMouseOrTouchCheck2=function(){n.addSecondTestEvents_bl||(n.addSecondTestEvents_bl=!0,n.screenToTest.screen.addEventListener?n.screenToTest.screen.addEventListener("mousemove",n.secondTestMoveDummy):n.screenToTest.screen.attachEvent&&n.screenToTest.screen.attachEvent("onmousemove",n.secondTestMoveDummy))},n.removeMouseOrTouchCheck2=function(){n.addSecondTestEvents_bl&&(n.addSecondTestEvents_bl=!1,n.screenToTest.screen.removeEventListener?n.screenToTest.screen.removeEventListener("mousemove",n.secondTestMoveDummy):n.screenToTest.screen.detachEvent&&n.screenToTest.screen.detachEvent("onmousemove",n.secondTestMoveDummy))},this.secondTestMoveDummy=function(){n.removeMouseOrTouchCheck2(),n.addMouseOrTouchCheck()},n.onMouseOrTouchUpdate=function(e){var t=FWDEVPUtils.getViewportMouseCoordinates(e);n.globalX!=t.screenX&&n.globalY!=t.screenY&&(n.currentTime=(new Date).getTime()),n.globalX=t.screenX,n.globalY=t.screenY,n.isMobile_bl||FWDEVPUtils.hitTest(n.screenToTest.screen,n.globalX,n.globalY)||(n.removeMouseOrTouchCheck(),n.addMouseOrTouchCheck2())},n.update=function(e){(new Date).getTime()>n.currentTime+n.hideDelay?n.dispatchOnceShow_bl&&(n.dispatchOnceHide_bl=!0,n.dispatchOnceShow_bl=!1,n.dispatchEvent(t.HIDE),clearTimeout(n.hideCompleteId_to),n.hideCompleteId_to=setTimeout(function(){n.dispatchEvent(t.HIDE_COMPLETE)},1e3)):n.dispatchOnceHide_bl&&(clearTimeout(n.hideCompleteId_to),n.dispatchOnceHide_bl=!1,n.dispatchOnceShow_bl=!0,n.dispatchEvent(t.SHOW))},n.reset=function(){clearTimeout(n.hideCompleteId_to),n.currentTime=(new Date).getTime(),n.dispatchEvent(t.SHOW)},n.destroy=function(){n.removeMouseOrTouchCheck(),clearInterval(n.checkIntervalId_int),n.screenToTest=null,o=null,n.init=null,n.start=null,n.stop=null,n.addMouseOrTouchCheck=null,n.removeMouseOrTouchCheck=null,n.onMouseOrTouchUpdate=null,n.update=null,n.reset=null,n.destroy=null,r.destroy(),r=null,n=null,t.prototype=null},n.init()};t.HIDE="hide",t.SHOW="show",t.HIDE_COMPLETE="hideComplete",t.setPrototype=function(){t.prototype=new FWDEVPEventDispatcher},e.FWDEVPHider=t}(window),function(e){var t=function(e,o,i){var s=this;t.prototype;this.bk_do=null,this.textHolder_do=null,this.warningIconPath_str=o,this.showErrorInfo_bl=i,this.show_to=null,this.isShowed_bl=!1,this.isShowedOnce_bl=!1,this.allowToRemove_bl=!0,this.init=function(){s.setResizableSizeAfterParent(),s.bk_do=new FWDEVPDisplayObject("div"),s.bk_do.setAlpha(.2),s.bk_do.setBkColor("#000000"),s.addChild(s.bk_do),s.textHolder_do=new FWDEVPDisplayObject("div"),FWDEVPUtils.isIEAndLessThen9||(s.textHolder_do.getStyle().font="Arial"),s.textHolder_do.getStyle().wordWrap="break-word",s.textHolder_do.getStyle().padding="10px",s.textHolder_do.getStyle().paddingLeft="42px",s.textHolder_do.getStyle().lineHeight="18px",s.textHolder_do.getStyle().color="#000000",s.textHolder_do.setBkColor("#EEEEEE");var e=new Image;e.src=this.warningIconPath_str,this.img_do=new FWDEVPDisplayObject("img"),this.img_do.setScreen(e),this.img_do.setWidth(28),this.img_do.setHeight(28),s.addChild(s.textHolder_do),s.addChild(s.img_do)},this.showText=function(e){s.isShowedOnce_bl||(s.hasPointerEvent_bl?s.screen.addEventListener("pointerdown",s.closeWindow):(s.screen.addEventListener("mousedown",s.closeWindow),s.screen.addEventListener("touchstart",s.closeWindow)),s.isShowedOnce_bl=!0),s.setVisible(!1),s.textHolder_do.getStyle().paddingBottom="10px",s.textHolder_do.setInnerHTML(e),clearTimeout(s.show_to),s.show_to=setTimeout(s.show,60),setTimeout(function(){s.positionAndResize()},10)},this.show=function(){var t=Math.min(640,e.stageWidth-120);s.isShowed_bl=!0,s.textHolder_do.setWidth(t),setTimeout(function(){s.showErrorInfo_bl&&s.setVisible(!0),s.positionAndResize()},100)},this.positionAndResize=function(){var t=s.textHolder_do.getWidth(),o=s.textHolder_do.getHeight(),i=parseInt((e.stageWidth-t)/2),n=parseInt((e.stageHeight-o)/2);s.bk_do.setWidth(e.stageWidth),s.bk_do.setHeight(e.stageHeight),s.textHolder_do.setX(i),s.textHolder_do.setY(n),s.img_do.setX(i+6),s.img_do.setY(n+parseInt((s.textHolder_do.getHeight()-s.img_do.h)/2))},this.closeWindow=function(){if(s.allowToRemove_bl){s.isShowed_bl=!1,clearTimeout(s.show_to);try{e.main_do.removeChild(s)}catch(e){}}},this.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div","relative")},t.prototype=null,e.FWDEVPInfo=t}(window),function(window){var FWDEVPlayer=function(props){function handleMediaError(){if(autoRecoverError){var e=performance.now();!recoverDecodingErrorDate||e-recoverDecodingErrorDate>3e3?(recoverDecodingErrorDate=performance.now(),self.HLSError_str="try to recover media Error ...",self.hlsJS.recoverMediaError()):!recoverSwapAudioCodecDate||e-recoverSwapAudioCodecDate>3e3?(recoverSwapAudioCodecDate=performance.now(),self.HLSError_str="try to swap Audio Codec and recover media Error ...",self.hlsJS.swapAudioCodec(),self.hlsJS.recoverMediaError()):self.HLSError_str="cannot recover, last media error recovery failed ..."}self.HLSError_str&&(console&&console.log(self.HLSError_str),self.info_do.allowToRemove_bl=!1,self.main_do.addChild(self.info_do),self.info_do.showText(self.HLSError_str),self.resizeHandler())}var self=this;this.props=props,this.isInstantiate_bl=!1,this.displayType=props.displayType||FWDEVPlayer.RESPONSIVE,self.displayType.toLowerCase()!=FWDEVPlayer.RESPONSIVE&&self.displayType.toLowerCase()!=FWDEVPlayer.FULL_SCREEN&&self.displayType.toLowerCase()!=FWDEVPlayer.AFTER_PARENT&&(self.displayType=FWDEVPlayer.RESPONSIVE),props.displayType.toLowerCase()==FWDEVPlayer.BACKGROUND_VIDEO&&(self.displayType=FWDEVPlayer.BACKGROUND_VIDEO),self.displayType=self.displayType.toLowerCase(),"pause"!=FWDEVPlayer.videoStartBehaviour&&"stop"!=FWDEVPlayer.videoStartBehaviour&&"default"!=FWDEVPlayer.videoStartBehaviour&&(FWDEVPlayer.videoStartBehaviour="pause"),this.maxWidth=props.maxWidth||640,this.maxHeight=props.maxHeight||380,self.showPreloader_bl=props.showPreloader,self.showPreloader_bl="no"!=self.showPreloader_bl,this.disableDoubleClickFullscreen_bl=props.disableDoubleClickFullscreen||"no",this.disableDoubleClickFullscreen_bl="yes"==this.disableDoubleClickFullscreen_bl,self.mainFolderPath_str=props.mainFolderPath,self.mainFolderPath_str.lastIndexOf("/")+1!=self.mainFolderPath_str.length&&(self.mainFolderPath_str+="/"),this.skinPath_str=props.skinPath,self.skinPath_str.lastIndexOf("/")+1!=self.skinPath_str.length&&(self.skinPath_str+="/"),this.warningIconPath_str=self.mainFolderPath_str+this.skinPath_str+"warningIcon.png",this.fillEntireVideoScreen_bl=!1,FWDEVPlayer.instaces_ar.push(this),self.init=function(){if(!self.isInstantiate_bl)if(FWDTweenLite.ticker.useRAF(!1),this.props_obj=props,this.instanceName_str=this.props_obj.instanceName,this.mustHaveHolderDiv_bl=!1,this.instanceName_str)if(window[this.instanceName_str])alert("FWDEVPlayer instance name "+this.instanceName_str+" is already defined and contains a different instance reference, set a different instance name.");else if(window[this.instanceName_str]=this,this.props_obj)if(this.props_obj.parentId)if(self.displayType!=FWDEVPlayer.RESPONSIVE&&self.displayType!=FWDEVPlayer.AFTER_PARENT||(self.mustHaveHolderDiv_bl=!0),!self.mustHaveHolderDiv_bl||FWDEVPUtils.getChildById(self.props_obj.parentId)){var e=FWDEVPUtils.getUrlArgs(window.location.search).EVPInstanceName;self.instanceName_str==e&&(FWDEVPlayer.isEmbedded_bl=!0,self.isEmbedded_bl=!0),self.isEmbedded_bl&&(self.displayType=FWDEVPlayer.FULL_SCREEN),this.body=document.getElementsByTagName("body")[0],this.stageContainer=null,self.displayType==FWDEVPlayer.FULL_SCREEN||self.displayType==FWDEVPlayer.BACKGROUND_VIDEO?FWDEVPUtils.isIEAndLessThen9?self.stageContainer=self.body:self.stageContainer=document.documentElement:this.stageContainer=FWDEVPUtils.getChildById(self.props_obj.parentId),this.listeners={events_ar:[]},this.customContextMenu_do=null,this.info_do=null,this.main_do=null,this.ytb_do=null,this.preloader_do=null,this.controller_do=null,this.videoScreen_do=null,this.flash_do=null,this.flashObject=null,this.videoPoster_do=null,this.largePlayButton_do=null,this.hider=null,this.embedWindow_do=null,this.facebookShare=null,this.backgroundColor_str=self.props_obj.backgroundColor||"transparent",this.videoBackgroundColor_str="#000000",this.flashObjectMarkup_str=null,this.lastX=0,this.lastY=0,this.stageWidth=0,this.stageHeight=0,this.firstTapX,this.firstTapY,this.curTime,this.totalTime,this.videoSourcePath_str,this.prevVideoSourcePath_str,this.posterPath_str=self.props_obj.posterPath,this.videoType_str,this.videoStartBehaviour_str,this.prevVideoSource_str,this.prevPosterSource_str,this.finalVideoPath_str,this.resizeHandlerId_to,this.resizeHandler2Id_to,this.hidePreloaderId_to,this.orientationChangeId_to,this.disableClickId_to,this.clickDelayId_to,this.secondTapId_to,this.autoScale_bl=self.props_obj.autoScale,this.autoScale_bl="yes"==self.autoScale_bl,self.showErrorInfo_bl=self.props_obj.showErrorInfo,self.showErrorInfo_bl="no"!=self.showErrorInfo_bl,this.isVideoPlayingWhenOpenWindows_bl=!1,this.isSpaceDown_bl=!1,this.isPlaying_bl=!1,this.firstTapPlaying_bl=!1,this.stickOnCurrentInstanceKey_bl=!1,this.isFullScreen_bl=!1,this.isFlashScreenReady_bl=!1,this.orintationChangeComplete_bl=!0,this.disableClick_bl=!1,this.isAPIReady_bl=!1,this.isInstantiate_bl=!0,this.isAdd_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,this.setupMainDo(),this.startResizeHandler(),self.initializeOnlyWhenVisible_bl=self.props_obj.initializeOnlyWhenVisible,self.initializeOnlyWhenVisible_bl="yes"==self.initializeOnlyWhenVisible_bl,self.initializeOnlyWhenVisible_bl?(window.addEventListener("scroll",self.onInitlalizeScrollHandler),setTimeout(self.onInitlalizeScrollHandler,500)):self.setupPlayer()}else alert("FWDEVPlayer holder div is not found, please make sure that the div exsists and the id is correct! "+self.props_obj.parentId);else alert("Property parentId is not defined in the FWDEVPlayer constructor, self property represents the div id into which the megazoom is added as a child!");else alert("FWDEVPlayer constructor properties object is not defined!");else alert("FWDEVPlayer instance name is requires please make sure that the instanceName parameter exsists and it's value is uinique.")},self.onInitlalizeScrollHandler=function(){var e=FWDEVPUtils.getScrollOffsets();self.pageXOffset=e.x,self.pageYOffset=e.y,self.main_do.getRect().top>=-self.stageHeight&&self.main_do.getRect().top<self.ws.h&&(window.removeEventListener("scroll",self.onInitlalizeScrollHandler),self.setupPlayer())},this.setupPlayer=function(){this.setupInfo(),this.setupData()},self.setupMainDo=function(){self.main_do=new FWDEVPDisplayObject("div","relative"),self.hasPointerEvent_bl&&(self.main_do.getStyle().touchAction="none"),self.main_do.getStyle().webkitTapHighlightColor="rgba(0, 0, 0, 0)",self.main_do.getStyle().webkitFocusRingColor="rgba(0, 0, 0, 0)",self.main_do.getStyle().width="100%",self.main_do.getStyle().height="100%",self.main_do.setBackfaceVisibility(),self.main_do.setBkColor(self.backgroundColor_str),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&self.main_do.setSelectable(!1),self.displayType==FWDEVPlayer.FULL_SCREEN?(self.stageContainer.style.overflow="hidden",self.main_do.getStyle().position="absolute",document.documentElement.appendChild(self.main_do.screen),self.stageContainer.style.zIndex=9999999999998,self.main_do.getStyle().zIndex=9999999999998):self.displayType==FWDEVPlayer.BACKGROUND_VIDEO?(document.documentElement.appendChild(self.main_do.screen),self.main_do.getStyle().zIndex=-9999999999998,self.main_do.getStyle().position="fixed",document.documentElement.insertBefore(self.main_do.screen,document.documentElement.firstChild)):(self.stageContainer.style.overflow="hidden",self.stageContainer.appendChild(self.main_do.screen)),self.isEmbedded_bl&&(self.main_do.getStyle().zIndex=9999999999998)},self.setupInfo=function(){FWDEVPInfo.setPrototype(),self.info_do=new FWDEVPInfo(self,self.warningIconPath_str,self.showErrorInfo_bl)},self.startResizeHandler=function(){window.addEventListener?window.addEventListener("resize",self.onResizeHandler):window.attachEvent&&window.attachEvent("onresize",self.onResizeHandler),self.onResizeHandler(!0),self.resizeHandlerId_to=setTimeout(function(){self.resizeHandler(!0)},500)},self.stopResizeHandler=function(){window.removeEventListener?window.removeEventListener("resize",self.onResizeHandler):window.detachEvent&&window.detachEvent("onresize",self.onResizeHandler),clearTimeout(self.resizeHandlerId_to)},self.onResizeHandler=function(e){self.resizeHandler(),clearTimeout(self.resizeHandler2Id_to),self.resizeHandler2Id_to=setTimeout(function(){self.resizeHandler()},300)},this.orientationChange=function(){(self.displayType==FWDEVPlayer.FULL_SCREEN||self.isFullScreen_bl)&&(self.orintationChangeComplete_bl=!1,clearTimeout(self.resizeHandlerId_to),clearTimeout(self.resizeHandler2Id_to),clearTimeout(self.orientationChangeId_to),self.orientationChangeId_to=setTimeout(function(){self.orintationChangeComplete_bl=!0,self.resizeHandler(!0)},1e3),self.main_do.setX(0),self.main_do.setWidth(0))},self.resizeHandler=function(e){var t=FWDEVPUtils.getViewportSize();if(self.ws=t,self.isFullScreen_bl||self.displayType==FWDEVPlayer.FULL_SCREEN||self.displayType==FWDEVPlayer.BACKGROUND_VIDEO?(self.main_do.setX(0),self.main_do.setY(0),self.stageWidth=t.w,self.stageHeight=t.h):self.displayType==FWDEVPlayer.AFTER_PARENT?(self.stageWidth=self.stageContainer.offsetWidth,self.stageHeight=self.stageContainer.offsetHeight):(self.stageContainer.style.width="100%",self.stageContainer.offsetWidth>self.maxWidth&&(self.stageContainer.style.width=self.maxWidth+"px"),self.stageWidth=self.stageContainer.offsetWidth,self.autoScale_bl?self.stageHeight=parseInt(self.maxHeight*(self.stageWidth/self.maxWidth)):self.stageHeight=self.maxHeight,self.stageContainer.style.height=self.stageHeight+"px"),self.tempVidStageWidth=self.stageWidth,self.tempVidStageHeight=self.stageHeight,self.main_do.setWidth(self.stageWidth),self.main_do.setHeight(self.stageHeight),self.fillEntireVideoScreen_bl&&self.videoType_str==FWDEVPlayer.VIDEO){if(self.videoScreen_do&&self.videoScreen_do.video_el&&0!=self.videoScreen_do.video_el.videoWidth){var o=self.videoScreen_do.video_el.videoWidth,i=self.videoScreen_do.video_el.videoHeight,s=self.stageWidth/o,n=self.stageHeight/i;totalScale=0,s>=n?totalScale=s:s<=n&&(totalScale=n),finalW=parseInt(o*totalScale),finalH=parseInt(i*totalScale),finalX=parseInt((self.stageWidth-finalW)/2),finalY=parseInt((self.stageHeight-finalH)/2),self.videoScreen_do.setWidth(finalW),self.videoScreen_do.setHeight(finalH),self.videoScreen_do.setX(finalX),self.videoScreen_do.setY(finalY)}}else self.audioScreen_do&&self.videoType_str==FWDEVPlayer.MP3?(self.audioScreen_do.resizeAndPosition(self.stageWidth,self.stageHeight),self.audioScreen_do.setX(0),self.audioScreen_do.setY(0)):!self.videoScreen_do||self.videoType_str!=FWDEVPlayer.VIDEO&&self.videoType_str!=FWDEVPlayer.HLS_JS||(self.videoScreen_do.resizeAndPosition(self.stageWidth,self.stageHeight),self.videoScreen_do.setX(0),self.videoScreen_do.setY(0));self.popw_do&&self.popw_do.isShowed_bl&&self.popw_do.positionAndResize(),self.ytb_do&&self.videoType_str==FWDEVPlayer.YOUTUBE&&(self.ytb_do.setWidth(self.stageWidth),self.ytb_do.setHeight(self.stageHeight)),self.vimeo_do&&self.videoType_str==FWDEVPlayer.VIMEO&&(self.vimeo_do.setWidth(self.stageWidth),self.vimeo_do.setHeight(self.stageHeight)),self.positionAdsImage(),self.logo_do&&self.logo_do.positionAndResize(),self.controller_do&&self.controller_do.resizeAndPosition(),self.ytb_do&&self.ytb_do.ytb&&self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do.resizeAndPosition(),self.preloader_do&&self.positionPreloader(),self.resizeDumyHandler(),self.largePlayButton_do&&self.positionLargePlayButton(),self.videoPoster_do&&self.videoPoster_do.allowToShow_bl&&self.videoPoster_do.positionAndResize(),self.embedWindow_do&&self.embedWindow_do.isShowed_bl&&self.embedWindow_do.positionAndResize(),self.passWindow_do&&self.passWindow_do.isShowed_bl&&self.passWindow_do.positionAndResize(),self.shareWindow_do&&self.shareWindow_do.isShowed_bl&&self.shareWindow_do.positionAndResize(),self.adsStart_do&&self.positionAds(),self.subtitle_do&&self.subtitle_do.position(),self.popupAds_do&&self.popupAds_do.position(),self.annotations_do&&self.annotations_do.position()},this.resizeDumyHandler=function(){self.dumyClick_do&&(self.is360&&self.videoType_str==FWDEVPlayer.YOUTUBE?self.dumyClick_do.setWidth(0):(self.dumyClick_do.setWidth(self.stageWidth),self.isMobile_bl,self.dumyClick_do.setHeight(self.stageHeight)))},this.setupClickScreen=function(){self.dumyClick_do=new FWDEVPDisplayObject("div"),self.displayType!=FWDEVPlayer.BACKGROUND_VIDEO&&(self.hasPointerEvent_bl?(self.dumyClick_do.screen.addEventListener("pointerdown",self.playPauseDownHandler),self.dumyClick_do.screen.addEventListener("pointerup",self.playPauseClickHandler),self.dumyClick_do.screen.addEventListener("pointermove",self.playPauseMoveHandler)):self.isMobile_bl?self.dumyClick_do.screen.addEventListener("click",self.playPauseClickHandler):(self.dumyClick_do.screen.addEventListener("mousedown",self.playPauseDownHandler),self.dumyClick_do.screen.addEventListener("mouseup",self.playPauseClickHandler),self.dumyClick_do.screen.addEventListener("mousemove",self.playPauseMoveHandler))),self.hideClickScreen(),self.main_do.addChild(self.dumyClick_do)},this.playPauseDownHandler=function(e){self.isClickHandlerMoved_bl=!1;var t=FWDEVPUtils.getViewportMouseCoordinates(e);self.firstDommyTapX=t.screenX,self.firstDommyTapY=t.screenY,self.is360&&(self.dumyClick_do.getStyle().cursor="url("+self.data.grabPath_str+"), default")},this.playPauseMoveHandler=function(e){var t,o,i=FWDEVPUtils.getViewportMouseCoordinates(e);e.touches&&1!=e.touches.length||(t=Math.abs(i.screenX-self.firstDommyTapX),o=Math.abs(i.screenY-self.firstDommyTapY),self.isMobile_bl&&(t>10||o>10)?self.isClickHandlerMoved_bl=!0:!self.isMobile_bl&&(t>2||o>2)&&(self.isClickHandlerMoved_bl=!0))},this.playPauseClickHandler=function(e){2!=e.button&&(self.is360&&(self.dumyClick_do.getStyle().cursor="url("+self.data.handPath_str+"), default"),self.isClickHandlerMoved_bl||(self.isAdd_bl?self.data.adsPageToOpenURL_str&&"none"!=self.data.adsPageToOpenURL_str&&(window.open(self.data.adsPageToOpenURL_str,self.data.adsPageToOpenTarget_str),self.pause()):self.disableClick_bl||(self.firstTapPlaying_bl=self.isPlaying_bl,FWDEVPlayer.keyboardCurInstance=self,self.controller_do&&0!=self.controller_do.mainHolder_do.y&&self.isMobile_bl||(self.isMobile_bl||(FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.PAUSE_ALL_VIDEOS?FWDEVPlayer.pauseAllVideos(self):FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.STOP_ALL_VIDEOS&&FWDEVPlayer.stopAllVideos(self)),self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME?self.togglePlayPause():self.videoType_str==FWDEVPlayer.YOUTUBE?self.ytb_do.togglePlayPause():self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do.togglePlayPause():FWDEVPlayer.hasHTML5Video?self.videoScreen_do&&self.videoScreen_do.togglePlayPause():self.isFlashScreenReady_bl))))},this.showClickScreen=function(){self.dumyClick_do.setVisible(!0),self.isAdd_bl&&self.data.adsPageToOpenURL_str&&"none"!=self.data.adsPageToOpenURL_str?self.dumyClick_do.setButtonMode(!0):self.is360?self.dumyClick_do.getStyle().cursor="url("+self.data.handPath_str+"), default":self.dumyClick_do.setButtonMode(!1)},this.hideClickScreen=function(){self.dumyClick_do.setVisible(!1)},this.disableClick=function(){self.disableClick_bl=!0,clearTimeout(self.disableClickId_to),self.disableClickId_to=setTimeout(function(){self.disableClick_bl=!1},500)},this.addDoubleClickSupport=function(){self.hasPointerEvent_bl?self.dumyClick_do.screen.addEventListener("pointerdown",self.onFirstDown):(self.isMobile_bl||(self.dumyClick_do.screen.addEventListener("mousedown",self.onFirstDown),FWDEVPUtils.isIEWebKit&&self.dumyClick_do.screen.addEventListener("dblclick",self.onSecondDown)),self.dumyClick_do.screen.addEventListener("touchstart",self.onFirstDown))},this.onFirstDown=function(e){if(2!=e.button){self.isFullscreen_bl&&e.preventDefault&&e.preventDefault();var t=FWDEVPUtils.getViewportMouseCoordinates(e);self.firstTapX=t.screenX,self.firstTapY=t.screenY,self.firstTapPlaying_bl=self.isPlaying_bl,FWDEVPUtils.isIEWebKit||(self.hasPointerEvent_bl?(self.dumyClick_do.screen.removeEventListener("pointerdown",self.onFirstDown),self.dumyClick_do.screen.addEventListener("pointerdown",self.onSecondDown)):(self.isMobile_bl||(self.dumyClick_do.screen.addEventListener("mousedown",self.onSecondDown),self.dumyClick_do.screen.removeEventListener("mousedown",self.onFirstDown)),self.dumyClick_do.screen.addEventListener("touchstart",self.onSecondDown),self.dumyClick_do.screen.removeEventListener("touchstart",self.onFirstDown)),clearTimeout(self.secondTapId_to),self.secondTapId_to=setTimeout(self.doubleTapExpired,500))}},this.doubleTapExpired=function(){clearTimeout(self.secondTapId_to),self.hasPointerEvent_bl?(self.dumyClick_do.screen.removeEventListener("pointerdown",self.onSecondDown),self.dumyClick_do.screen.addEventListener("pointerdown",self.onFirstDown)):(self.dumyClick_do.screen.removeEventListener("touchstart",self.onSecondDown),self.dumyClick_do.screen.addEventListener("touchstart",self.onFirstDown),self.isMobile_bl||(self.dumyClick_do.screen.removeEventListener("mousedown",self.onSecondDown),self.dumyClick_do.screen.addEventListener("mousedown",self.onFirstDown)))},this.onSecondDown=function(e){e.preventDefault&&e.preventDefault();var t,o,i=FWDEVPUtils.getViewportMouseCoordinates(e);FWDEVPUtils.isIEWebKit&&(self.firstTapPlaying_bl=self.isPlaying_bl),e.touches&&1!=e.touches.length||(t=Math.abs(i.screenX-self.firstTapX),o=Math.abs(i.screenY-self.firstTapY),t>10||o>10||(self.switchFullScreenOnDoubleClick(e),FWDEVPUtils.isIEWebKit||(self.firstTapPlaying_bl?self.play():self.pause())))},this.switchFullScreenOnDoubleClick=function(e){self.disableClick(),self.isFullScreen_bl?self.goNormalScreen():self.goFullScreen()},self.isVimeoReady_bl=!1,this.setupVimeoPlayer=function(){self.vimeo_do||(FWDEVPVimeoScreen.setPrototype(),self.vimeo_do=new FWDEVPVimeoScreen(self,self.data.volume),self.vimeo_do.addListener(FWDEVPVimeoScreen.READY,self.vimeoReadyHandler),self.vimeo_do.addListener(FWDEVPVimeoScreen.STOP,self.videoScreenStopHandler),self.vimeo_do.addListener(FWDEVPVimeoScreen.PLAY,self.videoScreenPlayHandler),self.vimeo_do.addListener(FWDEVPVimeoScreen.PAUSE,self.videoScreenPauseHandler),self.vimeo_do.addListener(FWDEVPVimeoScreen.UPDATE,self.videoScreenUpdateHandler),self.vimeo_do.addListener(FWDEVPVimeoScreen.UPDATE_TIME,self.videoScreenUpdateTimeHandler),self.vimeo_do.addListener(FWDEVPVimeoScreen.LOAD_PROGRESS,self.videoScreenLoadProgressHandler),self.vimeo_do.addListener(FWDEVPVimeoScreen.PLAY_COMPLETE,self.videoScreenPlayCompleteHandler))},this.vimeoReadyHandler=function(e){self.isVimeoReady_bl=!0,clearInterval(self.hidePreloaderId_to),self.vimeo_do.iFrame_do.screen.style.left="0px",self.setSource(self.videoSourcePath_str),self.preloader_do&&self.preloader_do.hide(!0)},this.setupYoutubeAPI=function(){if(!self.ytb_do)if("undefined"!=typeof YT&&YT.Player)self.setupYoutubePlayer();else if(FWDEVPlayer.isYoutubeAPILoadedOnce_bl)self.keepCheckingYoutubeAPI_int=setInterval(function(){"undefined"!=typeof YT&&YT&&YT.Player&&(-1==self.videoSourcePath_str.indexOf("youtube.")&&clearInterval(self.keepCheckingYoutubeAPI_int),clearInterval(self.keepCheckingYoutubeAPI_int),self.setupYoutubePlayer())},50);else{var e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t),e.onload=function(){self.checkIfYoutubePlayerIsReadyId_int=setInterval(function(){YT&&YT.Player&&(clearInterval(self.checkIfYoutubePlayerIsReadyId_int),self.setupYoutubePlayer())},50)},e.onerror=function(){setTimeout(function(){self.main_do.addChild(self.info_do),self.info_do.allowToRemove_bl=!1,self.info_do.showText("Error loading Youtube API"),self.preloader_do.hide()},500)},FWDEVPlayer.isYoutubeAPILoadedOnce_bl=!0}},this.setupYoutubePlayer=function(){FWDEVPYoutubeScreen.setPrototype(),self.ytb_do=new FWDEVPYoutubeScreen(self,self.data.volume),self.ytb_do.addListener(FWDEVPYoutubeScreen.READY,self.youtubeReadyHandler),self.ytb_do.addListener(FWDEVPVideoScreen.ERROR,self.videoScreenErrorHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.SAFE_TO_SCRUBB,self.videoScreenSafeToScrubbHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.STOP,self.videoScreenStopHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.PLAY,self.videoScreenPlayHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.PAUSE,self.videoScreenPauseHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.UPDATE,self.videoScreenUpdateHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.UPDATE_TIME,self.videoScreenUpdateTimeHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.LOAD_PROGRESS,self.videoScreenLoadProgressHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.PLAY_COMPLETE,self.videoScreenPlayCompleteHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.CUED,self.youtubeScreenCuedHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.QUALITY_CHANGE,self.youtubeScreenQualityChangeHandler),self.isMobile_bl||self.ytb_do.showDisable(),clearTimeout(self.ytb_do)},this.youtubeReadyHandler=function(e){if(self.isYoutubeReady_bl=!0,self.videoType_str==FWDEVPlayer.YOUTUBE){if(self.ytb_do.hasBeenCreatedOnce_bl){if(-1!=self.videoSourcePath_str.indexOf("."))return;return self.isMobile_bl?(self.setPosterSource(void 0),self.videoPoster_do.hide()):(self.setPosterSource(self.posterPath_str),self.videoPoster_do.show()),void(-1==self.videoSourcePath_str.indexOf(".")&&self.setSource(self.videoSourcePath_str,!0))}self.isMobile_bl&&setTimeout(function(){try{self.ytb_do.ytb.a.style.left="0px"}catch(e){}},500),self.setSource(self.videoSourcePath_str,!0),self.preloader_do&&self.preloader_do.hide(!0)}},this.youtubeScreenCuedHandler=function(){self.main_do&&self.main_do.contains(self.info_do)&&self.main_do.removeChild(self.info_do)},this.youtubeScreenQualityChangeHandler=function(e){self.videoType_str==FWDEVPlayer.VIDEO&&(self.curDurration=self.videoScreen_do.curDuration),self.controller_do&&self.controller_do.updateQuality(e.levels,e.qualityLevel)},self.setupContextMenu=function(){self.customContextMenu_do=new FWDEVPContextMenu(self.main_do,self.data.rightClickContextMenu_str)},self.setupData=function(){FWDEVPData.setPrototype(),self.data=new FWDEVPData(self.props_obj,self.rootElement_el),self.data.addListener(FWDEVPData.PRELOADER_LOAD_DONE,self.onPreloaderLoadDone),self.data.addListener(FWDEVPData.LOAD_ERROR,self.dataLoadError),self.data.addListener(FWDEVPData.SKIN_PROGRESS,self.dataSkinProgressHandler),self.data.addListener(FWDEVPData.SKIN_LOAD_COMPLETE,self.dataSkinLoadComplete)},self.onPreloaderLoadDone=function(){self.setupPreloader(),self.isMobile_bl||self.setupContextMenu(),self.displayType==FWDEVPlayer.BACKGROUND_VIDEO?(self.data.useChromeless_bl=!0,self.isMobile_bl||(self.data.autoPlay_bl=!0),self.data.loop_bl=!0,self.data.fillEntireVideoScreen_bl=self.fillEntireVideoScreen_bl=!0):self.fillEntireVideoScreen_bl=self.data.fillEntireVideoScreen_bl,self.resizeHandler()},self.dataLoadError=function(e,t){self.main_do.addChild(self.info_do),self.info_do.showText(e.text),self.preloader_do&&self.preloader_do.hide(!1),self.resizeHandler()},self.dataSkinProgressHandler=function(e){},self.dataSkinLoadComplete=function(){self.volume=self.data.volume,self.displayType!=FWDEVPlayer.FULL_SCREEN||FWDEVPUtils.hasFullScreen||(self.data.showFullScreenButton_bl=!1),clearInterval(self.hidePreloaderId_to),self.hidePreloaderId_to=setTimeout(function(){self.preloader_do&&self.preloader_do.hide(!0)},500),self.setupNormalVideoPlayer()},this.setupNormalVideoPlayer=function(){self.normalVideoPlayersCreated_bl||(self.normalVideoPlayersCreated_bl=!0,self.isAPIReady_bl=!0,self.setupVideoScreen(),self.setupAudioScreen(),self.setupVideoPoster(),self.showPreloader_bl&&self.main_do.addChild(self.preloader_do),self.setupSubtitle(),self.setupClickScreen(),self.setupPopupAds(),self.disableDoubleClickFullscreen_bl||self.addDoubleClickSupport(),!self.data.useChromeless_bl&&self.data.showController_bl&&self.setupController(),!self.data.useChromeless_bl&&self.data.showLogo_bl&&self.setupLogo(),self.setupHider(),!self.data.useChromeless_bl&&self.data.showController_bl&&self.data.showEmbedButton_bl&&self.setupEmbedWindow(),!self.data.useChromeless_bl&&self.data.showController_bl&&self.setupPasswordWindow(),!self.data.useChromeless_bl&&self.data.showController_bl&&self.data.showShareButton_bl&&self.setupShareWindow(),self.data.showAopwWindow_bl&&self.setupAopw(),!self.data.useChromeless_bl&&self.data.showController_bl&&self.setupAdsStart(),self.data.hasAnnotiations_bl&&self.setupAnnotations(),self.data.useChromeless_bl||self.setupLargePlayPauseButton(),self.dispatchEvent(FWDEVPlayer.READY),self.updateAds(0),self.displayType==FWDEVPlayer.BACKGROUND_VIDEO&&self.isMobile_bl&&(self.hasPointerEvent_bl?window.addEventListener("pointerdown",self.playVideoBackgroundOnMobileOnInteraction):window.addEventListener("touchstart",self.playVideoBackgroundOnMobileOnInteraction)),self.data.addKeyboardSupport_bl&&self.addKeyboardSupport(),self.resizeHandler())},this.setupAopw=function(){FWDEVPOPWindow.setPrototype(),self.popw_do=new FWDEVPOPWindow(self.data,self)},this.playVideoBackgroundOnMobileOnInteraction=function(){self.hasPointerEvent_bl?window.removeEventListener("pointerdown",self.playVideoBackgroundOnMobileOnInteraction):window.removeEventListener("touchstart",self.playVideoBackgroundOnMobileOnInteraction),self.play()},this.setupPopupAds=function(){FWDEVPPopupAds.setPrototype(),self.popupAds_do=new FWDEVPPopupAds(self,self.data),self.main_do.addChild(self.popupAds_do)},this.setupPreloader=function(){FWDEVPPreloader.setPrototype(),self.preloader_do=new FWDEVPPreloader(self.data.mainPreloader_img,38,30,36,80),self.preloader_do.show(!0),self.showPreloader_bl&&self.main_do.addChild(self.preloader_do)},this.positionPreloader=function(){self.preloader_do.setX(parseInt((self.stageWidth-self.preloader_do.w)/2)),self.preloader_do.setY(parseInt((self.stageHeight-self.preloader_do.h)/2))},this.setupVideoPoster=function(){FWDEVPPoster.setPrototype(),self.videoPoster_do=new FWDEVPPoster(self,self.data.posterBackgroundColor_str,self.data.show,self.data.fillEntireScreenWithPoster_bl),self.main_do.addChild(self.videoPoster_do)},this.setupLargePlayPauseButton=function(){FWDEVPSimpleButton.setPrototype(),self.largePlayButton_do=new FWDEVPSimpleButton(self.data.largePlayN_img,self.data.largePlayS_str,void 0,!0,self.data.useHEXColorsForSkin_bl,self.data.normalButtonsColor_str,self.data.selectedButtonsColor_str),self.largePlayButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,self.largePlayButtonUpHandler),self.largePlayButton_do.setOverflow("visible"),self.largePlayButton_do.hide(!1),self.main_do.addChild(self.largePlayButton_do)},this.largePlayButtonUpHandler=function(){self.disableClick(),self.largePlayButton_do.hide(),self.play()},this.positionLargePlayButton=function(){self.largePlayButton_do.setX(parseInt((self.stageWidth-self.largePlayButton_do.w)/2)),self.largePlayButton_do.setY(parseInt((self.stageHeight-self.largePlayButton_do.h)/2))},this.setupLogo=function(){FWDEVPLogo.setPrototype(),self.logo_do=new FWDEVPLogo(self,self.data.logoPath_str,self.data.logoPosition_str,self.data.logoMargins),self.main_do.addChild(self.logo_do)},this.setupSubtitle=function(){FWDEVPSubtitle.setPrototype(),self.subtitle_do=new FWDEVPSubtitle(self,self.data),self.subtitle_do.addListener(FWDEVPSubtitle.LOAD_COMPLETE,self.subtitleLoadComplete)},this.subtitleLoadComplete=function(){self.controller_do&&self.controller_do.enableSubtitleButton()},this.loadSubtitle=function(e){e&&(self.subtitle_do.loadSubtitle(e),self.main_do.addChildAt(self.subtitle_do,self.main_do.getChildIndex(self.dumyClick_do)-1))},this.setupController=function(){FWDEVPController.setPrototype(),self.controller_do=new FWDEVPController(self.data,self),self.controller_do.addListener(FWDEVPController.CHANGE_PLAYBACK_RATES,self.changePlaybackRateHandler),self.controller_do.addListener(FWDEVPController.CHANGE_SUBTITLE,self.changeSubtitileHandler),self.controller_do.addListener(FWDEVPController.PLAY,self.controllerOnPlayHandler),self.controller_do.addListener(FWDEVPController.PAUSE,self.controllerOnPauseHandler),self.controller_do.addListener(FWDEVPController.START_TO_SCRUB,self.controllerStartToScrubbHandler),self.controller_do.addListener(FWDEVPController.SCRUB,self.controllerScrubbHandler),self.controller_do.addListener(FWDEVPController.STOP_TO_SCRUB,self.controllerStopToScrubbHandler),self.controller_do.addListener(FWDEVPController.CHANGE_VOLUME,self.controllerChangeVolumeHandler),self.controller_do.addListener(FWDEVPController.DOWNLOAD_VIDEO,self.controllerDownloadVideoHandler),self.controller_do.addListener(FWDEVPController.SHARE,self.controllerShareHandler),self.controller_do.addListener(FWDEVPController.CHANGE_YOUTUBE_QUALITY,self.controllerChangeYoutubeQualityHandler),self.controller_do.addListener(FWDEVPController.FULL_SCREEN,self.controllerFullScreenHandler),self.controller_do.addListener(FWDEVPController.NORMAL_SCREEN,self.controllerNormalScreenHandler),self.controller_do.addListener(FWDEVPController.SHOW_EMBED_WINDOW,self.showEmbedWindowHandler),self.controller_do.addListener(FWDEVPController.SHOW_SUBTITLE,self.showSubtitleHandler),self.controller_do.addListener(FWDEVPController.HIDE_SUBTITLE,self.hideSubtitleHandler),self.main_do.addChild(self.controller_do)},this.changePlaybackRateHandler=function(e){self.setPlaybackRate(e.rate)},this.changeSubtitileHandler=function(e){self.data.startAtSubtitle=e.id,self.controller_do.updateSubtitleButtons(self.data.subtitles_ar,self.data.startAtSubtitle),self.data.subtitlePath_str=self.data.subtitles_ar[self.data.subtitles_ar.length-1-self.data.startAtSubtitle].source,self.isAdd_bl||self.loadSubtitle(self.data.subtitlePath_str)},this.controllerDownloadVideoHandler=function(){self.downloadVideo()},this.showSubtitleHandler=function(){self.subtitle_do.isShowed_bl=!0,self.subtitle_do.show()},this.hideSubtitleHandler=function(){self.subtitle_do.isShowed_bl=!1,self.subtitle_do.hide()},this.controllerOnPlayHandler=function(e){self.play()},this.controllerOnPauseHandler=function(e){self.pause()},this.controllerStartToScrubbHandler=function(e){self.startToScrub()},this.controllerScrubbHandler=function(e){self.scrub(e.percent)},this.controllerStopToScrubbHandler=function(e){self.stopToScrub()},this.controllerChangeVolumeHandler=function(e){self.setVolume(e.percent)},this.controllerShareHandler=function(e){self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do?self.isVideoPlayingWhenOpenWindows_bl=self.ytb_do.isPlaying_bl:self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.isVideoPlayingWhenOpenWindows_bl=self.vimeo_do.isPlaying_bl:FWDEVPlayer.hasHTML5Video&&self.videoScreen_do&&(self.isVideoPlayingWhenOpenWindows_bl=self.videoScreen_do.isPlaying_bl),self.pause(),self.shareWindow_do.show(),self.controller_do&&(self.controller_do.shareButton_do.setSelectedState(),self.controller_do.shareButton_do.isDisabled_bl=!0)},this.controllerChangeYoutubeQualityHandler=function(e){self.videoType_str==FWDEVPlayer.YOUTUBE?self.ytb_do.setQuality(e.quality):(self.data.startAtVideoSource=self.data.videoSource_ar.length-1-e.id,self.setSource(self.data.videoSource_ar[self.data.startAtVideoSource].source,!1,self.data.videoSource_ar[self.data.startAtVideoSource].videoType),self.isQualityChanging_bl=!0,self.play())},this.controllerFullScreenHandler=function(){self.goFullScreen()},this.controllerNormalScreenHandler=function(){self.goNormalScreen()},this.showEmbedWindowHandler=function(){if(-1!=location.protocol.indexOf("file:"))return self.main_do.addChild(self.info_do),void self.info_do.showText("Embedding video files local is not allowed or possible! To function properly please test online.");self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do?self.isVideoPlayingWhenOpenWindows_bl=self.ytb_do.isPlaying_bl:self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.isVideoPlayingWhenOpenWindows_bl=self.vimeo_do.isPlaying_bl:FWDEVPlayer.hasHTML5Video&&self.videoScreen_do&&(self.isVideoPlayingWhenOpenWindows_bl=self.videoScreen_do.isPlaying_bl),self.pause(),self.customContextMenu_do&&self.customContextMenu_do.disable(),self.embedWindow_do.show(),self.controller_do&&(self.controller_do.embedButton_do.setSelectedState(),self.controller_do.embedButton_do.isDisabled_bl=!0)},this.setupAudioScreen=function(){FWDEVPAudioScreen.setPrototype(),self.audioScreen_do=new FWDEVPAudioScreen(self,self.data.volume),self.audioScreen_do.addListener(FWDEVPAudioScreen.ERROR,self.videoScreenErrorHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.SAFE_TO_SCRUBB,self.videoScreenSafeToScrubbHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.STOP,self.videoScreenStopHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.PLAY,self.videoScreenPlayHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.PAUSE,self.videoScreenPauseHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.UPDATE,self.videoScreenUpdateHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.UPDATE_TIME,self.videoScreenUpdateTimeHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.LOAD_PROGRESS,self.videoScreenLoadProgressHandler),self.audioScreen_do.addListener(FWDEVPVideoScreen.START_TO_BUFFER,self.videoScreenStartToBuferHandler),self.audioScreen_do.addListener(FWDEVPVideoScreen.STOP_TO_BUFFER,self.videoScreenStopToBuferHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.PLAY_COMPLETE,self.videoScreenPlayCompleteHandler),self.main_do.addChild(self.audioScreen_do)},this.setupVideoScreen=function(){FWDEVPVideoScreen.setPrototype(),self.videoScreen_do=new FWDEVPVideoScreen(self,self.backgroundColor_str,self.data.volume),self.videoScreen_do.addListener(FWDEVPVideoScreen.ERROR,self.videoScreenErrorHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.SAFE_TO_SCRUBB,self.videoScreenSafeToScrubbHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.STOP,self.videoScreenStopHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.PLAY,self.videoScreenPlayHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.PAUSE,self.videoScreenPauseHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.UPDATE,self.videoScreenUpdateHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.UPDATE_TIME,self.videoScreenUpdateTimeHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.LOAD_PROGRESS,self.videoScreenLoadProgressHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.START_TO_BUFFER,self.videoScreenStartToBuferHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.STOP_TO_BUFFER,self.videoScreenStopToBuferHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.PLAY_COMPLETE,self.videoScreenPlayCompleteHandler),self.main_do.addChild(self.videoScreen_do)},this.videoScreenErrorHandler=function(e){var t;self.isPlaying_bl=!1,FWDEVPlayer.hasHTML5Video||self.videoType_str==FWDEVPlayer.YOUTUBE?(t=e.text,window.console&&console.log(e.text),self.main_do&&self.main_do.addChild(self.info_do),self.info_do&&self.info_do.showText(t),self.controller_do&&(self.controller_do.disableMainScrubber(),self.data.showControllerWhenVideoIsStopped_bl||self.controller_do.hide(!self.isMobile_bl,!0),self.hideClickScreen(),self.hider.stop())):(t=e,self.main_do&&self.main_do.addChild(self.info_do),self.info_do&&self.info_do.showText(t)),self.logo_do&&self.logo_do.hide(!1),self.preloader_do.hide(!1),self.showCursor(),self.dispatchEvent(FWDEVPlayer.ERROR,{error:t})},this.videoScreenSafeToScrubbHandler=function(){self.hasHlsPlayedOnce_bl&&self.videoType_str==FWDEVPlayer.HLS_JS||(self.controller_do&&(self.isAdd_bl?(self.controller_do.disableMainScrubber(),0!=self.data.timeToHoldAds&&self.adsStart_do.show(!0),self.data.adsThumbnailPath_str&&"none"!=self.data.adsThumbnailPath_str&&self.adsStart_do.loadThumbnail(self.data.adsThumbnailPath_str),self.positionAds()):self.controller_do.enableMainScrubber(),self.isAdd_bl||self.loadSubtitle(self.data.subtitlePath_str),self.controller_do.show(!0),!self.isAdd_bl&&self.controller_do.ytbQualityButton_do&&(self.controller_do.ytbQualityButton_do.enable(),self.controller_do.enablePlaybackRateButton()),!self.isAdd_bl&&self.controller_do&&self.controller_do.downloadButton_do&&self.controller_do.downloadButton_do.enable(),self.hider.start()),self.videoType_str!=FWDEVPlayer.VIMEO&&self.showClickScreen(),self.fillEntireVideoScreen_bl&&self.resizeHandler(),setTimeout(function(){self.totalDuration&&self.controller_do&&self.controller_do.positionAdsLines(self.totalDuration)},500))},this.videoScreenStopHandler=function(e){self.main_do&&self.main_do.contains(self.info_do)&&self.main_do.removeChild(self.info_do),self.videoPoster_do.allowToShow_bl=!0,self.isPlaying_bl=!1,self.controller_do&&(self.controller_do.disableMainScrubber(),self.controller_do.showPlayButton(),self.controller_do.updateMainScrubber(0),self.data.showControllerWhenVideoIsStopped_bl?self.controller_do.show(!self.isMobile_bl):self.controller_do.hide(!self.isMobile_bl,!0),self.hider.stop()),self.ytb_do&&self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do.stopVideo(),self.logo_do&&self.logo_do.hide(!0),self.hideClickScreen(),self.isMobile_bl&&self.videoType_str==FWDEVPlayer.YOUTUBE&&(self.videoPoster_do.hide(),self.largePlayButton_do&&self.largePlayButton_do.hide()),self.hider.reset(),self.showCursor(),self.dispatchEvent(FWDEVPlayer.STOP)},this.videoScreenPlayHandler=function(){FWDEVPlayer.keyboardCurInstance=self,self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do&&self.ytb_do.isStopped_bl||(self.isPlaying_bl=!0,self.isMobile_bl?FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.STOP_ALL_VIDEOS&&FWDEVPlayer.stopAllVideos(self):FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.PAUSE_ALL_VIDEOS&&FWDEVPlayer.pauseAllVideos(self),self.logo_do&&self.videoType_str!=FWDEVPlayer.VIMEO&&self.logo_do.show(!0),self.controller_do&&(self.controller_do.showPauseButton(),self.controller_do.show(!0)),self.popw_do&&self.popw_do.hide(),self.largePlayButton_do&&self.largePlayButton_do.hide(),self.hider.start(),self.showCursor(),self.isAdd_bl&&(self.isQualityChanging_bl=!1),self.playAtTime_bl&&!self.isAdd_bl&&self.scrubbAtTime(self.data.scrubAtTimeAtFirstPlay),self.playAtTime_bl=!1,self.hasHlsPlayedOnce_bl=!0,self.isAdd_bl&&!self.hasStartedToPlay_bl&&self.scrubbAtTime(0),self.isQualityChanging_bl&&!self.isAdd_bl&&(self.scrubbAtTime(self.curDurration),self.curDurration=0,self.isQualityChanging_bl=!1),self.wasAdd_bl&&!self.isAdd_bl&&(self.scrubbAtTime(self.scrubAfterAddDuration),self.wasAdd_bl=!1),self.hasStartedToPlay_bl||!self.data.startAtTime||self.isAdd_bl||self.scrubbAtTime(self.data.startAtTime),self.hasStartedToPlay_bl=!0,self.dispatchEvent(FWDEVPlayer.PLAY))},this.videoScreenPauseHandler=function(){if(self.videoType_str!=FWDEVPlayer.YOUTUBE||!self.ytb_do||!self.ytb_do.isStopped_bl){if(self.isPlaying_bl=!1,self.controller_do&&self.controller_do.showPlayButton(),self.largePlayButton_do&&self.videoType_str!=FWDEVPlayer.VIMEO&&!self.data.showAnnotationsPositionTool_bl&&self.largePlayButton_do.show(),self.controller_do&&self.controller_do.show(!0),self.logo_do&&self.videoType_str!=FWDEVPlayer.VIMEO&&self.logo_do.show(!0),self.hider.stop(),self.hider.reset(),self.showCursor(),self.videoType_str!=FWDEVPlayer.VIMEO&&self.showClickScreen(),self.popw_do){var e=self.shareWindow_do&&self.shareWindow_do.isShowed_bl,t=self.embedWindow_do&&self.embedWindow_do.isShowed_bl;e||t||self.popw_do.show()}self.dispatchEvent(FWDEVPlayer.PAUSE)}},this.videoScreenUpdateHandler=function(e){var t;FWDEVPlayer.hasHTML5Video||self.videoType_str==FWDEVPlayer.YOUTUBE&&self.videoType_str!=FWDEVPlayer.IMAGE&&self.videoType_str!=FWDEVPlayer.IFRAME?(t=e.percent,self.controller_do&&self.controller_do.updateMainScrubber(t)):(t=e,self.controller_do&&self.controller_do.updateMainScrubber(t)),self.dispatchEvent(FWDEVPlayer.UPDATE,{percent:t})},this.videoScreenUpdateTimeHandler=function(e,e2,e3,stopHandler){var time,seconds;if(FWDEVPlayer.hasHTML5Video||self.videoType_str==FWDEVPlayer.YOUTUBE||self.videoType_str==FWDEVPlayer.HLS_JS||self.videoType_str==FWDEVPlayer.VIMEO?(self.curTime=e.curTime,self.totalTime=e.totalTime,time=self.curTime+"/"+self.totalTime,seconds=e.seconds,self.controller_do&&self.controller_do.updateTime(time)):(self.curTime=e,self.totalTime=e2,time=self.curTime+"/"+self.totalTime,seconds=e3,void 0!=e&&void 0!=e2||(time="00:00/00:00"),self.controller_do&&self.controller_do.updateTime(time)),!stopHandler){if(self.isAdd_bl||(self.totalTime.length>5?self.totalDuration=FWDEVPUtils.getSecondsFromString(self.totalTime):self.totalDuration=FWDEVPUtils.getSecondsFromString("00:"+self.totalTime)),self.isAdd_bl&&(self.data.timeToHoldAds>seconds?(self.adsStart_do.updateText(self.data.skipToVideoText_str+Math.abs(self.data.timeToHoldAds-seconds)),self.adsSkip_do.hide(!1),self.videoType_str!=FWDEVPlayer.IMAGE&&self.videoType_str!=FWDEVPlayer.IFRAME||self.adsStart_do.show(!0)):(self.adsStart_do.hide(!0),self.adsSkip_do.show(!0))),self.currentSecconds=e.seconds,self.subtitle_do.updateSubtitle(parseInt(self.currentSecconds)),!self.isAdd_bl&&self.popupAds_do&&self.popupAds_do.update(parseInt(e.seconds)),!self.isAdd_bl&&self.annotations_do&&self.annotations_do.update(e.seconds),0==seconds||self.isAdd_bl||(self.curDurration=seconds),self.data.cuePointsSource_ar)for(var i=0;i<self.data.cuePointsSource_ar.length;i++){var cuePoint=self.data.cuePointsSource_ar[i];cuePoint.timeStart==e.seconds&&(self.data.executeCuepointsOnlyOnce_bl?cuePoint.isPlayed_bl||eval(cuePoint.javascriptCall):eval(cuePoint.javascriptCall),cuePoint.isPlayed_bl=!0)}self.isAdd_bl||self.updateAds(seconds),self.isPlaying_bl&&FWDEVPUtils.getSecondsFromString(self.data.stopAtTime)<=e.seconds&&self.stop(),self.dispatchEvent(FWDEVPlayer.UPDATE_TIME,{currentTime:self.curTime,totalTime:self.totalTime})}},this.videoScreenLoadProgressHandler=function(e){FWDEVPlayer.hasHTML5Video||self.videoType_str==FWDEVPlayer.YOUTUBE?self.controller_do&&self.controller_do.updatePreloaderBar(e.percent):self.videoType_str==FWDEVPlayer.VIDEO&&self.controller_do&&self.controller_do.updatePreloaderBar(e)},this.videoScreenStartToBuferHandler=function(){self.showPreloader_bl&&self.preloader_do.show()},this.videoScreenStopToBuferHandler=function(){self.preloader_do.hide(!0)},this.videoScreenPlayCompleteHandler=function(e,t){var o=self.isAdd_bl;self.isAdd_bl&&(self.data.openNewPageAtTheEndOfTheAds_bl&&"none"!=self.data.adsPageToOpenURL_str&&!t&&("_self"==self.data.adsPageToOpenTarget_str?location.href=self.data.adsPageToOpenURL_str:window.open(self.data.adsPageToOpenURL_str,self.data.adsPageToOpenTarget_str)),self.isAdd_bl=!1,self.setSource(self.data.videoSource_ar[self.data.startAtVideoSource].source,!0),self.wasAdd_bl=!0,t&&self.videoType_str==FWDEVPlayer.VIDEO?self.play():self.isMobile_bl||self.play()),o||(self.data.loop_bl?(self.scrub(0),self.play()):self.stop(),self.dispatchEvent(FWDEVPlayer.PLAY_COMPLETE)),self.hider&&self.hider.reset()},this.setupAnnotations=function(){FWDEVPAnnotations.setPrototype(),self.annotations_do=new FWDEVPAnnotations(self,self.data),self.main_do.addChild(self.annotations_do)},this.setupAdsStart=function(){FWDEVPAdsStart.setPrototype(),self.adsStart_do=new FWDEVPAdsStart(self.data.adsButtonsPosition_str,self.data.adsBorderNormalColor_str,"",self.data.adsBackgroundPath_str,self.data.adsTextNormalColor),FWDEVPAdsButton.setPrototype(),self.adsSkip_do=new FWDEVPAdsButton(self.data.skipIconPath_img,self.data.skipIconSPath_str,self.data.skipToVideoButtonText_str,self.data.adsButtonsPosition_str,self.data.adsBorderNormalColor_str,self.data.adsBorderSelectedColor_str,self.data.adsBackgroundPath_str,self.data.adsTextNormalColor,self.data.adsTextSelectedColor,self.data.useHEXColorsForSkin_bl,self.data.normalButtonsColor_str,self.data.selectedButtonsColor_str),self.adsSkip_do.addListener(FWDEVPAdsButton.MOUSE_UP,self.skipAdsMouseUpHandler),self.main_do.addChild(self.adsSkip_do),self.main_do.addChild(self.adsStart_do)},this.skipAdsMouseUpHandler=function(e){self.videoScreenPlayCompleteHandler(e,!0)},this.positionAds=function(e){var t,o;t="left"==self.data.adsButtonsPosition_str?0:self.stageWidth,o=self.controller_do&&self.controller_do.isShowed_bl?self.stageHeight-self.adsStart_do.h-self.data.controllerHeight-30:self.stageHeight-self.adsStart_do.h-self.data.controllerHeight,FWDAnimation.killTweensOf(this.adsStart_do),e?FWDAnimation.to(this.adsStart_do,.8,{y:o,ease:Expo.easeInOut}):this.adsStart_do.setY(o),self.adsStart_do.setX(t),t="left"==self.data.adsButtonsPosition_str?0:self.stageWidth,o=self.controller_do&&self.controller_do.isShowed_bl?self.stageHeight-self.adsSkip_do.h-self.data.controllerHeight-30:self.stageHeight-self.adsSkip_do.h-self.data.controllerHeight,FWDAnimation.killTweensOf(this.adsSkip_do),e?FWDAnimation.to(this.adsSkip_do,.8,{y:o,ease:Expo.easeInOut}):this.adsSkip_do.setY(o),self.adsSkip_do.setX(t)},this.setupShareWindow=function(){FWDEVPShareWindow.setPrototype(),self.shareWindow_do=new FWDEVPShareWindow(self.data,self),self.shareWindow_do.addListener(FWDEVPShareWindow.HIDE_COMPLETE,self.shareWindowHideCompleteHandler)},this.shareWindowHideCompleteHandler=function(){self.isVideoPlayingWhenOpenWindows_bl&&self.resume(),self.controller_do&&(self.controller_do.shareButton_do.isDisabled_bl=!1,self.controller_do.shareButton_do.setNormalState())},this.setupPasswordWindow=function(){FWDEVPPassword.setPrototype(),self.passWindow_do=new FWDEVPPassword(self.data,self),self.passWindow_do.addListener(FWDEVPPassword.CORRECT,self.passordCorrect)},this.passordCorrect=function(){self.passWindow_do.hide(),self.hasPassedPassowrd_bl=!0,self.play()},this.setupEmbedWindow=function(){FWDEVPEmbedWindow.setPrototype(),self.embedWindow_do=new FWDEVPEmbedWindow(self.data,self),self.embedWindow_do.addListener(FWDEVPEmbedWindow.ERROR,self.embedWindowErrorHandler),self.embedWindow_do.addListener(FWDEVPEmbedWindow.HIDE_COMPLETE,self.embedWindowHideCompleteHandler)},this.embedWindowErrorHandler=function(e){self.main_do.addChild(self.info_do),self.info_do.showText(e.error)},this.embedWindowHideCompleteHandler=function(){self.isVideoPlayingWhenOpenWindows_bl&&self.resume(),self.controller_do&&(self.controller_do.embedButton_do.isDisabled_bl=!1,self.controller_do.embedButton_do.setNormalState())},this.copyLinkButtonOnMouseOver=function(){self.embedWindow_do.isShowed_bl&&self.embedWindow_do.copyLinkButton_do.setSelectedState()},this.copyLinkButtonOnMouseOut=function(){self.embedWindow_do.isShowed_bl&&self.embedWindow_do.copyLinkButton_do.setNormalState()},this.getLinkCopyPath=function(){if(self.embedWindow_do.isShowed_bl)return self.embedWindow_do.linkToVideo_str},this.embedkButtonOnMouseOver=function(){self.embedWindow_do.isShowed_bl&&self.embedWindow_do.copyEmbedButton_do.setSelectedState()},this.embedButtonOnMouseOut=function(){self.embedWindow_do.isShowed_bl&&self.embedWindow_do.copyEmbedButton_do.setNormalState()},this.getEmbedCopyPath=function(){return self.embedWindow_do.finalEmbedCode_str},this.setupFlashScreen=function(){if(!self.flash_do)return-1!=location.protocol.indexOf("file:")&&(FWDEVPUtils.isOpera||FWDEVPUtils.isIEAndLessThen9)?(self.main_do.addChild(self.info_do),void(self.info_do.textHolder_do.screen.innerHTML="This browser can't play video local, please test online or use a browser like Firefox of Chrome.")):void(FWDEVPFlashTest.hasFlashPlayerVersion("9.0.18")&&(self.flash_do=new FWDEVPDisplayObject("div"),self.flash_do.setBackfaceVisibility(),self.flash_do.setResizableSizeAfterParent(),self.main_do.addChild(self.flash_do),window[self.instanceName_str+"HLSFlashReady"]=function(e,t){if("error"==e&&(self.main_do.addChild(self.info_do),self.info_do.showText(t[2]+" - "+t[1])),"manifest"==e&&(self.setVolume(self.data.volume),self.data.autoPlay_bl&&self.flashObject.playerPlay(-1)),"state"==e&&(self.hlsState=t[0],"PLAYING"==t[0]?(self.isVideoPlayingWhenOpenWindows_bl=!0,self.isHLSVideoPlayng_bl=!0,self.videoScreenSafeToScrubbHandler(),self.videoScreenPlayHandler()):"PAUSED"==t[0]&&(self.videoScreenPauseHandler(),self.isHLSVideoPlayng_bl=!1)),"position"==e&&self.isPlaying_bl){self.HLSDuration=Math.round(t[0].duration);var o=FWDEVPVideoScreen.formatTime(Math.round(t[0].duration)),i={curTime:FWDEVPVideoScreen.formatTime(Math.round(t[0].position)),totalTime:o,seconds:Math.round(t[0].position)};self.hlsPosition=t[0].position,self.videoScreenUpdateTimeHandler(i),self.videoScreenUpdateHandler({percent:Math.round(t[0].position)/Math.round(t[0].duration)})}"complete"==e&&self.videoScreenPlayCompleteHandler()},self.flashObjectMarkup_str='<object id="'+self.instanceName_str+'"classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100%" height="100%"><param name="movie" value="'+self.data.flashPath_str+'"/><param name="allowScriptAccess" value="sameDomain"/><param name="wmode" value="opaque"/><param name="scale" value="noscale"/><param name=FlashVars value="callback='+self.instanceName_str+"HLSFlashReady&instanceName="+self.instanceName_str+"&volume="+self.data.volume+"&bkColor_str="+self.videoBackgroundColor_str+'"/><object type="application/x-shockwave-flash" data="'+self.data.flashPath_str+'" width="100%" height="100%"><param name="movie" value="'+self.data.flashPath_str+'"/><param name="wmode" value="opaque"/><param name="scale" value="noscale"/><param name=FlashVars value="callback='+self.instanceName_str+"HLSFlashReady&instanceName="+self.instanceName_str+"&volume="+self.data.volume+"&bkColor_str="+self.videoBackgroundColor_str+'"/></object></object>',self.flash_do.screen.innerHTML=self.flashObjectMarkup_str,self.registerHLSEvents_int=setInterval(function(){self.flashObject.playerLoad&&(self.isHLSFlashReady_bl=!0,clearInterval(self.registerHLSEvents_int))},50),self.flashObject=self.flash_do.screen.firstChild,FWDEVPUtils.isIE||(self.flashObject=self.flashObject.getElementsByTagName("object")[0])))},this.flashScreenFail=function(){self.main_do.addChild(self.info_do),self.info_do.showText("External interface error!"),self.resizeHandler()},this.addKeyboardSupport=function(){document.addEventListener?(document.addEventListener("keydown",this.onKeyDownHandler),document.addEventListener("keyup",this.onKeyUpHandler)):document.attachEvent&&(document.attachEvent("onkeydown",this.onKeyDownHandler),document.attachEvent("onkeyup",this.onKeyUpHandler))},this.onKeyDownHandler=function(e){if(!self.isSpaceDown_bl&&(self.isSpaceDown_bl=!0,32==e.keyCode)){if(self!=FWDEVPlayer.keyboardCurInstance&&("pause"==FWDEVPlayer.videoStartBehaviour||"none"==FWDEVPlayer.videoStartBehaviour))return;if(self.stickOnCurrentInstanceKey_bl=!0,self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME)self.isImageAdsPlaying_bl?self.stopUpdateImageInterval():self.startUpdateImageInterval();else if(self.videoType_str==FWDEVPlayer.YOUTUBE){if(!self.ytb_do.isSafeToBeControlled_bl)return;self.ytb_do.togglePlayPause()}else if(self.videoType_str==FWDEVPlayer.MP3){if(!self.audioScreen_do.isSafeToBeControlled_bl)return;self.audioScreen_do.togglePlayPause()}else if(FWDEVPlayer.hasHTML5Video){if(!self.videoScreen_do.isSafeToBeControlled_bl)return;self.videoScreen_do&&self.videoScreen_do.togglePlayPause()}else self.isFlashScreenReady_bl&&self.flashObject.togglePlayPause();return e.preventDefault&&e.preventDefault(),!1}},this.onKeyUpHandler=function(e){self.isSpaceDown_bl=!1},this.setupHider=function(){FWDEVPHider.setPrototype(),self.hider=new FWDEVPHider(self.main_do,self.controller_do,self.data.controllerHideDelay),self.hider.addListener(FWDEVPHider.SHOW,self.hiderShowHandler),self.hider.addListener(FWDEVPHider.HIDE,self.hiderHideHandler),self.hider.addListener(FWDEVPHider.HIDE_COMPLETE,self.hiderHideCompleteHandler)},this.hiderShowHandler=function(){self.controller_do&&self.isPlaying_bl&&self.controller_do.show(!0),self.logo_do&&self.data.hideLogoWithController_bl&&self.isPlaying_bl&&self.videoType_str!=FWDEVPlayer.VIMEO&&self.logo_do.show(!0),self.showCursor(),self.isAdd_bl&&(self.positionAds(!0),self.adsStart_do.showWithOpacity(),self.adsSkip_do.showWithOpacity()),self.subtitle_do.position(!0),self.popupAds_do&&self.popupAds_do.position(!0)},this.hiderHideHandler=function(){self.controller_do&&self.data.showYoutubeQualityButton_bl&&FWDEVPUtils.hitTest(self.controller_do.ytbButtonsHolder_do.screen,self.hider.globalX,self.hider.globalY)?self.hider.reset():self.controller_do&&self.data.showSubtitleButton_bl&&FWDEVPUtils.hitTest(self.controller_do.subtitlesButtonsHolder_do.screen,self.hider.globalX,self.hider.globalY)?self.hider.reset():self.controller_do&&self.data.showPlaybackRateButton_bl&&FWDEVPUtils.hitTest(self.controller_do.playbackRatesButtonsHolder_do.screen,self.hider.globalX,self.hider.globalY)?self.hider.reset():self.controller_do&&FWDEVPUtils.hitTest(self.controller_do.screen,self.hider.globalX,self.hider.globalY)?self.hider.reset():(self.controller_do&&self.controller_do.hide(!0),self.isAdd_bl&&(self.positionAds(!0),self.adsStart_do.hideWithOpacity(),self.adsSkip_do.hideWithOpacity()),self.logo_do&&self.data.hideLogoWithController_bl&&self.logo_do.hide(!0),self.isFullScreen_bl&&self.hideCursor(),self.subtitle_do.position(!0),self.popupAds_do&&self.popupAds_do.position(!0))},this.hiderHideCompleteHandler=function(){self.controller_do&&self.controller_do.positionScrollBarOnTopOfTheController()},this.play=function(){if(self.isAPIReady_bl){if(self.videoType_str==FWDEVPlayer.YOUTUBE&&!self.isYoutubeReady_bl)return self.showPreloader_bl&&self.preloader_do.show(),void(self.largePlayButton_do&&self.largePlayButton_do.show());if(self.videoType_str==FWDEVPlayer.VIMEO&&!self.isVimeoReady_bl)return self.showPreloader_bl&&self.preloader_do.show(),void(self.largePlayButton_do&&self.largePlayButton_do.show());if(self.videoType_str==FWDEVPlayer.HLS_JS&&location.protocol.indexOf("file:")>=0)return self.main_do.addChild(self.info_do),void self.info_do.showText("HLS m3u8 videos can't be played local on this browser, please test it online!.");if(self.data.playVideoOnlyWhenLoggedIn_bl&&!self.data.isLoggedIn_bl)return self.main_do.addChild(self.info_do),self.info_do.showText(self.data.loggedInMessage_str),void(self.largePlayButton_do&&self.largePlayButton_do.show());if(!self.isAdd_bl&&self.data.videosSource_ar[self.data.startAtVideoSource].isPrivate&&!self.hasPassedPassowrd_bl&&self.passWindow_do)return self.largePlayButton_do&&self.largePlayButton_do.show(),void self.passWindow_do.show();self.hasPassedPassowrd_bl=!0,self.isMobile_bl&&self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do&&!self.ytb_do.isSafeToBeControlled_bl||(self.isMobile_bl?FWDEVPlayer.stopAllVideos(self):FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.PAUSE_ALL_VIDEOS?FWDEVPlayer.pauseAllVideos(self):FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.STOP_ALL_VIDEOS&&FWDEVPlayer.stopAllVideos(self),self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME?self.startUpdateImageInterval():self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do?self.ytb_do.play():self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.vimeo_do.isStopped_bl&&self.data.autoPlay_bl?self.startVimeoVideoWithDelay=setTimeout(self.vimeo_do.play,1e3):self.vimeo_do.play():self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do&&self.audioScreen_do.play():FWDEVPlayer.hasHTML5Video?self.videoType_str!=FWDEVPlayer.HLS_JS||self.isHLSManifestReady_bl?self.videoScreen_do&&self.videoScreen_do.play():(self.videoScreen_do.initVideo(),self.setupHLS(),self.hlsJS.loadSource(self.videoSourcePath_str),self.hlsJS.attachMedia(self.videoScreen_do.video_el),self.hlsJS.on(Hls.Events.MANIFEST_PARSED,function(e){self.isHLSManifestReady_bl=!0,self.play()})):self.isFlashScreenReady_bl&&self.flashObject.playVideo(),FWDEVPlayer.keyboardCurInstance=self,self.videoPoster_do.allowToShow_bl=!1,self.largePlayButton_do&&self.largePlayButton_do.hide(),self.videoPoster_do.hide())}},this.pause=function(){self.isAPIReady_bl&&(self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME?self.stopUpdateImageInterval():self.videoType_str==FWDEVPlayer.YOUTUBE?self.ytb_do.pause():self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.vimeo_do.pause():self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do&&self.audioScreen_do.pause():FWDEVPlayer.hasHTML5Video?self.videoScreen_do&&self.videoScreen_do.pause():self.isFlashScreenReady_bl&&self.flashObject.pauseVideo())},this.resume=function(){self.isAPIReady_bl&&(self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME?self.startUpdateImageInterval():self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do?self.ytb_do.resume():self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.vimeo_do.resume():self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do&&self.audioScreen_do.resume():FWDEVPlayer.hasHTML5Video&&self.videoScreen_do&&self.videoScreen_do.resume())},self.hasHlsPlayedOnce_bl=!1,this.stop=function(e){self.isAPIReady_bl&&(self.hasPassedPassowrd_bl=!1,self.isHLSManifestReady_bl=!1,self.playYoutubeIfLoadedLate_bl=!1,self.isPlaying_bl=!1,self.hider.reset(),self.destroyHLS(),clearTimeout(self.startVimeoVideoWithDelay),clearTimeout(self.load360ScriptsId_to),self.popw_do&&self.popw_do.hide(),self.controller_do&&self.controller_do.ytbQualityButton_do&&(self.controller_do.ytbQualityButton_do.disable(),self.controller_do.hideQualityButtons(!1),self.controller_do.updateMainScrubber(0),self.controller_do.updatePreloaderBar(0)),self.controller_do&&self.controller_do.subtitleButton_do&&self.controller_do.subtitleButton_do.disable(),self.controller_do&&self.controller_do.downloadButton_do&&self.controller_do.downloadButton_do.disable(),self.controller_do&&self.controller_do.disablePlaybackRateButton(),self.isAdd_bl?self.setPlaybackRate(1):self.setPlaybackRate(self.data.defaultPlaybackRate_ar[self.data.startAtPlaybackIndex]),self.controller_do&&self.data.showPlaybackRateButton_bl&&self.controller_do.updatePlaybackRateButtons(self.data.updatePlaybackRateButtons,self.data.startAtPlaybackIndex),self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME?self.stopUpdateImageInterval():self.videoType_str==FWDEVPlayer.YOUTUBE?self.ytb_do.stop():self.videoType_str==FWDEVPlayer.VIMEO?self.vimeo_do&&self.vimeo_do.stop():self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do&&self.audioScreen_do.stop():FWDEVPlayer.hasHTML5Video?self.videoScreen_do.stop():self.isFlashScreenReady_bl&&self.flashObject.stopVideo(),self.isMobile_bl?e&&-1!=e.indexOf(".")?(self.data.showControllerWhenVideoIsStopped_bl&&self.controller_do&&self.controller_do.show(!0),self.videoPoster_do&&self.videoPoster_do.show(),self.largePlayButton_do&&!self.data.showAnnotationsPositionTool_bl&&self.largePlayButton_do.show()):e||self.videoType_str!=FWDEVPlayer.VIDEO?self.useYoutube_bl&&(self.ytb_do.ytb||self.ytb_do.setupVideo()):(self.videoPoster_do.show(),self.largePlayButton_do&&self.largePlayButton_do.show()):(self.data.showControllerWhenVideoIsStopped_bl&&self.controller_do_do&&self.controller_do.show(!0),self.videoPoster_do.show(),self.largePlayButton_do&&self.largePlayButton_do.show()),self.subtitle_do.hide(),self.hasHlsPlayedOnce_bl=!1,self.isSafeToScrub_bl=!1,self.hlsState=void 0,self.popupAds_do&&self.popupAds_do.hideAllPopupButtons(!1),self.adsStart_do&&self.adsStart_do.hide(!0),self.adsSkip_do&&self.adsSkip_do.hide(!0),self.controller_do&&self.controller_do.hideAdsLines(),self.annotations_do&&self.annotations_do.update(1e5),self.hasStartedToPlay_bl=!1)},this.startToScrub=function(){self.isAPIReady_bl&&(self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do&&self.ytb_do.isSafeToBeControlled_bl?self.ytb_do.startToScrub():self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.vimeo_do.startToScrub():self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do&&self.audioScreen_do.startToScrub():FWDEVPlayer.hasHTML5Video?self.videoScreen_do&&self.videoScreen_do.startToScrub():self.isFlashScreenReady_bl&&self.flashObject.startToScrub())},this.stopToScrub=function(){self.isAPIReady_bl&&(self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do&&self.ytb_do.isSafeToBeControlled_bl?self.ytb_do.stopToScrub():self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.vimeo_do.stopToScrub():self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do&&self.audioScreen_do.stopToScrub():FWDEVPlayer.hasHTML5Video?self.videoScreen_do&&self.videoScreen_do.stopToScrub():self.isFlashScreenReady_bl&&self.flashObject.stopToScrub())},this.scrub=function(e,t){self.isAPIReady_bl&&(isNaN(e)||(e<0?e=0:e>1&&(e=1),self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do&&self.ytb_do.isSafeToBeControlled_bl?self.ytb_do.scrub(e):self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.vimeo_do.scrub(e):self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do&&self.audioScreen_do.scrub(e):FWDEVPlayer.hasHTML5Video?self.videoScreen_do&&self.videoScreen_do.scrub(e):self.isFlashScreenReady_bl&&self.flashObject.scrub(e),self.dispatchEvent(FWDEVPlayer.SCRUB,{percent:e})))},this.scrubbAtTime=function(e){self.isAPIReady_bl&&e&&(-1!=String(e).indexOf(":")&&(e=FWDEVPUtils.getSecondsFromString(e)),self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do?self.ytb_do.scrubbAtTime(e):self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.vimeo_do.scrubbAtTime(e):self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do&&self.audioScreen_do.scrubbAtTime(e):FWDEVPlayer.hasHTML5Video&&self.videoScreen_do&&self.videoScreen_do.scrubbAtTime(e))},this.setVolume=function(e){self.isAPIReady_bl&&!self.isMobile_bl&&(self.controller_do&&self.controller_do.updateVolume(e,!0),self.volume=e,self.ytb_do&&self.ytb_do.setVolume(e),self.vimeo_do&&self.vimeo_do.setVolume(e),self.audioScreen_do&&self.audioScreen_do.setVolume(e),FWDEVPlayer.hasHTML5Video&&self.videoScreen_do&&self.videoScreen_do.setVolume(e),self.dispatchEvent(FWDEVPlayer.VOLUME_SET,{volume:e}))},this.setPosterSource=function(e){if(self.isAPIReady_bl&&e){var t=e.split(",");-1!=(e=self.isMobile_bl&&void 0!=t[1]?t[1]:t[0]).indexOf("encrypt:")&&(e=atob(e.substr(8))),self.posterPath_str=e,-1==self.videoSourcePath_str.indexOf(".")&&self.useYoutube_bl&&self.isMobile_bl?self.videoPoster_do.setPoster("youtubemobile"):(self.videoPoster_do.setPoster(self.posterPath_str),self.prevPosterSource_str!=e&&self.dispatchEvent(FWDEVPlayer.UPDATE_POSTER_SOURCE)),self.prevPosterSource_str=e}},this.updateAds=function(e){if(!self.isAdd_bl){if(!this.isAdd_bl)for(var t=0;t<self.data.adsSource_ar.length;t++)e>=self.data.adsSource_ar[t].timeStart&&e<=self.data.adsSource_ar[t].timeStart+1&&!self.data.adsSource_ar[t].played_bl&&e!=self.prevDuration&&(self.isAdd_bl=!0,self.addSource_str=self.data.adsSource_ar[t].source,self.data.adsSource_ar[t].played_bl=!0,self.data.adsThumbnailPath_str=self.data.adsSource_ar[t].thumbnailSource,self.data.timeToHoldAds=self.data.adsSource_ar[t].timeToHoldAds,self.data.adsPageToOpenURL_str=self.data.adsSource_ar[t].link,self.data.adsPageToOpenTarget_str=self.data.adsSource_ar[t].target,self.scrubAfterAddDuration=self.data.adsSource_ar[t].timeStart,self.curImageTotalTime=self.data.adsSource_ar[t].addDuration,self.setSource(self.addSource_str),self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME||self.isMobile_bl||(-1!=self.addSource_str.indexOf("youtube.")&&self.ytb_do&&self.ytb_do.hasBeenCreatedOnce_bl&&self.play(),-1==self.addSource_str.indexOf("youtube.")&&self.play()),this.controller_do&&this.controller_do.line_ar[t].setVisible(!1));this.controller_do&&(self.controller_do.setupAdsLines(self.data.adsSource_ar),self.totalDuration&&self.controller_do.positionAdsLines(self.totalDuration)),this.isAdd_bl||self.setSourceExternal_bl||self.setSource(self.data.videoSource_ar[self.data.startAtVideoSource].source,!1,self.data.videoSource_ar[self.data.startAtVideoSource].videoType),this.controller_do&&this.controller_do.positionAdsLines(self.curDuration),self.prevDuration=e}},this.updateImageScreen=function(e){if(self.videoType_str==FWDEVPlayer.IFRAME)return self.iFrame_do||(self.iFrame_do=new FWDEVPDisplayObject("iframe"),self.iFrame_do.hasTransform3d_bl=!1,self.iFrame_do.hasTransform2d_bl=!1,self.iFrame_do.setBackfaceVisibility()),self.main_do.addChildAt(self.iFrame_do,self.main_do.getChildIndex(self.dumyClick_do)+1),self.showClickScreen(),self.iFrame_do.screen.src=e,self.positionAdsImage(),void self.startToUpdateAdsButton();this.imageSceeenHolder_do||(this.imageSceeenHolder_do=new FWDEVPDisplayObject("div"),this.imageSceeenHolder_do.setX(0),this.imageSceeenHolder_do.setY(0),this.imageSceeenHolder_do.setBkColor("#000000")),self.main_do.addChildAt(self.imageSceeenHolder_do,self.main_do.getChildIndex(self.dumyClick_do)-1),self.showClickScreen(),self.imageSceeenHolder_do.contains(self.imageScreen_do)&&self.imageSceeenHolder_do.removeChild(this.imageScreen_do),this.imageScreen_do=null,self.imageScreen_do=new FWDEVPDisplayObject("img"),self.imageAdd_img=new Image,self.imageAdd_img.src=e,self.showPreloader_bl&&self.preloader_do.show(),self.largePlayButton_do&&self.largePlayButton_do.hide(),self.imageAdd_img.onload=function(){self.imageScreen_do.setScreen(self.imageAdd_img),self.imageScreen_do.setAlpha(0),FWDAnimation.to(self.imageScreen_do,1,{alpha:1}),self.imageAddOriginalWidth=self.imageAdd_img.width,self.imageAddOriginalHeight=self.imageAdd_img.height,self.preloader_do.hide(),self.imageSceeenHolder_do.addChild(self.imageScreen_do),self.positionAdsImage(),self.startToUpdateAdsButton()},self.imageAdd_img.onerror=function(){self.main_do.addChild(self.info_do),self.info_do.showText("Advertisment image with path "+e+" can't be found"),self.preloader_do.hide()}},this.positionAdsImage=function(){if(self.videoType_str==FWDEVPlayer.IFRAME&&self.iFrame_do&&(self.iFrame_do.setWidth(self.stageWidth),self.iFrame_do.setHeight(self.stageHeight)),self.imageScreen_do&&self.videoType_str==FWDEVPlayer.IMAGE){var e=self.stageWidth/self.imageAddOriginalWidth,t=self.stageHeight/self.imageAddOriginalHeight;totalScale=0,e>=t?totalScale=e:e<=t&&(totalScale=t),finalW=parseInt(self.imageAddOriginalWidth*totalScale),finalH=parseInt(self.imageAddOriginalHeight*totalScale),finalX=parseInt((self.stageWidth-finalW)/2),finalY=parseInt((self.stageHeight-finalH)/2),self.imageScreen_do.setWidth(finalW),self.imageScreen_do.setHeight(finalH),self.imageScreen_do.setX(finalX),self.imageScreen_do.setY(finalY),self.imageSceeenHolder_do.setWidth(self.stageWidth),self.imageSceeenHolder_do.setHeight(self.stageHeight)}},this.startToUpdateAdsButton=function(){self.curImageTime=0,self.updateAdsButton(),self.stopUpdateImageInterval(),self.startUpdateImageInterval(),self.setPlayAndPauseButtonState()},this.stopUpdateImageInterval=function(){self.isImageAdsPlaying_bl=!1,clearInterval(self.startUpdateAdsId_int),self.setPlayAndPauseButtonState(),self.largePlayButton_do&&self.largePlayButton_do.show(),self.isPlaying_bl=!1,self.hider.stop()},this.startUpdateImageInterval=function(){self.isImageAdsPlaying_bl=!0,self.startUpdateAdsId_int=setInterval(self.updateAdsButton,1e3),self.setPlayAndPauseButtonState(),self.largePlayButton_do&&self.largePlayButton_do.hide(),self.isPlaying_bl=!0,self.hider.start()},this.updateAdsButton=function(){self.videoScreenUpdateTimeHandler({curTime:FWDEVPUtils.formatTime(self.curImageTime),totalTime:FWDEVPUtils.formatTime(self.curImageTotalTime),seconds:self.curImageTime}),self.videoScreenUpdateHandler({percent:self.curImageTime/self.curImageTotalTime}),self.curImageTime==self.curImageTotalTime&&self.videoScreenPlayCompleteHandler(),self.curImageTime+=1},this.setPlayAndPauseButtonState=function(){this.isImageAdsPlaying_bl?self.controller_do&&self.controller_do.showPauseButton():self.controller_do&&self.controller_do.showPlayButton()},this.isThreeJsLoaded_bl=!1,this.isThreeJsOrbitLoaded_bl=!1,this.load360ScriptsId_to,isHLSJsLoaded_bl=!1,this.destroyHLS=function(){self.hlsJS&&(self.hlsJS.destroy(),self.hlsJS=null)},this.setupHLS=function(){self.hlsJS||(self.isHLSJsLoaded_bl=!0,self.hlsJS=new Hls,self.hlsJS.on(Hls.Events.ERROR,function(e,t){switch(self.HLSError_str,t.details){case Hls.ErrorDetails.MANIFEST_LOAD_ERROR:try{self.HLSError_str='cannot load <a href="'+t.context.url+'">'+url+"</a><br>HTTP response code:"+t.response.code+" <br>"+t.response.text,0===t.response.code&&(self.HLSError_str+='this might be a CORS issue, consider installing <a href="https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi">Allow-Control-Allow-Origin</a> Chrome Extension')}catch(e){self.HLSError_str="cannot load "+self.videoSourcePath_str}break;case Hls.ErrorDetails.MANIFEST_LOAD_TIMEOUT:self.HLSError_str="timeout while loading manifest";break;case Hls.ErrorDetails.MANIFEST_PARSING_ERROR:self.HLSError_str="error while parsing manifest:"+t.reason;break;case Hls.ErrorDetails.LEVEL_LOAD_ERROR:self.HLSError_str="error while loading level playlist";break;case Hls.ErrorDetails.LEVEL_LOAD_TIMEOUT:self.HLSError_str="timeout while loading level playlist";break;case Hls.ErrorDetails.LEVEL_SWITCH_ERROR:self.HLSError_str="error while trying to switch to level "+t.level;break;case Hls.ErrorDetails.FRAG_LOAD_ERROR:self.HLSError_str="error while loading fragment "+t.frag.url;break;case Hls.ErrorDetails.FRAG_LOAD_TIMEOUT:self.HLSError_str="timeout while loading fragment "+t.frag.url;break;case Hls.ErrorDetails.FRAG_LOOP_LOADING_ERROR:self.HLSError_str="Frag Loop Loading Error";break;case Hls.ErrorDetails.FRAG_DECRYPT_ERROR:self.HLSError_str="Decrypting Error:"+t.reason;break;case Hls.ErrorDetails.FRAG_PARSING_ERROR:self.HLSError_str="Parsing Error:"+t.reason;break;case Hls.ErrorDetails.KEY_LOAD_ERROR:self.HLSError_str="error while loading key "+t.frag.decryptdata.uri;break;case Hls.ErrorDetails.KEY_LOAD_TIMEOUT:self.HLSError_str="timeout while loading key "+t.frag.decryptdata.uri;break;case Hls.ErrorDetails.BUFFER_APPEND_ERROR:self.HLSError_str="Buffer Append Error";break;case Hls.ErrorDetails.BUFFER_ADD_CODEC_ERROR:self.HLSError_str="Buffer Add Codec Error for "+t.mimeType+":"+t.err.message;break;case Hls.ErrorDetails.BUFFER_APPENDING_ERROR:self.HLSError_str="Buffer Appending Error"}self.HLSError_str&&(console&&console.log(self.HLSError_str),self.info_do.allowToRemove_bl=!1,self.main_do.addChild(self.info_do),self.info_do.showText(self.HLSError_str),self.resizeHandler())}))};var recoverDecodingErrorDate,recoverSwapAudioCodecDate;this.setSource=function(e,t,o){if(self.isAPIReady_bl&&(self.videoSource_str=e,self.videoSourcePath_str=e,self.finalVideoPath_str=e,self.currentSecconds=0,clearInterval(self.tryHLS_int),clearTimeout(self.load360ScriptsId_to),-1!=e.indexOf("encrypt:")&&(e=atob(e.substr(8))),e!=self.prevVideoSource_str||t)){if(self.main_do.contains(self.info_do)&&self.main_do.removeChild(self.info_do),self.stop(),-1!=self.videoSourcePath_str.indexOf("vimeo.com")?(self.videoType_str=FWDEVPlayer.VIMEO,self.controller_do&&self.controller_do.setX(-5e3)):-1!=self.videoSourcePath_str.indexOf("youtube.")?(self.videoType_str=FWDEVPlayer.YOUTUBE,self.controller_do&&self.controller_do.setX(0)):-1!=self.videoSourcePath_str.indexOf(".jpg")||-1!=self.videoSourcePath_str.indexOf(".jpeg")||-1!=self.videoSourcePath_str.indexOf(".png")?(self.videoType_str=FWDEVPlayer.IMAGE,self.controller_do&&self.controller_do.setX(0)):-1!=self.videoSourcePath_str.toLowerCase().indexOf(".mp3")?(self.videoType_str=FWDEVPlayer.MP3,self.controller_do&&self.controller_do.setX(0)):-1!=self.videoSourcePath_str.toLowerCase().indexOf("http")?(self.videoType_str=FWDEVPlayer.IFRAME,self.controller_do&&self.controller_do.setX(0)):(self.controller_do&&self.controller_do.setX(0),self.isMobile_bl||FWDEVPlayer.hasHTMLHLS||-1==self.videoSourcePath_str.indexOf(".m3u8")?self.videoType_str=FWDEVPlayer.VIDEO:self.videoType_str=FWDEVPlayer.HLS_JS),-1!=self.videoSource_str.indexOf("youtube.")&&!self.ytb_do)return setTimeout(function(){self.showPreloader_bl&&(self.main_do.addChild(self.preloader_do),self.preloader_do.show(!0),self.largePlayButton_do&&self.largePlayButton_do.hide(),-1!=location.protocol.indexOf("file:")&&FWDEVPUtils.isIE&&self.main_do.addChild(self.info_do))},50),-1!=location.protocol.indexOf("file:")&&FWDEVPUtils.isIE?(self.info_do.allowToRemove_bl=!1,self.main_do.addChild(self.info_do),self.info_do.showText("This browser dosen't allow the Youtube API to run local, please test it online or in another browser like Firefox or Chrome."),void self.resizeHandler()):void self.setupYoutubeAPI();if(-1!=self.videoSource_str.indexOf("vimeo.")&&!self.isVimeoReady_bl)return-1!=location.protocol.indexOf("file:")?(self.info_do.allowToRemove_bl=!1,self.main_do.addChild(self.info_do),self.info_do.showText("This browser dosen't allow playing Vimeo videos local, please test online."),void self.resizeHandler()):(self.showPreloader_bl&&(self.main_do.addChild(self.preloader_do),self.preloader_do.show(!0)),self.largePlayButton_do&&self.largePlayButton_do.hide(),void self.setupVimeoPlayer());if(self.isGR=!1,self.is360=!1,o&&("360degreevideo"==o.toLowerCase()?(self.isGR=!1,self.is360=!0):"greenscreenvideo"==o.toLowerCase()&&(self.isGR=!0,self.is360=!1)),self.isGR||self.is360?(self.main_do.setBkColor("transparent"),self.videoScreen_do.setBkColor("transparent")):(self.main_do.setBkColor(self.backgroundColor_str),self.videoScreen_do.setBkColor(self.backgroundColor_str)),!(self.isMobile_bl||FWDEVPlayer.hasHTMLHLS||-1==self.videoSourcePath_str.indexOf(".m3u8")||self.isHLSJsLoaded_bl||FWDEVPlayer.isHLSJsLoaded_bl))return-1!=location.protocol.indexOf("file:")?(self.info_do.allowToRemove_bl=!1,self.main_do.addChild(self.info_do),self.info_do.showText("This browser dosen't allow playing HLS / live streaming videos local, please test online."),void self.resizeHandler()):((i=document.createElement("script")).src=self.data.hlsPath_str,i.onerror=function(){self.main_do.addChild(self.info_do),self.info_do.showText("Error loading HLS library <font color='#FF0000'>"+self.data.hlsPath_str+"</font>."),self.preloader_do.hide()},i.onload=function(){self.isHLSJsLoaded_bl=!0,FWDEVPlayer.isHLSJsLoaded_bl=!0,self.setupHLS(),self.setSource(self.videoSourcePath_str)},void document.head.appendChild(i));if(self.is360&&!self.isThreeJsOrbigLoaded_bl){if(FWDEVPUtils.isLocal)return self.main_do.addChild(self.info_do),self.info_do.showText("This browser dosen't allow playing 360 videos local, please test online."),void self.preloader_do.hide();if(!FWDEVPUtils.hasWEBGL)return self.main_do.addChild(self.info_do),self.info_do.showText("Playing 360 videos in this browser is not possible because it dosen't support WEBGL."),void self.preloader_do.hide();if(!self.isThreeJsLoaded_bl&&!FWDEVPlayer.hasThreeJsLoaded_bl){var i=document.createElement("script");return i.src=self.data.threeJsPath_str,i.onerror=function(){self.main_do.addChild(self.info_do),self.info_do.showText("Error loading 360 degree library <font color='#FF0000'>"+self.data.threeJsPath_str+"</font>."),self.preloader_do.hide()},i.onload=function(){self.isThreeJsOrbigLoaded_bl=!0;var e=document.createElement("script");e.src=self.data.threeJsControlsPath_str,e.onerror=function(){self.main_do.addChild(self.info_do),self.info_do.showText("Error loading three.js from <font color='#FF0000'>"+self.data.threeJsControlsPath_str+"</font>."),self.preloader_do.hide()},e.onload=function(){FWDEVPlayer.hasThreeJsLoaded_bl=!0,self.isThreeJsOrbitLoaded_bl=!0,self.isThreeJsOrbigLoaded_bl&&self.isThreeJsOrbitLoaded_bl&&self.setSource(self.data.videoSource_ar[self.data.startAtVideoSource].source,!1,self.data.videoSource_ar[self.data.startAtVideoSource].videoType),clearTimeout(self.load360ScriptsId_to),self.preloader_do.hide()},document.head.appendChild(e)},document.head.appendChild(i),void(this.load360ScriptsId_to=setTimeout(function(){self.showPreloader_bl&&self.preloader_do.show()},1e3))}}if(self.is360?self.dumyClick_do.getStyle().cursor="url("+self.data.handPath_str+"), default":self.dumyClick_do.getStyle().cursor="auto",self.prevVideoSource_str=e,!e)return self.main_do.addChild(self.info_do),void self.info_do.showText("Video source is not defined!");if(-1!=e.indexOf("youtube.")){var s=/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/;e=e.match(s)[2]}if(self.popupAds_do&&self.data.popupAds_ar&&self.popupAds_do.resetPopups(self.data.popupAds_ar),self.stop(e),self.controller_do&&self.data.subtitles_ar&&self.data.subtitles_ar.length>1&&(self.controller_do.updateSubtitleButtons(self.data.subtitles_ar,self.data.startAtSubtitle),self.data.subtitlePath_str=self.data.subtitles_ar[self.data.subtitles_ar.length-1-self.data.startAtSubtitle].source),self.controller_do&&!self.isQualityChanging_bl&&self.controller_do.disableSubtitleButton(),"00:00:00"!=self.data.scrubAtTimeAtFirstPlay&&(self.playAtTime_bl=!0),self.controller_do&&self.controller_do.downloadButton_do&&self.controller_do.downloadButton_do.disable(),self.controller_do&&self.controller_do.updateHexColorForScrubber(self.isAdd_bl),self.resizeHandler(),self.getVideoSource()&&self.dispatchEvent(FWDEVPlayer.UPDATE_VIDEO_SOURCE),self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME)return self.updateImageScreen(self.videoSourcePath_str),void(self.videoPoster_do&&self.videoPoster_do.setX(-5e3));if(self.main_do.contains(self.imageSceeenHolder_do)&&self.main_do.removeChild(self.imageSceeenHolder_do),self.main_do.contains(self.iFrame_do)&&self.main_do.removeChild(self.iFrame_do),self.videoPoster_do&&self.videoPoster_do.setX(0),self.isAdd_bl?self.setPlaybackRate(1):self.setPlaybackRate(self.data.defaultPlaybackRate_ar[self.data.startAtPlaybackIndex]),self.controller_do&&(self.videoType_str==FWDEVPlayer.VIMEO||self.videoType_str==FWDEVPlayer.HLS_JS||self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME?self.controller_do.removePlaybackRateButton():self.controller_do.addPlaybackRateButton()),self.controller_do&&self.data.showPlaybackRateButton_bl&&self.controller_do.updatePlaybackRateButtons(self.data.updatePlaybackRateButtons,self.data.startAtPlaybackIndex),self.videoType_str==FWDEVPlayer.VIMEO)return self.videoScreen_do&&self.videoScreen_do.setX(-5e3),self.audioScreen_do&&self.audioScreen_do.setX(-5e3),self.audioScreen_do.setVisible(!1),self.ytb_do&&self.ytb_do.ytb&&self.ytb_do.showDisable(),self.flash_do?(self.flash_do.setWidth(1),self.flash_do.setHeight(1)):self.videoScreen_do.setVisible(!1),self.vimeo_do.setSource(e),self.isMobile_bl?(self.videoPoster_do.hide(),self.largePlayButton_do&&self.largePlayButton_do.hide()):(self.setPosterSource(self.posterPath_str),self.videoPoster_do.show(),self.largePlayButton_do&&!self.data.showAnnotationsPositionTool_bl&&self.largePlayButton_do.show(),self.data.autoPlay_bl&&self.play()),self.getVideoSource()&&self.dispatchEvent(FWDEVPlayer.UPDATE_VIDEO_SOURCE),this.resizeHandler(),self.vimeo_do.iFrame_do.screen.style.left="0px",void self.vimeo_do.setX(0);if(self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do&&self.ytb_do.ytb&&self.ytb_do.ytb.cueVideoById)return self.ytb_do&&self.ytb_do.ytb&&self.ytb_do.hideDisable(),self.ytb_do.setX(0),self.flash_do?(self.flash_do.setWidth(1),self.flash_do.setHeight(1)):self.videoScreen_do.setVisible(!1),self.vimeo_do&&self.vimeo_do.setX(-5e3),self.videoScreen_do&&self.videoScreen_do.setX(-5e3),self.audioScreen_do&&self.audioScreen_do.setX(-5e3),self.audioScreen_do.setVisible(!1),self.ytb_do.setSource(e),self.isMobile_bl?(self.videoPoster_do.hide(),self.largePlayButton_d&&self.largePlayButton_do.hide()):(self.setPosterSource(self.posterPath_str),self.videoPoster_do.show(),self.largePlayButton_do&&!self.data.showAnnotationsPositionTool_bl&&self.largePlayButton_do.show(),self.data.autoPlay_bl&&self.play(),!self.isMobile_bl&&self.isAdd_bl&&self.play()),self.controller_do&&(self.controller_do.updatePreloaderBar(0),self.controller_do.addYtbQualityButton()),void(self.getVideoSource()&&self.dispatchEvent(FWDEVPlayer.UPDATE_VIDEO_SOURCE));if(-1==e.indexOf("google.")){var n=e.split(",");e=self.isMobile_bl&&void 0!=n[1]?n[1]:n[0]}if(self.finalVideoPath_str=e,self.videoType_str==FWDEVPlayer.MP3)return self.setPosterSource(self.posterPath_str),self.ytb_do&&self.ytb_do.ytb&&self.ytb_do.showDisable(),self.vimeo_do&&self.vimeo_do.setX(-5e3),self.ytb_do&&self.ytb_do.setX(-5e3),self.flash_do?(self.flash_do.setWidth(1),self.flash_do.setHeight(1)):self.videoScreen_do.setVisible(!1),self.videoPoster_do.show(),self.largePlayButton_do&&!self.data.showAnnotationsPositionTool_bl&&self.largePlayButton_do.show(),self.audioScreen_do.setX(0),self.audioScreen_do.setVisible(!0),self.showPreloader_bl&&self.preloader_do.hide(!0),self.audioScreen_do.setSource(e),self.data.autoPlay_bl&&self.play(),void(self.controller_do&&self.data.videoSource_ar&&self.data.videoSource_ar.length>1?(self.controller_do.updatePreloaderBar(0),self.controller_do.addYtbQualityButton(),self.controller_do.updateQuality(self.data.videoLabels_ar,self.data.videoLabels_ar[self.data.videoLabels_ar.length-1-self.data.startAtVideoSource])):self.controller_do&&self.controller_do.removeYtbQualityButton());(FWDEVPlayer.hasHTML5Video&&self.videoType_str==FWDEVPlayer.VIDEO||self.videoType_str==FWDEVPlayer.HLS_JS)&&(self.setPosterSource(self.posterPath_str),self.ytb_do&&self.ytb_do.ytb&&self.ytb_do.showDisable(),self.vimeo_do&&self.vimeo_do.setX(-5e3),self.ytb_do&&self.ytb_do.setX(-5e3),self.audioScreen_do&&self.audioScreen_do.setX(-5e3),self.audioScreen_do.setVisible(!1),self.videoPoster_do.show(),self.largePlayButton_do&&!self.data.showAnnotationsPositionTool_bl&&self.largePlayButton_do.show(),self.videoScreen_do.setX(0),self.videoScreen_do.setVisible(!0),self.showPreloader_bl&&self.preloader_do.hide(!0),self.videoType_str==FWDEVPlayer.HLS_JS?(self.videoScreen_do.setSource(e),self.videoScreen_do.initVideo(),self.setupHLS(),self.hlsJS.loadSource(self.videoSourcePath_str),self.hlsJS.attachMedia(self.videoScreen_do.video_el),self.hlsJS.on(Hls.Events.MANIFEST_PARSED,function(e){self.isHLSManifestReady_bl=!0,self.data.autoPlay_bl&&self.play()})):(self.videoScreen_do.setSource(e),self.data.autoPlay_bl&&self.play(),self.flash_do&&(self.flash_do.setWidth(1),self.flash_do.setHeight(1))),self.controller_do&&self.data.videoSource_ar&&self.data.videoSource_ar.length>1?(self.controller_do.updatePreloaderBar(0),self.controller_do.addYtbQualityButton(),self.controller_do.updateQuality(self.data.videoLabels_ar,self.data.videoLabels_ar[self.data.videoLabels_ar.length-1-self.data.startAtVideoSource])):self.controller_do&&self.controller_do.removeYtbQualityButton()),self.prevVideoSourcePath_str=self.videoSourcePath_str}},this.goFullScreen=function(){if(self.isAPIReady_bl&&self.displayType!=FWDEVPlayer.BACKGROUND_VIDEO){document.addEventListener&&(document.addEventListener("fullscreenchange",self.onFullScreenChange),document.addEventListener("mozfullscreenchange",self.onFullScreenChange),document.addEventListener("webkitfullscreenchange",self.onFullScreenChange),document.addEventListener("MSFullscreenChange",self.onFullScreenChange)),document.documentElement.requestFullScreen?self.main_do.screen.documentElement.requestFullScreen():document.documentElement.mozRequestFullScreen?self.main_do.screen.mozRequestFullScreen():document.documentElement.webkitRequestFullScreen?self.main_do.screen.webkitRequestFullScreen():document.documentElement.msRequestFullscreen&&self.main_do.screen.msRequestFullscreen(),self.disableClick(),self.main_do.getStyle().position="fixed",document.documentElement.style.overflow="hidden",self.main_do.getStyle().zIndex=9999999999998,self.isFullScreen_bl=!0,self.controller_do&&(self.controller_do.showNormalScreenButton(),self.controller_do.setNormalStateToFullScreenButton());var e=FWDEVPUtils.getScrollOffsets();self.lastX=e.x,self.lastY=e.y,window.scrollTo(0,0),self.isMobile_bl&&window.addEventListener("touchmove",self.disableFullScreenOnMobileHandler),self.dispatchEvent(FWDEVPlayer.GO_FULLSCREEN),self.resizeHandler()}},this.disableFullScreenOnMobileHandler=function(e){e.preventDefault&&e.preventDefault()},this.goNormalScreen=function(){self.isAPIReady_bl&&self.displayType!=FWDEVPlayer.BACKGROUND_VIDEO&&(document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),self.addMainDoToTheOriginalParent(),self.isFullScreen_bl=!1,self.resizeHandler())},this.addMainDoToTheOriginalParent=function(){self.isFullScreen_bl&&(document.removeEventListener&&(document.removeEventListener("fullscreenchange",self.onFullScreenChange),document.removeEventListener("mozfullscreenchange",self.onFullScreenChange),document.removeEventListener("webkitfullscreenchange",self.onFullScreenChange),document.removeEventListener("MSFullscreenChange",self.onFullScreenChange)),self.controller_do&&self.controller_do.setNormalStateToFullScreenButton(),self.displayType==FWDEVPlayer.RESPONSIVE||self.displayType==FWDEVPlayer.AFTER_PARENT?(FWDEVPUtils.isIEAndLessThen9?document.documentElement.style.overflow="auto":document.documentElement.style.overflow="visible",self.main_do.getStyle().position="relative",self.main_do.getStyle().zIndex=0):(self.main_do.getStyle().position="absolute",self.main_do.getStyle().zIndex=9999999999998),self.showCursor(),self.controller_do&&self.controller_do.showFullScreenButton(),window.scrollTo(self.lastX,self.lastY),FWDEVPUtils.isIE||setTimeout(function(){window.scrollTo(self.lastX,self.lastY)},150),self.isMobile_bl&&window.removeEventListener("touchmove",self.disableFullScreenOnMobileHandler),self.dispatchEvent(FWDEVPlayer.GO_NORMALSCREEN))},this.onFullScreenChange=function(e){document.fullScreen||document.msFullscreenElement||document.mozFullScreen||document.webkitIsFullScreen||document.msieFullScreen||(self.controller_do&&self.controller_do.showNormalScreenButton(),self.addMainDoToTheOriginalParent(),self.isFullScreen_bl=!1)},this.downloadVideo=function(){if(self.isAPIReady_bl){var e,t=self.data.videoSource_ar[self.data.startAtVideoSource].source;e=-1!=t.indexOf("/")?t.substr(t.lastIndexOf("/")+1):t,self.data.downloadVideo(t,e)}},this.setVideoSource=function(e,t){self.isAPIReady_bl&&(self.isAdd_bl=!1,self.data.videoSource_ar[self.data.startAtVideoSource].source=e,self.data.videoSource_ar[self.data.startAtVideoSource].videoType=t,self.setSource(e,!1,t))},this.getVideoSource=function(){if(self.isAPIReady_bl)return self.finalVideoPath_str},this.updateVolume=function(){self.isAPIReady_bl&&self.setVolume()},this.getPosterSource=function(){if(self.isAPIReady_bl)return self.posterPath_str},this.getCurrentTime=function(){return self.curTime?self.curTime:"00:00"},this.getTotalTime=function(){return self.totalTime?self.totalTime:"00:00"},this.setPlaybackRate=function(e){self.isAPIReady_bl&&(self.videoType_str==FWDEVPlayer.VIDEO&&self.videoScreen_do?self.videoScreen_do.setPlaybackRate(e):self.videoType_str==FWDEVPlayer.MP3&&self.audioScreen_do?self.audioScreen_do.setPlaybackRate(e):self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do&&self.ytb_do.ytb&&self.ytb_do.setPlaybackRate(e))},this.fillEntireVideoScreen=function(e){this.fillEntireVideoScreen_bl=e,this.resizeHandler()},this.updateHEXColors=function(e,t){self.isAPIReady_bl&&(self.controller_do.updateHEXColors(e,t),self.largePlayButton_do&&self.largePlayButton_do.updateHEXColors(e,t),self.shareWindow_do&&self.shareWindow_do.updateHEXColors(e,t),self.embedWindow_do&&self.embedWindow_do.updateHEXColors(e,t),self.adsSkip_do&&self.adsSkip_do.updateHEXColors(e,t))},this.hideCursor=function(){document.documentElement.style.cursor="none",document.getElementsByTagName("body")[0].style.cursor="none",self.isAdd_bl||(self.dumyClick_do.getStyle().cursor="none")},this.showCursor=function(){document.documentElement.style.cursor="auto",document.getElementsByTagName("body")[0].style.cursor="auto",self.isAdd_bl?self.dumyClick_do.setButtonMode(!0):self.is360?self.dumyClick_do.getStyle().cursor="url("+self.data.handPath_str+"), default":self.dumyClick_do.getStyle().cursor="auto"},this.addListener=function(e,t){if(void 0==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 o={};o.type=e,o.listener=t,o.target=this,this.listeners.events_ar.push(o)},this.dispatchEvent=function(e,t){if(null!=this.listeners){if(void 0==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");for(var o=0,i=this.listeners.events_ar.length;o<i;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e){if(t)for(var s in t)this.listeners.events_ar[o][s]=t[s];this.listeners.events_ar[o].listener.call(this,this.listeners.events_ar[o])}}},this.removeListener=function(e,t){if(void 0==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."+e);for(var o=0,i=this.listeners.events_ar.length;o<i;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e&&this.listeners.events_ar[o].listener===t){this.listeners.events_ar.splice(o,1);break}},self.cleanMainEvents=function(){window.removeEventListener?window.removeEventListener("resize",self.onResizeHandler):window.detachEvent&&window.detachEvent("onresize",self.onResizeHandler),clearTimeout(self.resizeHandlerId_to),clearTimeout(self.resizeHandler2Id_to),clearTimeout(self.hidePreloaderId_to),clearTimeout(self.orientationChangeId_to)};var args=FWDEVPUtils.getUrlArgs(window.location.search),embedTest=args.EVPInstanceName,tt=FWDEVPlayer.instaces_ar.length,video;if(embedTest)for(var i=0;i<tt;i++)if((video=FWDEVPlayer.instaces_ar[i]).props.instanceName==embedTest){var ws=FWDEVPUtils.getViewportSize(),dumy_do=new FWDEVPDisplayObject("div");dumy_do.setBkColor(video.props.backgroundColor),dumy_do.setWidth(ws.w),dumy_do.setHeight(ws.h),document.documentElement.style.overflow="hidden",document.getElementsByTagName("body")[0].style.overflow="hidden",FWDEVPUtils.isIEAndLessThen9?document.getElementsByTagName("body")[0].appendChild(dumy_do.screen):document.documentElement.appendChild(dumy_do.screen);break}self.init()};FWDEVPlayer.setPrototype=function(){FWDEVPlayer.prototype=new FWDEVPEventDispatcher},FWDEVPlayer.stopAllVideos=function(e){for(var t,o=FWDEVPlayer.instaces_ar.length,i=0;i<o;i++)(t=FWDEVPlayer.instaces_ar[i])!=e&&t.stop()},FWDEVPlayer.pauseAllVideos=function(e){for(var t,o=FWDEVPlayer.instaces_ar.length,i=0;i<o;i++)(t=FWDEVPlayer.instaces_ar[i])!=e&&t.pause()},FWDEVPlayer.hasHTML5VideoTestIsDone=!1,FWDEVPlayer.hasHTML5VideoTestIsDone||(FWDEVPlayer.hasHTML5Video=function(){var e=document.createElement("video"),t=!1;return e.canPlayType&&(t=Boolean("probably"==e.canPlayType("video/mp4")||"maybe"==e.canPlayType("video/mp4")),FWDEVPlayer.canPlayMp4=Boolean("probably"==e.canPlayType("video/mp4")||"maybe"==e.canPlayType("video/mp4")),FWDEVPlayer.canPlayOgg=Boolean("probably"==e.canPlayType("video/ogg")||"maybe"==e.canPlayType("video/ogg")),FWDEVPlayer.canPlayWebm=Boolean("probably"==e.canPlayType("video/webm")||"maybe"==e.canPlayType("video/webm"))),!!self.isMobile_bl||(FWDEVPlayer.hasHTML5VideoTestIsDone=!0,t)}()),FWDEVPlayer.hasHTMLHLS=function(){var e=document.createElement("video"),t=!1;return e.canPlayType&&(t=Boolean("probably"===e.canPlayType("application/vnd.apple.mpegurl")||"maybe"===e.canPlayType("application/vnd.apple.mpegurl"))),t}(),FWDEVPlayer.instaces_ar=[],FWDEVPlayer.curInstance=null,FWDEVPlayer.keyboardCurInstance=null,FWDEVPlayer.areInstancesCreated_bl=null,FWDEVPlayer.isYoutubeAPICreated_bl=!1,FWDEVPlayer.isEmbedded_bl=!1,FWDEVPlayer.PAUSE_ALL_VIDEOS="pause",FWDEVPlayer.STOP_ALL_VIDEOS="stop",FWDEVPlayer.DO_NOTHING="none",FWDEVPlayer.VIMEO="vimeo",FWDEVPlayer.YOUTUBE="youtube",FWDEVPlayer.VIDEO="video",FWDEVPlayer.MP3="mp3",FWDEVPlayer.IFRAME="iframe",FWDEVPlayer.SCRUB="scrub",FWDEVPlayer.BACKGROUND_VIDEO="backgroundvideo",FWDEVPlayer.READY="ready",FWDEVPlayer.STOP="stop",FWDEVPlayer.PLAY="play",FWDEVPlayer.PAUSE="pause",FWDEVPlayer.UPDATE="update",FWDEVPlayer.UPDATE_TIME="updateTime",FWDEVPlayer.UPDATE_VIDEO_SOURCE="updateVideoSource",FWDEVPlayer.UPDATE_POSTER_SOURCE="udpatePosterSource",FWDEVPlayer.ERROR="error",FWDEVPlayer.PLAY_COMPLETE="playComplete",FWDEVPlayer.VOLUME_SET="volumeSet",FWDEVPlayer.GO_FULLSCREEN="goFullScreen",FWDEVPlayer.GO_NORMALSCREEN="goNormalScreen",FWDEVPlayer.IMAGE="image",FWDEVPlayer.HLS_JS="HLS_JS",FWDEVPlayer.RESPONSIVE="responsive",FWDEVPlayer.FULL_SCREEN="fullscreen",FWDEVPlayer.AFTER_PARENT="afterparent",window.FWDEVPlayer=FWDEVPlayer}(window),function(e){var t=function(o,i,s,n){var r=this;t.prototype;this.img_img=null,this.logoImage_do=null,this.position_str=s,this.source_str=i,this.logoLink_str=o.data.logoLink_str,this.margins=n,this.isShowed_bl=!0,this.allowToShow_bl=!0,this.init=function(){"none"==r.logoLink_str?r.getStyle().pointerEvents="none":(r.setButtonMode(!0),r.screen.onclick=function(){e.open(r.logoLink_str,"_blank")}),r.logoImage_do=new FWDEVPDisplayObject("img"),r.img_img=new Image,r.img_img.onerror=null,r.img_img.onload=r.loadDone,r.img_img.src=r.source_str+"?"+(new Date).getTime(),r.hide()},this.loadDone=function(){r.setWidth(r.img_img.width),r.setHeight(r.img_img.height),r.logoImage_do.setScreen(r.img_img),r.addChild(r.logoImage_do),r.logoImage_do.setWidth(r.img_img.width),r.logoImage_do.setHeight(r.img_img.height),r.positionAndResize()},this.positionAndResize=function(){"topleft"==r.position_str?(r.finalX=r.margins,r.finalY=r.margins):"topright"==r.position_str?(r.finalX=o.stageWidth-r.w-r.margins,r.finalY=r.margins):"bottomright"==r.position_str?(r.finalX=o.stageWidth-r.w-r.margins,r.finalY=o.stageHeight-r.h-r.margins):"bottomleft"==r.position_str&&(r.finalX=r.margins,r.finalY=o.stageHeight-r.h-r.margins),r.setX(r.finalX),r.setY(r.finalY)},this.show=function(e){r.isShowed_bl||(r.isShowed_bl=!0,r.setVisible(!0),FWDAnimation.killTweensOf(r),e?FWDAnimation.to(r,.8,{alpha:1,ease:Expo.easeInOut}):r.setAlpha(1))},this.hide=function(e,t){(r.isShowed_bl||t)&&(r.isShowed_bl=!1,FWDAnimation.killTweensOf(r),e?FWDAnimation.to(r,.8,{alpha:0,ease:Expo.easeInOut,onComplete:function(){r.setVisible(!1)}}):(r.setAlpha(0),r.setVisible(!1)))},this.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div")},t.prototype=null,e.FWDEVPLogo=t}(window),function(e){var t=function(e,o){var i=this;t.prototype;this.adHolder_do=null,this.mainHolder_do=null,this.closeButton_do=null,this.buttons_ar=[],this.maxWidth=e.aopwWidth,this.maxHeight=e.aopwHeight+e.popwColseN_img.height+1,this.stageWidth=0,this.stageHeight=0,this.aopwSource=e.aopwSource,this.aopwTitle=e.aopwTitle,this.aopwTitleColor_str=e.aopwTitleColor_str,this.aopwBorderSize=e.aopwBorderSize,this.isShowed_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.init=function(){i.setBackfaceVisibility(),i.mainBar_do=new FWDEVPDisplayObject("div"),i.bar_do=new FWDEVPDisplayObject("div"),i.bar_do.getStyle().background="url('"+e.popwBarBackgroundPath_str+"')",i.adHolder_do=new FWDEVPDisplayObject("div"),i.adBk_do=new FWDEVPDisplayObject("div"),i.adBk_do.getStyle().background="url('"+e.popwWindowBackgroundPath_str+"')",FWDEVPSimpleButton.setPrototype(),i.closeButton_do=new FWDEVPSimpleButton(e.popwColseN_img,e.popwColseSPath_str,void 0,!0,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str),i.closeButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,i.closeButtonOnMouseUpHandler),i.title_do=new FWDEVPDisplayObject("div"),i.title_do.getStyle().width="100%",i.title_do.getStyle().textAlign="left",i.title_do.getStyle().fontFamily="Arial",i.title_do.getStyle().fontSize="14px",i.title_do.getStyle().fontWeight="100",i.title_do.getStyle().color=i.aopwTitleColor_str,i.title_do.setInnerHTML(i.aopwTitle),i.bar_do.addChild(i.title_do),i.addChild(i.adBk_do),i.mainBar_do.addChild(i.bar_do),i.mainBar_do.addChild(i.closeButton_do),i.mainBar_do.setHeight(i.closeButton_do.h),i.addChild(i.mainBar_do),i.addChild(i.adHolder_do),i.bar_do.setHeight(i.mainBar_do.h)},this.closeButtonOnMouseUpHandler=function(){i.isShowed_bl&&(i.hide(),o.play())},this.positionAndResize=function(){i.stageWidth=Math.min(o.stageWidth,i.maxWidth),i.stageHeight=Math.min(o.stageHeight,i.maxHeight);var e=1,t=o.stageWidth/i.maxWidth,s=o.stageHeight/i.maxHeight;t<s?e=t:t>s&&(e=s),e>1&&(e=1),i.stageWidth=e*i.maxWidth,i.stageHeight=e*i.maxHeight,i.setWidth(i.stageWidth),i.setHeight(i.stageHeight),i.setHeight(i.stageHeight),i.setX(Math.round((o.stageWidth-i.stageWidth)/2)),i.setY(Math.round((o.stageHeight-i.stageHeight)/2)),i.mainBar_do.setWidth(i.stageWidth),i.closeButton_do.setX(i.stageWidth-i.closeButton_do.w),i.bar_do.setWidth(i.stageWidth-i.closeButton_do.w-1),i.adBk_do.setWidth(i.stageWidth),i.adBk_do.setHeight(i.stageHeight-i.mainBar_do.h-1),i.adBk_do.setY(i.mainBar_do.h+1),i.adHolder_do.setWidth(i.stageWidth-2*i.aopwBorderSize),i.adHolder_do.setX(i.aopwBorderSize),i.adHolder_do.setY(i.mainBar_do.h+i.aopwBorderSize+1),i.adHolder_do.setHeight(i.stageHeight-i.mainBar_do.h-2*i.aopwBorderSize-1)},this.show=function(e){i.isShowed_bl||(i.isShowed_bl=!0,o.main_do.addChild(i),i.adHolder_do.setInnerHTML("<iframe width='100%' height='100%' scrolling='no' frameBorder='0' src="+i.aopwSource+"></iframe>"),i.positionAndResize(),i.title_do.setX(8),i.title_do.setY(Math.round((i.bar_do.h-i.title_do.getHeight())/2)))},this.showCompleteHandler=function(){},this.hide=function(){i.isShowed_bl&&(i.isShowed_bl=!1,o.main_do.contains(i)&&o.main_do.removeChild(i))},this.hideCompleteHandler=function(){o.main_do.removeChild(i),i.dispatchEvent(t.HIDE_COMPLETE)},this.updateHEXColors=function(e,t){i.closeButton_do.updateHEXColors(e,t)},this.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div")},t.HIDE_COMPLETE="hideComplete",t.prototype=null,e.FWDEVPOPWindow=t}(window),function(e){var t=function(e,o){var i=this;t.prototype;this.xhr=null,this.passColoseN_img=e.passColoseN_img,this.privateVideoPassword_str=e.privateVideoPassword_str,this.bk_do=null,this.mainHolder_do=null,this.passMainHolder_do=null,this.passMainHolderBk_do=null,this.passMainLabel_do=null,this.passLabel_do=null,this.passInput_do=null,this.closeButton_do=null,this.embedWindowBackground_str=e.embedWindowBackground_str,this.secondaryLabelsColor_str=e.secondaryLabelsColor_str,this.inputColor_str=e.inputColor_str,this.mainLabelsColor_str=e.mainLabelsColor_str,this.passButtonNPath_str=e.passButtonNPath_str,this.passButtonSPath_str=e.passButtonSPath_str,this.inputBackgroundColor_str=e.inputBackgroundColor_str,this.borderColor_str=e.borderColor_str,this.maxTextWidth=0,this.totalWidth=0,this.stageWidth=0,this.stageHeight=0,this.buttonWidth=28,this.buttonHeight=19,this.embedWindowCloseButtonMargins=e.embedWindowCloseButtonMargins,this.finalEmbedPath_str=null,this.isShowed_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.init=function(){i.setBackfaceVisibility(),i.mainHolder_do=new FWDEVPDisplayObject("div"),i.mainHolder_do.hasTransform3d_bl=!1,i.mainHolder_do.hasTransform2d_bl=!1,i.mainHolder_do.setBackfaceVisibility(),i.bk_do=new FWDEVPDisplayObject("div"),i.bk_do.getStyle().width="100%",i.bk_do.getStyle().height="100%",i.bk_do.setAlpha(.9),i.bk_do.getStyle().background="url('"+i.embedWindowBackground_str+"')",i.passMainHolder_do=new FWDEVPDisplayObject("div"),i.passMainHolderBk_do=new FWDEVPDisplayObject("div"),i.passMainHolderBk_do.getStyle().background="url('"+i.embedWindowBackground_str+"')",i.passMainHolderBk_do.getStyle().borderStyle="solid",i.passMainHolderBk_do.getStyle().borderWidth="1px",i.passMainHolderBk_do.getStyle().borderColor=i.borderColor_str,i.passMainLabel_do=new FWDEVPDisplayObject("div"),i.passMainLabel_do.setBackfaceVisibility(),i.passMainLabel_do.getStyle().fontFamily="Arial",i.passMainLabel_do.getStyle().fontSize="12px",i.passMainLabel_do.getStyle().color=i.mainLabelsColor_str,i.passMainLabel_do.getStyle().whiteSpace="nowrap",i.passMainLabel_do.getStyle().fontSmoothing="antialiased",i.passMainLabel_do.getStyle().webkitFontSmoothing="antialiased",i.passMainLabel_do.getStyle().textRendering="optimizeLegibility",i.passMainLabel_do.getStyle().padding="0px",i.passMainLabel_do.setInnerHTML("PRIVATE VIDEO"),i.passLabel_do=new FWDEVPDisplayObject("div"),i.passLabel_do.setBackfaceVisibility(),i.passLabel_do.getStyle().fontFamily="Arial",i.passLabel_do.getStyle().fontSize="12px",i.passLabel_do.getStyle().color=i.secondaryLabelsColor_str,i.passLabel_do.getStyle().whiteSpace="nowrap",i.passLabel_do.getStyle().fontSmoothing="antialiased",i.passLabel_do.getStyle().webkitFontSmoothing="antialiased",i.passLabel_do.getStyle().textRendering="optimizeLegibility",i.passLabel_do.getStyle().padding="0px",i.passLabel_do.setInnerHTML("Please enter password:"),i.passInput_do=new FWDEVPDisplayObject("input"),i.passInput_do.setBackfaceVisibility(),i.passInput_do.getStyle().fontFamily="Arial",i.passInput_do.getStyle().fontSize="12px",i.passInput_do.getStyle().backgroundColor=i.inputBackgroundColor_str,i.passInput_do.getStyle().color=i.inputColor_str,i.passInput_do.getStyle().outline=0,i.passInput_do.getStyle().whiteSpace="nowrap",i.passInput_do.getStyle().fontSmoothing="antialiased",i.passInput_do.getStyle().webkitFontSmoothing="antialiased",i.passInput_do.getStyle().textRendering="optimizeLegibility",i.passInput_do.getStyle().padding="6px",i.passInput_do.getStyle().paddingTop="4px",i.passInput_do.getStyle().paddingBottom="4px",i.passInput_do.screen.setAttribute("type","password"),FWDEVPSimpleSizeButton.setPrototype(),i.passButton_do=new FWDEVPSimpleSizeButton(i.passButtonNPath_str,i.passButtonSPath_str,i.buttonWidth,i.buttonHeight,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str),i.passButton_do.addListener(FWDEVPSimpleSizeButton.CLICK,i.passClickHandler),FWDEVPSimpleButton.setPrototype(),i.closeButton_do=new FWDEVPSimpleButton(i.passColoseN_img,e.embedWindowClosePathS_str,void 0,!0,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str),i.closeButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,i.closeButtonOnMouseUpHandler),i.addChild(i.mainHolder_do),i.mainHolder_do.addChild(i.bk_do),i.passMainHolder_do.addChild(i.passMainHolderBk_do),i.passMainHolder_do.addChild(i.passMainLabel_do),i.passMainHolder_do.addChild(i.passLabel_do),i.passMainHolder_do.addChild(i.passInput_do),i.passMainHolder_do.addChild(i.passButton_do),i.mainHolder_do.addChild(i.passMainHolder_do),i.mainHolder_do.addChild(i.closeButton_do)},this.closeButtonOnMouseUpHandler=function(){i.isShowed_bl&&i.hide()},this.positionAndResize=function(){i.stageWidth=o.stageWidth,i.stageHeight=o.stageHeight,i.maxTextWidth=Math.min(i.stageWidth-150,300),i.totalWidth=i.maxTextWidth+i.buttonWidth,i.positionFinal(),i.closeButton_do.setX(i.stageWidth-i.closeButton_do.w-i.embedWindowCloseButtonMargins),i.closeButton_do.setY(i.embedWindowCloseButtonMargins),i.setWidth(i.stageWidth),i.setHeight(i.stageHeight),i.mainHolder_do.setWidth(i.stageWidth),i.mainHolder_do.setHeight(i.stageHeight)},this.positionFinal=function(){var e,t,o=i.passLabel_do.getHeight();t=i.passMainLabel_do.getHeight(),i.passMainLabel_do.setX(16),i.passLabel_do.setX(16),i.passLabel_do.setY(t+14),i.passInput_do.setX(10),i.passInput_do.setWidth(parseInt(i.totalWidth-40-i.buttonWidth)),i.passInput_do.setY(i.passLabel_do.y+o+5),i.passButton_do.setX(10+i.passInput_do.w+20),i.passButton_do.setY(i.passLabel_do.y+o+5),i.passMainHolderBk_do.setY(i.passLabel_do.y-9),i.passMainHolderBk_do.setWidth(i.totalWidth-2),i.passMainHolderBk_do.setHeight(i.passButton_do.y+i.passButton_do.h-9),i.passMainHolder_do.setWidth(i.totalWidth),i.passMainHolder_do.setHeight(i.passButton_do.y+i.passButton_do.h+14),i.passMainHolder_do.setX(Math.round((i.stageWidth-i.totalWidth)/2)),e=i.passMainHolderBk_do.getHeight(),i.passMainHolder_do.setY(Math.round((i.stageHeight-e)/2)-10)},this.passClickHandler=function(){i.privateVideoPassword_str==FWDEVPUtils.MD5(i.passInput_do.screen.value)?i.dispatchEvent(t.CORRECT):FWDAnimation.isTweening(i.passInput_do.screen)||FWDAnimation.to(i.passInput_do.screen,.1,{css:{backgroundColor:"#FF0000"},yoyo:!0,repeat:3})},this.updateHEXColors=function(e,t){i.passButton_do.updateHEXColors(e,t),i.closeButton_do.updateHEXColors(e,t)},this.showInfo=function(e,t){i.infoText_do.setInnerHTML(e),i.passMainHolder_do.addChild(i.infoText_do),i.infoText_do.setWidth(i.buttonWidth),i.infoText_do.setHeight(i.buttonHeight-4),i.infoText_do.setX(i.passButton_do.x),i.infoText_do.setY(i.passButton_do.y-23),i.infoText_do.setAlpha(0),i.infoText_do.getStyle().color=t?"#FF0000":i.mainLabelsColor_str,FWDAnimation.killTweensOf(i.infoText_do),FWDAnimation.to(i.infoText_do,.16,{alpha:1,yoyo:!0,repeat:7})},this.show=function(e){i.isShowed_bl||(i.isShowed_bl=!0,o.main_do.addChild(i),i.passButton_do.setSelectedState(),i.passInput_do.setInnerHTML(""),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&o.main_do.setSelectable(!0),i.positionAndResize(),clearTimeout(i.hideCompleteId_to),clearTimeout(i.showCompleteId_to),i.mainHolder_do.setY(-i.stageHeight),i.showCompleteId_to=setTimeout(i.showCompleteHandler,900),setTimeout(function(){FWDAnimation.to(i.mainHolder_do,.8,{y:0,delay:.1,ease:Expo.easeInOut})},100))},this.showCompleteHandler=function(){},this.hide=function(){i.isShowed_bl&&(i.isShowed_bl=!1,o.customContextMenu_do&&o.customContextMenu_do.enable(),i.positionAndResize(),clearTimeout(i.hideCompleteId_to),clearTimeout(i.showCompleteId_to),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&o.main_do.setSelectable(!1),i.hideCompleteId_to=setTimeout(i.hideCompleteHandler,800),FWDAnimation.killTweensOf(i.mainHolder_do),FWDAnimation.to(i.mainHolder_do,.8,{y:-i.stageHeight,ease:Expo.easeInOut}))},this.hideCompleteHandler=function(){o.main_do.removeChild(i),i.dispatchEvent(t.HIDE_COMPLETE)},this.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div")},t.ERROR="error",t.CORRECT="correct",t.HIDE_COMPLETE="hideComplete",t.prototype=null,e.FWDEVPPassword=t}(window),function(){var e=function(t,o,i,s,n,r,l,a,d,u){var h=this;e.prototype;this.closeButton_do,this.image_do,this.imageSource=o,this.link=n,this.target=r,this.start=i,this.end=s,this.finalW=0,this.finalH=0,this.id=l,this.showPopupAdsCloseButton_bl=u,this.popupAddCloseNPath_str=a,this.popupAddCloseSPath_str=d,this.isClosed_bl=!1,this.isLoaded_bl=!1,this.isShowed_bl=!1,this.init=function(){this.image=new Image,this.image.src=this.imageSource,this.image.onload=this.onLoadHandler,h.link&&h.setButtonMode(!0),h.showPopupAdsCloseButton_bl&&(FWDEVPSimpleSizeButton.setPrototype(),h.closeButton_do=new FWDEVPSimpleSizeButton(h.popupAddCloseNPath_str,h.popupAddCloseSPath_str,21,21),h.closeButton_do.addListener(FWDEVPSimpleSizeButton.CLICK,h.closeClickButtonCloseHandler))},this.closeClickButtonCloseHandler=function(){h.hide(),h.isClosed_bl=!0},this.clickHandler=function(){h.link&&(t.parent.pause(),window.open(h.link,h.target))},this.onLoadHandler=function(){h.originalW=h.image.width,h.originalH=h.image.height,h.image_do=new FWDEVPDisplayObject("img"),h.image_do.setScreen(h.image),h.image_do.setWidth(h.originalW),h.image_do.setHeight(h.originalH),h.addChild(h.image_do),h.isLoaded_bl=!0,h.closeButton_do&&(h.addChild(h.closeButton_do),h.closeButton_do.setX(-300)),h.screen.addEventListener?h.image_do.screen.addEventListener("click",h.clickHandler):h.image_do.screen.attachEvent("onclick",h.clickHandler)},this.hide=function(e){if(this.isShowed_bl){this.isShowed_bl=!1;var o=Math.min(1,t.parent.tempVidStageWidth/h.originalW);parseInt(o*h.originalH);finalY=parseInt(t.parent.tempVidStageHeight),t.setY(finalY),FWDAnimation.killTweensOf(t),e?(t.removeChild(h),t.setWidth(0),t.setHeight(0)):(h.setWidth(0),h.setHeight(0),t.setVisible(!1),h.setVisible(!1))}},this.show=function(){this.isShowed_bl||this.isClosed_bl||!h.isLoaded_bl||(this.isShowed_bl=!0,setTimeout(function(){FWDAnimation.killTweensOf(t),t.setVisible(!0),h.setVisible(!0);var e=Math.min(1,t.parent.tempVidStageWidth/h.originalW),o=parseInt(e*h.originalH)-2;t.parent.controller_do.isShowed_bl?finalY=parseInt(t.parent.tempVidStageHeight-t.parent.controller_do.h-h.originalH*e+2+o):finalY=parseInt(t.parent.tempVidStageHeight-h.originalH*e+2+o),t.setY(finalY),h.resizeAndPosition(!0)},100))},this.resizeAndPosition=function(e){if(h.isLoaded_bl&&!h.isClosed_bl&&h.isShowed_bl){FWDEVPUtils.isIEAndLessThen9;var o,i=1;i=Math.min(1,t.parent.tempVidStageWidth/h.originalW),h.finalW=parseInt(i*h.originalW),h.finalH=parseInt(i*h.originalH),h.finalW==h.prevFinalW&&h.finalH==h.prevFinalH||(h.setWidth(h.finalW),h.setHeight(h.finalH),h.image_do.setWidth(h.finalW),h.image_do.setHeight(h.finalH),o=t.parent.controller_do?t.parent.controller_do.isShowed_bl?parseInt(t.parent.tempVidStageHeight-t.parent.controller_do.h-h.originalH*i-10):parseInt(t.parent.tempVidStageHeight-h.originalH*i-10):parseInt(t.parent.tempVidStageHeight-h.originalH*i),t.setX(parseInt((t.parent.tempVidStageWidth-h.finalW)/2)),FWDAnimation.killTweensOf(t),e?FWDAnimation.to(t,.8,{y:o,ease:Expo.easeInOut}):t.setY(o),h.closeButton_do&&(h.closeButton_do.setY(2),h.closeButton_do.setX(parseInt(h.finalW-21-2))),h.prevFinalW=h.finalW,h.prevFinallH=h.finalH,t.setWidth(h.finalW),t.setHeight(h.finalH))}},h.init()};e.setPrototype=function(){e.prototype=new FWDEVPDisplayObject("div")},e.MOUSE_OVER="onMouseOver",e.MOUSE_OUT="onMouseOut",e.CLICK="onClick",e.prototype=null,window.FWDEVPPopupAddButton=e}(window),function(e){var t=function(e,o){var i=this;t.prototype;this.parent=e,this.main_do=null,this.reader=null,this.subtitiles_ar=null,this.totalAds=0,i.popupAds_ar,i.popupAdsButtons_ar,this.hasText_bl=!1,this.isLoaded_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,this.showSubtitleByDefault_bl=o.showSubtitleByDefault_bl,this.setSizeOnce_bl=!1,i.init=function(){i.setOverflow("visible"),i.getStyle().cursor="default",i.setBkColor("#FF0000"),i.setVisible(!1)},this.resetPopups=function(e){i.hideAllPopupButtons(!0),i.popupAds_ar=e,i.totalAds=i.popupAds_ar.length;var t;i.popupAdsButtons_ar=[];for(var s=0;s<i.totalAds;s++)FWDEVPPopupAddButton.setPrototype(),t=new FWDEVPPopupAddButton(i,i.popupAds_ar[s].imagePath,i.popupAds_ar[s].timeStart,i.popupAds_ar[s].timeEnd,i.popupAds_ar[s].link,i.popupAds_ar[s].trget,s,o.popupAddCloseNPath_str,o.popupAddCloseSPath_str,o.showPopupAdsCloseButton_bl),i.popupAdsButtons_ar[s]=t,i.addChild(t)},this.update=function(e){if(0!=i.totalAds)for(var t,o=0;o<i.totalAds;o++)e>=(t=i.popupAdsButtons_ar[o]).start&&e<=t.end?t.show():t.hide()},this.position=function(e){if(0!=i.totalAds)for(var t=0;t<i.totalAds;t++)i.popupAdsButtons_ar[t].resizeAndPosition(e)},this.hideAllPopupButtons=function(e){if(0!=i.totalAds){for(var t=0;t<i.totalAds;t++)i.popupAdsButtons_ar[t].hide(e);e&&(i.popupAdsButtons_ar=null,i.totalAds=0)}},i.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div")},t.LOAD_ERROR="error",t.LOAD_COMPLETE="complete",t.prototype=null,e.FWDEVPPopupAds=t}(window),function(e){var t=function(e,o,i,s){var n=this;t.prototype;this.img_img=new Image,this.img_do=null,this.imgW=0,this.imgH=0,this.finalW=0,this.finalH=0,this.finalX=0,this.finalY=0,this.curPath_str,this.backgroundColor_str=o,this.fillEntireScreenWithPoster_bl=s,this.isTransparent_bl=!1,this.showPoster_bl=i,this.showOrLoadOnMobile_bl=!1,this.isShowed_bl=!0,this.allowToShow_bl=!0,this.isMobile_bl=FWDEVPUtils.isMobile,this.init=function(){n.img_img=new Image,n.img_do=new FWDEVPDisplayObject("img"),n.hide(),n.setBkColor(n.backgroundColor_str)},this.positionAndResize=function(){if(e.stageWidth&&(n.setWidth(e.stageWidth),n.setHeight(e.stageHeight),n.imgW)){var t,o=e.stageWidth/n.imgW,i=e.stageHeight/n.imgH;t=n.fillEntireScreenWithPoster_bl?o>=i?o:i:o<=i?o:i,n.finalW=Math.round(t*n.imgW),n.finalH=Math.round(t*n.imgH),n.finalX=parseInt((e.stageWidth-n.finalW)/2),n.finalY=parseInt((e.stageHeight-n.finalH)/2),n.img_do.setX(n.finalX),n.img_do.setY(n.finalY),n.img_do.setWidth(n.finalW),n.img_do.setHeight(n.finalH)}},this.setPoster=function(e){return e&&""==FWDEVPUtils.trim(e)||"none"==e?(n.showOrLoadOnMobile_bl=!0,n.isTransparent_bl=!0,void n.show()):"youtubemobile"==e?(n.isTransparent_bl=!1,n.showOrLoadOnMobile_bl=!1,n.img_img.src=null,void(n.imgW=0)):e==n.curPath_str?(n.isTransparent_bl=!1,n.showOrLoadOnMobile_bl=!0,void n.show()):(n.isTransparent_bl=!1,n.showOrLoadOnMobile_bl=!0,n.curPath_str=e,n.allowToShow_bl&&(n.isShowed_bl=!1),void(e&&(n.img_do&&(n.img_do.src=""),n.img_img.onload=n.posterLoadHandler,n.img_img.src=n.curPath_str)))},this.posterLoadHandler=function(e){n.imgW=n.img_img.width,n.imgH=n.img_img.height,n.img_do.setScreen(n.img_img),n.addChild(n.img_do),n.show(),n.positionAndResize()},this.show=function(e){n.allowToShow_bl&&!n.isShowed_bl&&n.showOrLoadOnMobile_bl&&(n.isShowed_bl=!0,n.isTransparent_bl?0!=n.alpha&&n.setAlpha(0):1!=n.alpha&&n.setAlpha(1),n.setVisible(!0),n.isMobile_bl||n.isTransparent_bl||(FWDAnimation.killTweensOf(n),n.setAlpha(0),FWDAnimation.to(n,.6,{alpha:1,delay:.4})),n.positionAndResize())},this.hide=function(){n.isShowed_bl&&(n.isShowed_bl=!1,n.setVisible(!1))},this.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div")},t.prototype=null,e.FWDEVPPoster=t}(window),function(e){var t=function(e,o,i,s,n){var r=this;t.prototype;this.imageSource_img=e,this.image_sdo=null,this.segmentWidth=o,this.segmentHeight=i,this.totalSegments=s,this.animDelay=n||300,this.count=0,this.delayTimerId_int,this.isShowed_bl=!1,this.init=function(){r.setWidth(r.segmentWidth),r.setHeight(r.segmentHeight),r.image_sdo=new FWDEVPDisplayObject("img"),r.image_sdo.setScreen(r.imageSource_img),r.addChild(r.image_sdo),r.hide(!1)},this.start=function(){null!=r&&(clearInterval(r.delayTimerId_int),r.delayTimerId_int=setInterval(r.updatePreloader,r.animDelay))},this.stop=function(){clearInterval(r.delayTimerId_int)},this.updatePreloader=function(){if(null!=r){++r.count>r.totalSegments-1&&(r.count=0);var e=r.count*r.segmentWidth;r.image_sdo.setX(-e)}},this.show=function(){r.isShowed_bl||(r.setVisible(!0),r.start(),FWDAnimation.killTweensOf(r),FWDAnimation.to(r,1,{alpha:1,delay:.2}),r.isShowed_bl=!0)},this.hide=function(e){r.isShowed_bl&&(FWDAnimation.killTweensOf(this),e?FWDAnimation.to(this,1,{alpha:0,onComplete:r.onHideComplete}):(r.setVisible(!1),r.setAlpha(0)),r.isShowed_bl=!1)},this.onHideComplete=function(){r.setVisible(!1),r.stop(),r.dispatchEvent(t.HIDE_COMPLETE)},this.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div")},t.HIDE_COMPLETE="hideComplete",t.prototype=null,e.FWDEVPPreloader=t}(window),function(e){var t=function(o,i){var s=this;t.prototype;this.embedColoseN_img=o.embedColoseN_img,this.bk_do=null,this.mainHolder_do=null,this.closeButton_do=null,this.buttons_ar=[],this.embedWindowBackground_str=o.embedWindowBackground_str,this.embedWindowCloseButtonMargins=o.embedWindowCloseButtonMargins,this.totalWidth=0,this.stageWidth=0,this.stageHeight=0,this.minMarginXSpace=20,this.hSpace=20,this.minHSpace=10,this.vSpace=15,this.isShowed_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.init=function(){s.setBackfaceVisibility(),s.mainHolder_do=new FWDEVPDisplayObject("div"),s.mainHolder_do.hasTransform3d_bl=!1,s.mainHolder_do.hasTransform2d_bl=!1,s.mainHolder_do.setBackfaceVisibility(),s.bk_do=new FWDEVPDisplayObject("div"),s.bk_do.getStyle().width="100%",s.bk_do.getStyle().height="100%",s.bk_do.setAlpha(.9),s.bk_do.getStyle().background="url('"+s.embedWindowBackground_str+"')",FWDEVPSimpleButton.setPrototype(),s.closeButton_do=new FWDEVPSimpleButton(o.shareClooseN_img,o.embedWindowClosePathS_str,void 0,!0,o.useHEXColorsForSkin_bl,o.normalButtonsColor_str,o.selectedButtonsColor_str),s.closeButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,s.closeButtonOnMouseUpHandler),s.addChild(s.mainHolder_do),s.mainHolder_do.addChild(s.bk_do),s.mainHolder_do.addChild(s.closeButton_do),this.setupButtons()},this.closeButtonOnMouseUpHandler=function(){s.isShowed_bl&&s.hide()},this.positionAndResize=function(){s.stageWidth=i.stageWidth,s.stageHeight=i.stageHeight,s.closeButton_do.setX(s.stageWidth-s.closeButton_do.w-s.embedWindowCloseButtonMargins),s.closeButton_do.setY(s.embedWindowCloseButtonMargins),s.setWidth(s.stageWidth),s.setHeight(s.stageHeight),s.mainHolder_do.setWidth(s.stageWidth),s.mainHolder_do.setHeight(s.stageHeight),s.positionButtons()},this.setupButtons=function(){FWDEVPSimpleButton.setPrototype(),s.facebookButton_do=new FWDEVPSimpleButton(o.facebookN_img,o.facebookSPath_str,void 0,!0,o.useHEXColorsForSkin_bl,o.normalButtonsColor_str,o.selectedButtonsColor_str),s.facebookButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,s.facebookOnMouseUpHandler),this.buttons_ar.push(s.facebookButton_do),FWDEVPSimpleButton.setPrototype(),s.googleButton_do=new FWDEVPSimpleButton(o.googleN_img,o.googleSPath_str,void 0,!0,o.useHEXColorsForSkin_bl,o.normalButtonsColor_str,o.selectedButtonsColor_str),s.googleButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,s.googleOnMouseUpHandler),this.buttons_ar.push(s.googleButton_do),FWDEVPSimpleButton.setPrototype(),s.twitterButton_do=new FWDEVPSimpleButton(o.twitterN_img,o.twitterSPath_str,void 0,!0,o.useHEXColorsForSkin_bl,o.normalButtonsColor_str,o.selectedButtonsColor_str),s.twitterButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,s.twitterOnMouseUpHandler),this.buttons_ar.push(s.twitterButton_do),FWDEVPSimpleButton.setPrototype(),s.likedinButton_do=new FWDEVPSimpleButton(o.likedInkN_img,o.likedInSPath_str,void 0,!0,o.useHEXColorsForSkin_bl,o.normalButtonsColor_str,o.selectedButtonsColor_str),s.likedinButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,s.likedinOnMouseUpHandler),this.buttons_ar.push(s.likedinButton_do),FWDEVPSimpleButton.setPrototype(),s.bufferButton_do=new FWDEVPSimpleButton(o.bufferkN_img,o.bufferSPath_str,void 0,!0,o.useHEXColorsForSkin_bl,o.normalButtonsColor_str,o.selectedButtonsColor_str),s.bufferButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,s.bufferOnMouseUpHandler),this.buttons_ar.push(s.bufferButton_do),FWDEVPSimpleButton.setPrototype(),s.diggButton_do=new FWDEVPSimpleButton(o.diggN_img,o.diggSPath_str,void 0,!0,o.useHEXColorsForSkin_bl,o.normalButtonsColor_str,o.selectedButtonsColor_str),s.diggButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,s.diggOnMouseUpHandler),this.buttons_ar.push(s.diggButton_do),FWDEVPSimpleButton.setPrototype(),s.redditButton_do=new FWDEVPSimpleButton(o.redditN_img,o.redditSPath_str,void 0,!0,o.useHEXColorsForSkin_bl,o.normalButtonsColor_str,o.selectedButtonsColor_str),s.redditButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,s.redditOnMouseUpHandler),this.buttons_ar.push(s.redditButton_do),FWDEVPSimpleButton.setPrototype(),s.thumbrlButton_do=new FWDEVPSimpleButton(o.thumbrlN_img,o.thumbrlSPath_str,void 0,!0,o.useHEXColorsForSkin_bl,o.normalButtonsColor_str,o.selectedButtonsColor_str),s.thumbrlButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,s.thumbrlOnMouseUpHandler),this.buttons_ar.push(s.thumbrlButton_do),s.mainHolder_do.addChild(s.facebookButton_do),s.mainHolder_do.addChild(s.googleButton_do),s.mainHolder_do.addChild(s.twitterButton_do),s.mainHolder_do.addChild(s.likedinButton_do),s.mainHolder_do.addChild(s.bufferButton_do),s.mainHolder_do.addChild(s.diggButton_do),s.mainHolder_do.addChild(s.redditButton_do),s.mainHolder_do.addChild(s.thumbrlButton_do)},this.facebookOnMouseUpHandler=function(){var t="http://www.facebook.com/share.php?u="+encodeURIComponent(location.href);e.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},this.googleOnMouseUpHandler=function(){var t="https://plus.google.com/share?url="+encodeURIComponent(location.href);e.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},this.twitterOnMouseUpHandler=function(){var t="http://twitter.com/home?status="+encodeURIComponent(location.href);e.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},this.likedinOnMouseUpHandler=function(){var t="https://www.linkedin.com/cws/share?url="+location.href;e.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},this.bufferOnMouseUpHandler=function(){var t="https://buffer.com/add?url="+location.href;e.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},this.diggOnMouseUpHandler=function(){var t="http://digg.com/submit?url="+location.href;e.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},this.redditOnMouseUpHandler=function(){var t="https://www.reddit.com/?submit="+location.href;e.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},this.thumbrlOnMouseUpHandler=function(){var t="http://www.tumblr.com/share/link?url="+location.href;e.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},this.positionButtons=function(){var e,t,o,i=[],n=[],r=[],l=0,a=0,d=0;i[d]=[0],n[d]=s.buttons_ar[0].totalWidth,r[d]=s.buttons_ar[0].totalWidth,s.totalButtons=s.buttons_ar.length;for(u=1;u<s.totalButtons;u++)e=s.buttons_ar[u],n[d]+e.totalWidth+s.minHSpace>s.stageWidth-s.minMarginXSpace?(i[++d]=[],i[d].push(u),n[d]=e.totalWidth,r[d]=e.totalWidth):(i[d].push(u),n[d]+=e.totalWidth+s.minHSpace,r[d]+=e.totalWidth);l=parseInt((s.stageHeight-((d+1)*(e.totalHeight+s.vSpace)-s.vSpace))/2);for(var u=0;u<d+1;u++){var h,_=0;if(i[u].length>1){h=Math.min((s.stageWidth-s.minMarginXSpace-r[u])/(i[u].length-1),s.hSpace);var c=r[u]+h*(i[u].length-1);_=parseInt((s.stageWidth-c)/2)}else _=parseInt((s.stageWidth-n[u])/2);u>0&&(l+=e.h+s.vSpace);for(var f=0;f<i[u].length;f++)e=s.buttons_ar[i[u][f]],o=0==f?_:(t=s.buttons_ar[i[u][f]-1]).finalX+t.totalWidth+h,e.finalX=o,e.finalY=l,a<e.finalY&&(a=e.finalY),s.buttonsBarTotalHeight=a+e.totalHeight+s.startY,e.setX(e.finalX),e.setY(e.finalY)}},this.show=function(e){s.isShowed_bl||(s.isShowed_bl=!0,i.main_do.addChild(s),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&i.main_do.setSelectable(!0),s.positionAndResize(),clearTimeout(s.hideCompleteId_to),clearTimeout(s.showCompleteId_to),s.mainHolder_do.setY(-s.stageHeight),s.showCompleteId_to=setTimeout(s.showCompleteHandler,900),setTimeout(function(){FWDAnimation.to(s.mainHolder_do,.8,{y:0,delay:.1,ease:Expo.easeInOut})},100))},this.showCompleteHandler=function(){},this.hide=function(){s.isShowed_bl&&(s.isShowed_bl=!1,i.customContextMenu_do&&i.customContextMenu_do.enable(),s.positionAndResize(),clearTimeout(s.hideCompleteId_to),clearTimeout(s.showCompleteId_to),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&i.main_do.setSelectable(!1),s.hideCompleteId_to=setTimeout(s.hideCompleteHandler,800),FWDAnimation.killTweensOf(s.mainHolder_do),FWDAnimation.to(s.mainHolder_do,.8,{y:-s.stageHeight,ease:Expo.easeInOut}))},this.hideCompleteHandler=function(){i.main_do.removeChild(s),s.dispatchEvent(t.HIDE_COMPLETE)},this.updateHEXColors=function(e,t){s.closeButton_do.updateHEXColors(e,t),s.facebookButton_do.updateHEXColors(e,t),s.googleButton_do.updateHEXColors(e,t),s.twitterButton_do.updateHEXColors(e,t),s.likedinButton_do.updateHEXColors(e,t),s.bufferButton_do.updateHEXColors(e,t),s.diggButton_do.updateHEXColors(e,t),s.redditButton_do.updateHEXColors(e,t),s.thumbrlButton_do.updateHEXColors(e,t)},this.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div")},t.HIDE_COMPLETE="hideComplete",t.prototype=null,e.FWDEVPShareWindow=t}(window),function(e){var t=function(e,o,i,s,n,r,l){var a=this;t.prototype;this.nImg=e,this.sPath_str=o,this.dPath_str=i,this.n_sdo,this.s_sdo,this.d_sdo,this.toolTipLabel_str,this.totalWidth=this.nImg.width,this.totalHeight=this.nImg.height,this.useHEXColorsForSkin_bl=n,this.normalButtonsColor_str=r,this.selectedButtonsColor_str=l,this.isShowed_bl=!0,this.isSetToDisabledState_bl=!1,this.isDisabled_bl=!1,this.isDisabledForGood_bl=!1,this.isSelectedFinal_bl=!1,this.isActive_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,this.allowToCreateSecondButton_bl=!a.isMobile_bl||a.hasPointerEvent_bl||s,a.init=function(){a.setupMainContainers()},a.setupMainContainers=function(){if(a.useHEXColorsForSkin_bl?(a.n_sdo=new FWDEVPTransformDisplayObject("div"),a.n_sdo.setWidth(a.totalWidth),a.n_sdo.setHeight(a.totalHeight),a.n_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(a.nImg,a.normalButtonsColor_str).canvas,a.n_sdo.screen.appendChild(a.n_sdo_canvas),a.addChild(a.n_sdo)):(a.n_sdo=new FWDEVPTransformDisplayObject("img"),a.n_sdo.setScreen(a.nImg),a.addChild(a.n_sdo)),a.allowToCreateSecondButton_bl){a.img1=new Image,a.img1.src=a.sPath_str;var e=new Image;a.sImg=e,a.useHEXColorsForSkin_bl?(a.s_sdo=new FWDEVPTransformDisplayObject("div"),a.s_sdo.setWidth(a.totalWidth),a.s_sdo.setHeight(a.totalHeight),a.img1.onload=function(){a.s_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(a.img1,a.selectedButtonsColor_str).canvas,a.s_sdo.screen.appendChild(a.s_sdo_canvas)},a.s_sdo.setAlpha(0),a.addChild(a.s_sdo)):(a.s_sdo=new FWDEVPDisplayObject("img"),a.s_sdo.setScreen(a.img1),a.s_sdo.setWidth(a.totalWidth),a.s_sdo.setHeight(a.totalHeight),a.s_sdo.setAlpha(0),a.addChild(a.s_sdo)),a.dPath_str&&(e.src=a.dPath_str,a.d_sdo=new FWDEVPDisplayObject("img"),a.d_sdo.setScreen(e),a.d_sdo.setWidth(a.totalWidth),a.d_sdo.setHeight(a.totalHeight),a.d_sdo.setX(-100),a.addChild(a.d_sdo))}a.setWidth(a.totalWidth),a.setHeight(a.totalHeight),a.setButtonMode(!0),a.screen.style.yellowOverlayPointerEvents="none",a.hasPointerEvent_bl?(a.screen.addEventListener("pointerup",a.onMouseUp),a.screen.addEventListener("pointerover",a.onMouseOver),a.screen.addEventListener("pointerout",a.onMouseOut)):a.screen.addEventListener&&(a.isMobile_bl||(a.screen.addEventListener("mouseover",a.onMouseOver),a.screen.addEventListener("mouseout",a.onMouseOut),a.screen.addEventListener("mouseup",a.onMouseUp)),a.screen.addEventListener("touchend",a.onMouseUp))},a.onMouseOver=function(e){if(a.dispatchEvent(t.SHOW_TOOLTIP,{e:e}),!(a.isDisabledForGood_bl||e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE&&"mouse"!=e.pointerType)){if(a.isDisabled_bl||a.isSelectedFinal_bl)return;a.dispatchEvent(t.MOUSE_OVER,{e:e}),a.setSelectedState()}},a.onMouseOut=function(e){if(!(a.isDisabledForGood_bl||e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE&&"mouse"!=e.pointerType)){if(a.isDisabled_bl||a.isSelectedFinal_bl)return;a.dispatchEvent(t.MOUSE_OUT,{e:e}),a.setNormalState()}},a.onMouseUp=function(e){a.isDisabledForGood_bl||(e.preventDefault&&e.preventDefault(),a.isDisabled_bl||2==e.button||a.dispatchEvent(t.MOUSE_UP,{e:e}))},a.setSelected=function(){a.isSelectedFinal_bl=!0,a.s_sdo&&(FWDAnimation.killTweensOf(a.s_sdo),FWDAnimation.to(a.s_sdo,.8,{alpha:1,ease:Expo.easeOut}))},a.setUnselected=function(){a.isSelectedFinal_bl=!1,a.s_sdo&&FWDAnimation.to(a.s_sdo,.8,{alpha:0,delay:.1,ease:Expo.easeOut})},this.setNormalState=function(){FWDAnimation.killTweensOf(a.s_sdo),FWDAnimation.to(a.s_sdo,.5,{alpha:0,ease:Expo.easeOut})},this.setSelectedState=function(){FWDAnimation.killTweensOf(a.s_sdo),FWDAnimation.to(a.s_sdo,.5,{alpha:1,delay:.1,ease:Expo.easeOut})},this.setDisabledState=function(){a.isSetToDisabledState_bl||(a.isSetToDisabledState_bl=!0,a.d_sdo&&a.d_sdo.setX(0))},this.setEnabledState=function(){a.isSetToDisabledState_bl&&(a.isSetToDisabledState_bl=!1,a.d_sdo&&a.d_sdo.setX(-100))},this.disable=function(){a.isDisabledForGood_bl||a.isDisabled_bl||(a.isDisabled_bl=!0,a.setButtonMode(!1),FWDAnimation.killTweensOf(a),FWDAnimation.to(a,.6,{alpha:.4}),a.setNormalState())},this.enable=function(){!a.isDisabledForGood_bl&&a.isDisabled_bl&&(a.isDisabled_bl=!1,a.setButtonMode(!0),FWDAnimation.killTweensOf(a),FWDAnimation.to(a,.6,{alpha:1}))},this.disableForGood=function(){a.isDisabledForGood_bl=!0,a.setButtonMode(!1)},this.showDisabledState=function(){0!=a.d_sdo.x&&a.d_sdo.setX(0)},this.hideDisabledState=function(){-100!=a.d_sdo.x&&a.d_sdo.setX(-100)},this.show=function(){a.isShowed_bl||(a.isShowed_bl=!0,FWDAnimation.killTweensOf(a),FWDEVPUtils.isIEAndLessThen9?FWDEVPUtils.isIEAndLessThen9?a.setVisible(!0):(a.setAlpha(0),FWDAnimation.to(a,.4,{alpha:1,delay:.4}),a.setVisible(!0)):FWDEVPUtils.isIEWebKit?(FWDAnimation.killTweensOf(a.n_sdo),a.n_sdo.setScale2(0),FWDAnimation.to(a.n_sdo,.8,{scale:1,delay:.4,onStart:function(){a.setVisible(!0)},ease:Elastic.easeOut})):(a.setScale2(0),FWDAnimation.to(a,.8,{scale:1,delay:.4,onStart:function(){a.setVisible(!0)},ease:Elastic.easeOut})))},this.hide=function(e){a.isShowed_bl&&(a.isShowed_bl=!1,FWDAnimation.killTweensOf(a),FWDAnimation.killTweensOf(a.n_sdo),a.setVisible(!1))},a.updateHEXColors=function(e,t){FWDEVPUtils.changeCanvasHEXColor(a.nImg,a.n_sdo_canvas,e),FWDEVPUtils.changeCanvasHEXColor(a.img1,a.s_sdo_canvas,t)},a.init()};t.setPrototype=function(){t.prototype=null,t.prototype=new FWDEVPTransformDisplayObject("div")},t.CLICK="onClick",t.MOUSE_OVER="onMouseOver",t.SHOW_TOOLTIP="showTooltip",t.MOUSE_OUT="onMouseOut",t.MOUSE_UP="onMouseDown",t.prototype=null,e.FWDEVPSimpleButton=t}(window),function(e){var t=function(e,o,i,s,n,r,l){var a=this,d=t.prototype;this.nImg_img=null,this.sImg_img=null,this.n_do,this.s_do,this.useHEXColorsForSkin_bl=n,this.normalButtonsColor_str=r,this.selectedButtonsColor_str=l,this.nImgPath_str=e,this.sImgPath_str=o,this.buttonWidth=i,this.buttonHeight=s,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,this.isDisabled_bl=!1,this.init=function(){a.setupMainContainers(),a.setWidth(a.buttonWidth),a.setHeight(a.buttonHeight),a.setButtonMode(!0)},this.setupMainContainers=function(){a.nImg=new Image,a.nImg.src=a.nImgPath_str,a.useHEXColorsForSkin_bl?(a.n_do=new FWDEVPTransformDisplayObject("div"),a.n_do.setWidth(a.buttonWidth),a.n_do.setHeight(a.buttonHeight),a.nImg.onload=function(){a.n_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(a.nImg,a.normalButtonsColor_str).canvas,a.n_do.screen.appendChild(a.n_do_canvas)},a.addChild(a.n_do)):(a.n_do=new FWDEVPDisplayObject("img"),a.n_do.setScreen(a.nImg),a.n_do.setWidth(a.buttonWidth),a.n_do.setHeight(a.buttonHeight),a.addChild(a.n_do)),a.sImg=new Image,a.sImg.src=a.sImgPath_str,a.useHEXColorsForSkin_bl?(a.s_do=new FWDEVPTransformDisplayObject("div"),a.s_do.setWidth(a.buttonWidth),a.s_do.setHeight(a.buttonHeight),a.sImg.onload=function(){a.s_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(a.sImg,a.selectedButtonsColor_str).canvas,a.s_do.screen.appendChild(a.s_do_canvas)},a.addChild(a.s_do)):(a.s_do=new FWDEVPDisplayObject("img"),a.s_do.setScreen(a.sImg),a.s_do.setWidth(a.buttonWidth),a.s_do.setHeight(a.buttonHeight),a.addChild(a.s_do)),a.s_do.setAlpha(0),a.hasPointerEvent_bl?(a.screen.addEventListener("pointerup",a.onMouseUp),a.screen.addEventListener("pointerover",a.setNormalState),a.screen.addEventListener("pointerout",a.setSelectedState)):a.screen.addEventListener&&(a.isMobile_bl||(a.screen.addEventListener("mouseover",a.setNormalState),a.screen.addEventListener("mouseout",a.setSelectedState),a.screen.addEventListener("mouseup",a.onMouseUp)),a.screen.addEventListener("touchend",a.onMouseUp))},this.setNormalState=function(e){FWDAnimation.killTweensOf(a.s_do),FWDAnimation.to(a.s_do,.5,{alpha:0,ease:Expo.easeOut})},this.setSelectedState=function(e){FWDAnimation.killTweensOf(a.s_do),FWDAnimation.to(a.s_do,.5,{alpha:1,ease:Expo.easeOut})},this.onMouseUp=function(e){a.dispatchEvent(t.CLICK)},a.updateHEXColors=function(e,t){FWDEVPUtils.changeCanvasHEXColor(a.nImg,a.n_do_canvas,e),FWDEVPUtils.changeCanvasHEXColor(a.sImg,a.s_do_canvas,t)},this.destroy=function(){FWDAnimation.killTweensOf(a.n_do),a.n_do.destroy(),this.s_do.destroy(),a.screen.onmouseover=null,a.screen.onmouseout=null,a.screen.onclick=null,a.nImg_img=null,a.sImg_img=null,a=null,d=null,t.prototype=null},a.init()};t.setPrototype=function(){t.prototype=null,t.prototype=new FWDEVPTransformDisplayObject("div","relative")},t.CLICK="onClick",t.prototype=null,e.FWDEVPSimpleSizeButton=t}(window),function(e){var r=function(l,a){var d=this;r.prototype;this.main_do=null,this.reader=null,this.subtitiles_ar=null,this.hasText_bl=!1,this.isLoaded_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,this.showSubtitileByDefault_bl=a.showSubtitileByDefault_bl,d.init=function(){d.setOverflow("visible"),d.getStyle().cursor="default",d.setupTextContainer(),d.setWidth(l.maxWidth),d.getStyle().margin="auto",d.hide()},d.setupTextContainer=function(){this.text_do=new FWDEVPTransformDisplayObject("div"),d.text_do.getStyle().pointerEvents="none",this.text_do.hasTransform3d_bl=!1,this.text_do.setBackfaceVisibility(),this.text_do.getStyle().transformOrigin="50% 0%",this.text_do.setWidth(l.maxWidth),this.text_do.getStyle().textAlign="center",this.text_do.getStyle().fontSmoothing="antialiased",this.text_do.getStyle().webkitFontSmoothing="antialiased",this.text_do.getStyle().textRendering="optimizeLegibility",this.addChild(this.text_do)},d.loadSubtitle=function(e){if(d.text_do.setX(-5e3),-1==location.protocol.indexOf("file:")){d.subtitiles_ar=[],d.stopToLoadSubtitle(),d.sourceURL_str=e,d.xhr=new XMLHttpRequest,d.xhr.onreadystatechange=d.onLoad,d.xhr.onerror=d.onError;try{d.xhr.open("get",d.sourceURL_str+"?rand="+parseInt(99999999*Math.random()),!0),d.xhr.send()}catch(e){e&&e.message&&e.message,d.facebookAPIErrorHandler()}}},this.onLoad=function(t){4==d.xhr.readyState&&(404==d.xhr.status?d.dispatchEvent(FWDEVPData.LOAD_ERROR,{text:"Subtitle file path is not found: <font color='#FF0000'>"+d.sourceURL_str+"</font>"}):408==d.xhr.status?d.dispatchEvent(FWDEVPData.LOAD_ERROR,{text:"Loadiong subtitle file file request load timeout!"}):200==d.xhr.status&&(e.JSON,d.subtitle_txt=d.xhr.responseText,d.isShowed_bl&&d.show(),d.parseSubtitle(d.subtitle_txt),d.prevText="none",d.showSubtitileByDefault_bl&&setTimeout(function(){d.show(),d.text_do.setX(0),d.updateSubtitle(l.currentSecconds)},400))),d.dispatchEvent(r.LOAD_COMPLETE)},this.onError=function(t){try{e.console&&console.log(t),e.console&&console.log(t.message)}catch(t){}d.dispatchEvent(r.LOAD_ERROR,{text:"Error loading subtitle file : <font color='#FF0000'>"+d.sourceURL_str+"</font>."})},this.stopToLoadSubtitle=function(){if(null!=d.xhr){try{d.xhr.abort()}catch(e){}d.xhr.onreadystatechange=null,d.xhr.onerror=null,d.xhr=null}this.isLoaded_bl=!1},d.parseSubtitle=function(e){function l(e){return e.replace(/^\s+|\s+$/g,"")}d.isLoaded_bl=!0;var a=(e=l(e=e.replace(/\r\n|\r|\n/g,"\n"))).split("\n\n"),u=0;for(s in a){var h=a[s].split("\n");if(h.length>=2){if(n=h[0],i=l(h[1].split(" --\x3e ")[0]),o=l(h[1].split(" --\x3e ")[1]),t=h[2],h.length>2)for(j=3;j<h.length;j++)t+="<br>"+h[j];d.subtitiles_ar[u]={},d.subtitiles_ar[u].number=n,d.subtitiles_ar[u].start=i,d.subtitiles_ar[u].end=o,d.subtitiles_ar[u].startDuration=r.getDuration(i),d.subtitiles_ar[u].endDuration=r.getDuration(o),d.subtitiles_ar[u].text="<p class='EVPSubtitle'>"+t+"</p>"}u++}},this.updateSubtitle=function(e){if(d.isLoaded_bl){for(var t,o,i="",s=0;s<d.subtitiles_ar.length;s++)if(t=d.subtitiles_ar[s].startDuration,o=d.subtitiles_ar[s].endDuration,t<=e+1&&o>e+1){i=d.subtitiles_ar[s].text;break}if(d.prevText!=i){d.text_do.setInnerHTML(i),d.setAlpha(0),setTimeout(function(){d.setAlpha(1),d.position()},300),d.hasText_bl=!0}d.prevText=i}},this.position=function(e){if(d.isLoaded_bl){var t;d.setX(Math.round((l.tempVidStageWidth-d.w)/2));var o=Math.min(2,l.stageWidth/l.maxWidth);d.text_do.setScale2(o);var i=d.text_do.getHeight()*o;t=l.controller_do?l.controller_do.isShowed_bl?parseInt(l.stageHeight-l.controller_do.h-i):parseInt(l.stageHeight-i-10):parseInt(l.stageHeight-i),FWDAnimation.killTweensOf(d.text_do),e?FWDAnimation.to(d.text_do,.8,{y:t,ease:Expo.easeInOut}):d.text_do.setY(t)}},this.show=function(){d.setVisible(!0)},this.hide=function(){d.setVisible(!1)},d.init()};r.getDuration=function(e){var t=0,o=0,i=0;return e=e.split(":"),"0"==(t=e[0])[0]&&"0"!=t[1]&&(t=parseInt(t[1])),"00"==t&&(t=0),"0"==(o=e[1])[0]&&"0"!=o[1]&&(o=parseInt(o[1])),"00"==o&&(o=0),secs=parseInt(e[2].replace(/,.*/gi,"")),"0"==secs[0]&&"0"!=secs[1]&&(secs=parseInt(secs[1])),"00"==secs&&(secs=0),0!=t&&(i+=60*t*60),0!=o&&(i+=60*o),i+=secs},r.setPrototype=function(){r.prototype=null,r.prototype=new FWDEVPTransformDisplayObject("div")},r.LOAD_ERROR="error",r.LOAD_COMPLETE="complete",r.prototype=null,e.FWDEVPSubtitle=r}(window),window.FWDEVPTransformDisplayObject=function(e,t,o,i){this.listeners={events_ar:[]};var s=this;if("div"!=e&&"img"!=e&&"canvas"!=e)throw Error("Type is not valid! "+e);this.type=e,this.children_ar=[],this.style,this.screen,this.numChildren,this.transform,this.position=t||"absolute",this.overflow=o||"hidden",this.display=i||"block",this.visible=!0,this.buttonMode,this.x=0,this.y=0,this.scale=1,this.rotation=0,this.w=0,this.h=0,this.rect,this.alpha=1,this.innerHTML="",this.opacityType="",this.isHtml5_bl=!1,this.hasTransform2d_bl=FWDEVPUtils.hasTransform2d,this.init=function(){this.setScreen()},this.getTransform=function(){for(var e,t=["transform","msTransform","WebkitTransform","MozTransform","OTransform"];e=t.shift();)if(void 0!==this.screen.style[e])return e;return!1},this.getOpacityType=function(){return void 0!==this.screen.style.opacity?"opacity":"filter"},this.setScreen=function(e){"img"==this.type&&e?(this.screen=e,this.setMainProperties()):(this.screen=document.createElement(this.type),this.setMainProperties())},this.setMainProperties=function(){this.transform=this.getTransform(),this.setPosition(this.position),this.setOverflow(this.overflow),this.opacityType=this.getOpacityType(),"opacity"==this.opacityType&&(this.isHtml5_bl=!0),"filter"==s.opacityType&&(s.screen.style.filter="inherit"),this.screen.style.left="0px",this.screen.style.top="0px",this.screen.style.margin="0px",this.screen.style.padding="0px",this.screen.style.maxWidth="none",this.screen.style.maxHeight="none",this.screen.style.border="none",this.screen.style.lineHeight="1",this.screen.style.backgroundColor="transparent",this.screen.style.backfaceVisibility="hidden",this.screen.style.webkitBackfaceVisibility="hidden",this.screen.style.MozBackfaceVisibility="hidden",this.screen.style.MozImageRendering="optimizeSpeed",this.screen.style.WebkitImageRendering="optimizeSpeed","img"==e&&(this.setWidth(this.screen.width),this.setHeight(this.screen.height),this.screen.onmousedown=function(e){return!1})},s.setBackfaceVisibility=function(){s.screen.style.backfaceVisibility="visible",s.screen.style.webkitBackfaceVisibility="visible",s.screen.style.MozBackfaceVisibility="visible"},s.removeBackfaceVisibility=function(){s.screen.style.backfaceVisibility="hidden",s.screen.style.webkitBackfaceVisibility="hidden",s.screen.style.MozBackfaceVisibility="hidden"},this.setSelectable=function(e){if(!e){try{this.screen.style.userSelect="none"}catch(e){}try{this.screen.style.MozUserSelect="none"}catch(e){}try{this.screen.style.webkitUserSelect="none"}catch(e){}try{this.screen.style.khtmlUserSelect="none"}catch(e){}try{this.screen.style.oUserSelect="none"}catch(e){}try{this.screen.style.msUserSelect="none"}catch(e){}try{this.screen.msUserSelect="none"}catch(e){}this.screen.ondragstart=function(e){return!1},this.screen.onselectstart=function(){return!1},this.screen.style.webkitTouchCallout="none"}},this.getScreen=function(){return s.screen},this.setVisible=function(e){this.visible=e,1==this.visible?this.screen.style.visibility="visible":this.screen.style.visibility="hidden"},this.getVisible=function(){return this.visible},this.setResizableSizeAfterParent=function(){this.screen.style.width="100%",this.screen.style.height="100%"},this.getStyle=function(){return this.screen.style},this.setOverflow=function(e){s.overflow=e,s.screen.style.overflow=s.overflow},this.setPosition=function(e){s.position=e,s.screen.style.position=s.position},this.setDisplay=function(e){this.display=e,this.screen.style.display=this.display},this.setButtonMode=function(e){this.buttonMode=e,1==this.buttonMode?this.screen.style.cursor="pointer":this.screen.style.cursor="default"},this.setBkColor=function(e){s.screen.style.backgroundColor=e},this.setInnerHTML=function(e){s.innerHTML=e,s.screen.innerHTML=s.innerHTML},this.getInnerHTML=function(){return s.innerHTML},this.getRect=function(){return s.screen.getBoundingClientRect()},this.setAlpha=function(e){s.alpha=e,"opacity"==s.opacityType?s.screen.style.opacity=s.alpha:"filter"==s.opacityType&&(s.screen.style.filter="alpha(opacity="+100*s.alpha+")",s.screen.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+Math.round(100*s.alpha)+")")},this.getAlpha=function(){return s.alpha},this.getRect=function(){return this.screen.getBoundingClientRect()},this.getGlobalX=function(){return this.getRect().left},this.getGlobalY=function(){return this.getRect().top},this.setX=function(e){s.x=e,s.hasTransform2d_bl?s.screen.style[s.transform]="translate("+s.x+"px,"+s.y+"px) scale("+s.scale+" , "+s.scale+") rotate("+s.rotation+"deg)":s.screen.style.left=s.x+"px"},this.getX=function(){return s.x},this.setY=function(e){s.y=e,s.hasTransform2d_bl?s.screen.style[s.transform]="translate("+s.x+"px,"+s.y+"px) scale("+s.scale+" , "+s.scale+") rotate("+s.rotation+"deg)":s.screen.style.top=s.y+"px"},this.getY=function(){return s.y},this.setScale2=function(e){s.scale=e,s.hasTransform2d_bl&&(s.screen.style[s.transform]="translate("+s.x+"px,"+s.y+"px) scale("+s.scale+" , "+s.scale+") rotate("+s.rotation+"deg)")},this.getScale=function(){return s.scale},this.setRotation=function(e){s.rotation=e,s.hasTransform2d_bl&&(s.screen.style[s.transform]="translate("+s.x+"px,"+s.y+"px) scale("+s.scale+" , "+s.scale+") rotate("+s.rotation+"deg)")},this.setWidth=function(e){s.w=e,"img"==s.type?s.screen.width=s.w:s.screen.style.width=s.w+"px"},this.getWidth=function(){return"div"==s.type?0!=s.screen.offsetWidth?s.screen.offsetWidth:s.w:"img"==s.type?0!=s.screen.offsetWidth?s.screen.offsetWidth:0!=s.screen.width?s.screen.width:s._w:"canvas"==s.type?0!=s.screen.offsetWidth?s.screen.offsetWidth:s.w:void 0},this.setHeight=function(e){s.h=e,"img"==s.type?s.screen.height=s.h:s.screen.style.height=s.h+"px"},this.getHeight=function(){return"div"==s.type?0!=s.screen.offsetHeight?s.screen.offsetHeight:s.h:"img"==s.type?0!=s.screen.offsetHeight?s.screen.offsetHeight:0!=s.screen.height?s.screen.height:s.h:"canvas"==s.type?0!=s.screen.offsetHeight?s.screen.offsetHeight:s.h:void 0},this.getNumChildren=function(){return s.children_ar.length},this.addChild=function(e){this.contains(e)?(this.children_ar.splice(FWDEVPUtils.indexOfArray(this.children_ar,e),1),this.children_ar.push(e),this.screen.appendChild(e.screen)):(this.children_ar.push(e),this.screen.appendChild(e.screen))},this.removeChild=function(e){if(!this.contains(e))throw Error("##removeChild()## Child doesn't exist, it can't be removed!");this.children_ar.splice(FWDEVPUtils.indexOfArray(this.children_ar,e),1),this.screen.removeChild(e.screen)},this.contains=function(e){return-1!=FWDEVPUtils.indexOfArray(this.children_ar,e)},this.addChildAtZero=function(e){0==this.numChildren?(this.children_ar.push(e),this.screen.appendChild(e.screen)):(this.screen.insertBefore(e.screen,this.children_ar[0].screen),this.contains(e)&&this.children_ar.splice(FWDEVPUtils.indexOfArray(this.children_ar,e),1),this.children_ar.unshift(e))},this.getChildAt=function(e){if(e<0||e>this.numChildren-1)throw Error("##getChildAt()## Index out of bounds!");if(0==this.numChildren)throw Errror("##getChildAt## Child dose not exist!");return this.children_ar[e]},this.removeChildAtZero=function(){this.screen.removeChild(this.children_ar[0].screen),this.children_ar.shift()},this.addListener=function(e,t){if(void 0==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 o={};o.type=e,o.listener=t,o.target=this,this.listeners.events_ar.push(o)},this.dispatchEvent=function(e,t){if(void 0==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");for(var o=0,i=this.listeners.events_ar.length;o<i;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e){if(t)for(var s in t)this.listeners.events_ar[o][s]=t[s];this.listeners.events_ar[o].listener.call(this,this.listeners.events_ar[o]);break}},this.removeListener=function(e,t){if(void 0==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."+e);for(var o=0,i=this.listeners.events_ar.length;o<i;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e&&this.listeners.events_ar[o].listener===t){this.listeners.events_ar.splice(o,1);break}},this.disposeImage=function(){"img"==this.type&&(this.screen.src=null)},this.destroy=function(){try{this.screen.parentNode.removeChild(this.screen)}catch(e){}this.screen.onselectstart=null,this.screen.ondragstart=null,this.screen.ontouchstart=null,this.screen.ontouchmove=null,this.screen.ontouchend=null,this.screen.onmouseover=null,this.screen.onmouseout=null,this.screen.onmouseup=null,this.screen.onmousedown=null,this.screen.onmousemove=null,this.screen.onclick=null,delete this.screen,delete this.style,delete this.rect,delete this.selectable,delete this.buttonMode,delete this.position,delete this.overflow,delete this.visible,delete this.innerHTML,delete this.numChildren,delete this.x,delete this.y,delete this.w,delete this.h,delete this.opacityType,delete this.isHtml5_bl,delete this.hasTransform2d_bl,this.children_ar=null,this.style=null,this.screen=null,this.numChildren=null,this.transform=null,this.position=null,this.overflow=null,this.display=null,this.visible=null,this.buttonMode=null,this.globalX=null,this.globalY=null,this.x=null,this.y=null,this.w=null,this.h=null,this.rect=null,this.alpha=null,this.innerHTML=null,this.opacityType=null,this.isHtml5_bl=null,this.hasTransform3d_bl=null,this.hasTransform2d_bl=null,s=null},this.init()},function(e){var t=function(o,i,s){var n=this;t.prototype;this.video_el=null,this.sourcePath_str=null,this.backgroundColor_str=i,this.controllerHeight=o.data.controllerHeight,this.stageWidth=0,this.stageHeight=0,this.lastPercentPlayed=0,this.volume=s,this.curDuration=0,this.countNormalMp3Errors=0,this.countShoutCastErrors=0,this.maxShoutCastCountErrors=5,this.maxNormalCountErrors=1,this.disableClickForAWhileId_to,this.greenScreenTolerance=o.data.greenScreenTolerance,this.disableClick_bl=!1,this.allowScrubing_bl=!1,this.hasError_bl=!0,this.isPlaying_bl=!1,this.isStopped_bl=!0,this.hasPlayedOnce_bl=!1,this.isStartEventDispatched_bl=!1,this.isSafeToBeControlled_bl=!1,this.hastStaredToPlayHLS_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.init=function(){n.setupVideo(),n.setBkColor(n.backgroundColor_str)},this.setupVideo=function(){null==n.video_el&&(n.video_el=document.createElement("video"),n.screen.appendChild(n.video_el),n.video_el.controls=!1,n.video_el.volume=n.volume,n.video_el.WebKitPlaysInline=!0,n.video_el.playsinline=!0,n.video_el.setAttribute("playsinline",""),n.video_el.setAttribute("webkit-playsinline",""),n.video_el.style.position="relative",n.video_el.style.left="0px",n.video_el.style.top="0px",n.video_el.style.width="100%",n.video_el.style.height="100%",n.video_el.style.margin="0px",n.video_el.style.padding="0px",n.video_el.style.maxWidth="none",n.video_el.style.maxHeight="none",n.video_el.style.border="none",n.video_el.style.lineHeight="0",n.video_el.style.msTouchAction="none",o.isAdd_bl?n.setPlaybackRate(1):n.setPlaybackRate(o.data.defaultPlaybackRate_ar[o.data.startAtPlaybackIndex]),n.screen.appendChild(n.video_el)),n.video_el.addEventListener("error",n.errorHandler),n.video_el.addEventListener("canplay",n.safeToBeControlled),n.video_el.addEventListener("canplaythrough",n.safeToBeControlled),n.video_el.addEventListener("progress",n.updateProgress),n.video_el.addEventListener("timeupdate",n.updateVideo),n.video_el.addEventListener("pause",n.pauseHandler),n.video_el.addEventListener("play",n.playHandler),FWDEVPUtils.isIE||n.video_el.addEventListener("waiting",n.startToBuffer),n.video_el.addEventListener("playing",n.stopToBuffer),n.video_el.addEventListener("ended",n.endedHandler)},this.destroyVideo=function(){n.video_el&&(n.video_el.removeEventListener("error",n.errorHandler),n.video_el.removeEventListener("canplay",n.safeToBeControlled),n.video_el.removeEventListener("canplaythrough",n.safeToBeControlled),n.video_el.removeEventListener("progress",n.updateProgress),n.video_el.removeEventListener("timeupdate",n.updateVideo),n.video_el.removeEventListener("pause",n.pauseHandler),n.video_el.removeEventListener("play",n.playHandler),FWDEVPUtils.isIE||n.video_el.removeEventListener("waiting",n.startToBuffer),n.video_el.removeEventListener("playing",n.stopToBuffer),n.video_el.removeEventListener("ended",n.endedHandler),n.isMobile_bl?(n.screen.removeChild(n.video_el),n.video_el=null):(n.video_el.style.visibility="hidden",n.video_el.src="",n.video_el.load()))},this.startToBuffer=function(e){n.dispatchEvent(t.START_TO_BUFFER)},this.stopToBuffer=function(){n.dispatchEvent(t.STOP_TO_BUFFER)},this.errorHandler=function(i){if(o.videoType_str==FWDEVPlayer.VIDEO){var s;n.hasError_bl=!0,s=0==n.video_el.networkState?"error 'self.video_el.networkState = 0'":1==n.video_el.networkState?"error 'self.video_el.networkState = 1'":2==n.video_el.networkState?"'self.video_el.networkState = 2'":3==n.video_el.networkState?"source not found <font color='#FF0000'>"+n.sourcePath_str+"</font>":i,e.console&&e.console.log(n.video_el.networkState),n.dispatchEvent(t.ERROR,{text:s})}},this.resizeAndPosition=function(e,t){e&&(n.stageWidth=e,n.stageHeight=t),n.setWidth(n.stageWidth),n.setHeight(n.stageHeight),o.is360&&n.renderer&&(n.camera.aspect=n.stageWidth/n.stageHeight,n.camera.updateProjectionMatrix(),n.renderer.setSize(n.stageWidth,n.stageHeight)),n.resizeGR()},this.setSource=function(e){(o.is360||o.isGR&&n.video_el)&&(n.video_el.style.visibility="hidden"),n.sourcePath_str=e,n.video_el&&n.stop(),n.video_el&&FWDEVPUtils.isIphone&&(n.video_el.src=e)},this.play=function(e,i){if(FWDEVPlayer.curInstance=o,n.isStopped_bl&&o.videoType_str!=FWDEVPlayer.HLS_JS||i)n.initVideo(),n.play(),n.isPlaying_bl=!0,n.hastStaredToPlayHLS_bl=!0,n.startToBuffer(!0);else if(!n.video_el.ended||e)try{n.hasError_bl=!1,n.isStopped_bl=!1,n.isPlaying_bl=!0,n.hasPlayedOnce_bl=!0,n.hastStaredToPlayHLS_bl=!0,n.video_el.play(),n.safeToBeControlled(),FWDEVPUtils.isIE&&n.dispatchEvent(t.PLAY)}catch(e){}o.is360?n.add360Vid():o.isGR&&n.addGreenScreen()},this.initVideo=function(){n.isPlaying_bl=!1,n.hasError_bl=!1,n.allowScrubing_bl=!1,n.isStopped_bl=!1,n.setupVideo(),n.setVolume(),n.video_el.src=n.sourcePath_str},this.pause=function(){if(null!=n&&!n.isStopped_bl&&!n.hasError_bl&&!n.video_el.ended)try{n.video_el.pause(),n.isPlaying_bl=!1,FWDEVPUtils.isIE&&n.dispatchEvent(t.PAUSE)}catch(e){}},this.togglePlayPause=function(){null!=n&&n.isSafeToBeControlled_bl&&(n.isPlaying_bl?n.pause():n.play())},this.pauseHandler=function(){n.allowScrubing_bl||(n.stopGRRender(),n.dispatchEvent(t.PAUSE))},this.playHandler=function(){n.allowScrubing_bl||(n.isStartEventDispatched_bl||(n.dispatchEvent(t.START),n.isStartEventDispatched_bl=!0),o.is360?n.start360Render():o.isGR&&n.startGRRender(),n.dispatchEvent(t.PLAY))},this.endedHandler=function(){n.dispatchEvent(t.PLAY_COMPLETE)},this.resume=function(){n.isStopped_bl||n.play()},this.stop=function(e){(null!=n&&null!=n.video_el&&!n.isStopped_bl||e)&&(n.isPlaying_bl=!1,n.isStopped_bl=!0,n.hastStaredToPlayHLS_bl=!1,n.hasPlayedOnce_bl=!0,n.isSafeToBeControlled_bl=!1,n.isStartEventDispatched_bl=!1,n.stop360Render(),n.stopGRRender(),n.contextGR2&&(n.contextGR2.save(),n.contextGR2.globalCompositeOperation="copy",n.contextGR2.fillStyle="rgba(0,0,0,0)",n.contextGR2.fill(),n.contextGR2.restore()),n.contains(n.canvasGR2)&&n.removeChild(n.canvasGR2),n.destroyVideo(),n.dispatchEvent(t.LOAD_PROGRESS,{percent:0}),n.dispatchEvent(t.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00"}),n.dispatchEvent(t.STOP),n.stopToBuffer())},this.safeToBeControlled=function(){(o.videoType_str!=FWDEVPlayer.HLS_JS||n.hastStaredToPlayHLS_bl)&&(n.isSafeToBeControlled_bl||(o.resizeHandler(),n.stopToScrub(),n.hasHours_bl=Math.floor(n.video_el.duration/3600)>0,n.isPlaying_bl=!0,n.isSafeToBeControlled_bl=!0,o.is360||o.isGR||(n.video_el.style.visibility="visible"),n.dispatchEvent(t.SAFE_TO_SCRUBB)))},this.updateProgress=function(){if(o.videoType_str!=FWDEVPlayer.HLS_JS||n.hastStaredToPlayHLS_bl){var e=0;n.video_el.buffered.length>0&&(e=n.video_el.buffered.end(n.video_el.buffered.length-1).toFixed(1)/n.video_el.duration.toFixed(1),!isNaN(e)&&e||(e=0)),1==e&&n.video_el.removeEventListener("progress",n.updateProgress),n.dispatchEvent(t.LOAD_PROGRESS,{percent:e})}},this.updateVideo=function(){var e;n.allowScrubing_bl||(e=n.video_el.currentTime/n.video_el.duration,n.dispatchEvent(t.UPDATE,{percent:e}));var o=t.formatTime(n.video_el.duration),i=t.formatTime(n.video_el.currentTime);isNaN(n.video_el.duration)?n.dispatchEvent(t.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00",seconds:0}):n.dispatchEvent(t.UPDATE_TIME,{curTime:i,totalTime:o,seconds:parseInt(n.video_el.currentTime)}),n.lastPercentPlayed=e,n.curDuration=i},this.startToScrub=function(){n.allowScrubing_bl=!0},this.stopToScrub=function(){n.allowScrubing_bl=!1},this.scrubbAtTime=function(e){n.video_el.currentTime=e;var o=t.formatTime(n.video_el.duration),i=t.formatTime(n.video_el.currentTime);n.dispatchEvent(t.UPDATE_TIME,{curTime:i,totalTime:o})},this.scrub=function(e,o){o&&n.startToScrub();try{n.video_el.currentTime=n.video_el.duration*e;var i=t.formatTime(n.video_el.duration),s=t.formatTime(n.video_el.currentTime);n.dispatchEvent(t.UPDATE_TIME,{curTime:s,totalTime:i})}catch(o){}},this.replay=function(){n.scrub(0),n.play()},this.setPlaybackRate=function(e){n.video_el&&(n.video_el.defaultPlaybackRate=e,n.video_el.playbackRate=e)},this.setVolume=function(e){e&&(n.volume=e),n.video_el&&(n.video_el.volume=n.volume)},this.addGreenScreen=function(){n.canvasGR2||(n.canvasGR1=new FWDEVPDisplayObject("canvas"),n.contextGR1=n.canvasGR1.screen.getContext("2d"),n.canvasGR2=new FWDEVPDisplayObject("canvas"),n.contextGR2=n.canvasGR2.screen.getContext("2d")),n.video_el.style.visibility="hidden",n.renderFR()},this.startGRRender=function(){n.isGRRendering_bl=!0,FWDEVPUtils.isLocal||(n.contains(n.canvasGR2)||n.addChild(n.canvasGR2),cancelAnimationFrame(n.requestId),n.requestId=requestAnimationFrame(n.renderFR))},this.stopGRRender=function(){n.isGRRendering_bl=!1,cancelAnimationFrame(n.requestId)},this.renderFR=function(){if(!FWDEVPUtils.isLocal){if(n.isGRRendering_bl&&cancelAnimationFrame(n.requestId),n.contextGR1){0!=n.video_el.videoWidth&&n.prevCurCavasGRWidth!=n.video_el.videoWidth&&(n.canvasGR1.screen.width=n.video_el.videoWidth,n.canvasGR1.screen.height=n.video_el.videoHeight,n.canvasGR2.screen.width=n.video_el.videoWidth,n.canvasGR2.screen.height=n.video_el.videoHeight),n.prevCurCavasGRWidth=n.video_el.videoWidth,n.contextGR1.drawImage(n.video_el,0,0,n.canvasGR1.screen.width,n.canvasGR1.screen.height);for(var e=n.contextGR1.getImageData(0,0,n.canvasGR1.screen.width,n.canvasGR1.screen.height),t=e.data,o=0,i=t.length;o<i;o+=4)Math.abs(t[o]-t[0])+Math.abs(t[o+1]-t[1])+Math.abs(t[o+2]-t[2])<n.greenScreenTolerance&&(t[o+3]=0);n.contextGR2.putImageData(e,0,0)}n.resizeGR(),n.requestId=requestAnimationFrame(n.renderFR)}},this.resizeGR=function(){o.isGR&&n.canvasGR2&&(n.canvasGR2.setWidth(n.stageWidth),n.canvasGR2.setX(Math.round((o.stageWidth-n.stageWidth)/2)),n.canvasGR2.setY(Math.round((o.stageHeight-n.canvasGR2.getHeight())/2)))},this.add360Vid=function(){n.renderer?n.screen.appendChild(n.renderer.domElement):(n.renderer=new THREE.WebGLRenderer({antialias:!0}),n.renderer.setSize(n.stageWidth,n.stageHeight),n.renderer.domElement.style.position="absolute",n.renderer.domElement.style.left="0px",n.renderer.domElement.style.top="0px",n.renderer.domElement.style.margin="0px",n.renderer.domElement.style.padding="0px",n.renderer.domElement.style.maxWidth="none",n.renderer.domElement.style.maxHeight="none",n.renderer.domElement.style.border="none",n.renderer.domElement.style.lineHeight="1",n.renderer.domElement.style.backgroundColor="transparent",n.renderer.domElement.style.backfaceVisibility="hidden",n.renderer.domElement.style.webkitBackfaceVisibility="hidden",n.renderer.domElement.style.MozBackfaceVisibility="hidden",n.renderer.domElement.style.MozImageRendering="optimizeSpeed",n.renderer.domElement.style.WebkitImageRendering="optimizeSpeed",n.screen.appendChild(n.renderer.domElement),n.scene=new THREE.Scene,n.video_el.setAttribute("crossorigin","anonymous"),n.canvas=document.createElement("canvas"),n.context=n.canvas.getContext("2d"),FWDEVPUtils.isFirefox?n.videoTexture=new THREE.Texture(n.video_el):n.videoTexture=new THREE.Texture(n.canvas),n.videoTexture.minFilter=THREE.LinearFilter,n.videoTexture.magFilter=THREE.LinearFilter,n.videoTexture.format=THREE.RGBFormat,n.cubeGeometry=new THREE.SphereGeometry(500,60,40),n.sphereMat=new THREE.MeshBasicMaterial({map:n.videoTexture}),n.sphereMat.side=THREE.BackSide,n.cube=new THREE.Mesh(n.cubeGeometry,n.sphereMat),n.scene.add(n.cube),n.camera=new THREE.PerspectiveCamera(45,n.stageWidth/n.stageHeight,.1,1e4),n.camera.position.y=0,n.camera.position.z=500,n.camera.position.x=0,n.scene.add(n.camera),n.controls=new THREE.OrbitControls(n.camera,o.dumyClick_do.screen),n.controls.enableDamping=!0,n.controls.enableZoom=!1,n.controls.dampingFactor=.25,n.controls.maxDistance=500,n.controls.minDistance=500,n.controls.rotateLeft(90*Math.PI/180),n.controls.enabled=!0,n.render())},this.start360Render=function(){n.is360Rendering_bl=!0,cancelAnimationFrame(n.requestId),n.requestId=requestAnimationFrame(n.render)},this.stop360Render=function(){if(n.is360Rendering_bl=!1,n.camera){n.camera.position.y=0,n.camera.position.z=500,n.camera.position.x=0,cancelAnimationFrame(n.requestId);try{n.screen.removeChild(n.renderer.domElement)}catch(e){}}},this.render=function(){n.camera&&(n.is360Rendering_bl&&cancelAnimationFrame(n.requestId),n.video_el.readyState===n.video_el.HAVE_ENOUGH_DATA&&(n.videoTexture.needsUpdate=!0),!FWDEVPUtils.isFirefox&&n.context&&(0!=n.video_el.videoWidth&&(n.canvas.width=n.video_el.videoWidth,n.canvas.height=n.video_el.videoHeight),n.context.save(),n.context.scale(-1,1),n.context.drawImage(n.video_el,0,0,-1*n.canvas.width,n.canvas.height),n.context.restore()),n.controls.update(),n.renderer.render(n.scene,n.camera),n.requestId=requestAnimationFrame(n.render))},t.formatTime=function(e){var t=Math.floor(e/3600),o=e%3600,i=Math.floor(o/60),s=o%60,r=Math.ceil(s);return i=i>=10?i:"0"+i,r=r>=10?r:"0"+r,isNaN(r)?"00:00":n.hasHours_bl?t+":"+i+":"+r:i+":"+r},this.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div")},t.ERROR="error",t.UPDATE="update",t.UPDATE_TIME="updateTime",t.SAFE_TO_SCRUBB="safeToControll",t.LOAD_PROGRESS="loadProgress",t.START="start",t.PLAY="play",t.PAUSE="pause",t.STOP="stop",t.PLAY_COMPLETE="playCompvare",t.START_TO_BUFFER="startToBuffer",t.STOP_TO_BUFFER="stopToBuffer",e.FWDEVPVideoScreen=t}(window),function(e){var t=function(e,o){var i=this;t.prototype;this.iframe_do=null,this.vimeoPlayer=null,this.lastQuality_str="auto",this.volume=o,this.updateVideoId_int,this.updatePreloadId_int,this.controllerHeight=e.data.controllerHeight,this.hasBeenCreatedOnce_bl=!0,this.hasHours_bl=!1,this.allowScrubing_bl=!1,this.hasError_bl=!1,this.isPlaying_bl=!1,this.isStopped_bl=!0,this.isStartEventDispatched_bl=!1,this.isSafeToBeControlled_bl=!1,this.isPausedInEvent_bl=!0,this.isShowed_bl=!0,this.isCued_bl=!1,this.isVideoLoaded_bl=!1,this.isReady_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.init=function(){i.hasTransform3d_bl=!1,i.hasTransform2d_bl=!1,i.setBackfaceVisibility(),e.main_do.addChildAt(i,1),i.resizeAndPosition(),i.setupVideo(),i.setupDisableClick(),i.intitErrorId_to=setTimeout(i.initError,8e3)},this.initError=function(){i.dispatchEvent(t.INIT_ERROR,{error:"Error loading the Vimeo video player!"})},this.setupDisableClick=function(){i.disableClick_do=new FWDEVPDisplayObject("div"),i.disableClick_do.setBkColor(e.backgroundColor_str),i.disableClick_do.setAlpha(1e-8),i.addChild(i.disableClick_do)},this.showDisable=function(){e.tempVidStageWidth&&i.disableClick_do.w!=i.stageWidth&&(i.disableClick_do.setWidth(e.tempVidStageWidth),FWDEVPUtils.isIphone?i.disableClick_do.setHeight(e.tempVidStageHeight-i.controllerHeight):i.disableClick_do.setHeight(e.tempVidStageHeight))},this.hideDisable=function(){0!=i.disableClick_do.w&&(i.disableClick_do.setWidth(0),i.disableClick_do.setHeight(0))},this.setupVideo=function(){i.iframe_do||(i.iframe_do=new FWDEVPDisplayObject("IFRAME"),i.iframe_do.hasTransform3d_bl=!1,i.iframe_do.hasTransform2d_bl=!1,i.iframe_do.screen.setAttribute("id",e.instanceName_str+"vimeo"),i.iframe_do.screen.setAttribute("webkitallowfullscreen","1"),i.iframe_do.screen.setAttribute("mozallowfullscreen","1"),i.iframe_do.screen.setAttribute("allowfullscreen","1"),i.setSource("https://player.vimeo.com/video/76979871"),i.iframe_do.getStyle().width="100%",i.iframe_do.getStyle().height="100%",i.iframe_do.setBackfaceVisibility(),i.addChild(i.iframe_do),i.vimeoPlayer=$f(i.iframe_do.screen),i.vimeoPlayer.addEvent("ready",i.readyHandler),i.blackOverlay_do=new FWDEVPDisplayObject("div"),i.blackOverlay_do.getStyle().backgroundColor="#000000",i.blackOverlay_do.getStyle().width="100%",i.blackOverlay_do.getStyle().height="100%",i.addChild(i.blackOverlay_do))},this.resizeAndPosition=function(){e.tempVidStageWidth&&(i.setWidth(e.tempVidStageWidth),i.setHeight(e.tempVidStageHeight))},this.setSource=function(t){t&&(i.sourcePath_str=t),i.stop();var o=i.sourcePath_str.match(/[^\/]+$/i);i.iframe_do.screen.setAttribute("src","https://player.vimeo.com/video/"+o+"?api=1&player_id="+e.instanceName_str+"vimeo&autoplay=0")},this.readyHandler=function(){if(clearTimeout(i.intitErrorId_to),i.contains(i.blackOverlay_do)&&(clearTimeout(i.removeChildWithDelayId_to),i.removeChildWithDelayId_to=setTimeout(function(){i.removeChild(i.blackOverlay_do)},1500)),i.resizeAndPosition(),i.vimeoPlayer.addEvent("play",i.playHandler),i.vimeoPlayer.addEvent("pause",i.pauseHandler),i.vimeoPlayer.addEvent("loadProgress",i.loadProgressHandler),i.vimeoPlayer.addEvent("finish",i.finishHandler),i.vimeoPlayer.addEvent("loaded",i.loadedHandler),i.isReady_bl){try{i.vimeoPlayer.api("setColor","#FFFFFF")}catch(e){}return e.videoType_str==FWDEVPlayer.VIMEO&&i.setX(0),void(e.data.autoPlay_bl&&e.play())}i.isReady_bl=!0,i.dispatchEvent(t.READY)},this.loadedHandler=function(){i.isVideoLoaded_bl=!0},this.playHandler=function(){i.isSafeToBeControlled_bl||(i.isStopped_bl=!1,i.isSafeToBeControlled_bl=!0,i.isPlaying_bl=!0,i.hasHours_bl=Math.floor(i.getDuration()/3600)>0,i.setVolume(e.volume),i.startToUpdate(),i.dispatchEvent(t.SAFE_TO_SCRUBB)),i.dispatchEvent(t.PLAY)},this.loadProgressHandler=function(e){i.isShowed_bl||i.dispatchEvent(t.LOAD_PROGRESS,{percent:e.percent})},this.pauseHandler=function(){i.isPlaying_bl=!1,i.dispatchEvent(t.PAUSE)},this.finishHandler=function(){e.data.loop_bl&&(i.stop(),setTimeout(i.play,200)),i.dispatchEvent(t.PLAY_COMPLETE)},this.play=function(t){FWDEVPlayer.curInstance=e;var o=200;i.isPlaying_bl=!0,i.hasError_bl=!1,clearTimeout(i.startToPlayWithDelayId_to),e.prevVideoType_str!=FWDEVPlayer.VIMEO&&(o=800);try{i.startToPlayWithDelayId_to=setTimeout(function(){i.vimeoPlayer.api("play")},o)}catch(e){}i.isMobile_bl||(i.isStopped_bl=!1)},this.pause=function(){if(!i.isStopped_bl&&!i.hasError_bl){i.isPlaying_bl=!1;try{i.vimeoPlayer.api("pause")}catch(e){}i.stopToUpdate()}},this.togglePlayPause=function(){i.isPlaying_bl?i.pause():i.play()},this.resume=function(){i.isStopped_bl||i.play()},this.startToUpdate=function(){clearInterval(i.updateVideoId_int),i.updateVideoId_int=setInterval(i.updateVideo,500)},this.stopToUpdate=function(){clearInterval(i.updateVideoId_int)},this.updateVideo=function(){var e;if(i.vimeoPlayer){var o=i.formatTime(i.getDuration()),s=i.formatTime(i.getCurrentTime());e=s/o,i.dispatchEvent(FWDEVPYoutubeScreen.UPDATE,{percent:e}),i.dispatchEvent(t.UPDATE_TIME,{curTime:s,totalTime:o,seconds:parseInt(i.getCurrentTime())})}else stopToUpdate()},this.stop=function(e){i.isVideoLoaded_bl=!1,clearTimeout(i.startToPlayWithDelayId_to),i.isStopped_bl||(i.isPlaying_bl=!1,i.isStopped_bl=!0,i.isCued_bl=!1,i.allowScrubing_bl=!1,i.isSafeToBeControlled_bl=!1,i.isPausedInEvent_bl=!0,i.stopToUpdate(),e||(i.stopVideo(),i.dispatchEvent(t.STOP),i.dispatchEvent(t.LOAD_PROGRESS,{percent:0}),i.dispatchEvent(t.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00"})))},this.destroy=function(){i.iframe_do&&(i.iframe_do.screen.removeAttribute("id",e.instanceName_str+"vimeo"),i.removeChild(i.iframe_do),i.iframe_do.destroy(),i.iframe_do=null),i.vimeoPlayer=null},this.stopVideo=function(){i.setSource(i.sourcePath_str)},this.startToScrub=function(){i.isSafeToBeControlled_bl&&(i.allowScrubing_bl=!0)},this.stopToScrub=function(){i.isSafeToBeControlled_bl&&(i.allowScrubing_bl=!1)},this.scrub=function(e){i.isSafeToBeControlled_bl&&i.vimeoPlayer.api("seekTo",e*i.getDuration())},this.scrubbAtTime=function(e){i.isSafeToBeControlled_bl&&i.vimeoPlayer.api("seekTo",e)},this.setVolume=function(e){e&&(i.volume=e),i.vimeoPlayer&&i.vimeoPlayer.api("setVolume",e)},this.getDuration=function(){if(i.isSafeToBeControlled_bl)return i.vimeoPlayer.api("getDuration",function(e,t){i.duration=e}),i.duration},this.getCurrentTime=function(){if(i.isSafeToBeControlled_bl)return i.vimeoPlayer.api("getCurrentTime",function(e,t){i.currentTime=e}),i.currentTime},this.formatTime=function(e){var t=Math.floor(e/3600),o=e%3600,s=Math.floor(o/60),n=o%60,r=Math.ceil(n);return s=s>=10?s:"0"+s,r=r>=10?r:"0"+r,isNaN(r)?"00:00":i.hasHours_bl?t+":"+s+":"+r:s+":"+r},this.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div")},t.SAFE_TO_SCRUBB="safeToScrub",t.READY="ready",t.INIT_ERROR="initError",t.UPDATE="update",t.UPDATE_TIME="updateTime",t.LOAD_PROGRESS="loadProgress",t.PLAY="play",t.PAUSE="pause",t.STOP="stop",t.PLAY_COMPLETE="playComplete",t.CUED="cued",t.QUALITY_CHANGE="qualityChange",e.FWDEVPVimeoScreen=t}(window),function(e){var t=function(e,o,i,s,n,r){var l=this,a=t.prototype;this.nImg=e,this.sPath_str=o,this.dPath_str=i,this.n_sdo,this.s_sdo,this.d_sdo,this.toolTipLabel_str,this.totalWidth=this.nImg.width,this.totalHeight=this.nImg.height,this.useHEXColorsForSkin_bl=s,this.normalButtonsColor_str=n,this.selectedButtonsColor_str=r,this.isSetToDisabledState_bl=!1,this.isDisabled_bl=!1,this.isSelectedFinal_bl=!1,this.isActive_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,this.allowToCreateSecondButton_bl=!0,l.init=function(){l.setupMainContainers()},l.setupMainContainers=function(){if(l.useHEXColorsForSkin_bl?(l.n_sdo=new FWDEVPTransformDisplayObject("div"),l.n_sdo.setWidth(l.totalWidth),l.n_sdo.setHeight(l.totalHeight),l.n_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(l.nImg,l.normalButtonsColor_str).canvas,l.n_sdo.screen.appendChild(l.n_sdo_canvas),l.addChild(l.n_sdo)):(l.n_sdo=new FWDEVPTransformDisplayObject("img"),l.n_sdo.setScreen(l.nImg),l.addChild(l.n_sdo)),l.allowToCreateSecondButton_bl){l.img1=new Image,l.img1.src=l.sPath_str;var e=new Image;l.sImg=e,l.useHEXColorsForSkin_bl?(l.s_sdo=new FWDEVPTransformDisplayObject("div"),l.s_sdo.setWidth(l.totalWidth),l.s_sdo.setHeight(l.totalHeight),l.img1.onload=function(){l.s_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(l.img1,l.selectedButtonsColor_str).canvas,l.s_sdo.screen.appendChild(l.s_sdo_canvas)},l.s_sdo.setAlpha(0),l.addChild(l.s_sdo)):(l.s_sdo=new FWDEVPDisplayObject("img"),l.s_sdo.setScreen(l.img1),l.s_sdo.setWidth(l.totalWidth),l.s_sdo.setHeight(l.totalHeight),l.s_sdo.setAlpha(0),l.addChild(l.s_sdo)),l.dPath_str&&(e.src=l.dPath_str,l.d_sdo=new FWDEVPDisplayObject("img"),l.d_sdo.setScreen(e),l.d_sdo.setWidth(l.totalWidth),l.d_sdo.setHeight(l.totalHeight),l.d_sdo.setX(-100),l.addChild(l.d_sdo))}l.setWidth(l.totalWidth),l.setHeight(l.totalHeight),l.setButtonMode(!0),l.hasPointerEvent_bl?(l.screen.addEventListener("pointerup",l.onMouseUp),l.screen.addEventListener("pointerover",l.onMouseOver),l.screen.addEventListener("pointerout",l.onMouseOut)):l.screen.addEventListener&&(l.screen.addEventListener("mouseover",l.onMouseOver),l.screen.addEventListener("mouseout",l.onMouseOut),l.screen.addEventListener("mouseup",l.onMouseUp),l.screen.addEventListener("touchend",l.onMouseUp))},l.onMouseOver=function(e){if(!e.pointerType||e.pointerType==e.MSPOINTER_TYPE_MOUSE){if(l.isDisabled_bl||l.isSelectedFinal_bl)return;l.dispatchEvent(t.MOUSE_OVER,{e:e}),FWDAnimation.killTweensOf(l.s_sdo),FWDAnimation.to(l.s_sdo,.5,{alpha:1,delay:.1,ease:Expo.easeOut})}},l.onMouseOut=function(e){if(!e.pointerType||e.pointerType==e.MSPOINTER_TYPE_MOUSE){if(l.isDisabled_bl||l.isSelectedFinal_bl)return;l.dispatchEvent(t.MOUSE_OUT,{e:e}),FWDAnimation.killTweensOf(l.s_sdo),FWDAnimation.to(l.s_sdo,.5,{alpha:0,ease:Expo.easeOut})}},l.onMouseUp=function(e){e.preventDefault&&e.preventDefault(),l.isDisabled_bl||2==e.button||l.isSelectedFinal_bl||l.dispatchEvent(t.MOUSE_UP,{e:e})},l.setSelctedFinal=function(){l.isSelectedFinal_bl=!0,FWDAnimation.killTweensOf(l.s_sdo),FWDAnimation.to(l.s_sdo,.8,{alpha:1,ease:Expo.easeOut}),l.setButtonMode(!1)},l.setUnselctedFinal=function(){l.isSelectedFinal_bl=!1,FWDAnimation.to(l.s_sdo,.8,{alpha:0,delay:.1,ease:Expo.easeOut}),l.setButtonMode(!0)},this.setDisabledState=function(){l.isSetToDisabledState_bl||(l.d_sdo.setX(0),l.isSetToDisabledState_bl=!0,l.isMobile_bl?l.d_sdo.setX(0):(FWDAnimation.killTweensOf(l.d_sdo),FWDAnimation.to(l.d_sdo,.8,{alpha:1,ease:Expo.easeOut})))},this.setEnabledState=function(){l.isSetToDisabledState_bl&&(l.isSetToDisabledState_bl=!1,l.d_sdo.setX(-100),l.isMobile_bl?l.d_sdo.setX(-100):(FWDAnimation.killTweensOf(l.d_sdo),FWDAnimation.to(l.d_sdo,.8,{alpha:0,delay:.1,ease:Expo.easeOut})))},this.disable=function(){l.isDisabled_bl=!0,l.setButtonMode(!1)},this.enable=function(){l.isDisabled_bl=!1,l.setButtonMode(!0)},l.updateHEXColors=function(e,t){FWDEVPUtils.changeCanvasHEXColor(l.nImg,l.n_sdo_canvas,e),FWDEVPUtils.changeCanvasHEXColor(l.img1,l.s_sdo_canvas,t)},l.destroy=function(){l.isMobile_bl?l.hasPointerEvent_bl?(l.screen.removeEventListener("pointerdown",l.onMouseUp),l.screen.removeEventListener("pointerover",l.onMouseOver),l.screen.removeEventListener("pointerout",l.onMouseOut)):l.screen.removeEventListener("touchend",l.onMouseUp):l.screen.removeEventListener?(l.screen.removeEventListener("mouseover",l.onMouseOver),l.screen.removeEventListener("mouseout",l.onMouseOut),l.screen.removeEventListener("mousedown",l.onMouseUp)):l.screen.detachEvent&&(l.screen.detachEvent("onmouseover",l.onMouseOver),l.screen.detachEvent("onmouseout",l.onMouseOut),l.screen.detachEvent("onmousedown",l.onMouseUp)),FWDAnimation.killTweensOf(l.s_sdo),l.n_sdo.destroy(),l.s_sdo.destroy(),l.d_sdo&&(FWDAnimation.killTweensOf(l.d_sdo),l.d_sdo.destroy()),l.nImg=null,l.sImg=null,l.dImg=null,l.n_sdo=null,l.s_sdo=null,l.d_sdo=null,e=null,sImg=null,dImg=null,l.toolTipLabel_str=null,l.init=null,l.setupMainContainers=null,l.onMouseOver=null,l.onMouseOut=null,l.onClick=null,l.onMouseDown=null,l.setSelctedFinal=null,l.setUnselctedFinal=null,l.setInnerHTML(""),a.destroy(),l=null,a=null,t.prototype=null},l.init()};t.setPrototype=function(){t.prototype=null,t.prototype=new FWDEVPDisplayObject("div")},t.CLICK="onClick",t.MOUSE_OVER="onMouseOver",t.MOUSE_OUT="onMouseOut",t.MOUSE_UP="onMouseDown",t.prototype=null,e.FWDEVPVolumeButton=t}(window),function(e){var t=function(e,o){var i=this;t.prototype;this.main_do=null,this.ytb=null,this.lastQuality_str="auto",this.volume=o,this.updateVideoId_int,this.updatePreloadId_int,this.controllerHeight=e.data.controllerHeight,this.hasHours_bl=!1,this.hasBeenCreatedOnce_bl=!1,this.allowScrubing_bl=!1,this.hasError_bl=!1,this.isPlaying_bl=!1,this.isStopped_bl=!0,this.isStartEventDispatched_bl=!1,this.isSafeToBeControlled_bl=!1,this.isPausedInEvent_bl=!0,this.isShowed_bl=!0,this.isCued_bl=!1,this.isQualityArrayDisapatched_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.init=function(){i.hasTransform3d_bl=!1,i.hasTransform2d_bl=!1,i.setBackfaceVisibility(),e.main_do.addChildAt(i,0),i.resizeAndPosition(),i.setupVideo(),i.setupDisableClick(),i.setWidth(1),i.setHeight(1)},this.setupDisableClick=function(){i.disableClick_do=new FWDEVPDisplayObject("div"),i.disableClick_do.setBkColor(e.backgroundColor_str),i.addChild(i.disableClick_do)},this.showDisable=function(){e.tempVidStageWidth&&i.disableClick_do.w!=i.stageWidth&&(i.disableClick_do.setWidth(e.tempVidStageWidth),FWDEVPUtils.isIphone?i.disableClick_do.setHeight(e.tempVidStageHeight-i.controllerHeight):i.disableClick_do.setHeight(e.tempVidStageHeight))},this.hideDisable=function(){0!=i.disableClick_do.w&&(i.disableClick_do.setWidth(0),i.disableClick_do.setHeight(0))},this.setupVideo=function(){i.ytb||(i.main_do=new FWDEVPDisplayObject("div"),i.main_do.hasTransform3d_bl=!1,i.main_do.hasTransform2d_bl=!1,i.main_do.screen.setAttribute("id",e.instanceName_str+"youtube"),i.main_do.getStyle().width="100%",i.main_do.getStyle().height="100%",i.main_do.setBackfaceVisibility(),i.addChild(i.main_do),i.ytb=new YT.Player(e.instanceName_str+"youtube",{width:"100%",height:"100%",playerVars:{controls:0,disablekb:0,loop:0,autoplay:0,wmode:"opaque",showinfo:0,rel:0,modestbranding:1,iv_load_policy:3,cc_load_policy:0,fs:0,html5:0,playsinline:1},events:{onReady:i.playerReadyHandler,onError:i.playerErrorHandler,onStateChange:i.stateChangeHandler,onPlaybackQualityChange:i.qualityChangeHandler}}))},this.playerReadyHandler=function(){!i.ytb||i.ytb.playVideo||i.ytb.cueVideoById?(clearInterval(i.updateReadyId_int),i.resizeAndPosition(),i.dispatchEvent(t.READY),i.hasBeenCreatedOnce_bl=!0):i.updateReadyId_int=setInterval(function(){i.playerReadyHandler()},50)},this.stateChangeHandler=function(o){if(o.data==YT.PlayerState.PLAYING)i.isSafeToBeControlled_bl||(i.isStopped_bl=!1,i.isSafeToBeControlled_bl=!0,i.isPlaying_bl=!0,i.hasHours_bl=Math.floor(i.ytb.getDuration()/3600)>0,i.setVolume(e.volume),i.startToUpdate(),i.startToPreload(),i.isMobile_bl||i.ytb.seekTo(1e-6),i.isMobile_bl||i.setQuality(i.lastQuality_str),i.ytb.getAvailableQualityLevels()&&0!=i.ytb.getAvailableQualityLevels().length&&i.dispatchEvent(t.QUALITY_CHANGE,{qualityLevel:i.ytb.getPlaybackQuality(),levels:i.ytb.getAvailableQualityLevels()}),i.setPlaybackRate(),i.dispatchEvent(t.SAFE_TO_SCRUBB)),i.isPausedInEvent_bl&&i.dispatchEvent(t.PLAY),i.isPausedInEvent_bl=!1,i.hasError_bl=!1;else if(o.data==YT.PlayerState.PAUSED){if(!i.isSafeToBeControlled_bl)return;i.isPausedInEvent_bl||i.dispatchEvent(t.PAUSE),i.isPausedInEvent_bl=!0}else o.data==YT.PlayerState.ENDED?i.ytb.getCurrentTime()&&i.ytb.getCurrentTime()>0&&i.isSafeToBeControlled_bl&&setTimeout(function(){i.dispatchEvent(t.PLAY_COMPLETE)},100):o.data==YT.PlayerState.CUED&&(i.isStopped_bl||i.dispatchEvent(t.CUED),i.isCued_bl=!0)},this.qualityChangeHandler=function(e){i.ytb.getAvailableQualityLevels()&&0!=i.ytb.getAvailableQualityLevels().length&&i.dispatchEvent(t.QUALITY_CHANGE,{qualityLevel:i.ytb.getPlaybackQuality()})},this.playerErrorHandler=function(e){if(i.isPausedInEvent_bl=!0,!i.isStopped_bl&&!i.hasError_bl&&i.sourcePath_str){var o="";i.hasError_bl=!0,2==e.data?o="The youtube id is not well formatted, make sure it has exactly 11 characters and that it dosn't contain invalid characters such as exclamation points or asterisks.":5==e.data?o="The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.":100==e.data?o="The youtube video request was not found, probably the video ID is incorrect.":101!=e.data&&150!=e.data||(o="The owner of the requested video does not allow it to be played in embedded players."),i.dispatchEvent(t.ERROR,{text:o})}},this.resizeAndPosition=function(){e.tempVidStageWidth&&(i.setX(-1),i.setY(-1),i.setWidth(e.tempVidStageWidth+2),i.setHeight(e.tempVidStageHeight+2))},this.setSource=function(e){e&&(i.sourcePath_str=e),i.ytb.cueVideoById(i.sourcePath_str),i.isMobile_bl||(i.isStopped_bl=!1)},this.play=function(t){FWDEVPlayer.curInstance=e,i.isPlaying_bl=!0,i.hasError_bl=!1,i.ytb.playVideo(),i.startToUpdate(),i.isMobile_bl||(i.isStopped_bl=!1)},this.pause=function(){if(!i.isStopped_bl&&!i.hasError_bl){i.isPlaying_bl=!1;try{i.ytb.pauseVideo()}catch(e){}i.stopToUpdate()}},this.togglePlayPause=function(){i.isPlaying_bl?i.pause():i.play()},this.resume=function(){i.isStopped_bl||i.play()},this.startToUpdate=function(){clearInterval(i.updateVideoId_int),i.updateVideoId_int=setInterval(i.updateVideo,500)},this.stopToUpdate=function(){clearInterval(i.updateVideoId_int)},this.updateVideo=function(){var e;if(i.ytb){i.allowScrubing_bl||(e=i.ytb.getCurrentTime()/i.ytb.getDuration(),i.dispatchEvent(t.UPDATE,{percent:e}));var o=i.formatTime(i.ytb.getDuration()),s=i.formatTime(i.ytb.getCurrentTime());i.dispatchEvent(t.UPDATE_TIME,{curTime:s,totalTime:o,seconds:parseInt(i.ytb.getCurrentTime())})}else stopToUpdate()},this.startToPreload=function(){clearInterval(i.preloadVideoId_int),i.updatePreloadId_int=setInterval(i.updateProgress,500)},this.stopToPreload=function(){clearInterval(i.updatePreloadId_int)},this.updateProgress=function(){if(i.ytb){var e=i.ytb.getVideoLoadedFraction();i.dispatchEvent(t.LOAD_PROGRESS,{percent:e})}else stopToPreload()},this.stop=function(){i.isStopped_bl||(i.isPlaying_bl=!1,i.isStopped_bl=!0,i.isCued_bl=!1,i.allowScrubing_bl=!1,i.isSafeToBeControlled_bl=!1,i.isQualityArrayDisapatched_bl=!1,i.isPausedInEvent_bl=!0,clearInterval(i.updateReadyId_int),i.stopToUpdate(),i.stopToPreload(),i.stopVideo(),i.dispatchEvent(t.STOP),i.dispatchEvent(t.LOAD_PROGRESS,{percent:0}),i.dispatchEvent(t.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00"}))},this.destroyYoutube=function(){i.main_do&&(i.main_do.screen.removeAttribute("id",e.instanceName_str+"youtube"),i.main_do.destroy(),i.main_do=null),i.ytb&&i.ytb.destroy(),i.ytb=null},this.stopVideo=function(){i.ytb&&i.ytb.cueVideoById&&i.ytb.cueVideoById(i.sourcePath_str)},this.startToScrub=function(){i.isSafeToBeControlled_bl&&(i.allowScrubing_bl=!0)},this.scrubbAtTime=function(e){i.isSafeToBeControlled_bl&&i.ytb.seekTo(e)},this.stopToScrub=function(){i.isSafeToBeControlled_bl&&(i.allowScrubing_bl=!1)},this.scrub=function(e){i.isSafeToBeControlled_bl&&i.ytb.seekTo(e*i.ytb.getDuration())},this.setPlaybackRate=function(e){i.ytb&&!i.isMobile_bl&&(e&&(i.rate=e),i.ytb&&i.ytb.setPlaybackRate&&i.ytb.setPlaybackRate(i.rate))},this.setVolume=function(e){e&&(i.volume=e),i.ytb&&i.ytb.setVolume(100*e)},this.setQuality=function(e){i.lastQuality_str=e,i.ytb.setPlaybackQuality(e)},this.formatTime=function(e){var t=Math.floor(e/3600),o=e%3600,s=Math.floor(o/60),n=o%60,r=Math.ceil(n);return s=s>=10?s:"0"+s,r=r>=10?r:"0"+r,isNaN(r)?"00:00":i.hasHours_bl?t+":"+s+":"+r:s+":"+r},this.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div")},t.READY="ready",t.ERROR="error",t.UPDATE="update",t.UPDATE_TIME="updateTime",t.SAFE_TO_SCRUBB="safeToControll",t.LOAD_PROGRESS="loadProgress",t.PLAY="play",t.PAUSE="pause",t.STOP="stop",t.PLAY_COMPLETE="playComplete",t.CUED="cued",t.QUALITY_CHANGE="qualityChange",e.FWDEVPYoutubeScreen=t}(window),function(){var e=function(t,o,i,s,n){var r=this;e.prototype;this.text_do=null,this.hd_do=null,this.dumy_do=null,this.label_str=t,this.normalColor_str=o,this.selectedColor_str=i,this.hdPath_str=s,this.id=n,this.totalWidth=0,this.totalHeight=23,this.hdWidth=7,this.hdHeight=5,this.hasHd_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.isDisabled_bl=!1,this.init=function(){r.hasHd_bl=!0,r.setBackfaceVisibility(),r.setupMainContainers(),r.setHeight(r.totalHeight)},this.setupMainContainers=function(){if(r.text_do=new FWDEVPDisplayObject("div"),r.text_do.setBackfaceVisibility(),r.text_do.hasTransform3d_bl=!1,r.text_do.hasTransform2d_bl=!1,r.text_do.getStyle().display="inline-block",r.text_do.getStyle().whiteSpace="nowrap",r.text_do.getStyle().fontFamily="Arial",r.text_do.getStyle().fontSize="12px",r.text_do.getStyle().color=r.normalColor_str,r.text_do.getStyle().fontSmoothing="antialiased",r.text_do.getStyle().webkitFontSmoothing="antialiased",r.text_do.getStyle().textRendering="optimizeLegibility",r.text_do.setInnerHTML(r.label_str),r.addChild(r.text_do),r.hasHd_bl){var e=new Image;e.src=r.hdPath_str,r.hd_do=new FWDEVPDisplayObject("img"),r.hd_do.setScreen(e),r.hd_do.setWidth(r.hdWidth),r.hd_do.setHeight(r.hdHeight),r.addChild(r.hd_do)}r.dumy_do=new FWDEVPDisplayObject("div"),FWDEVPUtils.isIE&&(r.dumy_do.setBkColor("#FF0000"),r.dumy_do.setAlpha(1e-4)),r.dumy_do.setButtonMode(!0),r.dumy_do.setHeight(r.totalHeight),r.addChild(r.dumy_do),r.hasPointerEvent_bl?(r.screen.addEventListener("pointerup",r.onMouseUp),r.screen.addEventListener("pointerover",r.onMouseOver),r.screen.addEventListener("pointerout",r.onMouseOut)):r.screen.addEventListener&&(r.isMobile_bl||(r.screen.addEventListener("mouseover",r.onMouseOver),r.screen.addEventListener("mouseout",r.onMouseOut),r.screen.addEventListener("mouseup",r.onMouseUp)),r.screen.addEventListener("touchend",r.onMouseUp))},this.onMouseOver=function(t){r.isDisabled_bl||(r.setSelectedState(!0),r.dispatchEvent(e.MOUSE_OVER,{e:t,id:r.id}))},this.onMouseOut=function(t){r.isDisabled_bl||(r.setNormalState(!0),r.dispatchEvent(e.MOUSE_OUT,{e:t,id:r.id}))},this.onMouseUp=function(t){r.isDisabled_bl||2==t.button||(t.preventDefault&&t.preventDefault(),r.dispatchEvent(e.CLICK,{e:t,id:r.id}))},this.setFinalSize=function(){if(0==r.text_do.x){var e=r.text_do.getWidth()+34,t=r.text_do.getHeight();r.text_do.setX(18),r.text_do.setY(parseInt((r.totalHeight-t)/2)),r.hd_do&&(r.hd_do.setX(e-12),r.hd_do.setY(r.text_do.y+1)),r.dumy_do.setWidth(e),r.setWidth(e)}},this.updateText=function(e){this.label_str=e,this.text_do.setInnerHTML(r.label_str),"highres"==r.label_str||"hd1080"==r.label_str||"hd720"==r.label_str||"hd1440"==r.label_str||"hd2160"==r.label_str?r.hd_do.setVisible(!0):r.hd_do.setVisible(!1)},this.setSelectedState=function(e){this.isSelected_bl=!0,FWDAnimation.killTweensOf(r.text_do),e?FWDAnimation.to(r.text_do.screen,.5,{css:{color:r.selectedColor_str},ease:Expo.easeOut}):r.text_do.getStyle().color=r.selectedColor_str},this.setNormalState=function(e){this.isSelected_bl=!1,FWDAnimation.killTweensOf(r.text_do),e?FWDAnimation.to(r.text_do.screen,.5,{css:{color:r.normalColor_str},ease:Expo.easeOut}):r.text_do.getStyle().color=r.normalColor_str},this.disable=function(){r.isDisabled_bl=!0,FWDAnimation.killTweensOf(r.text_do),r.setSelectedState(!0),r.dumy_do.setButtonMode(!1)},this.enable=function(){r.isDisabled_bl=!1,FWDAnimation.killTweensOf(r.text_do),r.setNormalState(!0),r.dumy_do.setButtonMode(!0)},r.init()};e.setPrototype=function(){e.prototype=new FWDEVPDisplayObject("div")},e.MOUSE_OVER="onMouseOver",e.MOUSE_OUT="onMouseOut",e.CLICK="onClick",e.prototype=null,window.FWDEVPYTBQButton=e}(window),!window.Froogaloop)var Froogaloop=function(){function e(t){return new e.fn.init(t)}function t(e,t,o){if(!o.contentWindow.postMessage)return!1;var i=JSON.stringify({method:e,value:t});o.contentWindow.postMessage(i,d)}function o(e){var t,o;try{o=(t=JSON.parse(e.data)).event||t.method}catch(e){}if("ready"!=o||a||(a=!0),!/^https?:\/\/player.vimeo.com/.test(e.origin))return!1;"*"===d&&(d=e.origin);var i=t.value,n=t.data,r=""===r?null:t.player_id,l=s(o,r),u=[];return!!l&&(void 0!==i&&u.push(i),n&&u.push(n),r&&u.push(r),u.length>0?l.apply(null,u):l.call())}function i(e,t,o){o?(l[o]||(l[o]={}),l[o][e]=t):l[e]=t}function s(e,t){return t?l[t][e]:l[e]}function n(e,t){if(t&&l[t]){if(!l[t][e])return!1;l[t][e]=null}else{if(!l[e])return!1;l[e]=null}return!0}function r(e){return!!(e&&e.constructor&&e.call&&e.apply)}var l={},a=!1,d=(Array.prototype.slice,"*");return e.fn=e.prototype={element:null,init:function(e){return a=!1,d="*","string"==typeof e&&(e=document.getElementById(e)),this.element=e,this},api:function(e,o){if(!this.element||!e)return!1;var s=this,n=s.element,l=""!==n.id?n.id:null,a=r(o)?null:o,d=r(o)?o:null;return d&&i(e,d,l),t(e,a,n),s},addEvent:function(e,o){if(!this.element)return!1;var s=this,n=s.element,r=""!==n.id?n.id:null;return i(e,o,r),"ready"!=e?t("addEventListener",e,n):"ready"==e&&a&&o.call(null,r),s},removeEvent:function(e){if(!this.element)return!1;var o=this.element,i=n(e,""!==o.id?o.id:null);"ready"!=e&&i&&t("removeEventListener",e,o)}},e.fn.init.prototype=e.fn,window.addEventListener?window.addEventListener("message",o,!1):window.attachEvent("onmessage",o),window.Froogaloop=window.$f=e}();!function(e){function t(t,o,i){var s,n=i[0],r=t===d;return i[0]=function(){n&&(n.apply(e,arguments),r||(delete o[s],n=null))},s=t.apply(e,i),o[s]={args:i,created:Date.now(),cb:n,id:s},s}function o(t,o,i,s,n){var r=i[s];if(r){var l=t===d;if(o(r.id),!l){var a=r.args[1],u=Date.now()-r.created;u<0&&(u=0),(a-=u)<0&&(a=0),r.args[1]=a}r.args[0]=function(){r.cb&&(r.cb.apply(e,arguments),l||(delete i[s],r.cb=null))},r.created=Date.now(),r.id=t.apply(e,r.args)}}var i=navigator.platform,s=!1;if("iPad"!=i&&"iPhone"!=i||(s=!0),s){var n=!1;if(-1!=navigator.userAgent.indexOf("6")&&(n=!0),n){var r={},l={},a=e.setTimeout,d=e.setInterval,u=e.clearTimeout,h=e.clearInterval;e.setTimeout=function(){return t(a,r,arguments)},e.setInterval=function(){return t(d,l,arguments)},e.clearTimeout=function(e){var t=r[e];t&&(delete r[e],u(t.id))},e.clearInterval=function(e){var t=l[e];t&&(delete l[e],h(t.id))},e.addEventListener("scroll",function(){var e;for(e in r)o(a,u,r,e);for(e in l)o(d,h,l,e)})}}}(window);