// source --> https://3bugmedia.com/wp-content/plugins/Elite-video-player/js/jquery.mCustomScrollbar.min.js?ver=2.3.8
!function(e,t,o){!function(t){var a="function"==typeof define&&define.amd,n="https:"==o.location.protocol?"https:":"http:",r="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.11/jquery.mousewheel.min.js";a||e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+n+"//"+r+"%3E%3C/script%3E")),t()}(function(){var a="mCustomScrollbar",n="mCS",r=".mCustomScrollbar",i={setWidth:!1,setHeight:!1,setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,autoHideScrollbar:!1,autoExpandScrollbar:!1,alwaysShowScrollbar:0,snapAmount:null,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1,disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{enable:!1,scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoExpandHorizontalScroll:!1,autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:!0,updateOnSelectorChange:!1,releaseDraggableSelectors:!1},theme:"light",callbacks:{onInit:!1,onScrollStart:!1,onScroll:!1,onTotalScroll:!1,onTotalScrollBack:!1,whileScrolling:!1,onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0,onOverflowY:!1,onOverflowX:!1,onOverflowYNone:!1,onOverflowXNone:!1},live:!1,liveSelector:null},l=0,s={},c=function(e){s[e]&&(clearTimeout(s[e]),h._delete.call(null,s[e]))},d=t.attachEvent&&!t.addEventListener?1:0,u=!1,f={init:function(t){var t=e.extend(!0,{},i,t),o=h._selector.call(this);if(t.live){var a=t.liveSelector||this.selector||r,d=e(a);if("off"===t.live)return void c(a);s[a]=setTimeout(function(){d.mCustomScrollbar(t),"once"===t.live&&d.length&&c(a)},500)}else c(a);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":h._findAxis.call(null,t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=h._findScrollButtonsType.call(null,t.scrollButtons.scrollType),h._theme.call(null,t),e(o).each(function(){var o=e(this);if(!o.data(n)){o.data(n,{idx:++l,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null});var a=o.data(n).opt,r=o.data("mcs-axis"),i=o.data("mcs-scrollbar-position"),s=o.data("mcs-theme");r&&(a.axis=r),i&&(a.scrollbarPosition=i),s&&(a.theme=s,h._theme.call(null,a)),h._pluginMarkup.call(this),f.update.call(null,o)}})},update:function(t){var o=t||h._selector.call(this);return e(o).each(function(){var t=e(this);if(t.data(n)){var o=t.data(n),a=o.opt,r=e("#mCSB_"+o.idx+"_container"),i=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(!r.length)return;o.tweenRunning&&h._stop.call(null,t),t.hasClass("mCS_disabled")&&t.removeClass("mCS_disabled"),t.hasClass("mCS_destroyed")&&t.removeClass("mCS_destroyed"),h._maxHeight.call(this),h._expandContentHorizontally.call(this),"y"===a.axis||a.advanced.autoExpandHorizontalScroll||r.css("width",h._contentWidth(r.children())),o.overflowed=h._overflowed.call(this),h._scrollbarVisibility.call(this),a.autoDraggerLength&&h._setDraggerLength.call(this),h._scrollRatio.call(this),h._bindEvents.call(this);var l=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==a.axis&&(o.overflowed[0]?i[0].height()>i[0].parent().height()?h._resetContentPosition.call(this):(h._scrollTo.call(this,t,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}),o.contentReset.y=null):(h._resetContentPosition.call(this),"y"===a.axis?h._unbindEvents.call(this):"yx"===a.axis&&o.overflowed[1]&&h._scrollTo.call(this,t,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==a.axis&&(o.overflowed[1]?i[1].width()>i[1].parent().width()?h._resetContentPosition.call(this):(h._scrollTo.call(this,t,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}),o.contentReset.x=null):(h._resetContentPosition.call(this),"x"===a.axis?h._unbindEvents.call(this):"yx"===a.axis&&o.overflowed[0]&&h._scrollTo.call(this,t,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),h._autoUpdate.call(this)}})},scrollTo:function(t,o){if("undefined"!=typeof t&&null!=t){var a=h._selector.call(this);return e(a).each(function(){var a=e(this);if(a.data(n)){var r=a.data(n),i=r.opt,l={trigger:"external",scrollInertia:i.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},l,o),c=h._arr.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=h._to.call(this,c[0],"y"),c[1]=h._to.call(this,c[1],"x"),s.moveDragger&&(c[0]*=r.scrollRatio.y,c[1]*=r.scrollRatio.x),s.dur=d,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==i.axis&&r.overflowed[0]&&(s.dir="y",s.overwrite="all",h._scrollTo.call(this,a,c[0].toString(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==i.axis&&r.overflowed[1]&&(s.dir="x",s.overwrite="none",h._scrollTo.call(this,a,c[1].toString(),s))},s.timeout)}})}},stop:function(){var t=h._selector.call(this);return e(t).each(function(){var t=e(this);t.data(n)&&h._stop.call(null,t)})},disable:function(t){var o=h._selector.call(this);return e(o).each(function(){var o=e(this);if(o.data(n)){var a=o.data(n);a.opt;h._autoUpdate.call(this,"remove"),h._unbindEvents.call(this),t&&h._resetContentPosition.call(this),h._scrollbarVisibility.call(this,!0),o.addClass("mCS_disabled")}})},destroy:function(){var t=h._selector.call(this);return e(t).each(function(){var o=e(this);if(o.data(n)){var r=o.data(n),i=r.opt,l=e("#mCSB_"+r.idx),s=e("#mCSB_"+r.idx+"_container"),d=e(".mCSB_"+r.idx+"_scrollbar");i.live&&c(t),h._autoUpdate.call(this,"remove"),h._unbindEvents.call(this),h._resetContentPosition.call(this),o.removeData(n),h._delete.call(null,this.mcs),d.remove(),l.replaceWith(s.contents()),o.removeClass(a+" _"+n+"_"+r.idx+" mCS-autoHide mCS-dir-rtl mCS_no_scrollbar mCS_disabled").addClass("mCS_destroyed")}})}},h={_selector:function(){return"object"!=typeof e(this)||e(this).length<1?r:this},_theme:function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],r=["minimal","minimal-dark"],i=["minimal","minimal-dark"];t.autoDraggerLength=e.inArray(t.theme,o)>-1?!1:t.autoDraggerLength,t.autoExpandScrollbar=e.inArray(t.theme,a)>-1?!1:t.autoExpandScrollbar,t.scrollButtons.enable=e.inArray(t.theme,n)>-1?!1:t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,r)>-1?!0:t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,i)>-1?"outside":t.scrollbarPosition},_findAxis:function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},_findScrollButtonsType:function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},_pluginMarkup:function(){var t=e(this),o=t.data(n),r=o.opt,i=r.autoExpandScrollbar?" mCSB_scrollTools_onDrag_expand":"",l=["
",""],s="yx"===r.axis?"mCSB_vertical_horizontal":"x"===r.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===r.axis?l[0]+l[1]:"x"===r.axis?l[1]:l[0],d="yx"===r.axis?"
":"",u=r.autoHideScrollbar?" mCS-autoHide":"",f="x"!==r.axis&&"rtl"===o.langDir?" mCS-dir-rtl":"";r.setWidth&&t.css("width",r.setWidth),r.setHeight&&t.css("height",r.setHeight),r.setLeft="y"!==r.axis&&"rtl"===o.langDir?"989999px":r.setLeft,t.addClass(a+" _"+n+"_"+o.idx+u+f).wrapInner("");var _=e("#mCSB_"+o.idx),m=e("#mCSB_"+o.idx+"_container");"y"===r.axis||r.advanced.autoExpandHorizontalScroll||m.css("width",h._contentWidth(m.children())),"outside"===r.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),_.addClass("mCSB_outside").after(c)):(_.addClass("mCSB_inside").append(c),m.wrap(d)),h._scrollButtons.call(this);var p=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];p[0].css("min-height",p[0].height()),p[1].css("min-width",p[1].width())},_contentWidth:function(t){return Math.max.apply(Math,t.map(function(){return e(this).outerWidth(!0)}).get())},_expandContentHorizontally:function(){var t=e(this),o=t.data(n),a=o.opt,r=e("#mCSB_"+o.idx+"_container");a.advanced.autoExpandHorizontalScroll&&"y"!==a.axis&&r.css({position:"absolute",width:"auto"}).wrap("
").css({width:Math.ceil(r[0].getBoundingClientRect().right+.4)-Math.floor(r[0].getBoundingClientRect().left),position:"relative"}).unwrap()},_scrollButtons:function(){var t=e(this),o=t.data(n),a=o.opt,r=e(".mCSB_"+o.idx+"_scrollbar:first"),i=[" "," "," "," "],l=["x"===a.axis?i[2]:i[0],"x"===a.axis?i[3]:i[1],i[2],i[3]];a.scrollButtons.enable&&r.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},_maxHeight:function(){var t=e(this),o=t.data(n),a=(o.opt,e("#mCSB_"+o.idx)),r=t.css("max-height"),i=-1!==r.indexOf("%"),l=t.css("box-sizing");if("none"!==r){var s=i?t.parent().height()*parseInt(r)/100:parseInt(r);"border-box"===l&&(s-=t.innerHeight()-t.height()+(t.outerHeight()-t.innerHeight())),a.css("max-height",Math.round(s))}},_setDraggerLength:function(){var t=e(this),o=t.data(n),a=e("#mCSB_"+o.idx),r=e("#mCSB_"+o.idx+"_container"),i=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[a.height()/r.outerHeight(!1),a.width()/r.outerWidth(!1)],s=[parseInt(i[0].css("min-height")),Math.round(l[0]*i[0].parent().height()),parseInt(i[1].css("min-width")),Math.round(l[1]*i[1].parent().width())],c=d&&s[1]a.height(),l>a.width()]},_resetContentPosition:function(){var t=e(this),o=t.data(n),a=o.opt,r=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(h._stop(t),("x"!==a.axis&&!o.overflowed[0]||"y"===a.axis&&o.overflowed[0])&&(l[0].add(i).css("top",0),h._scrollTo(t,"_resetY")),"y"!==a.axis&&!o.overflowed[1]||"x"===a.axis&&o.overflowed[1]){var s=dx=0;"rtl"===o.langDir&&(s=r.width()-i.outerWidth(!1),dx=Math.abs(s/o.scrollRatio.x)),i.css("left",s),l[1].css("left",dx),h._scrollTo(t,"_resetX")}},_bindEvents:function(){function t(){i=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(i),h._mousewheel.call(o[0])):t()},1e3)}var o=e(this),a=o.data(n),r=a.opt;if(!a.bindEvents){if(h._draggable.call(this),r.contentTouchScroll&&h._contentDraggable.call(this),r.mouseWheel.enable){var i;t()}h._draggerRail.call(this),h._wrapperScroll.call(this),r.advanced.autoScrollOnFocus&&h._focus.call(this),r.scrollButtons.enable&&h._buttons.call(this),r.keyboard.enable&&h._keyboard.call(this),a.bindEvents=!0}},_unbindEvents:function(){var t=e(this),a=t.data(n),r=a.opt,i=n+"_"+a.idx,l=".mCSB_"+a.idx+"_scrollbar",s=e("#mCSB_"+a.idx+",#mCSB_"+a.idx+"_container,#mCSB_"+a.idx+"_container_wrapper,"+l+" .mCSB_draggerContainer,#mCSB_"+a.idx+"_dragger_vertical,#mCSB_"+a.idx+"_dragger_horizontal,"+l+">a"),c=e("#mCSB_"+a.idx+"_container");r.advanced.releaseDraggableSelectors&&s.add(e(r.advanced.releaseDraggableSelectors)),a.bindEvents&&(e(o).unbind("."+i),s.each(function(){e(this).unbind("."+i)}),clearTimeout(t[0]._focusTimeout),h._delete.call(null,t[0]._focusTimeout),clearTimeout(a.sequential.step),h._delete.call(null,a.sequential.step),clearTimeout(c[0].onCompleteTimeout),h._delete.call(null,c[0].onCompleteTimeout),a.bindEvents=!1)},_scrollbarVisibility:function(t){var o=e(this),a=o.data(n),r=a.opt,i=e("#mCSB_"+a.idx+"_container_wrapper"),l=i.length?i:e("#mCSB_"+a.idx+"_container"),s=[e("#mCSB_"+a.idx+"_scrollbar_vertical"),e("#mCSB_"+a.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSB_dragger"),s[1].find(".mCSB_dragger")];"x"!==r.axis&&(a.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeClass("mCS_no_scrollbar_y mCS_y_hidden")):(r.alwaysShowScrollbar?(2!==r.alwaysShowScrollbar&&c[0].add(s[0].children("a")).css("display","none"),l.removeClass("mCS_y_hidden")):(s[0].css("display","none"),l.addClass("mCS_y_hidden")),l.addClass("mCS_no_scrollbar_y"))),"y"!==r.axis&&(a.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeClass("mCS_no_scrollbar_x mCS_x_hidden")):(r.alwaysShowScrollbar?(2!==r.alwaysShowScrollbar&&c[1].add(s[1].children("a")).css("display","none"),l.removeClass("mCS_x_hidden")):(s[1].css("display","none"),l.addClass("mCS_x_hidden")),l.addClass("mCS_no_scrollbar_x"))),a.overflowed[0]||a.overflowed[1]?o.removeClass("mCS_no_scrollbar"):o.addClass("mCS_no_scrollbar")},_coordinates:function(e){var t=e.type;switch(t){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return[e.originalEvent.pageY,e.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var o=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],a=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return[o.pageY,o.pageX,a>1];default:return[e.pageY,e.pageX,!1]}},_draggable:function(){function t(e){var t=p.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}}function a(e,t,o,a){if(p[0].idleTimer=f.scrollInertia<233?250:0,r.attr("id")===m[1])var n="x",i=(r[0].offsetLeft-t+a)*c.scrollRatio.x;else var n="y",i=(r[0].offsetTop-e+o)*c.scrollRatio.y;h._scrollTo(s,i.toString(),{dir:n,drag:!0})}var r,i,l,s=e(this),c=s.data(n),f=c.opt,_=n+"_"+c.idx,m=["mCSB_"+c.idx+"_dragger_vertical","mCSB_"+c.idx+"_dragger_horizontal"],p=e("#mCSB_"+c.idx+"_container"),g=e("#"+m[0]+",#"+m[1]),v=f.advanced.releaseDraggableSelectors?g.add(e(f.advanced.releaseDraggableSelectors)):g;g.bind("mousedown."+_+" touchstart."+_+" pointerdown."+_+" MSPointerDown."+_,function(n){if(n.stopImmediatePropagation(),n.preventDefault(),h._mouseBtnLeft(n)){u=!0,d&&(o.onselectstart=function(){return!1}),t(!1),h._stop(s),r=e(this);var c=r.offset(),m=h._coordinates(n)[0]-c.top,p=h._coordinates(n)[1]-c.left,g=r.height()+c.top,x=r.width()+c.left;g>m&&m>0&&x>p&&p>0&&(i=m,l=p),h._onDragClasses(r,"active",f.autoExpandScrollbar),e(o).bind("mousemove."+_+" pointermove."+_+" MSPointerMove."+_,function(e){if(r){var t=r.offset(),o=h._coordinates(e)[0]-t.top,n=h._coordinates(e)[1]-t.left;if(i===o)return;a(i,l,o,n)}}).add(v).bind("mouseup."+_+" touchend."+_+" pointerup."+_+" MSPointerUp."+_,function(){r&&(h._onDragClasses(r,"active",f.autoExpandScrollbar),r=null),u=!1,d&&(o.onselectstart=null),t(!0)})}}).bind("touchmove."+_,function(e){e.stopImmediatePropagation(),e.preventDefault();var t=r.offset(),o=h._coordinates(e)[0]-t.top,n=h._coordinates(e)[1]-t.left;a(i,l,o,n)}).bind("mousemove."+_,function(e){if(r){var t=r.offset(),o=h._coordinates(e)[0]-t.top,n=h._coordinates(e)[1]-t.left;if(i===o)return;a(i,l,o,n)}}),e(o).bind("mousemove."+_+" pointermove."+_+" MSPointerMove."+_,function(e){if(r){var t=r.offset(),o=h._coordinates(e)[0]-t.top,n=h._coordinates(e)[1]-t.left;if(i===o)return;a(i,l,o,n)}}).add(v).bind("mouseup."+_+" touchend."+_+" pointerup."+_+" MSPointerUp."+_,function(){r&&(h._onDragClasses(r,"active",f.autoExpandScrollbar),r=null),u=!1,d&&(o.onselectstart=null),t(!0)})},_contentDraggable:function(){function t(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function o(e,t,o,a,n,r){e&&h._scrollTo(g,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:r})}var a,r,i,l,s,c,d,f,_,m,p,g=e(this),v=g.data(n),x=v.opt,S=n+"_"+v.idx,b=e("#mCSB_"+v.idx),C=e("#mCSB_"+v.idx+"_container"),w=[e("#mCSB_"+v.idx+"_dragger_vertical"),e("#mCSB_"+v.idx+"_dragger_horizontal")],y=[],B=[],T=0,M="yx"===x.axis?"none":"all",k=[];C.bind("touchstart."+S+" pointerdown."+S+" MSPointerDown."+S,function(e){if(h._pointerTouch(e)&&!u&&!h._coordinates(e)[2]){var t=C.offset();a=h._coordinates(e)[0]-t.top,r=h._coordinates(e)[1]-t.left,k=[h._coordinates(e)[0],h._coordinates(e)[1]]}}).bind("touchmove."+S+" pointermove."+S+" MSPointerMove."+S,function(e){if(h._pointerTouch(e)&&!u&&!h._coordinates(e)[2]){e.stopImmediatePropagation(),c=h._getTime();var t=b.offset(),n=h._coordinates(e)[0]-t.top,i=h._coordinates(e)[1]-t.left,l="mcsLinearOut";if(y.push(n),B.push(i),k[2]=Math.abs(h._coordinates(e)[0]-k[0]),k[3]=Math.abs(h._coordinates(e)[1]-k[1]),v.overflowed[0])var s=w[0].parent().height()-w[0].height(),d=a-n>0&&n-a>-(s*v.scrollRatio.y)&&(2*k[3]0&&i-r>-(f*v.scrollRatio.x)&&(2*k[2]30)){_=1e3/(d-s);var g="mcsEaseOut",S=2.5>_,w=S?[y[y.length-2],B[B.length-2]]:[0,0];f=S?[n-w[0],r-w[1]]:[n-i,r-l];var T=[Math.abs(f[0]),Math.abs(f[1])];_=S?[Math.abs(f[0]/4),Math.abs(f[1]/4)]:[_,_];var k=[Math.abs(C[0].offsetTop)-f[0]*t(T[0]/_[0],_[0]),Math.abs(C[0].offsetLeft)-f[1]*t(T[1]/_[1],_[1])];m="yx"===x.axis?[k[0],k[1]]:"x"===x.axis?[null,k[1]]:[k[0],null],p=[4*T[0]+x.scrollInertia,4*T[1]+x.scrollInertia];var O=parseInt(x.contentTouchScroll)||0;m[0]=T[0]>O?m[0]:0,m[1]=T[1]>O?m[1]:0,v.overflowed[0]&&o(m[0],p[0],g,"y",M,!1),v.overflowed[1]&&o(m[1],p[1],g,"x",M,!1)}}})},_mousewheel:function(){function t(e){var t=null;try{var o=e.contentDocument||e.contentWindow.document;t=o.body.innerHTML}catch(a){}return null!==t}var o=e(this),a=o.data(n);if(a){var r=a.opt,i=n+"_"+a.idx,l=e("#mCSB_"+a.idx),s=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],c=e("#mCSB_"+a.idx+"_container").find("iframe"),u=l;c.length&&c.each(function(){var o=this;t(o)&&(u=u.add(e(o).contents().find("body")))}),u.bind("mousewheel."+i,function(t,n){if(h._stop(o),!h._disableMousewheel(o,t.target)){var i="auto"!==r.mouseWheel.deltaFactor?parseInt(r.mouseWheel.deltaFactor):d&&t.deltaFactor<100?100:t.deltaFactor||100;if("x"===r.axis||"x"===r.mouseWheel.axis)var c="x",u=[Math.round(i*a.scrollRatio.x),parseInt(r.mouseWheel.scrollAmount)],f="auto"!==r.mouseWheel.scrollAmount?u[1]:u[0]>=l.width()?.9*l.width():u[0],_=Math.abs(e("#mCSB_"+a.idx+"_container")[0].offsetLeft),m=s[1][0].offsetLeft,p=s[1].parent().width()-s[1].width(),g=t.deltaX||t.deltaY||n;else var c="y",u=[Math.round(i*a.scrollRatio.y),parseInt(r.mouseWheel.scrollAmount)],f="auto"!==r.mouseWheel.scrollAmount?u[1]:u[0]>=l.height()?.9*l.height():u[0],_=Math.abs(e("#mCSB_"+a.idx+"_container")[0].offsetTop),m=s[0][0].offsetTop,p=s[0].parent().height()-s[0].height(),g=t.deltaY||n;"y"===c&&!a.overflowed[0]||"x"===c&&!a.overflowed[1]||(r.mouseWheel.invert&&(g=-g),r.mouseWheel.normalizeDelta&&(g=0>g?-1:1),(g>0&&0!==m||0>g&&m!==p||r.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),h._scrollTo(o,(_-g*f).toString(),{dir:c}))}})}},_disableMousewheel:function(t,o){var a=o.nodeName.toLowerCase(),r=t.data(n).opt.mouseWheel.disableOver,i=["select","textarea"];return e.inArray(a,r)>-1&&!(e.inArray(a,i)>-1&&!e(o).is(":focus"))},_draggerRail:function(){var t=e(this),o=t.data(n),a=n+"_"+o.idx,r=e("#mCSB_"+o.idx+"_container"),i=r.parent(),l=e(".mCSB_"+o.idx+"_scrollbar .mCSB_draggerContainer");l.bind("touchstart."+a+" pointerdown."+a+" MSPointerDown."+a,function(){u=!0}).bind("touchend."+a+" pointerup."+a+" MSPointerUp."+a,function(){u=!1}).bind("click."+a,function(a){if(e(a.target).hasClass("mCSB_draggerContainer")||e(a.target).hasClass("mCSB_draggerRail")){h._stop(t);var n=e(this),l=n.find(".mCSB_dragger");if(n.parent(".mCSB_scrollTools_horizontal").length>0){if(!o.overflowed[1])return;var s="x",c=a.pageX>l.offset().left?-1:1,d=Math.abs(r[0].offsetLeft)-c*(.9*i.width())}else{if(!o.overflowed[0])return;var s="y",c=a.pageY>l.offset().top?-1:1,d=Math.abs(r[0].offsetTop)-c*(.9*i.height())}h._scrollTo(t,d.toString(),{dir:s,scrollEasing:"mcsEaseInOut"})}})},_focus:function(){var t=e(this),a=t.data(n),r=a.opt,i=n+"_"+a.idx,l=e("#mCSB_"+a.idx+"_container"),s=l.parent();l.bind("focusin."+i,function(){var a=e(o.activeElement),n=l.find(".mCustomScrollBox").length,i=0;a.is(r.advanced.autoScrollOnFocus)&&(h._stop(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=n?(i+17)*n:0,t[0]._focusTimeout=setTimeout(function(){var e=[a.offset().top-l.offset().top,a.offset().left-l.offset().left],o=[l[0].offsetTop,l[0].offsetLeft],n=[o[0]+e[0]>=0&&o[0]+e[0]=0&&o[0]+e[1]a");s.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i+" mouseup."+i+" touchend."+i+" pointerup."+i+" MSPointerUp."+i+" mouseout."+i+" pointerout."+i+" MSPointerOut."+i+" click."+i,function(n){function i(e,o){r.scrollAmount=a.snapAmount||a.scrollButtons.scrollAmount,h._sequentialScroll.call(this,t,e,o)}if(n.preventDefault(),h._mouseBtnLeft(n)){var l=e(this).attr("class");switch(r.type=a.scrollButtons.scrollType,n.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===r.type)return;u=!0,o.tweenRunning=!1,i("on",l);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===r.type)return;u=!1,r.dir&&i("off",l);break;case"click":if("stepped"!==r.type||o.tweenRunning)return;i("on",l)}}})},_keyboard:function(){var t=e(this),a=t.data(n),r=a.opt,i=a.sequential,l=n+"_"+a.idx,s=e("#mCSB_"+a.idx),c=e("#mCSB_"+a.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']";s.attr("tabindex","0").bind("blur."+l+" keydown."+l+" keyup."+l,function(n){function l(e,o){i.type=r.keyboard.scrollType,i.scrollAmount=r.snapAmount||r.keyboard.scrollAmount,"stepped"===i.type&&a.tweenRunning||h._sequentialScroll.call(this,t,e,o)}switch(n.type){case"blur":a.tweenRunning&&i.dir&&l("off",null);break;case"keydown":case"keyup":var s=n.keyCode?n.keyCode:n.which,f="on";if("x"!==r.axis&&(38===s||40===s)||"y"!==r.axis&&(37===s||39===s)){if((38===s||40===s)&&!a.overflowed[0]||(37===s||39===s)&&!a.overflowed[1])return;"keyup"===n.type&&(f="off"),e(o.activeElement).is(u)||(n.preventDefault(),n.stopImmediatePropagation(),l(f,s))}else if(33===s||34===s){if((a.overflowed[0]||a.overflowed[1])&&(n.preventDefault(),n.stopImmediatePropagation()),"keyup"===n.type){h._stop(t);var _=34===s?-1:1;if("x"===r.axis||"yx"===r.axis&&a.overflowed[1]&&!a.overflowed[0])var m="x",p=Math.abs(c[0].offsetLeft)-_*(.9*d.width());else var m="y",p=Math.abs(c[0].offsetTop)-_*(.9*d.height());h._scrollTo(t,p.toString(),{dir:m,scrollEasing:"mcsEaseInOut"})}}else if((35===s||36===s)&&!e(o.activeElement).is(u)&&((a.overflowed[0]||a.overflowed[1])&&(n.preventDefault(),n.stopImmediatePropagation()),"keyup"===n.type)){if("x"===r.axis||"yx"===r.axis&&a.overflowed[1]&&!a.overflowed[0])var m="x",p=35===s?Math.abs(d.width()-c.outerWidth(!1)):0;else var m="y",p=35===s?Math.abs(d.height()-c.outerHeight(!1)):0;h._scrollTo(t,p.toString(),{dir:m,scrollEasing:"mcsEaseInOut"})}}})},_sequentialScroll:function(t,o,a){function r(e){var o="stepped"!==c.type,a=e?o?s.scrollInertia/1.5:s.scrollInertia:1e3/60,n=e?o?7.5:40:2.5,i=[Math.abs(d[0].offsetTop),Math.abs(d[0].offsetLeft)],u=[l.scrollRatio.y>10?10:l.scrollRatio.y,l.scrollRatio.x>10?10:l.scrollRatio.x],f="x"===c.dir[0]?i[1]+c.dir[1]*(u[1]*n):i[0]+c.dir[1]*(u[0]*n),_="x"===c.dir[0]?i[1]+c.dir[1]*parseInt(c.scrollAmount):i[0]+c.dir[1]*parseInt(c.scrollAmount),m="auto"!==c.scrollAmount?_:f,p=e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",g=!!e;return e&&17>a&&(m="x"===c.dir[0]?i[1]:i[0]),h._scrollTo(t,m.toString(),{dir:c.dir[0],scrollEasing:p,dur:a,onComplete:g}),e?void(c.dir=!1):(clearTimeout(c.step),void(c.step=setTimeout(function(){r()},a)))}function i(){clearTimeout(c.step),h._stop(t)}var l=t.data(n),s=l.opt,c=l.sequential,d=e("#mCSB_"+l.idx+"_container"),u="stepped"===c.type;switch(o){case"on":if(c.dir=["mCSB_buttonRight"===a||"mCSB_buttonLeft"===a||39===a||37===a?"x":"y","mCSB_buttonUp"===a||"mCSB_buttonLeft"===a||38===a||37===a?-1:1],h._stop(t),h._isNumeric(a)&&"stepped"===c.type)return;r(u);break;case"off":i(),(u||l.tweenRunning&&c.dir)&&r(!0)}},_arr:function(t){var o=e(this).data(n).opt,a=[];return"function"==typeof t&&(t=t()),t instanceof Array?a=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(a[0]=t.y?t.y:t.x||"x"===o.axis?null:t,a[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof a[0]&&(a[0]=a[0]()),"function"==typeof a[1]&&(a[1]=a[1]()),a},_to:function(t,o){if(null!=t&&"undefined"!=typeof t){var a=e(this),r=a.data(n),i=r.opt,l=e("#mCSB_"+r.idx+"_container"),s=l.parent(),c=typeof t;o||(o="x"===i.axis?"x":"y");var d="x"===o?l.outerWidth(!1):l.outerHeight(!1),u="x"===o?l.offset().left:l.offset().top,_="x"===o?l[0].offsetLeft:l[0].offsetTop,m="x"===o?"left":"top";switch(c){case"function":return t();case"object":if(t.nodeType)var p="x"===o?e(t).offset().left:e(t).offset().top;else if(t.jquery){if(!t.length)return;var p="x"===o?t.offset().left:t.offset().top}return p-u;case"string":case"number":if(h._isNumeric.call(null,t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(_-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var g=_+parseInt(t.split("+=")[1]);return g>=0?0:Math.abs(g)}if(-1!==t.indexOf("px")&&h._isNumeric.call(null,t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(s.height()-l.outerHeight(!1));if("right"===t)return Math.abs(s.width()-l.outerWidth(!1));if("first"===t||"last"===t){var v=l.find(":"+t),p="x"===o?e(v).offset().left:e(v).offset().top;return p-u}if(e(t).length){var p="x"===o?e(t).offset().left:e(t).offset().top;return p-u}return l.css(m,t),void f.update.call(null,a[0])}}},_autoUpdate:function(t){function o(){clearTimeout(u[0].autoUpdate),u[0].autoUpdate=setTimeout(function(){return d.advanced.updateOnSelectorChange&&(_=i(),_!==S)?(l(),void(S=_)):(d.advanced.updateOnContentResize&&(m=[u.outerHeight(!1),u.outerWidth(!1),g.height(),g.width(),x()[0],x()[1]],m[0]===b[0]&&m[1]===b[1]&&m[2]===b[2]&&m[3]===b[3]&&m[4]===b[4]&&m[5]===b[5]||(l(),b=m)),d.advanced.updateOnImageLoad&&(p=a(),p!==C&&(u.find("img").each(function(){r(this.src)}),C=p)),void((d.advanced.updateOnSelectorChange||d.advanced.updateOnContentResize||d.advanced.updateOnImageLoad)&&o()))},60)}function a(){var e=0;return d.advanced.updateOnImageLoad&&(e=u.find("img").length),e}function r(e){function t(e,t){return function(){return t.apply(e,arguments)}}function o(){this.onload=null,l()}var a=new Image;a.onload=t(a,o),a.src=e}function i(){d.advanced.updateOnSelectorChange===!0&&(d.advanced.updateOnSelectorChange="*");var t=0,o=u.find(d.advanced.updateOnSelectorChange);return d.advanced.updateOnSelectorChange&&o.length>0&&o.each(function(){t+=e(this).height()+e(this).width()}),t}function l(){clearTimeout(u[0].autoUpdate),f.update.call(null,s[0])}var s=e(this),c=s.data(n),d=c.opt,u=e("#mCSB_"+c.idx+"_container");if(t)return clearTimeout(u[0].autoUpdate),void h._delete.call(null,u[0].autoUpdate);var _,m,p,g=u.parent(),v=[e("#mCSB_"+c.idx+"_scrollbar_vertical"),e("#mCSB_"+c.idx+"_scrollbar_horizontal")],x=function(){return[v[0].is(":visible")?v[0].outerHeight(!0):0,v[1].is(":visible")?v[1].outerWidth(!0):0]},S=i(),b=[u.outerHeight(!1),u.outerWidth(!1),g.height(),g.width(),x()[0],x()[1]],C=a();o()},_snapAmount:function(e,t,o){return Math.round(e/t)*t-o},_stop:function(t){var o=t.data(n),a=e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal");a.each(function(){h._stopTween.call(this)})},_scrollTo:function(t,o,a){function r(e){return s&&c.callbacks[e]&&"function"==typeof c.callbacks[e]}function i(){return[c.callbacks.alwaysTriggerOffsets||S>=b[0]+w,c.callbacks.alwaysTriggerOffsets||-y>=S];
}function l(){var e=[_[0].offsetTop,_[0].offsetLeft],o=[v[0].offsetTop,v[0].offsetLeft],n=[_.outerHeight(!1),_.outerWidth(!1)],r=[f.height(),f.width()];t[0].mcs={content:_,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(n[0])-r[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(n[1])-r[1])),direction:a.dir}}var s=t.data(n),c=s.opt,d={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},a=e.extend(d,a),u=[a.dur,a.drag?0:a.dur],f=e("#mCSB_"+s.idx),_=e("#mCSB_"+s.idx+"_container"),m=_.parent(),p=c.callbacks.onTotalScrollOffset?h._arr.call(t,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?h._arr.call(t,c.callbacks.onTotalScrollBackOffset):[0,0];if(s.trigger=a.trigger,0===m.scrollTop()&&0===m.scrollLeft()||(e(".mCSB_"+s.idx+"_scrollbar").css("visibility","visible"),m.scrollTop(0).scrollLeft(0)),"_resetY"!==o||s.contentReset.y||(r("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(t[0]),s.contentReset.y=1),"_resetX"!==o||s.contentReset.x||(r("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(t[0]),s.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){switch(!s.contentReset.y&&t[0].mcs||!s.overflowed[0]||(r("onOverflowY")&&c.callbacks.onOverflowY.call(t[0]),s.contentReset.x=null),!s.contentReset.x&&t[0].mcs||!s.overflowed[1]||(r("onOverflowX")&&c.callbacks.onOverflowX.call(t[0]),s.contentReset.x=null),c.snapAmount&&(o=h._snapAmount(o,c.snapAmount,c.snapOffset)),a.dir){case"x":var v=e("#mCSB_"+s.idx+"_dragger_horizontal"),x="left",S=_[0].offsetLeft,b=[f.width()-_.outerWidth(!1),v.parent().width()-v.width()],C=[o,0===o?0:o/s.scrollRatio.x],w=p[1],y=g[1],B=w>0?w/s.scrollRatio.x:0,T=y>0?y/s.scrollRatio.x:0;break;case"y":var v=e("#mCSB_"+s.idx+"_dragger_vertical"),x="top",S=_[0].offsetTop,b=[f.height()-_.outerHeight(!1),v.parent().height()-v.height()],C=[o,0===o?0:o/s.scrollRatio.y],w=p[0],y=g[0],B=w>0?w/s.scrollRatio.y:0,T=y>0?y/s.scrollRatio.y:0}C[1]<0||0===C[0]&&0===C[1]?C=[0,0]:C[1]>=b[1]?C=[b[0],b[1]]:C[0]=-C[0],t[0].mcs||(l(),r("onInit")&&c.callbacks.onInit.call(t[0])),clearTimeout(_[0].onCompleteTimeout),!s.tweenRunning&&(0===S&&C[0]>=0||S===b[0]&&C[0]<=b[0])||(h._tweenTo.call(null,v[0],x,Math.round(C[1]),u[1],a.scrollEasing),h._tweenTo.call(null,_[0],x,Math.round(C[0]),u[0],a.scrollEasing,a.overwrite,{onStart:function(){a.callbacks&&a.onStart&&!s.tweenRunning&&(r("onScrollStart")&&(l(),c.callbacks.onScrollStart.call(t[0])),s.tweenRunning=!0,h._onDragClasses(v),s.cbOffsets=i())},onUpdate:function(){a.callbacks&&a.onUpdate&&r("whileScrolling")&&(l(),c.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(a.callbacks&&a.onComplete){"yx"===c.axis&&clearTimeout(_[0].onCompleteTimeout);var e=_[0].idleTimer||0;_[0].onCompleteTimeout=setTimeout(function(){r("onScroll")&&(l(),c.callbacks.onScroll.call(t[0])),r("onTotalScroll")&&C[1]>=b[1]-B&&s.cbOffsets[0]&&(l(),c.callbacks.onTotalScroll.call(t[0])),r("onTotalScrollBack")&&C[1]<=T&&s.cbOffsets[1]&&(l(),c.callbacks.onTotalScrollBack.call(t[0])),s.tweenRunning=!1,_[0].idleTimer=0,h._onDragClasses(v,"hide")},e)}}}))}},_tweenTo:function(e,o,a,n,r,i,l){function s(){w.stop||(S||p.call(),S=h._getTime()-x,c(),S>=w.time&&(w.time=S>w.time?S+_-(S-w.time):S+_-1,w.time0?(w.currVal=f(w.time,b,y,n,r),C[o]=Math.round(w.currVal)+"px"):C[o]=a+"px",g.call()}function d(){_=1e3/60,w.time=S+_,m=t.requestAnimationFrame?t.requestAnimationFrame:function(e){return c(),setTimeout(e,.01)},w.id=m(s)}function u(){null!=w.id&&(t.requestAnimationFrame?t.cancelAnimationFrame(w.id):clearTimeout(w.id),w.id=null)}function f(e,t,o,a,n){switch(n){case"linear":case"mcsLinear":return o*e/a+t;case"mcsLinearOut":return e/=a,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return e/=a/2,1>e?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t);case"easeInOutStrong":return e/=a/2,1>e?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(-Math.pow(2,-10*e)+2)+t);case"easeInOut":case"mcsEaseInOut":return e/=a/2,1>e?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=a,e--,-o*(e*e*e*e-1)+t;case"easeOutStrong":return o*(-Math.pow(2,-10*e/a)+1)+t;case"easeOut":case"mcsEaseOut":default:var r=(e/=a)*e,i=r*e;return t+o*(.499999999999997*i*r+-2.5*r*r+5.5*i+-6.5*r+4*e)}}e._malihuTween||(e._malihuTween={top:{},left:{}});var _,m,l=l||{},p=l.onStart||function(){},g=l.onUpdate||function(){},v=l.onComplete||function(){},x=h._getTime(),S=0,b=e.offsetTop,C=e.style,w=e._malihuTween[o];"left"===o&&(b=e.offsetLeft);var y=a-b;w.stop=0,"none"!==i&&u(),d()},_getTime:function(){return t.performance&&t.performance.now?t.performance.now():t.performance&&t.performance.webkitNow?t.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},_stopTween:function(){var e=this;e._malihuTween||(e._malihuTween={top:{},left:{}}),e._malihuTween.top.id&&(t.requestAnimationFrame?t.cancelAnimationFrame(e._malihuTween.top.id):clearTimeout(e._malihuTween.top.id),e._malihuTween.top.id=null,e._malihuTween.top.stop=1),e._malihuTween.left.id&&(t.requestAnimationFrame?t.cancelAnimationFrame(e._malihuTween.left.id):clearTimeout(e._malihuTween.left.id),e._malihuTween.left.id=null,e._malihuTween.left.stop=1)},_delete:function(e){try{delete e}catch(t){e=null}},_mouseBtnLeft:function(e){return!(e.which&&1!==e.which)},_pointerTouch:function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},_isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)}};e.fn[a]=function(t){return f[t]?f[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):f.init.apply(this,arguments)},e[a]=function(t){return f[t]?f[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):f.init.apply(this,arguments)},e[a].defaults=i,t[a]=!0,e(t).on("load",function(){e(r)[a]()})})}(jQuery,window,document);
// source --> https://3bugmedia.com/wp-content/plugins/Elite-video-player/js/froogaloop.min.js?ver=2.3.8
var Froogaloop=function(){function e(a){return new e.fn.init(a)}function g(a,c,b){if(!b.contentWindow.postMessage)return!1;a=JSON.stringify({method:a,value:c});b.contentWindow.postMessage(a,h)}function l(a){var c,b;try{c=JSON.parse(a.data),b=c.event||c.method}catch(e){}"ready"!=b||k||(k=!0);if(!/^https?:\/\/player.vimeo.com/.test(a.origin))return!1;"*"===h&&(h=a.origin);a=c.value;var m=c.data,f=""===f?null:c.player_id;c=f?d[f][b]:d[b];b=[];if(!c)return!1;void 0!==a&&b.push(a);m&&b.push(m);f&&b.push(f);
return 0 https://3bugmedia.com/wp-content/plugins/Elite-video-player/js/THREEx.FullScreen.min.js?ver=2.3.8
var THREEx=THREEx||{};THREEx.FullScreen=THREEx.FullScreen||{};THREEx.FullScreen.available=function(){return this._hasWebkitFullScreen||this._hasMozFullScreen||this._hasMsFullScreen};THREEx.FullScreen.activated=function(){if(this._hasWebkitFullScreen)return document.webkitIsFullScreen;if(this._hasMozFullScreen)return document.mozFullScreen;if(this._hasMsFullScreen)return document.msFullscreenElement;console.assert(!1)};
THREEx.FullScreen.request=function(a){a=a||document.body;this._hasWebkitFullScreen?a.webkitRequestFullScreen():this._hasMozFullScreen?a.mozRequestFullScreen():this._hasMsFullScreen?a.msRequestFullscreen():console.assert(!1)};THREEx.FullScreen.cancel=function(){this._hasWebkitFullScreen?document.webkitCancelFullScreen():this._hasMozFullScreen?document.mozCancelFullScreen():this._hasMsFullScreen?document.msExitFullscreen():console.assert(!1)};
THREEx.FullScreen._hasWebkitFullScreen="webkitCancelFullScreen"in document?!0:!1;THREEx.FullScreen._hasMozFullScreen="mozCancelFullScreen"in document?!0:!1;THREEx.FullScreen._hasMsFullScreen="msExitFullscreen"in document?!0:!1;
// source --> https://3bugmedia.com/wp-content/plugins/Elite-video-player/js/Playlist.min.js?ver=2.3.8
var PLAYER=PLAYER||{};PLAYER.Playlist=function(e,i,t,o,a,l,s,d,r,p,n,y,v,m,h,u){function c(){E.vimeoStatus.text("paused")}function _(){E.vimeoStatus.text("finished"),E.videoAdPlayed=!1,"Right playlist"==t.playlist||"Bottom playlist"==t.playlist||"Off"==t.playlist?(E.videoid=parseInt(E.videoid)+1,E.videos_array.length==E.videoid&&(E.videoid=0),"Play next video"==t.onFinish?(E.VIDEO.shuffleBtnEnabled?(E.VIDEO.generateRandomNumber(),E.videoid=E.VIDEO.rand,E.VIDEO.setPlaylistItem(E.videoid)):E.VIDEO.setPlaylistItem(E.videoid),E.VIDEO.playVideoById(E.videoid),"youtube"==t.videos[E.videoid].videoType||"YouTube"==t.videoType||"HTML5"==t.videos[E.videoid].videoType||"HTML5 (self-hosted)"==t.videoType||"vimeo"==t.videos[E.videoid].videoType||"Vimeo"==t.videoType||"image"==t.videos[E.videoid].videoType||"Image"==t.videoType):"Restart video"==t.onFinish?E.vimeoPlayer.api("play"):"Stop video"==t.onFinish&&""!=t.posterImgOnVideoFinish&&E.VIDEO.showPoster2()):"Restart video"==t.onFinish?E.vimeoPlayer.api("play"):"Stop video"==t.onFinish}function I(e){E.vimeo_time=Math.floor(e.seconds),E.vimeo_duration=Math.floor(e.duration),E.vimeoStatus.text(e.seconds+"s played"),0==E.vimeo_time&&"yes"==E.videos_array[E.videoid].prerollAD&&(E.VIDEO.videoAdStarted=!0,E.videoAdPlayed?E.vimeoPlayer.api("play"):(E.vimeoPlayer.api("pause"),d.canPlayType&&d.canPlayType("video/mp4").replace(/no/,"")&&(this.canPlay=!0,E.video_pathAD=E.videos_array[E.videoid].preroll_mp4),E.VIDEO.loadAD(E.video_pathAD,"prerollActive"),E.VIDEO.openAD())),E.tim=setInterval(function(){if("HTML5"!=t.videos[E.videoid].videoType&&"HTML5 (self-hosted)"!=t.videoType){if(E.VIDEO.secondsFormat(E.vimeo_time)==E.videos_array[E.videoid].midrollAD_displayTime){if(E.VIDEO.midrollPlayed)return;E.VIDEO.midrollPlayed=!0,"yes"==E.videos_array[E.videoid].midrollAD&&(d.canPlayType&&d.canPlayType("video/mp4").replace(/no/,"")&&(E.canPlay=!0,E.video_pathAD=E.videos_array[E.videoid].midroll_mp4),E.vimeoPlayer.api("pause"),E.VIDEO.loadAD(E.video_pathAD,"midrollActive"),E.VIDEO.openAD())}if(E.VIDEO.secondsFormat(E.vimeo_time)>=E.VIDEO.secondsFormat(E.vimeo_duration-1)&&E.vimeo_duration>0){if(E.VIDEO.postrollPlayed)return;E.VIDEO.postrollPlayed=!0,"yes"==E.videos_array[E.videoid].postrollAD&&(d.canPlayType&&d.canPlayType("video/mp4").replace(/no/,"")&&(E.canPlay=!0,E.video_pathAD=E.videos_array[E.videoid].postroll_mp4),E.vimeoPlayer.api("pause"),E.VIDEO.loadAD(E.video_pathAD,"postrollActive"),E.VIDEO.openAD())}}},50),"yes"==E.videos_array[E.videoid].popupAdShow&&E.VIDEO.enablePopup()}function D(){E.vimeoIframe=e("#vimeo_video")[0],E.vimeoPlayer=$f(E.vimeoIframe),E.vimeoStatus=e(".status"),E.vimeoPlayer.addEvent("ready",function(){E.vimeoPlayer.addEvent("pause",c),E.vimeoPlayer.addEvent("finish",_),E.vimeoPlayer.addEvent("playProgress",I),y&&"AD 5 sec + Pieces After Effects project"!=E.options.videos[0].title&&"Pieces After Effects project"!=E.options.videos[0].title&&"AD 5 sec + Space Odyssey After Effects Project"!=E.options.videos[0].title&&"AD 5 sec Swimwear Spring Summer"!=E.options.videos[0].title&&"i Create"!=E.options.videos[0].title&&"Swimwear Spring Summer"!=E.options.videos[0].title&&"PLuFX50GllfgP_mecAi4LV7cYva-WLVnaM"!=E.options.youtubePlaylistID&&"Google drive video example"!=E.options.videos[0].title&&"Openload video example"!=E.options.videos[0].title&&"Youtube 360 VR video"!=E.options.videos[0].title&&(E.VIDEO.pw(),E.vimeoWrapper.css({zIndex:0}),e("iframe#vimeo_video").attr("src",""))})}var E=this;switch(this.VIDEO=i,this.element=a,this.youtube_array=h,""==t.youtubePlaylistID&&""==t.youtubeChannelID||(t.videos=E.youtube_array),this.canPlay=r,this.CLICK_EV=p,this.params=n,this.isMobile=u,this.preloader=l,this.preloaderAD=s,this.options=t,this.mainContainer=o,this.videoid="VIDEOID",this.adStartTime="ADSTARTTIME",this.videoAdPlayed=!1,this.rand=Math.floor(Math.random()*t.videos.length+0),this.ytQuality=t.youtubeQuality,this.youtubeSTARTED=!1,this.deviceAgent=v,this.agentID=m,this.YTAPI_onPlayerReady=!1,this.vimeo_time,this.vimeo_duration,this.scrollingIsOn=!1,this.playlist=e("
"),this.playlistContent=e("
"),this.playlistBar=e("
"),this.playlistBar.addClass("elite_vp_bg "+this.options.instanceTheme),this.playlist.append(this.playlistBar),this.playlistBarInside=e("
"),this.playlistBarInside.addClass("elite_vp_playlistBarInside"),this.playlistBar.append(this.playlistBarInside),this.lastBtnIcon=e(" ").attr("aria-hidden","true").addClass("fa-elite").addClass("elite-icon-general").addClass("elite_vp_controlsColor "+this.options.instanceTheme).addClass("fa-elite-step-forward").attr("id","elite_vp_lastBtn"),this.firstBtnIcon=e(" ").attr("aria-hidden","true").addClass("fa-elite").addClass("elite-icon-general").addClass("elite_vp_controlsColor "+this.options.instanceTheme).addClass("fa-elite-step-backward").attr("id","elite_vp_firstBtn"),this.nextBtnIcon=e(" ").attr("aria-hidden","true").addClass("fa-elite").addClass("elite-icon-general").addClass("elite_vp_controlsColor "+this.options.instanceTheme).addClass("fa-elite-forward").attr("id","elite_vp_nextBtn"),this.previousBtnIcon=e(" ").attr("aria-hidden","true").addClass("fa-elite").addClass("elite-icon-general").addClass("elite_vp_controlsColor "+this.options.instanceTheme).addClass("fa-elite-backward").attr("id","elite_vp_previousBtn"),this.shuffleBtnIcon=e(" ").attr("aria-hidden","true").attr("id","elite_vp_shuffleBtn").addClass("fa-elite").addClass("elite-icon-general").addClass("elite_vp_controlsColor "+this.options.instanceTheme).addClass("fa-elite-random").addClass("elite_vp_playerElement"),this.lastBtn=e("
").addClass("elite_vp_playlistBarBtn").addClass("elite_vp_playerElement"),this.lastBtn.append(this.lastBtnIcon),this.firstBtn=e("
").addClass("elite_vp_playlistBarBtn").addClass("elite_vp_playerElement"),this.firstBtn.append(this.firstBtnIcon),this.nextBtn=e("
").addClass("elite_vp_playlistBarBtn").addClass("elite_vp_playerElement"),this.nextBtn.append(this.nextBtnIcon),this.previousBtn=e("
").addClass("elite_vp_playlistBarBtn").addClass("elite_vp_playerElement"),this.previousBtn.append(this.previousBtnIcon),this.shuffleBtn=e("
").addClass("elite_vp_playlistBarBtn").addClass("elite_vp_playerElement"),this.shuffleBtn.append(this.shuffleBtnIcon),this.playlistBarInside.append(this.firstBtn),this.playlistBarInside.append(this.previousBtn),this.playlistBarInside.append(this.shuffleBtn),this.playlistBarInside.append(this.nextBtn),this.playlistBarInside.append(this.lastBtn),this.options.playlist){case"Right playlist":this.playlist.attr("id","elite_vp_playlist"),this.playlist.addClass("elite_vp_playlist "+this.options.instanceTheme),this.playlistContent.attr("id",E.options.instanceName+"elite_vp_playlistContent"),this.playlistBar.addClass("elite_vp_playlistBar");break;case"Bottom playlist":this.playlist.attr("id","elite_vp_playlist_bottom"),this.playlist.addClass("elite_vp_playlist "+this.options.instanceTheme),this.playlistContent.attr("id",E.options.instanceName+"elite_vp_playlistContent_bottom"),this.playlistBar.addClass("elite_vp_playlistBar_bottom")}E.videos_array=new Array,E.item_array=new Array,this.vimeoWrapper=e("
"),this.vimeoWrapper.attr("id","elite_vp_vimeoWrapper"),E.element&&E.element.append(E.vimeoWrapper),e("#elite_vp_vimeoWrapper").html('');var V=0,b=0;this.onPlayerReady=function(){if(E.YTAPI_onPlayerReady=!0,"youtube"==t.videos[0].videoType||"YouTube"==t.videoType){E.VIDEO.playButtonScreen.hide();var e=!1,i=window.navigator.userAgent,o=i.indexOf("MSIE "),a=i.indexOf("Trident/");(o>-1||a>-1)&&(e=!0),e?"Yes"==t.loadRandomVideoOnStart?E.VIDEO.youtubePlayer.cueVideoById(E.videos_array[E.rand].youtubeID):E.VIDEO.youtubePlayer.cueVideoById(E.videos_array[0].youtubeID):"Yes"==t.loadRandomVideoOnStart?E.VIDEO.youtubePlayer.cueVideoById(E.videos_array[E.rand].youtubeID):E.VIDEO.youtubePlayer.cueVideoById(E.videos_array[0].youtubeID),E.VIDEO.youtubePlayer.setPlaybackQuality(E.ytQuality),t.autoplay&&(E.isMobile.any()||E.VIDEO.youtubePlayer.playVideo()),E.VIDEO.resizeAll(),y&&"AD 5 sec + Pieces After Effects project"!=E.options.videos[0].title&&"Pieces After Effects project"!=E.options.videos[0].title&&"AD 5 sec + Space Odyssey After Effects Project"!=E.options.videos[0].title&&"AD 5 sec Swimwear Spring Summer"!=E.options.videos[0].title&&"i Create"!=E.options.videos[0].title&&"Swimwear Spring Summer"!=E.options.videos[0].title&&"PLuFX50GllfgP_mecAi4LV7cYva-WLVnaM"!=E.options.youtubePlaylistID&&"Google drive video example"!=E.options.videos[0].title&&"Openload video example"!=E.options.videos[0].title&&"Youtube 360 VR video"!=E.options.videos[0].title&&(E.VIDEO.pw(),void 0!=E.VIDEO.youtubePlayer&&(E.VIDEO.youtubePlayer.stopVideo(),E.VIDEO.youtubePlayer.clearVideo(),E.VIDEO.youtubePlayer.setSize(1,1))),E.popupTimer=setInterval(function(){"yes"==E.videos_array[E.videoid].popupAdShow&&E.VIDEO.enablePopup()},1e3)}},this.onPlayerStateChange=function(e){var o=Math.floor(E.VIDEO.youtubePlayer.getCurrentTime());E.VIDEO.calculateYoutubeTotalTime(E.VIDEO.youtubePlayer.getDuration()),1===e.data&&0==o&&(E.youtubeSTARTED=!0),1===e.data?(E.isMobile.any()&&E.VIDEO.playButtonScreen.addClass("elite_vp_playButtonScreenHide"),a.removeClass("vp_paused"),a.addClass("elite_vp_playing"),i.change("elite_vp_playing"),E.VIDEO.play(),E._timer=setInterval(function(){if("HTML5"!=t.videos[E.videoid].videoType&&"HTML5 (self-hosted)"!=t.videoType){if(E.progressWidth=E.VIDEO.youtubePlayer.getCurrentTime()/E.VIDEO.youtubePlayer.getDuration()*E.VIDEO.videoTrack.width(),E.VIDEO.videoTrackProgress.css("width",E.progressWidth),E.progressIdleWidth=E.VIDEO.youtubePlayer.getCurrentTime()/E.VIDEO.youtubePlayer.getDuration()*E.VIDEO.progressIdleTrack.width(),E.VIDEO.progressIdle.css("width",E.progressIdleWidth),E.VIDEO.calculateYoutubeElapsedTime(E.VIDEO.youtubePlayer.getCurrentTime()),E.buffered=E.VIDEO.youtubePlayer.getVideoLoadedFraction(),E.downloadWidth=E.buffered*E.VIDEO.videoTrack.width(),E.VIDEO.videoTrackDownload.css("width",E.downloadWidth),E.progressIdleDownloadWidth=E.buffered*E.VIDEO.progressIdleTrack.width(),E.VIDEO.progressIdleDownload.css("width",E.progressIdleDownloadWidth),E.VIDEO.secondsFormat(E.VIDEO.youtubePlayer.getCurrentTime())==E.videos_array[E.videoid].midrollAD_displayTime){if(E.VIDEO.midrollPlayed)return;E.VIDEO.midrollPlayed=!0,"yes"==E.videos_array[E.videoid].midrollAD&&(d.canPlayType&&d.canPlayType("video/mp4").replace(/no/,"")&&(E.canPlay=!0,E.video_pathAD=E.videos_array[E.videoid].midroll_mp4),E.VIDEO.youtubePlayer.pauseVideo(),E.VIDEO.loadAD(E.video_pathAD,"midrollActive"),E.VIDEO.openAD())}if(E.VIDEO.secondsFormat(E.VIDEO.youtubePlayer.getCurrentTime())>=E.VIDEO.secondsFormat(E.VIDEO.youtubePlayer.getDuration()-1)&&E.VIDEO.youtubePlayer.getDuration()>0){if(E.VIDEO.postrollPlayed)return;E.VIDEO.postrollPlayed=!0,"yes"==E.videos_array[E.videoid].postrollAD&&(d.canPlayType&&d.canPlayType("video/mp4").replace(/no/,"")&&(E.canPlay=!0,E.video_pathAD=E.videos_array[E.videoid].postroll_mp4),E.VIDEO.youtubePlayer.pauseVideo(),E.VIDEO.loadAD(E.video_pathAD,"postrollActive"),E.VIDEO.openAD())}}},50)):2===e.data?(clearInterval(E._timer),a.addClass("vp_paused"),a.removeClass("elite_vp_playing"),i.change("vp_paused"),E.VIDEO.pause()):0===e.data&&(E.VIDEO.midrollPlayed=!1,E.VIDEO.postrollPlayed=!1,E.videoAdPlayed=!1,E.videoid=parseInt(E.videoid)+1,E.videos_array.length==E.videoid&&(E.videoid=0),"Play next video"==t.onFinish?(E.VIDEO.shuffleBtnEnabled?(E.VIDEO.generateRandomNumber(),E.videoid=E.VIDEO.rand,E.VIDEO.setPlaylistItem(E.videoid)):E.VIDEO.setPlaylistItem(E.videoid),E.VIDEO.playVideoById(E.videoid),"youtube"==t.videos[E.videoid].videoType||"YouTube"==t.videoType||"HTML5"==t.videos[E.videoid].videoType||"HTML5 (self-hosted)"==t.videoType||"image"==t.videos[E.videoid].videoType||"Image"==t.videoType):"Restart video"==t.onFinish?void 0!=E.VIDEO.youtubePlayer&&(E.VIDEO.youtubePlayer.seekTo(0),E.VIDEO.youtubePlayer.playVideo()):"Stop video"==t.onFinish&&""!=t.posterImgOnVideoFinish&&(E.VIDEO.showPoster2(),"youtube"!=t.videos[E.videoid].videoType&&"YouTube"!=t.videoType||(E.VIDEO.closeAD(),E.videoAdPlayed=!1,E.VIDEO.ytWrapper.css({zIndex:501}),E.VIDEO.ytWrapper.css({visibility:"visible"}),E.VIDEO.removeHTML5elements(),void 0!=E.VIDEO.youtubePlayer&&(E.VIDEO.youtubePlayer.cueVideoById(E.videos_array[E.videoid].youtubeID),this.isMobile.any()||E.VIDEO.youtubePlayer.pauseVideo()),E.VIDEO.youtubePlayer.setPlaybackQuality(E.ytQuality)))),1!==e.data||0!=o||"yes"!=E.videos_array[E.videoid].prerollAD&&!E.options.showGlobalPrerollAds?e.data!=YT.PlayerState.PLAYING&&e.data!=YT.PlayerState.CUED||(E.youtubePLAYING=!0):(E.VIDEO.videoAdStarted=!0,E.videoAdPlayed?E.VIDEO.youtubePlayer.playVideo():(E.VIDEO.youtubePlayer.pauseVideo(),d.canPlayType&&d.canPlayType("video/mp4").replace(/no/,"")&&(this.canPlay=!0,t.showGlobalPrerollAds?E.video_pathAD=E.VIDEO.globalPrerollAds_arr[E.VIDEO.getGlobalPrerollRandomNumber()]:E.video_pathAD=E.videos_array[E.videoid].preroll_mp4),E.VIDEO.loadAD(E.video_pathAD,"prerollActive"),E.VIDEO.openAD()))};var O=-1;switch(e(t.videos).each(function(){O+=1;var i={id:O,title:this.title,videoType:this.videoType,youtubeID:this.youtubeID,vimeoID:this.vimeoID,video_path_mp4:this.mp4,enable_mp4_download:this.enable_mp4_download,imageUrl:this.imageUrl,imageTimer:this.imageTimer,prerollAD:this.prerollAD,prerollGotoLink:this.prerollGotoLink,preroll_mp4:this.preroll_mp4,prerollSkipTimer:this.prerollSkipTimer,midrollAD:this.midrollAD,midrollAD_displayTime:this.midrollAD_displayTime,midrollGotoLink:this.midrollGotoLink,midroll_mp4:this.midroll_mp4,midrollSkipTimer:this.midrollSkipTimer,postrollAD:this.postrollAD,postrollGotoLink:this.postrollGotoLink,postroll_mp4:this.postroll_mp4,postrollSkipTimer:this.postrollSkipTimer,popupImg:this.popupImg,popupAdShow:this.popupAdShow,popupAdStartTime:this.popupAdStartTime,popupAdEndTime:this.popupAdEndTime,popupAdGoToLink:this.popupAdGoToLink,description:this.description,thumbnail_image:this.thumbImg,info_text:this.info};E.videos_array.push(i),E.nowPlayingThumbnail=e("
"),E.nowPlayingThumbnail.addClass("elite_vp_nowPlayingThumbnail"),E.nowPlayingThumbnail.text(E.options.nowPlayingTooltipTxt),E.nowPlayingThumbnail.hide(),E.itemLeft=e("
"),E.itemLeft.addClass("elite_vp_itemLeft"),E.i=document.createElement("img"),E.i.onload=function(){E.thumbImageW=this.width,E.thumbImageH=this.height},E.i.src=i.thumbnail_image,"youtube"!=t.videos[O].videoType&&"YouTube"!=t.videoType||"auto"!=i.thumbnail_image&&""!=i.thumbnail_image||(E.i.src="http://img.youtube.com/vi/"+t.videos[O].youtubeID+"/1.jpg"),E.itemLeft.append(E.i),E.itemLeft.append(E.nowPlayingThumbnail),e(E.i).addClass("elite_vp_thumbnail_image elite_vp_themeColorThumbBorder");var o=''+i.title+'
'+i.description+"
",a=''+i.title+'
'+i.description+"
";switch(t.playlist){case"Right playlist":E.item=e("
"),E.item.addClass("elite_vp_item").css("top",String(b)+"px"),E.item_array.push(E.item),E.item.addClass("elite_vp_itemUnselected "+E.options.instanceTheme),E.item.append(E.itemLeft),E.item.append(o),b+=80;break;case"Bottom playlist":E.item=e("
"),E.item.addClass("elite_vp_item").css("left",String(V)+"px"),E.item_array.push(E.item),E.item.addClass("elite_vp_itemUnselected "+E.options.instanceTheme),E.item.css("display","inline-flex"),E.item.append(E.itemLeft),E.item.append(a)}E.playlistContent.append(E.item),void 0!=E.item&&E.item.bind(E.CLICK_EV,function(){E.scrollingIsOn&&E.isMobile.any()||(E.preloader&&E.preloader.stop().animate({opacity:1},0,function(){e(this).show()}),E.videoid=i.id,E.VIDEO.setPlaylistItem(E.videoid),E.VIDEO.resetPlayer(),E.VIDEO.resetPlayerAD(),E.VIDEO.resizeAll(),D(),E.VIDEO.playVideoById(E.videoid),E.youtubeSTARTED=!1,y&&"AD 5 sec + Pieces After Effects project"!=E.options.videos[0].title&&"Pieces After Effects project"!=E.options.videos[0].title&&"AD 5 sec + Space Odyssey After Effects Project"!=E.options.videos[0].title&&"AD 5 sec Swimwear Spring Summer"!=E.options.videos[0].title&&"i Create"!=E.options.videos[0].title&&"Swimwear Spring Summer"!=E.options.videos[0].title&&"PLuFX50GllfgP_mecAi4LV7cYva-WLVnaM"!=E.options.youtubePlaylistID&&"Google drive video example"!=E.options.videos[0].title&&"Openload video example"!=E.options.videos[0].title&&"Youtube 360 VR video"!=E.options.videos[0].title&&E.VIDEO.pw())})}),"Yes"==t.loadRandomVideoOnStart?E.videoid=E.rand:E.videoid=0,E.params.id&&(E.videoid=E.rand=parseInt(E.params.id)),E.options.playlist){case"Right playlist":"Yes"==t.loadRandomVideoOnStart?(e(E.item_array[E.rand]).removeClass("elite_vp_itemUnselected "+this.options.instanceTheme).addClass("elite_vp_itemSelected "+this.options.instanceTheme),E.item_array[E.rand].find(".elite_vp_thumbnail_image").removeClass("elite_vp_thumbnail_image").addClass("elite_vp_thumbnail_imageSelected"),E.VIDEO.playedVideos.push(E.rand)):(e(E.item_array[E.videoid]).removeClass("elite_vp_itemUnselected "+this.options.instanceTheme).addClass("elite_vp_itemSelected "+this.options.instanceTheme),E.item_array[E.videoid].find(".elite_vp_thumbnail_image").removeClass("elite_vp_thumbnail_image").addClass("elite_vp_thumbnail_imageSelected"),E.VIDEO.playedVideos.push(E.videoid));break;case"Bottom playlist":"Yes"==t.loadRandomVideoOnStart?(e(E.item_array[E.rand]).removeClass("elite_vp_itemUnselected_bottom "+this.options.instanceTheme).addClass("elite_vp_itemSelected_bottom "+this.options.instanceTheme),E.item_array[E.rand].find(".elite_vp_thumbnail_image").removeClass("elite_vp_thumbnail_image").addClass("elite_vp_thumbnail_imageSelected"),E.VIDEO.playedVideos.push(E.rand)):(e(E.item_array[E.videoid]).removeClass("elite_vp_itemUnselected_bottom "+this.options.instanceTheme).addClass("elite_vp_itemSelected_bottom "+this.options.instanceTheme),E.item_array[E.videoid].find(".elite_vp_thumbnail_image").removeClass("elite_vp_thumbnail_image").addClass("elite_vp_thumbnail_imageSelected"),E.VIDEO.playedVideos.push(E.videoid))}e(E.playlistContent).mCustomScrollbar("scrollTo",E.item_array[E.videoid]),"youtube"==t.videos[E.videoid].videoType||"YouTube"==t.videoType?(E.VIDEO.imageWrapper.css({zIndex:0}),E.VIDEO.imageWrapper.css({visibility:"none"}),E.VIDEO.hideVideoElements(),E.preloader.stop().animate({opacity:0},0,function(){e(this).hide()}),E.VIDEO.ytWrapper.css({zIndex:501}),E.VIDEO.ytWrapper.css({visibility:"visible"}),E.vimeoWrapper.css({zIndex:0})):"HTML5"==t.videos[E.videoid].videoType||"HTML5 (self-hosted)"==t.videoType?(E.VIDEO.imageWrapper.css({zIndex:0}),E.VIDEO.imageWrapper.css({visibility:"none"}),E.VIDEO.ytWrapper.css({zIndex:0}),E.VIDEO.ytWrapper.css({visibility:"hidden"}),E.vimeoWrapper.css({zIndex:0}),d.canPlayType&&d.canPlayType("video/mp4").replace(/no/,"")&&(this.canPlay=!0,"Yes"==t.loadRandomVideoOnStart?(E.video_path=E.videos_array[E.rand].video_path_mp4,E.video_pathAD=E.videos_array[E.rand].preroll_mp4):(E.video_path=E.videos_array[0].video_path_mp4,E.video_pathAD=E.videos_array[0].preroll_mp4)),E.VIDEO.load(E.video_path,"0")):"vimeo"==t.videos[E.videoid].videoType||"Vimeo"==t.videoType?(E.VIDEO.imageWrapper.css({zIndex:0}),E.VIDEO.imageWrapper.css({visibility:"none"}),E.VIDEO.hideCustomControls(),E.VIDEO.hideVideoElements(),E.preloader.stop().animate({opacity:0},700,function(){e(this).hide()}),E.vimeoWrapper.css({zIndex:501}),E.isMobile.any()?"Yes"==t.loadRandomVideoOnStart?document.getElementById("vimeo_video").src="http://player.vimeo.com/video/"+E.videos_array[E.rand].vimeoID+"?autoplay=0?api=1&player_id=vimeo_video&color="+t.vimeoColor:document.getElementById("vimeo_video").src="http://player.vimeo.com/video/"+E.videos_array[0].vimeoID+"?autoplay=0?api=1&player_id=vimeo_video&color="+t.vimeoColor:t.autoplay?"Yes"==t.loadRandomVideoOnStart?document.getElementById("vimeo_video").src="http://player.vimeo.com/video/"+E.videos_array[E.rand].vimeoID+"?autoplay=1?api=1&player_id=vimeo_video&color="+t.vimeoColor:document.getElementById("vimeo_video").src="http://player.vimeo.com/video/"+E.videos_array[0].vimeoID+"?autoplay=1?api=1&player_id=vimeo_video&color="+t.vimeoColor:"Yes"==t.loadRandomVideoOnStart?document.getElementById("vimeo_video").src="http://player.vimeo.com/video/"+E.videos_array[E.rand].vimeoID+"?autoplay=0?api=1&player_id=vimeo_video&color="+t.vimeoColor:document.getElementById("vimeo_video").src="http://player.vimeo.com/video/"+E.videos_array[0].vimeoID+"?autoplay=0?api=1&player_id=vimeo_video&color="+t.vimeoColor,D()):"image"!=t.videos[E.videoid].videoType&&"Image"!=t.videoType||(E.VIDEO.hideCustomControls(),E.VIDEO.hideVideoElements(),E.VIDEO.ytWrapper.css({zIndex:0}),E.VIDEO.ytWrapper.css({visibility:"hidden"}),E.vimeoWrapper.css({zIndex:0}),E.vimeoWrapper.css({visibility:"hidden"}),E.VIDEO.imageWrapper.css({zIndex:502}),E.VIDEO.imageWrapper.css({visibility:"visible"}),E.VIDEO.imageDisplayed.src=E.videos_array[0].imageUrl,e(E.VIDEO.imageDisplayed).on("load",function(){t.autoplay&&E.VIDEO.setImageTimer()})),E.nextBtn.bind(E.CLICK_EV,function(){E.VIDEO.shuffleBtnEnabled?(E.VIDEO.generateRandomNumber(),E.videoid=E.VIDEO.rand,E.VIDEO.setPlaylistItem(E.videoid)):(E.videoid=E.videoid+1,E.videoid>=t.videos.length&&(E.videoid=0),E.VIDEO.setPlaylistItem(E.videoid)),E.VIDEO.playVideoById(E.videoid),D()}),E.previousBtn.bind(E.CLICK_EV,function(){E.VIDEO.shuffleBtnEnabled?(E.VIDEO.generateRandomNumber(),E.videoid=E.VIDEO.rand,E.VIDEO.setPlaylistItem(E.videoid)):(E.videoid=E.videoid-1,E.videoid<0&&(E.videoid=t.videos.length-1),E.VIDEO.setPlaylistItem(E.videoid)),E.VIDEO.playVideoById(E.videoid),D()}),E.shuffleBtn.bind(E.CLICK_EV,function(){E.VIDEO.toggleShuffleBtn()}),E.lastBtn.bind(E.CLICK_EV,function(){e(E.playlistContent).mCustomScrollbar("scrollTo","last")}),E.firstBtn.bind(E.CLICK_EV,function(){e(E.playlistContent).mCustomScrollbar("scrollTo","first")}),E.totalWidth=t.videoPlayerWidth,E.totalHeight=t.videoPlayerHeight,"Right playlist"!=t.playlist&&"Bottom playlist"!=t.playlist||E.element&&(o.append(E.playlist),E.playlist.append(E.playlistContent)),this.playlistW=this.playlist.width(),this.playlistH=this.playlist.height(),"Right playlist"==t.playlist?(E.playlistContent.css("height",String(b)+"px"),E.playerWidth=E.totalWidth-E.playlist.width(),E.playerHeight=E.totalHeight-E.playlist.height(),E.playlist.css({height:"100%",top:0}),E.playlistContent.height(o.height()-50),e(E.playlistContent).mCustomScrollbar({axis:"y",theme:E.options.playlistScrollType,scrollButtons:{enable:!0},callbacks:{onScrollStart:function(){E.scrollingIsOn=!0},onScroll:function(){E.scrollingIsOn=!1}}})):"Bottom playlist"==t.playlist&&(E.playlistContent.css("width",String(V)+"px"),E.playerWidth=E.totalWidth,E.playerHeight=E.totalHeight-E.playlist.height(),E.playlist.css({left:0,width:"100%",bottom:0}),E.playlistContent.width(o.width()),e(E.playlistContent).mCustomScrollbar({axis:"x",theme:E.options.playlistScrollType,scrollButtons:{enable:!0},callbacks:{onScrollStart:function(){E.scrollingIsOn=!0},onScroll:function(){E.scrollingIsOn=!1}},advanced:{autoExpandHorizontalScroll:!0},setHeight:"auto",setWidth:"auto"})),e(E.playlistContent).mCustomScrollbar("scrollTo",E.item_array[E.videoid])},PLAYER.Playlist.prototype={},PLAYER.Playlist.prototype.hidePlaylist=function(){this.playlist.hide()},PLAYER.Playlist.prototype.showPlaylist=function(){this.playlist.show()},PLAYER.Playlist.prototype.resizePlaylist=function(){var e=this;switch(this.options.playlist){case"Right playlist":this.playlist.css({right:0,height:"100%"}),this.playlistContent.css({top:0,height:e.mainContainer.height()-50}),this.playlistContent.height(this.mainContainer.height()-this.playlistBar.height());break;case"Bottom playlist":this.playlist.css({left:0,width:"100%",bottom:0}),this.playlistContent.height(this.playlist.height()-this.playlistBar.height())}this.playlistBarInside.css({left:e.playlistBar.width()/2-this.playlistBarInside.width()/2})},PLAYER.Playlist.prototype.playYoutube=function(e){void 0!=this.VIDEO.youtubePlayer&&(this.VIDEO.youtubePlayer.cueVideoById(this.videos_array[e].youtubeID),this.VIDEO.youtubePlayer.setPlaybackQuality(this.ytQuality),this.preloader.hide(),this.VIDEO.ytWrapper.css({zIndex:501}),this.VIDEO.ytWrapper.css({visibility:"visible"}),this.isMobile.any()||this.VIDEO.youtubePlayer.playVideo()),this.VIDEO.resizeAll()},PLAYER.Playlist.prototype.playVimeo=function(e){this.preloader.hide(),this.vimeoWrapper.css({zIndex:501}),this.isMobile.any()?document.getElementById("vimeo_video").src="http://player.vimeo.com/video/"+this.videos_array[e].vimeoID+"?autoplay=0?api=1&player_id=vimeo_video&color="+this.options.vimeoColor:document.getElementById("vimeo_video").src="http://player.vimeo.com/video/"+this.videos_array[e].vimeoID+"?autoplay=1?api=1&player_id=vimeo_video&color="+this.options.vimeoColor};
// source --> https://3bugmedia.com/wp-content/plugins/Elite-video-player/js/videoPlayer.min.js?ver=2.3.8
(function(b){b.fn.Video=function(a,b){return new d(this,a)};var n={instanceName:"player1",instanceTheme:"dark",autohideControls:3,hideControlsOnMouseOut:"No",playerLayout:"fixedSize",videoPlayerWidth:1006,videoPlayerHeight:420,lightBox:!0,lightBoxAutoplay:!1,lightBoxThumbnail:"images/preview_images/poster.jpg",lightBoxThumbnailWidth:400,lightBoxThumbnailHeight:220,lightBoxCloseOnOutsideClick:!0,playlist:"Right playlist",playlistScrollType:"light",playlistBehaviourOnPageload:"opened (default)",autoplay:!1,
colorAccent:"#cc181e",vimeoColor:"00adef",youtubeControls:"custom controls",youtubeSkin:"light",youtubeColor:"white",youtubeShowRelatedVideos:"No",videoPlayerShadow:"effect1",loadRandomVideoOnStart:"No",shuffle:"No",posterImg:"images/preview_images/poster.jpg",onFinish:"Play next video",nowPlayingText:"Yes",rightClickMenu:!0,hideVideoSource:!1,showAllControls:!0,allowSkipAd:!0,infoShow:"Yes",shareShow:"Yes",facebookShow:"Yes",twitterShow:"Yes",mailShow:"Yes",facebookShareName:"Elite video player",
facebookShareLink:"http://codecanyon.net/item/elite-video-player-wordpress-plugin/10496434",facebookShareDescription:"Elite Video Player is stunning, modern, responsive, fully customisable high-end video player for WordPress that support advertising and the most popular video platforms like YouTube, Vimeo or self-hosting videos (mp4).",facebookSharePicture:"https://0.s3.envato.com/files/123866118/preview.jpg",twitterText:"Elite video player",twitterLink:"http://codecanyon.net/item/elite-video-player-wordpress-plugin/10496434",
twitterHashtags:"wordpressvideoplayer",twitterVia:"Creative media",googlePlus:"http://codecanyon.net/item/elite-video-player-wordpress-plugin/10496434",logoShow:"Yes",logoClickable:"Yes",logoPath:"images/logo/logo.png",logoGoToLink:"http://codecanyon.net/",logoPosition:"bottom-left",embedShow:"Yes",embedCodeSrc:"www.yourwebsite.com/videoplayer/index.html",embedCodeW:"746",embedCodeH:"420",embedShareLink:"www.yourwebsite.com/videoplayer/index.html",youtubePlaylistID:"",youtubeChannelID:"",videos:[{videoType:"HTML5",
title:"Video title",youtubeID:"0dJO0HyE8xE",vimeoID:"119641053",mp4:"http://creativeinteractivemedia.com/player/videos/Tablet_Promo.mp4",imageUrl:"images/preview_images/poster2.jpg",imageTimer:4,prerollAD:"no",prerollGotoLink:"http://codecanyon.net/",preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",prerollSkipTimer:5,midrollAD:"no",midrollAD_displayTime:"00:10",midrollGotoLink:"http://codecanyon.net/",midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4",
midrollSkipTimer:5,postrollAD:"no",postrollGotoLink:"http://codecanyon.net/",postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",postrollSkipTimer:5,popupImg:"images/preview_images/popup.jpg",popupAdShow:"no",popupAdStartTime:"00:03",popupAdEndTime:"00:07",popupAdGoToLink:"http://codecanyon.net/",description:"Video description goes here.",thumbImg:"images/thumbnail_images/pic1.jpg",info:"Video info goes here. This text can be HTML formatted , find out more . You can disable this info window in player options. Lorem ipsum dolor sit amet, eu pri dolores theophrastus. Posidonium vituperatoribus cu mel, cum feugiat nostrum sapientem ne. Vis ea summo persius, unum velit erant in eos, pri ut suas iriure euripidis. Ad augue expetendis sea. Ne usu saperet appetere honestatis, ne qui nulla debitis sententiae."},
{videoType:"HTML5",title:"Video title",youtubeID:"0dJO0HyE8xE",vimeoID:"119641053",mp4:"http://creativeinteractivemedia.com/player/videos/Tablet_Promo.mp4",imageUrl:"images/preview_images/poster2.jpg",imageTimer:4,prerollAD:"no",prerollGotoLink:"http://codecanyon.net/",preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",prerollSkipTimer:5,midrollAD:"no",midrollAD_displayTime:"00:10",midrollGotoLink:"http://codecanyon.net/",midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4",
midrollSkipTimer:5,postrollAD:"no",postrollGotoLink:"http://codecanyon.net/",postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",postrollSkipTimer:5,popupImg:"images/preview_images/popup.jpg",popupAdShow:"no",popupAdStartTime:"00:03",popupAdEndTime:"00:07",popupAdGoToLink:"http://codecanyon.net/",description:"Video description goes here.",thumbImg:"images/thumbnail_images/pic1.jpg",info:"Video info goes here. This text can be HTML formatted , find out more . You can disable this info window in player options. Lorem ipsum dolor sit amet, eu pri dolores theophrastus. Posidonium vituperatoribus cu mel, cum feugiat nostrum sapientem ne. Vis ea summo persius, unum velit erant in eos, pri ut suas iriure euripidis. Ad augue expetendis sea. Ne usu saperet appetere honestatis, ne qui nulla debitis sententiae."},
{videoType:"HTML5",title:"Video title",youtubeID:"0dJO0HyE8xE",vimeoID:"119641053",mp4:"http://creativeinteractivemedia.com/player/videos/Tablet_Promo.mp4",imageUrl:"images/preview_images/poster2.jpg",imageTimer:4,prerollAD:"no",prerollGotoLink:"http://codecanyon.net/",preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",prerollSkipTimer:5,midrollAD:"no",midrollAD_displayTime:"00:10",midrollGotoLink:"http://codecanyon.net/",midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4",
midrollSkipTimer:5,postrollAD:"no",postrollGotoLink:"http://codecanyon.net/",postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",postrollSkipTimer:5,popupImg:"images/preview_images/popup.jpg",popupAdShow:"no",popupAdStartTime:"00:03",popupAdEndTime:"00:07",popupAdGoToLink:"http://codecanyon.net/",description:"Video description goes here.",thumbImg:"images/thumbnail_images/pic1.jpg",info:"Video info goes here. This text can be HTML formatted , find out more . You can disable this info window in player options. Lorem ipsum dolor sit amet, eu pri dolores theophrastus. Posidonium vituperatoribus cu mel, cum feugiat nostrum sapientem ne. Vis ea summo persius, unum velit erant in eos, pri ut suas iriure euripidis. Ad augue expetendis sea. Ne usu saperet appetere honestatis, ne qui nulla debitis sententiae."},
{videoType:"HTML5",title:"Video title",youtubeID:"0dJO0HyE8xE",vimeoID:"119641053",mp4:"http://creativeinteractivemedia.com/player/videos/Tablet_Promo.mp4",imageUrl:"images/preview_images/poster2.jpg",imageTimer:4,prerollAD:"no",prerollGotoLink:"http://codecanyon.net/",preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",prerollSkipTimer:5,midrollAD:"no",midrollAD_displayTime:"00:10",midrollGotoLink:"http://codecanyon.net/",midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4",
midrollSkipTimer:5,postrollAD:"no",postrollGotoLink:"http://codecanyon.net/",postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",postrollSkipTimer:5,popupImg:"images/preview_images/popup.jpg",popupAdShow:"no",popupAdStartTime:"00:03",popupAdEndTime:"00:07",popupAdGoToLink:"http://codecanyon.net/",description:"Video description goes here.",thumbImg:"images/thumbnail_images/pic1.jpg",info:"Video info goes here. This text can be HTML formatted , find out more . You can disable this info window in player options. Lorem ipsum dolor sit amet, eu pri dolores theophrastus. Posidonium vituperatoribus cu mel, cum feugiat nostrum sapientem ne. Vis ea summo persius, unum velit erant in eos, pri ut suas iriure euripidis. Ad augue expetendis sea. Ne usu saperet appetere honestatis, ne qui nulla debitis sententiae."},
{videoType:"HTML5",title:"Video title",youtubeID:"0dJO0HyE8xE",vimeoID:"119641053",mp4:"http://creativeinteractivemedia.com/player/videos/Tablet_Promo.mp4",imageUrl:"images/preview_images/poster2.jpg",imageTimer:4,prerollAD:"no",prerollGotoLink:"http://codecanyon.net/",preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",prerollSkipTimer:5,midrollAD:"no",midrollAD_displayTime:"00:10",midrollGotoLink:"http://codecanyon.net/",midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4",
midrollSkipTimer:5,postrollAD:"no",postrollGotoLink:"http://codecanyon.net/",postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",postrollSkipTimer:5,popupImg:"images/preview_images/popup.jpg",popupAdShow:"no",popupAdStartTime:"00:03",popupAdEndTime:"00:07",popupAdGoToLink:"http://codecanyon.net/",description:"Video description goes here.",thumbImg:"images/thumbnail_images/pic1.jpg",info:"Video info goes here. This text can be HTML formatted , find out more . You can disable this info window in player options. Lorem ipsum dolor sit amet, eu pri dolores theophrastus. Posidonium vituperatoribus cu mel, cum feugiat nostrum sapientem ne. Vis ea summo persius, unum velit erant in eos, pri ut suas iriure euripidis. Ad augue expetendis sea. Ne usu saperet appetere honestatis, ne qui nulla debitis sententiae."},
{videoType:"HTML5",title:"Video title",youtubeID:"0dJO0HyE8xE",vimeoID:"119641053",mp4:"http://creativeinteractivemedia.com/player/videos/Tablet_Promo.mp4",imageUrl:"images/preview_images/poster2.jpg",imageTimer:4,prerollAD:"no",prerollGotoLink:"http://codecanyon.net/",preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",prerollSkipTimer:5,midrollAD:"no",midrollAD_displayTime:"00:10",midrollGotoLink:"http://codecanyon.net/",midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4",
midrollSkipTimer:5,postrollAD:"no",postrollGotoLink:"http://codecanyon.net/",postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",postrollSkipTimer:5,popupImg:"images/preview_images/popup.jpg",popupAdShow:"no",popupAdStartTime:"00:03",popupAdEndTime:"00:07",popupAdGoToLink:"http://codecanyon.net/",description:"Video description goes here.",thumbImg:"images/thumbnail_images/pic1.jpg",info:"Video info goes here. This text can be HTML formatted , find out more . You can disable this info window in player options. Lorem ipsum dolor sit amet, eu pri dolores theophrastus. Posidonium vituperatoribus cu mel, cum feugiat nostrum sapientem ne. Vis ea summo persius, unum velit erant in eos, pri ut suas iriure euripidis. Ad augue expetendis sea. Ne usu saperet appetere honestatis, ne qui nulla debitis sententiae."}]},
e={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)||navigator.userAgent.match(/WPDesktop/i)},any:function(){return e.Android()||e.BlackBerry()||e.iOS()||e.Opera()||e.Windows()}},p=e.any()?"touchend":"click",q=e.any()?
"touchstart":"mousedown",r=e.any()?"touchmove":"mousemove",t=e.any()?"touchend":"mouseup",u="onorientationchange"in window?"orientationchange":"resize",v={id:function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");a=(new RegExp("[\\?&]"+a+"=([^]*)")).exec(location.search);return null===a?null:decodeURIComponent(a[1].replace(/\+/g," "))}("id")},d=function(a,c){var g=this;this._class=d;this.parent=a;this.parentWidth=this.parent.width();this.parentHeight=this.parent.height();this.windowWidth=b(window).width();
this.windowHeight=b(window).height();this.options=b.extend({},n,c);this.sources=this.options.srcs||this.options.sources;this.state=null;this.loaded=pw=this.embedOn=this.videoPlayingAD=this.shareOn=this.skipBoxOn=this.skipCountOn=this.adOn=this.lightBoxOn=this.infoOn=this.stretching=this.realFullscreenActive=this.inFullScreen=!1;this.readyList=[];this.ADTriggered=this.youtubeReady=this.videoAdStarted=!1;this.volPerc=1;this.isYoutubeAPICreated=this.YTAPIReady=this.html5STARTED=!1;this.ytSkin=this.options.youtubeSkin;
this.ytColor=this.options.youtubeColor;this.ytSkin.toString();this.ytColor.toString();this.youtubeControls=this.options.youtubeControls;this.postrollPlayed=this.midrollPlayed=!1;this.prerollActive=!0;this.qualityBtnEnabled=this.postrollActive=this.midrollActive=!1;this.lightBoxThumbnail;this.lightBoxOverlay;this.lightBoxInitiated=!1;this.globalPrerollAds_arr=g.options.globalPrerollAds.split(";");this.poster2Showing=!1;this.playedVideos=[];switch(this.options.youtubeShowRelatedVideos){case "Yes":g.ytShowRelatedVideos=
1;break;case "No":g.ytShowRelatedVideos=0}this.isMobile=e;this.RESIZE_EV=u;this.CLICK_EV=p;this.START_EV=q;this.MOVE_EV=r;this.END_EV=t;this.canPlay=!1;this.myVideo=document.createElement("video");g.deviceAgent=navigator.userAgent.toLowerCase();g.agentID=g.deviceAgent.match(/(iphone|ipod)/);if("fitToBrowser"==this.options.playerLayout||"fitToBrowser"==c.playerLayout){var f=b("#Elite_video_player");b.each(f,function(){var a=b("
").addClass("fixedCont").css({position:"fixed",width:"100%",height:"100%",
top:0,left:0,background:"#000000",zIndex:2147483647});f.parent().append(a);f.appendTo(a)})}this.setupElement();this.setupElementAD();this.options.rightClickMenu||(b("#Elite_video_player").bind("contextmenu",function(){return!1}),b(".Elite_video_player").bind("contextmenu",function(){return!1}),this.options.lightBox&&b(".elite_vp_mainContainer").bind("contextmenu",function(){return!1}));b(c.videos).each(function(){"youtube"==this.videoType&&(g.includeYoutubeAPI=!0)});if(this.includeYoutubeAPI){var h=
document.createElement("script");h.src="https://www.youtube.com/iframe_api";var l=document.getElementsByTagName("script")[0];l.parentNode.insertBefore(h,l);"default controls"==this.youtubeControls&&(""==this.options.posterImg,this.element.css("visibility","hidden"));"YouTube playlist"!=this.options.videoType&&void 0!=this.options.videoType&&(this.options.youtubePlaylistID="");"YouTube channel"!=this.options.videoType&&void 0!=this.options.videoType&&(this.options.youtubeChannelID="");if(""!=this.options.youtubePlaylistID||
""!=this.options.youtubeChannelID){h=this.options.youtubePlaylistID;l=this.options.youtubeChannelID;this.url;var k="https://www.googleapis.com/youtube/v3/search?order=date&maxResults=50&part=snippet&channelId="+l+"&key=AIzaSyClbVoeyPLBHb9n6Abm0z-AlrzNKeWLKTc",w="https://www.googleapis.com/youtube/v3/playlistItems?&maxResults=50&part=snippet&playlistId="+h+"&key=AIzaSyClbVoeyPLBHb9n6Abm0z-AlrzNKeWLKTc";""!=h?this.url=w:""!=l&&(this.url=k);this.id=-1;this.youtube_array=[];this.ads_array=[];this.data;
b(this.options.videos).each(function(){g.ads_array.push({prerollAD:this.prerollAD,prerollGotoLink:this.prerollGotoLink,preroll_mp4:this.preroll_mp4,prerollSkipTimer:this.prerollSkipTimer,midrollAD:this.midrollAD,midrollAD_displayTime:this.midrollAD_displayTime,midrollGotoLink:this.midrollGotoLink,midroll_mp4:this.midroll_mp4,midrollSkipTimer:this.midrollSkipTimer,postrollAD:this.postrollAD,postrollGotoLink:this.postrollGotoLink,postroll_mp4:this.postroll_mp4,postrollSkipTimer:this.postrollSkipTimer,
popupAdShow:this.popupAdShow,popupImg:this.popupImg,popupAdStartTime:this.popupAdStartTime,popupAdEndTime:this.popupAdEndTime,popupAdGoToLink:this.popupAdGoToLink})});this.requestYTList()}else this.init(),this.waitAPIReady()}else this.init()};d.fn=d.prototype;d.fn.waitAPIReady=function(){var a=this,b=!1;if(!this.YTAPIReady)if("undefined"!=typeof YT&&"undefined"!=typeof YT.Player)this.YTAPIReady=!0,this.isYoutubeAPICreated?this.createYoutubeInstance():this.setupYoutubeAPI();else var d=setInterval(function(){"function"!=
typeof YT.Player||b||(b=!0,clearInterval(d),a.waitAPIReady())},400)};d.fn.setupYoutubeAPI=function(){var a=this;this.isYoutubeAPICreated||(this.isYoutubeAPICreated=!0,this.YTAPIReady?this.createYoutubeInstance():window.onYouTubeIframeAPIReady||(window.onYouTubePlayerAPIReady=function(){a.YTAPIReady=!0;a.createYoutubeInstance()}))};d.fn.createYoutubeInstance=function(){"custom controls"==this.options.youtubeControls?this.youtubePlayer=new YT.Player(this.options.instanceName+"youtube",{height:"100%",
width:"100%",events:{onReady:this._playlist.onPlayerReady,onStateChange:this._playlist.onPlayerStateChange,onPlaybackQualityChange:this.onPlayerPlaybackQualityChange},playerVars:{rel:this.ytShowRelatedVideos,playsinline:1,wmode:"transparent",controls:0,enablejsapi:1,iv_load_policy:3,showinfo:0}}):"default controls"==this.options.youtubeControls&&(this.youtubePlayer=new YT.Player(this.options.instanceName+"youtube",{height:"100%",width:"100%",events:{onReady:this._playlist.onPlayerReady,onStateChange:this._playlist.onPlayerStateChange,
onPlaybackQualityChange:this.onPlayerPlaybackQualityChange},playerVars:{theme:this.ytSkin,color:this.ytColor,rel:this.ytShowRelatedVideos,playsinline:1,wmode:"transparent",controls:1,enablejsapi:1,iv_load_policy:3,modestbranding:0,showinfo:1,autohide:1}}))};d.fn.requestYTList=function(){var a=this;url=void 0!=a.nextPageToken?this.url+"&pageToken="+a.nextPageToken:this.url;b.ajax({url:url,success:function(c){a.data=c;a.nextPageToken=c.nextPageToken;b.each(c.items,function(b,c){a.id+=1;var d=c.snippet.title,
g=c.snippet.description,f=c.snippet.channelTitle;if(""!=a.options.youtubePlaylistID)var e=c.snippet.resourceId.videoId;""!=a.options.youtubeChannelID&&(e=c.id);var k=void 0!=c.snippet.thumbnails?c.snippet.thumbnails["default"].url:"";a.ads_array.push({prerollAD:"no",prerollGotoLink:"prerollGotoLink",preroll_mp4:"preroll_mp4",prerollSkipTimer:"prerollSkipTimer",midrollAD:"no",midrollAD_displayTime:"midrollAD_displayTime",midrollGotoLink:"midrollGotoLink",midroll_mp4:"midroll_mp4",midrollSkipTimer:"midrollSkipTimer",
postrollAD:"no",postrollGotoLink:"postrollGotoLink",postroll_mp4:"postroll_mp4",postrollSkipTimer:"postrollSkipTimer",popupAdShow:"no",popupImg:"popupImg",popupAdStartTime:"popupAdStartTime",popupAdEndTime:"popupAdEndTime",popupAdGoToLink:"popupAdGoToLink"});a.youtube_array.push({id:a.id,title:d,videoType:"youtube",youtubeID:e,vimeoID:this.vimeoID,video_path_mp4:this.mp4,enable_mp4_download:this.enable_mp4_download,prerollAD:a.ads_array[a.id].prerollAD,prerollGotoLink:a.ads_array[a.id].prerollGotoLink,
preroll_mp4:a.ads_array[a.id].preroll_mp4,prerollSkipTimer:a.ads_array[a.id].prerollSkipTimer,midrollAD:a.ads_array[a.id].midrollAD,midrollAD_displayTime:a.ads_array[a.id].midrollAD_displayTime,midrollGotoLink:a.ads_array[a.id].midrollGotoLink,midroll_mp4:a.ads_array[a.id].midroll_mp4,midrollSkipTimer:a.ads_array[a.id].midrollSkipTimer,postrollAD:a.ads_array[a.id].postrollAD,postrollGotoLink:a.ads_array[a.id].postrollGotoLink,postroll_mp4:a.ads_array[a.id].postroll_mp4,postrollSkipTimer:a.ads_array[a.id].postrollSkipTimer,
popupAdShow:a.ads_array[a.id].popupAdShow,popupImg:a.ads_array[a.id].popupImg,popupAdStartTime:a.ads_array[a.id].popupAdStartTime,popupAdEndTime:a.ads_array[a.id].popupAdEndTime,popupAdGoToLink:a.ads_array[a.id].popupAdGoToLink,description:f,thumbImg:k,info:g})});void 0!=c.nextPageToken?a.requestYTList():(a.init(),a.waitAPIReady())}})};d.fn.init=function(){this.preloader=b("
");this.preloader.addClass("elite_vp_preloader");this.element.append(this.preloader);this.preloaderAD=b("
");this.preloaderAD.addClass("elite_vp_preloader");
this.elementAD.append(this.preloaderAD);this.videoElement=b(" ");this.videoElement.addClass("elite_vp_videoPlayer");this.videoElement.attr({width:this.options.width,height:this.options.height,preload:this.options.preloadSelfHosted,controls:this.options.controls});this.videoElementAD=b(" ");this.videoElementAD.addClass("elite_vp_videoPlayerAD");this.videoElementAD.attr({width:this.options.width,height:this.options.height,preload:this.options.preloadSelfHosted,controls:this.options.controls});
e.iOS()&&(this.videoElement.attr("playsinline","").attr("webkit-playsinline",""),this.videoElementAD.attr("playsinline","").attr("webkit-playsinline",""),this.options.autoplay&&(this.videoElement.attr("muted",""),this.videoElement.muted=!0,this.videoElement.attr("autoplay","autoplay")));this.controls=b("
");this.controls.addClass("elite_vp_controls");this.controls.addClass("elite_vp_disabled");this.element&&this.element.append(this.controls);this.options.showAllControls||this.controls.hide();
this.nowPlayingTitle=b("
").addClass("elite_vp_nowPlayingTitle");this.controls.addClass("elite_vp_bg "+this.options.instanceTheme);this.nowPlayingTitle.addClass("elite_vp_bg "+this.options.instanceTheme);this.options.showAllControls||this.nowPlayingTitle.hide();this.element&&this.element.append(this.nowPlayingTitle);this.setupButtonsOnScreen();this._playlist=new PLAYER.Playlist(b,this,this.options,this.mainContainer,this.element,this.preloader,this.preloaderAD,this.myVideo,this.canPlay,this.CLICK_EV,
v,pw,this.deviceAgent,this.agentID,this.youtube_array,this.isMobile);"Right playlist"==this.options.playlist?(this.playerWidth=this.options.videoPlayerWidth-this._playlist.playlistW,this.playerHeight=this.options.videoPlayerHeight):"Bottom playlist"==this.options.playlist?(this.playerWidth=this.options.videoPlayerWidth,this.playerHeight=this.options.videoPlayerHeight-this._playlist.playlistH):"Off"==this.options.playlist&&(this.playerWidth=this.options.videoPlayerWidth,this.playerHeight=this.options.videoPlayerHeight);
this.playlistWidth=this._playlist.playlistW;this.initPlayer();this.resize();this.resizeAll();this.autohideControls()};d.fn.initPlayer=function(){var a=this;this.setupHTML5Video();this.setupHTML5VideoAD();this.setupEvents();this.change("initial");this.setupControls();this.load();this.setupAutoplay();this.setupLightBox();this.setupElements();this.element.bind("idle",b.proxy(this.idle,this));this.element.bind("state.videoPlayer",b.proxy(function(){this.element.trigger("reset.idle")},this));this.secondsFormat=
function(a){isNaN(a)&&(a=0);var b=[],c=Math.floor(a/60);60d?"0"+d:d);b.push(10>c?"0"+c:c);b.push(10>a?"0"+a:a);return b.join(":")};a=this;b(window).resize(function(){a.realFullscreenActive||a.resizeAll()});b(window).bind(this.RESIZE_EV,function(b){a.realFullscreenActive||a.resizeAll()});b(document).bind("webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange",function(b){a.resize(b)});this.resize=
function(c){if(document.webkitIsFullScreen||document.fullscreenElement||document.mozFullScreen||document.msieFullScreen||document.msFullscreenElement)this._playlist.hidePlaylist(),this.element.addClass("elite_vp_fullScreen"),this.elementAD.addClass("elite_vp_fullScreen"),b(this.mainContainer).find(".fa-elite-expand").removeClass("fa-elite-expand").addClass("fa-elite-compress"),b(this.fsEnterADBox).find(".fa-elite-expandAD").removeClass("fa-elite-expandAD").addClass("fa-elite-compressAD"),a.element.width("100%"),
a.element.height("100%"),a.elementAD.width("100%"),a.elementAD.height("100%"),a.mainContainer.width("100%"),a.mainContainer.height("100%"),a.mainContainer.css("position","fixed"),a.mainContainer.css("left",0),a.mainContainer.css("top",0),a.realFullscreenActive=!0,this.timeElapsed.show(),this.timeTotal.show(),this.volumeTrack.show(),this.rewindBtnWrapper.show(),this.unmuteBtnWrapper.show(),this.videoTrack.show(),this.resizeVideoTrack();else{this._playlist.showPlaylist();this.element.removeClass("elite_vp_fullScreen");
this.elementAD.removeClass("elite_vp_fullScreen");b(this.mainContainer).find(".fa-elite-compress").removeClass("fa-elite-compress").addClass("fa-elite-expand");b(this.fsEnterADBox).find(".fa-elite-compressAD").removeClass("fa-elite-compressAD").addClass("fa-elite-expandAD");a.element.width(a.playerWidth);a.element.height(a.playerHeight);a.elementAD.width(a.playerWidth);a.elementAD.height(a.playerHeight);a.mainContainer.css("left","");a.mainContainer.css("top","");"fitToContainer"==a.options.playerLayout||
"fitToBrowser"==a.options.playerLayout?(a.mainContainer.width("100%"),a.mainContainer.height("100%")):"fixedSize"==a.options.playerLayout&&(a.mainContainer.width(a.options.videoPlayerWidth),a.mainContainer.height(a.options.videoPlayerHeight));a.mainContainer.css("position","absolute");this.stretching&&(this.stretching=!1,this.toggleStretch());a.element.css({zIndex:455558});if("yes"==a._playlist.videos_array[a._playlist.videoid].prerollAD||a.options.showGlobalPrerollAds)!a._playlist.videoAdPlayed&&
a.videoAdStarted?a.elementAD.css({zIndex:455559}):a.elementAD.css({zIndex:455557});a.mainContainer.parent().css("zIndex",1);a.mainContainer.css("zIndex",999999);a.realFullscreenActive=!1;a.resizeAll()}this.resizeVideoTrack();this.positionOverScreenButtons();this.positionLogo();this.positionPopup();this.resizeBars();"Yes"==a.options.hideControlsOnMouseOut&&this.hideControls()}};d.fn.setupLightBox=function(){var a=this;if(this.options.lightBox){this.options.playerLayout="fixedSize";var c=this.mainContainer.parent();
b.each(c,function(){a.lightBoxOverlay=b("
").addClass("elite_vp_lightBoxOverlay").hide().css({opacity:0});a.lightBoxCloseBtnWrapper=b("
").addClass("elite_vp_lightBoxCloseBtnWrapper").addClass("elite_vp_bg "+a.options.instanceTheme).addClass("elite_vp_playerElement").bind(a.CLICK_EV,function(){a.toggleLightBox()});a.mainContainer.append(a.lightBoxCloseBtnWrapper);a.lightBoxCloseBtn=b(" ").attr("aria-hidden","true").attr("id","elite_vp_lightBoxCloseBtn").addClass("fa-elite").addClass("elite-icon-general").addClass("elite_vp_controlsColor "+
a.options.instanceTheme).addClass("fa-elite-times");a.lightBoxCloseBtnWrapper.append(a.lightBoxCloseBtn);a.lightBoxOverlayTransparent=b("
").addClass("elite_vp_lightBoxOverlayTransparent").bind(a.CLICK_EV,function(){a.options.lightBoxCloseOnOutsideClick&&a.toggleLightBox()}).appendTo(a.lightBoxOverlay);a.mainContainer.addClass("elite_vp_lightBoxBorder");c.parent().append(a.lightBoxOverlay);a.mainContainer.appendTo(a.lightBoxOverlay);a.lightBoxThumbnailWrap=b("
").addClass("elite_vp_lightBoxThumbnailWrap").bind(a.CLICK_EV,
function(){a.toggleLightBox()}).css({cursor:"pointer",width:a.options.lightBoxThumbnailWidth,height:a.options.lightBoxThumbnailHeight}).appendTo(c);a.lightBoxThumbnail=b(' ').attr("src",a.options.lightBoxThumbnail).appendTo(a.lightBoxThumbnailWrap);a.lightBoxPlayButton=b("
");a.lightBoxPlayButton.addClass("elite_vp_playButtonScreen").attr("aria-hidden","true").addClass("fa-elite").addClass("fa-elite-playScreen "+a.options.instanceTheme).appendTo(a.lightBoxThumbnailWrap)})}};
d.fn.setColorAccent=function(a,c){b(".elite_vp_themeColor").css({background:a});b(".elite_vp_themeColorText").css({color:a});b(".elite_vp_playBtnBg").css({background:a});b(c).hasClass("fa-elite-random")&&(b("#elite_vp_shuffleBtn.elite_vp_themeColor").css({background:a}),b("#elite_vp_shuffleBtn.elite_vp_themeColorText").css({color:a}),b("#elite_vp_shuffleBtn.elite_vp_playBtnBg").css({background:a}));b(c).hasClass("fa-elite-cog")&&(b("#elite_vp_qualityBtn.elite_vp_themeColor").css({background:a}),b("#elite_vp_qualityBtn.elite_vp_themeColorText").css({color:a}),
b("#elite_vp_qualityBtn.elite_vp_playBtnBg").css({background:a}))};d.fn.removeColorAccent=function(a){b(a).hasClass("fa-elite-random")&&b(".fa-elite-random").css("color","");b(a).hasClass("fa-elite-cog")&&b(".fa-elite-cog").css("color","")};d.fn.resizeAll=function(){if(!this.realFullscreenActive)if("fitToContainer"==this.options.playerLayout||"fitToBrowser"==this.options.playerLayout){var a="Right playlist"==this.options.playlist?this.options.videoRatioStretch?(this.parent.width()-this._playlist.playlist.width())/
this.options.videoRatio:this.parent.width()/this.options.videoRatio:"Bottom playlist"==this.options.playlist?this.options.videoRatioStretch?this.parent.width()/this.options.videoRatio+this._playlist.playlist.height():this.parent.width()/this.options.videoRatio:this.parent.width()/this.options.videoRatio;this.mainContainer.height(a);this.parent.height(a);switch(this.options.playlist){case "Right playlist":if(this.stretching){380>this.parent.width()?this.videoTrack.hide():this.videoTrack.show();361>
this.parent.width()?this.timeTotal.hide():this.timeTotal.show();if("youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType)320>this.parent.width()?this.qualityBtnWrapper.hide():this.qualityBtnWrapper.show();"yes"==this._playlist.videos_array[this._playlist.videoid].enable_mp4_download&&(320>this.parent.width()?this.downloadBtnLink.hide():this.downloadBtnLink.show());290>this.parent.width()?this.rewindBtnWrapper.hide():this.rewindBtnWrapper.show();
262>this.parent.width()?this.unmuteBtnWrapper.hide():this.unmuteBtnWrapper.show();this.volumeTrack.show();"Yes"==this.options.embedShow&&(560>this.parent.width()?this.embedBtn.hide():this.embedBtn.show())}else{640>this.parent.width()?this.videoTrack.hide():this.videoTrack.show();620>this.parent.width()?this.timeTotal.hide():this.timeTotal.show();if("youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType)580>this.parent.width()?this.qualityBtnWrapper.hide():
this.qualityBtnWrapper.show();"yes"==this._playlist.videos_array[this._playlist.videoid].enable_mp4_download&&(580>this.parent.width()?this.downloadBtnLink.hide():this.downloadBtnLink.show());552>this.parent.width()?this.rewindBtnWrapper.hide():this.rewindBtnWrapper.show();452>this.parent.width()?this.unmuteBtnWrapper.hide():this.unmuteBtnWrapper.show();425>this.parent.width()?this.volumeTrack.hide():this.volumeTrack.show();"Yes"==this.options.embedShow&&(590>this.parent.width()?this.embedBtn.hide():
this.embedBtn.show());if(522>this.parent.width()){this.mainContainer.find(".elite_vp_playlistBarBtn").css({width:"20px"});this.mainContainer.find("#elite_vp_nextBtn").css({marginLeft:"-7.5px"});this.mainContainer.find("#elite_vp_previousBtn").css({marginLeft:"-7.5px"});this.mainContainer.find("#elite_vp_shuffleBtn").css({marginLeft:"-8px"});this._playlist.lastBtn.hide();this._playlist.firstBtn.hide();this._playlist.playlist.css({width:90});this.mainContainer.find(".elite_vp_itemRight").hide();this.videoTrack.show();
this.timeElapsed.show();this.timeTotal.show();this.volumeTrack.show();this.rewindBtnWrapper.show();"youtube"!=this._playlist.videos_array[this._playlist.videoid].videoType&&"YouTube"!=this.options.videoType||this.qualityBtnWrapper.show();"yes"==this._playlist.videos_array[this._playlist.videoid].enable_mp4_download&&this.downloadBtnLink.show();this.unmuteBtnWrapper.show();470>this.parent.width()?this.videoTrack.hide():this.videoTrack.show();450>this.parent.width()?this.timeTotal.hide():this.timeTotal.show();
if("youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType)410>this.parent.width()?this.qualityBtnWrapper.hide():this.qualityBtnWrapper.show();"yes"==this._playlist.videos_array[this._playlist.videoid].enable_mp4_download&&(410>this.parent.width()?this.downloadBtnLink.hide():this.downloadBtnLink.show());380>this.parent.width()?this.rewindBtnWrapper.hide():this.rewindBtnWrapper.show();353>this.parent.width()?this.unmuteBtnWrapper.hide():this.unmuteBtnWrapper.show();
322>this.parent.width()?this.volumeTrack.hide():this.volumeTrack.show()}else this._playlist.playlist.css({width:260}),this.mainContainer.find(".elite_vp_itemRight").show(),this.mainContainer.find(".elite_vp_playlistBarBtn").css({width:"30px"}),this.mainContainer.find("#elite_vp_nextBtn").css({marginLeft:"7.5px"}),this.mainContainer.find("#elite_vp_previousBtn").css({marginLeft:"7.5px"}),this.mainContainer.find("#elite_vp_shuffleBtn").css({marginLeft:"8px"}),this._playlist.lastBtn.show(),this._playlist.firstBtn.show()}190>
this._playlist.playlist.height()?(b(this.playButtonScreen).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)"}),b(this.toggleAdPlayBox).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)"}),b(this.skipAdCount).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",
transform:"scale(0.6)","transform-origin":"bottom right"}),b(this.skipAdBox).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)","transform-origin":"bottom right"}),b(this.logoImg).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)","transform-origin":"bottom left"}),b(this.controls).css({height:35}),b(this._playlist.playlistBar).css({height:35})):
(b(this.playButtonScreen).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)"}),b(this.toggleAdPlayBox).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)"}),b(this.skipAdCount).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)","transform-origin":"bottom right"}),
b(this.skipAdBox).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)","transform-origin":"bottom right"}),b(this.logoImg).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)","transform-origin":"bottom left"}),b(this.controls).css({height:50}),b(this._playlist.playlistBar).css({height:50}));"Yes"==this.options.infoShow&&(198>this._playlist.playlist.height()?
this.infoBtn.hide():this.infoBtn.show());"Yes"==this.options.embedShow&&(159>this._playlist.playlist.height()?this.embedBtn.hide():this.embedBtn.show());"Yes"==this.options.shareShow&&(123>this._playlist.playlist.height()?this.shareBtn.hide():this.shareBtn.show());break;case "Bottom playlist":380>this.mainContainer.height()?this.videoTrack.hide():this.videoTrack.show();361>this.mainContainer.height()?this.timeTotal.hide():this.timeTotal.show();if("youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||
"YouTube"==this.options.videoType)320>this.mainContainer.height()?this.qualityBtnWrapper.hide():this.qualityBtnWrapper.show();"yes"==this._playlist.videos_array[this._playlist.videoid].enable_mp4_download&&(320>this.mainContainer.height()?this.downloadBtnLink.hide():this.downloadBtnLink.show());290>this.mainContainer.height()?this.rewindBtnWrapper.hide():this.rewindBtnWrapper.show();262>this.mainContainer.height()?this.unmuteBtnWrapper.hide():this.unmuteBtnWrapper.show();this.volumeTrack.show();313>
this.mainContainer.height()?(b(this.playButtonScreen).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)"}),b(this.toggleAdPlayBox).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)"}),b(this.skipAdCount).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",
transform:"scale(0.6)","transform-origin":"bottom right"}),b(this.skipAdBox).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)","transform-origin":"bottom right"}),b(this.logoImg).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)","transform-origin":"bottom left"}),b(this.controls).css({height:35}),b(this._playlist.playlistBar).css({height:35}),
b(this._playlist.playlist).css({height:127}),this._playlist.playlistH=b(this._playlist.playlist).height(),230>this.mainContainer.height()?(b(this._playlist.playlist).css({height:92}),this._playlist.playlistH=b(this._playlist.playlist).height(),this.mainContainer.find(".elite_vp_itemRight_bottom").hide(),this.mainContainer.find(".elite_vp_nowPlayingThumbnail").css({opacity:0}),this.mainContainer.find(".elite_vp_itemSelected").css({width:40,height:40}),this.mainContainer.find(".elite_vp_itemUnselected").css({width:40,
height:40}),this.mainContainer.find(".elite_vp_itemLeft").css({width:35,height:35})):(this.mainContainer.find(".elite_vp_itemRight_bottom").show(),this.mainContainer.find(".elite_vp_nowPlayingThumbnail").css({opacity:1}),this.mainContainer.find(".elite_vp_itemSelected").css({width:245,height:76}),this.mainContainer.find(".elite_vp_itemUnselected").css({width:245,height:76}),this.mainContainer.find(".elite_vp_itemLeft").css({width:70,height:70}))):(b(this.playButtonScreen).css({"-webkit-transform":"scale(1)",
"-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)"}),b(this.toggleAdPlayBox).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)"}),b(this.skipAdCount).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)","transform-origin":"bottom right"}),b(this.skipAdBox).css({"-webkit-transform":"scale(1)",
"-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)","transform-origin":"bottom right"}),b(this.logoImg).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)","transform-origin":"bottom left"}),b(this.controls).css({height:50}),b(this._playlist.playlistBar).css({height:50}),b(this._playlist.playlist).css({height:142}),this._playlist.playlistH=b(this._playlist.playlist).height(),
this.mainContainer.find(".elite_vp_itemRight_bottom").show(),this.mainContainer.find(".elite_vp_nowPlayingThumbnail").css({opacity:1}),this.mainContainer.find(".elite_vp_itemSelected").css({width:245,height:76}),this.mainContainer.find(".elite_vp_itemUnselected").css({width:245,height:76}),this.mainContainer.find(".elite_vp_itemLeft").css({width:70,height:70}));"Yes"==this.options.infoShow&&(270>this.mainContainer.height()?this.infoBtn.hide():this.infoBtn.show());"Yes"==this.options.embedShow&&(330>
this.mainContainer.height()?this.embedBtn.hide():this.embedBtn.show());"Yes"==this.options.shareShow&&(194>this.mainContainer.height()?this.shareBtn.hide():this.shareBtn.show());case "Off":378>this.parent.width()?this.videoTrack.hide():this.videoTrack.show(),360>this.parent.width()?this.timeTotal.hide():this.timeTotal.show(),289>this.parent.width()?this.rewindBtnWrapper.hide():this.rewindBtnWrapper.show(),262>this.parent.width()?this.unmuteBtnWrapper.hide():this.unmuteBtnWrapper.show()}this.stretching?
"Right playlist"==this.options.playlist?(this.element.width(this.parent.parent().width()),this.element.height(this._playlist.playlist.height())):"Bottom playlist"==this.options.playlist?(this.element.width(this.parent.parent().width()),this.element.height(a)):"Off"==this.options.playlist&&(this.element.width(this.parent.parent().width()),this.element.height(this.parent.parent().height())):"Right playlist"==this.options.playlist?(this.element.width(this.parent.parent().width()-this._playlist.playlist.width()),
this.element.height(this._playlist.playlist.height())):"Bottom playlist"==this.options.playlist?(this.element.width(this.parent.parent().width()),this.element.height(a-this._playlist.playlist.height())):"Off"==this.options.playlist&&(this.element.width(this.parent.parent().width()),this.element.height(this.parent.height()));!this.agentID||"HTML5"!=this._playlist.videos_array[this._playlist.videoid].videoType&&"HTML5 (self-hosted)"!=this.options.videoType||this.options.showAllControls||(this.videoElement.width(this.element.width()),
this.videoElement.height(this.element.height()),this.videoElementAD.width(this.element.width()),this.videoElementAD.height(this.element.height()));this._playlist.resizePlaylist();this.elementAD.width(this.element.width());this.elementAD.height(this.element.height());this.resizeVideoTrack();this.positionOverScreenButtons();this.resizeBars();this.positionLogo();this.positionPopup()}else if("fixedSize"==this.options.playerLayout){this.newPlayerWidth=b(window).width()-this.mainContainer.position().left-
48;this.newPlayerHeight=this.newPlayerWidth/(this.options.videoPlayerWidth/this.options.videoPlayerHeight);if(this.newPlayerWidththis.newPlayerWidth?this.videoTrack.hide():this.videoTrack.show();361>this.newPlayerWidth?this.timeTotal.hide():this.timeTotal.show();
if("youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType)320>this.newPlayerWidth?this.qualityBtnWrapper.hide():this.qualityBtnWrapper.show();"yes"==this._playlist.videos_array[this._playlist.videoid].enable_mp4_download&&(320>this.newPlayerWidth?this.downloadBtnLink.hide():this.downloadBtnLink.show());290>this.newPlayerWidth?this.rewindBtnWrapper.hide():this.rewindBtnWrapper.show();262>this.newPlayerWidth?this.unmuteBtnWrapper.hide():this.unmuteBtnWrapper.show();
this.volumeTrack.show();"Yes"==this.options.embedShow&&(560>this.newPlayerWidth?this.embedBtn.hide():this.embedBtn.show())}else{640>this.newPlayerWidth?this.videoTrack.hide():this.videoTrack.show();"yes"==this._playlist.videos_array[this._playlist.videoid].enable_mp4_download&&(584>this.newPlayerWidth?this.downloadBtnLink.hide():this.downloadBtnLink.show());620>this.newPlayerWidth?this.timeTotal.hide():this.timeTotal.show();"Yes"==this.options.embedShow&&(655>this.newPlayerWidth?this.embedBtn.hide():
this.embedBtn.show());if("youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType)580>this.newPlayerWidth?this.qualityBtnWrapper.hide():this.qualityBtnWrapper.show();550>this.newPlayerWidth?this.rewindBtnWrapper.hide():this.rewindBtnWrapper.show();525>this.newPlayerWidth?this.unmuteBtnWrapper.hide():this.unmuteBtnWrapper.show();if(522>this.newPlayerWidth){this.mainContainer.find(".elite_vp_playlistBarBtn").css({width:"20px"});this.mainContainer.find("#elite_vp_nextBtn").css({marginLeft:"-7.5px"});
this.mainContainer.find("#elite_vp_previousBtn").css({marginLeft:"-7.5px"});this.mainContainer.find("#elite_vp_shuffleBtn").css({marginLeft:"-8px"});this._playlist.lastBtn.hide();this._playlist.firstBtn.hide();this._playlist.playlist.css({width:90});this.mainContainer.find(".elite_vp_itemRight").hide();this.videoTrack.show();this.timeElapsed.show();"yes"==this._playlist.videos_array[this._playlist.videoid].enable_mp4_download&&this.downloadBtnLink.show();this.timeTotal.show();this.volumeTrack.show();
this.rewindBtnWrapper.show();"youtube"!=this._playlist.videos_array[this._playlist.videoid].videoType&&"YouTube"!=this.options.videoType||this.qualityBtnWrapper.show();this.unmuteBtnWrapper.show();470>this.newPlayerWidth?this.videoTrack.hide():this.videoTrack.show();450>this.newPlayerWidth?this.timeTotal.hide():this.timeTotal.show();if("youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType)410>this.newPlayerWidth?this.qualityBtnWrapper.hide():this.qualityBtnWrapper.show();
"yes"==this._playlist.videos_array[this._playlist.videoid].enable_mp4_download&&(410>this.newPlayerWidth?this.downloadBtnLink.hide():this.downloadBtnLink.show());380>this.newPlayerWidth?this.rewindBtnWrapper.hide():this.rewindBtnWrapper.show();353>this.newPlayerWidth?this.unmuteBtnWrapper.hide():this.unmuteBtnWrapper.show();322>this.newPlayerWidth?this.volumeTrack.hide():this.volumeTrack.show()}else this._playlist.playlist.css({width:260}),this.mainContainer.find(".elite_vp_itemRight").show(),this.mainContainer.find(".elite_vp_playlistBarBtn").css({width:"30px"}),
this.mainContainer.find("#elite_vp_nextBtn").css({marginLeft:"7.5px"}),this.mainContainer.find("#elite_vp_previousBtn").css({marginLeft:"7.5px"}),this.mainContainer.find("#elite_vp_shuffleBtn").css({marginLeft:"8px"}),this._playlist.lastBtn.show(),this._playlist.firstBtn.show()}190>this.newPlayerHeight?(b(this.playButtonScreen).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)"}),b(this.toggleAdPlayBox).css({"-webkit-transform":"scale(0.6)",
"-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)"}),b(this.skipAdCount).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)","transform-origin":"bottom right"}),b(this.skipAdBox).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)","transform-origin":"bottom right"}),
b(this.logoImg).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)","transform-origin":"bottom left"}),b(this.controls).css({height:35}),b(this._playlist.playlistBar).css({height:35})):(b(this.playButtonScreen).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)"}),b(this.toggleAdPlayBox).css({"-webkit-transform":"scale(1)",
"-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)"}),b(this.skipAdCount).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)","transform-origin":"bottom right"}),b(this.skipAdBox).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)","transform-origin":"bottom right"}),b(this.logoImg).css({"-webkit-transform":"scale(1)",
"-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)","transform-origin":"bottom left"}),b(this.controls).css({height:50}),b(this._playlist.playlistBar).css({height:50}));"Yes"==this.options.infoShow&&(198>this.newPlayerHeight?this.infoBtn.hide():this.infoBtn.show());"Yes"==this.options.embedShow&&(159>this.newPlayerHeight?this.embedBtn.hide():this.embedBtn.show());"Yes"==this.options.shareShow&&(123>this.newPlayerHeight?this.shareBtn.hide():this.shareBtn.show());
break;case "Bottom playlist":380>this.newPlayerWidth?this.videoTrack.hide():this.videoTrack.show();361>this.newPlayerWidth?this.timeTotal.hide():this.timeTotal.show();if("youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType)320>this.newPlayerWidth?this.qualityBtnWrapper.hide():this.qualityBtnWrapper.show();"yes"==this._playlist.videos_array[this._playlist.videoid].enable_mp4_download&&(320>this.newPlayerWidth?this.downloadBtnLink.hide():this.downloadBtnLink.show());
290>this.newPlayerWidth?this.rewindBtnWrapper.hide():this.rewindBtnWrapper.show();262>this.newPlayerWidth?this.unmuteBtnWrapper.hide():this.unmuteBtnWrapper.show();this.volumeTrack.show();"Yes"==this.options.embedShow&&(560>this.newPlayerWidth?this.embedBtn.hide():this.embedBtn.show());313>this.newPlayerHeight?(b(this.playButtonScreen).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)"}),b(this.toggleAdPlayBox).css({"-webkit-transform":"scale(0.6)",
"-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)"}),b(this.skipAdCount).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)","transform-origin":"bottom right"}),b(this.skipAdBox).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)","transform-origin":"bottom right"}),
b(this.logoImg).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)","transform-origin":"bottom left"}),b(this.controls).css({height:35}),b(this._playlist.playlistBar).css({height:35}),b(this._playlist.playlist).css({height:127}),this._playlist.playlistH=b(this._playlist.playlist).height(),230>this.newPlayerHeight?(b(this._playlist.playlist).css({height:92}),this._playlist.playlistH=b(this._playlist.playlist).height(),
this.mainContainer.find(".elite_vp_itemRight_bottom").hide(),this.mainContainer.find(".elite_vp_nowPlayingThumbnail").css({opacity:0}),this.mainContainer.find(".elite_vp_itemSelected").css({width:40,height:40}),this.mainContainer.find(".elite_vp_itemUnselected").css({width:40,height:40}),this.mainContainer.find(".elite_vp_itemLeft").css({width:35,height:35})):(this.mainContainer.find(".elite_vp_itemRight_bottom").show(),this.mainContainer.find(".elite_vp_nowPlayingThumbnail").css({opacity:1}),this.mainContainer.find(".elite_vp_itemSelected").css({width:245,
height:76}),this.mainContainer.find(".elite_vp_itemUnselected").css({width:245,height:76}),this.mainContainer.find(".elite_vp_itemLeft").css({width:70,height:70}))):(b(this.playButtonScreen).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)"}),b(this.toggleAdPlayBox).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)"}),b(this.skipAdCount).css({"-webkit-transform":"scale(1)",
"-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)","transform-origin":"bottom right"}),b(this.skipAdBox).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)","transform-origin":"bottom right"}),b(this.logoImg).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)","transform-origin":"bottom left"}),
b(this.controls).css({height:50}),b(this._playlist.playlistBar).css({height:50}),b(this._playlist.playlist).css({height:142}),this._playlist.playlistH=b(this._playlist.playlist).height());"Yes"==this.options.infoShow&&(198>this.newPlayerHeight?this.infoBtn.hide():this.infoBtn.show());"Yes"==this.options.embedShow&&(159>this.newPlayerHeight?this.embedBtn.hide():this.embedBtn.show());"Yes"==this.options.shareShow&&(123>this.newPlayerHeight?this.shareBtn.hide():this.shareBtn.show());break;case "Off":380>
this.newPlayerWidth?this.videoTrack.hide():this.videoTrack.show();361>this.newPlayerWidth?this.timeTotal.hide():this.timeTotal.show();if("youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType)320>this.newPlayerWidth?this.qualityBtnWrapper.hide():this.qualityBtnWrapper.show();"yes"==this._playlist.videos_array[this._playlist.videoid].enable_mp4_download&&(320>this.newPlayerWidth?this.downloadBtnLink.hide():this.downloadBtnLink.show());290>this.newPlayerWidth?
this.rewindBtnWrapper.hide():this.rewindBtnWrapper.show();262>this.newPlayerWidth?this.unmuteBtnWrapper.hide():this.unmuteBtnWrapper.show();this.volumeTrack.show();"Yes"==this.options.embedShow&&(560>this.newPlayerWidth?this.embedBtn.hide():this.embedBtn.show());190>this.newPlayerHeight?(b(this.playButtonScreen).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)"}),b(this.toggleAdPlayBox).css({"-webkit-transform":"scale(0.6)",
"-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)"}),b(this.skipAdCount).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)","transform-origin":"bottom right"}),b(this.skipAdBox).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)","transform-origin":"bottom right"}),
b(this.logoImg).css({"-webkit-transform":"scale(0.6)","-moz-transform":"scale(0.6)","-ms-transform":"scale(0.6)","-o-transform":"scale(0.6)",transform:"scale(0.6)","transform-origin":"bottom left"}),b(this.controls).css({height:35}),b(this._playlist.playlistBar).css({height:35})):(b(this.playButtonScreen).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)"}),b(this.toggleAdPlayBox).css({"-webkit-transform":"scale(1)",
"-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)"}),b(this.skipAdCount).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)","transform-origin":"bottom right"}),b(this.skipAdBox).css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)","transform-origin":"bottom right"}),b(this.logoImg).css({"-webkit-transform":"scale(1)",
"-moz-transform":"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)",transform:"scale(1)","transform-origin":"bottom left"}),b(this.controls).css({height:50}),b(this._playlist.playlistBar).css({height:50}));"Yes"==this.options.infoShow&&(198>this.newPlayerHeight?this.infoBtn.hide():this.infoBtn.show());"Yes"==this.options.embedShow&&(159>this.newPlayerHeight?this.embedBtn.hide():this.embedBtn.show());"Yes"==this.options.shareShow&&(123>this.newPlayerHeight?this.shareBtn.hide():this.shareBtn.show())}else this.options.lightBox&&
b(this.mainContainer).css({position:"absolute",left:window.innerWidth/2-this.options.videoPlayerWidth/2,top:window.innerHeight/2-this.options.videoPlayerHeight/2-10}),this.newPlayerWidth=this.options.videoPlayerWidth,this.newPlayerHeight=this.options.videoPlayerHeight,this.videoTrack.show(),this.timeElapsed.show(),this.timeTotal.show(),this.volumeTrack.show(),this.rewindBtnWrapper.show(),"youtube"!=this._playlist.videos_array[this._playlist.videoid].videoType&&"YouTube"!=this.options.videoType||this.qualityBtnWrapper.show(),
this.unmuteBtnWrapper.show(),this._playlist.playlist.css({width:260}),this.mainContainer.find(".elite_vp_itemRight").show(),this.mainContainer.find(".elite_vp_playlistBarBtn").css({width:"30px"}),this._playlist.lastBtn.show(),this._playlist.firstBtn.show();"Right playlist"==this.options.playlist?(!this.agentID||"HTML5"!=this._playlist.videos_array[this._playlist.videoid].videoType&&"HTML5 (self-hosted)"!=this.options.videoType||this.options.showAllControls||(this.videoElement.height(this.newPlayerHeight-
50),this.videoElementAD.height(this.newPlayerHeight-50)),this.element.css({width:this.newPlayerWidth,height:this.newPlayerHeight}),this.mainContainer.css({width:this.newPlayerWidth,height:this.newPlayerHeight})):"Bottom playlist"==this.options.playlist?(this.element.width(this.newPlayerWidth),this.mainContainer.css({width:this.newPlayerWidth,height:this.newPlayerHeight})):"Off"==this.options.playlist&&(!this.agentID||"HTML5"!=this._playlist.videos_array[this._playlist.videoid].videoType&&"HTML5 (self-hosted)"!=
this.options.videoType||this.options.showAllControls||(this.videoElement.height(this.newPlayerHeight-50),this.videoElementAD.height(this.newPlayerHeight-50)),this.element.css({width:this.newPlayerWidth,height:this.newPlayerHeight}),this.mainContainer.css({width:this.newPlayerWidth,height:this.newPlayerHeight}));this.stretching?"Right playlist"==this.options.playlist?(!this.agentID||"HTML5"!=this._playlist.videos_array[this._playlist.videoid].videoType&&"HTML5 (self-hosted)"!=this.options.videoType||
this.options.showAllControls||(this.videoElement.width(this.newPlayerWidth-32),this.videoElementAD.width(this.newPlayerWidth-32)),this.element.width(b(this.mainContainer).width())):"Bottom playlist"==this.options.playlist?this.element.height(this.newPlayerHeight):"Off"==this.options.playlist&&(!this.agentID||"HTML5"!=this._playlist.videos_array[this._playlist.videoid].videoType&&"HTML5 (self-hosted)"!=this.options.videoType||(this.videoElement.width(this.newPlayerWidth-32),this.videoElementAD.width(this.newPlayerWidth-
32)),this.element.width(b(this.mainContainer).width())):"Right playlist"==this.options.playlist?(!this.agentID||"HTML5"!=this._playlist.videos_array[this._playlist.videoid].videoType&&"HTML5 (self-hosted)"!=this.options.videoType||this.options.showAllControls||(this.videoElement.width(this.newPlayerWidth-this._playlist.playlist.width()-32),this.videoElementAD.width(this.newPlayerWidth-this._playlist.playlist.width()-32)),this.element.width(b(this.mainContainer).width()-this._playlist.playlist.width()),
this._playlist.resizePlaylist(this.newPlayerWidth,this.newPlayerHeight)):"Bottom playlist"==this.options.playlist?(this.element.height(this.newPlayerHeight-this._playlist.playlistH),this._playlist.resizePlaylist(this.newPlayerWidth,this.newPlayerHeight)):"Off"==this.options.playlist&&(!this.agentID||"HTML5"!=this._playlist.videos_array[this._playlist.videoid].videoType&&"HTML5 (self-hosted)"!=this.options.videoType||this.options.showAllControls||(this.videoElement.width(this.newPlayerWidth-32),this.videoElementAD.width(this.newPlayerWidth-
32)),this.element.width(b(this.mainContainer).width()));this.elementAD.width(this.element.width());this.elementAD.height(this.element.height());!this.agentID||"HTML5"!=this._playlist.videos_array[this._playlist.videoid].videoType&&"HTML5 (self-hosted)"!=this.options.videoType||this.playBtnScreen&&this.playBtnScreen.hide();void 0!=this.youtubePlayer&&(this.realFullscreenActive&&(this.element.width(b(document).width()),this.element.height(b(document).height())),this.youtubePlayer.setSize("100%","100%"));
this.options.lightBox&&b(this.mainContainerBG).css({width:b(this.mainContainer).width()+20,height:b(this.mainContainer).height()+20});this.resizeVideoTrack();this.positionOverScreenButtons();this.resizeBars();this.positionLogo();this.positionPopup()}};d.fn.autohideControls=function(){var a=this.element,b=!1,d=1E3*this.options.autohideControls,f=0,h=function(){b&&a.trigger("idle",!1);b=!1;f=0};a.bind("mousemove keydown DOMMouseScroll mousewheel mousedown reset.idle",h);var e=setInterval(function(){f>=
d?(h(),b=!0,a.trigger("idle",!0)):f+=1E3},1E3);a.on("unload",function(){clearInterval(e)})};d.fn.resizeBars=function(){if("youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType)void 0!=this.youtubePlayer&&this._playlist.youtubeSTARTED&&(this.progressWidth=this.youtubePlayer.getCurrentTime()/this.youtubePlayer.getDuration()*this.videoTrack.width(),this.videoTrackProgress.css("width",this.progressWidth),this.progressIdleWidth=this.youtubePlayer.getCurrentTime()/
this.youtubePlayer.getDuration()*this.progressIdleTrack.width(),this.progressIdle.css("width",this.progressIdleWidth),this.buffered=this.youtubePlayer.getVideoLoadedFraction(),this.downloadWidth=this.buffered*this.videoTrack.width(),this.videoTrackDownload.css("width",this.downloadWidth),this.progressIdleDownloadWidth=this.buffered*this.progressIdleTrack.width(),this.progressIdleDownload.css("width",this.progressIdleDownloadWidth));else if("HTML5"==this._playlist.videos_array[this._playlist.videoid].videoType||
"HTML5 (self-hosted)"==this.options.videoType)this.downloadWidth=this.buffered/this.video.duration*this.videoTrack.width(),this.videoTrackDownload.css("width",this.downloadWidth),this.progressWidth=this.video.currentTime/this.video.duration*this.videoTrack.width(),this.videoTrackProgress.css("width",this.progressWidth),this.progressIdleDownloadWidth=this.buffered/this.video.duration*this.progressIdleTrack.width(),this.progressIdleDownload.css("width",this.progressIdleDownloadWidth),this.progressIdleWidth=
this.video.currentTime/this.video.duration*this.progressIdleTrack.width(),this.progressIdle.css("width",this.progressIdleWidth),this.progressWidthAD=this.videoAD.currentTime/this.videoAD.duration*this.elementAD.width(),this.progressAD.css("width",this.progressWidthAD)};d.fn.createPopup=function(){var a=this;this.adImg=b("
");this.adImg.addClass("elite_vp_popup");this.image=new Image;this.image.src=this._playlist.videos_array[this._playlist.videoid].popupImg;b(this.image).on("load",function(){a.adImg.append(a.image);
a.positionPopup();a.adImg.append(a.adClose)});this.element.append(this.adImg);this.adImg.hide();this.adImg.css({opacity:0});this.popupBtnClose=b("
");this.popupBtnClose.addClass("elite_vp_btnClose elite_vp_themeColorText");this.infoWindow.append(this.popupBtnClose);this.popupBtnClose.css({bottom:0});this.adImg.append(this.popupBtnClose);this.popupBtnCloseIcon=b(" ").attr("aria-hidden","true").addClass("fa-elite").addClass("fa-elite-close").addClass("elite_vp_themeColor");this.popupBtnClose.append(this.popupBtnCloseIcon);
this.popupBtnClose.bind(this.CLICK_EV,b.proxy(function(){a.adOn=!0;a.togglePopup()},this));this.popupBtnClose.mouseover(function(){b(this).stop().animate({opacity:.7},200)});this.popupBtnClose.mouseout(function(){b(this).stop().animate({opacity:1},200)})};d.fn.positionPopup=function(){this.adImg.css({bottom:this.controls.height()+20,left:this.element.width()/2-this.adImg.width()/2})};d.fn.newAd=function(){var a=this;this.adImg.hide();this.image.src="";this.image.src=this._playlist.videos_array[this._playlist.videoid].popupImg;
this.adOn||b(this.image).bind(this.START_EV,function(){window.open(a._playlist.videos_array[a._playlist.videoid].popupAdGoToLink);"youtube"!=a._playlist.videos_array[a._playlist.videoid].videoType&&"YouTube"!=a.options.videoType||a.youtubePlayer.pauseVideo();"HTML5"!=a._playlist.videos_array[a._playlist.videoid].videoType&&"HTML5 (self-hosted)"!=a.options.videoType||a.pause();"vimeo"!=a._playlist.videos_array[a._playlist.videoid].videoType&&"Vimeo"!=a.options.videoType||a._playlist.vimeoPlayer.api("pause")})};
d.fn.createLogo=function(){var a=this;this.logoImg=b("
");this.logoImg.addClass("elite_vp_logo");this.img=new Image;this.img.src=a.options.logoPath;b(this.img).on("load",function(){a.logoImg.append(a.img);a.positionLogo()});"Yes"==a.options.logoShow&&this.element.append(this.logoImg);"Yes"==a.options.logoClickable&&(this.logoImg.bind(this.CLICK_EV,b.proxy(function(){window.open(a.options.logoGoToLink)},this)),this.logoImg.mouseover(function(){b(this).stop().animate({opacity:.8},200)}),this.logoImg.mouseout(function(){b(this).stop().animate({opacity:1},
200)}),b(".elite_vp_logo").css("cursor","pointer"))};d.fn.positionLogo=function(){if("youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType)var a=this.controls.height()+10;else if("HTML5"==this._playlist.videos_array[this._playlist.videoid].videoType||"HTML5 (self-hosted)"==this.options.videoType)a=this.controls.height()+10;else if("vimeo"==this._playlist.videos_array[this._playlist.videoid].videoType||"Vimeo"==this.options.videoType)a=55;"bottom-right"==
this.options.logoPosition?this.logoImg.css({bottom:a,right:buttonsMargin}):"bottom-left"==this.options.logoPosition&&this.logoImg.css({bottom:a,left:buttonsMargin})};d.fn.showVideoElements=function(){this.videoElement.show();this.videoElementAD.show()};d.fn.hideVideoElements=function(){this.videoElement.hide();this.videoElementAD.hide()};d.fn.createAds=function(){var a=this;adsImg=b("
");adsImg.addClass("ads");image=new Image;image.src=a._playlist.videos_array[0].adsPath;b(image).on("load",function(){adsImg.append(image);
a.positionAds()});this.element.append(adsImg);adsImg.hide()};d.fn.positionAds=function(){adsImg.css({bottom:this.controls.height()+5,left:this.element.width()/2-adsImg.width()/2})};d.fn.setupAutoplay=function(){this.options.lightBox||(this.options.autoplay?this.isMobile.any()?this.playButtonScreen.show():this.play():this.options.autoplay||(this.pause(),this.preloader.hide()))};d.fn.createNowPlayingText=function(){"Yes"==this.options.loadRandomVideoOnStart?this.nowPlayingTitle.append(''+this._playlist.videos_array[this._playlist.rand].title+"
"):this.nowPlayingTitle.append(''+this._playlist.videos_array[0].title+"
");this.nowPlayingTitleW=this.nowPlayingTitle.width();"No"==this.options.nowPlayingText&&this.nowPlayingTitle.hide()};d.fn.createInfoWindowContent=function(){"Yes"==this.options.loadRandomVideoOnStart?(this.infoWindow.append(''+
this._playlist.videos_array[this._playlist.rand].title+"
"),this.infoWindow.append(''+this._playlist.videos_array[this._playlist.rand].info_text+"
")):(this.infoWindow.append(''+this._playlist.videos_array[0].title+"
"),this.infoWindow.append(''+this._playlist.videos_array[0].info_text+
"
"));this.infoWindow.css({top:-this.infoWindow.height()}).hide()};d.fn.createSkipAd=function(){var a=this;this.skipAdBox=b("
").addClass("elite_vp_skipAdBox").bind(a.CLICK_EV,function(){a.closeAD()}).hide();this.elementAD.append(this.skipAdBox);this.skipAdBoxContentLeft=b("
").addClass("elite_vp_skipAdBoxContentLeft");this.skipAdBox.append(this.skipAdBoxContentLeft);this.skipAdBoxContentLeft.append(''+this.options.skipAdvertisementText+"
");this.skipAdBoxIcon=
b(" ").attr("aria-hidden","true").addClass("fa-elite").addClass("fa-elite-step-forward-ad");this.skipAdBox.append(this.skipAdBoxIcon)};d.fn.createSkipAdCount=function(){this.skipAdCount=b("
").addClass("elite_vp_skipAdCount").hide();this.elementAD.append(this.skipAdCount);this.i=document.createElement("img");this.i.src=this._playlist.videos_array[this._playlist.videoid].thumbnail_image;this.skipAdCount.append(this.i);b(".elite_vp_skipAdCount img").addClass("elite_vp_skipAdCountImage elite_vp_themeColorThumbBorder");
this.skipAdCountContentLeft=b("
").addClass("elite_vp_skipAdCountContentLeft");this.skipAdCount.append(this.skipAdCountContentLeft);this.skipAdCountContentLeft.append('
');this.skipAdCount.css({right:-this.skipAdCount.width(),bottom:28}).hide()};d.fn.createAdTogglePlay=function(){var a=this;this.toggleAdPlayBox=b("
").addClass("elite_vp_toggleAdPlayBox").attr("aria-hidden","true").addClass("fa-elite").addClass("fa-elite-playScreen "+this.options.instanceTheme).bind(a.CLICK_EV,
function(){a.togglePlayAD();a.ADTriggered=!0}).hide();this.elementAD.append(this.toggleAdPlayBox)};d.fn.createVideoAdTitleInsideAD=function(){this.videoAdBoxInside=b("
");this.videoAdBoxInside.addClass("elite_vp_videoAdBoxInside");this.elementAD.append(this.videoAdBoxInside);this.videoAdBoxInside.append(''+this.options.advertisementTitle+"
");this.videoAdBoxInside.append(this.timeLeftInside);this.videoAdBoxInside.hide()};d.fn.createEmbedWindowContent=
function(){var a=this;b(this.embedWindow).append(''+a.options.embedWindowTitle2+"
");this.embedTxt=b("
").addClass("elite_vp_embedText").addClass("elite_vp_embedText "+this.options.instanceTheme);this.embedWindow.append(this.embedTxt);this.copy=b("
").attr("title","Copy to clipboard").attr("id","elite_vp_copy").addClass("copyBtn").addClass(this.options.instanceTheme);this.embedWindow.append(this.copy);b(this.embedWindow).find("#elite_vp_copy").append(''+a.options.copyTxt+"
");b(this.embedWindow).append(''+a.options.embedWindowTitle3+"
");this.embedTxt2=b("
").addClass("elite_vp_embedText2").addClass("elite_vp_embedText "+this.options.instanceTheme);this.embedWindow.append(this.embedTxt2);this.copy2=b("
").attr("title","Copy to clipboard").attr("id","elite_vp_copy2").addClass("copyBtn").addClass(this.options.instanceTheme);this.embedWindow.append(this.copy2);
b(this.embedWindow).find("#elite_vp_copy2").append(''+a.options.copyTxt+"
");var c=this.options.embedCodeSrc,d=this.options.videoPlayerWidth,f=this.options.videoPlayerHeight;b(this.embedWindow).find(".elite_vp_embedText").text("");this.updateEmbedText2();this.copy.bind(this.CLICK_EV,
function(){var c=b(" ");b("body").append(c);c.val(a.embedTxt.text()).select();document.execCommand("copy");c.remove();b(a.copy2).find(".elite_vp_copyInside").text(a.options.copyTxt);b(this).find(".elite_vp_copyInside").text(a.options.copiedTxt);b(a.embedTxt).addClass("elite_vp_highlightText");b(a.embedTxt2).removeClass("elite_vp_highlightText")});this.copy2.bind(this.CLICK_EV,function(){var c=b(" ");b("body").append(c);c.val(a.embedTxt2.text()).select();document.execCommand("copy");c.remove();
b(a.copy).find(".elite_vp_copyInside").text(a.options.copyTxt);b(this).find(".elite_vp_copyInside").text(a.options.copiedTxt);b(a.embedTxt2).addClass("elite_vp_highlightText");b(a.embedTxt).removeClass("elite_vp_highlightText")})};d.fn.updateEmbedText2=function(){var a=window.location.href;0<=a.indexOf("?id=")&&(a=a.split("?")[0]);b(this.embedWindow).find(".elite_vp_embedText2").text(a+"?id="+this._playlist.videoid);b(this.copy).find(".elite_vp_copyInside").text(this.options.copyTxt);b(this.copy2).find(".elite_vp_copyInside").text(this.options.copyTxt);
b(this.embedTxt).removeClass("elite_vp_highlightText");b(this.embedTxt2).removeClass("elite_vp_highlightText")};d.fn.ready=function(a){this.readyList.push(a);this.loaded&&a.call(this)};d.fn.load=function(a){var c=this;a&&(this.sources=a);"string"==typeof this.sources&&(this.sources={src:this.sources});b.isArray(this.sources)||(this.sources=[this.sources]);this.ready(function(){this.change("loading");"HTML5"!=c._playlist.videos_array[this._playlist.videoid].videoType&&"HTML5 (self-hosted)"!=c.options.videoType||
this.video.loadSources(this.sources)})};d.fn.closeAD=function(){clearInterval(this.myInterval);this.videoPlayingAD=!0;this.togglePlayAD();this._playlist.videoAdPlayed=!0;this.resetPlayerAD();this.elementAD.css({zIndex:1});this.videoElementAD.empty();this.videoAdBoxInside.hide();this.removeListenerProgressAD();this.options.allowSkipAd&&(this.skipAdBox.hide(),this.skipAdCount.hide());this.fsEnterADBox.hide();this.toggleAdPlayBox.hide();this.progressADBg.hide();if("youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||
"YouTube"==this.options.videoType)this.ytWrapper.css({visibility:"visible"}),this.hideVideoElements(),void 0!=this.youtubePlayer&&this.youtubePlayer.playVideo();else if("HTML5"==this._playlist.videos_array[this._playlist.videoid].videoType||"HTML5 (self-hosted)"==this.options.videoType)this.showVideoElements(),this.togglePlay(),this.video.play();else if("vimeo"==this._playlist.videos_array[this._playlist.videoid].videoType||"Vimeo"==this.options.videoType)this.hideVideoElements(),void 0!=this._playlist.vimeoPlayer?
this._playlist.vimeoPlayer.api("play"):this._playlist.playVimeo(this._playlist.videoid)};d.fn.openAD=function(){this.showVideoElements();this.progressADBg.show();this.elementAD.css({zIndex:555559});this.ytWrapper.css({visibility:"hidden"});this.videoAdBoxInside.show();this.options.allowSkipAd&&(this.skipBoxOn=!0,this.toggleSkipAdBox(),this.skipCountOn=!1,this.toggleSkipAdCount());this.fsEnterADBox.show();this.realFullscreenActive||this.resizeAll();this.isMobile.any()?this.ADTriggered||(this.toggleAdPlayBox.show(),
this.videoPlayingAD=!0,this.togglePlayAD()):this.toggleAdPlayBox.hide();this.options.allowSkipAd&&(this.setSkipTimer(),b(".elite_vp_skipAdCountTitle").text(this.options.skipAdText+" "+this.counter+" s"),this.i.src=this._playlist.videos_array[this._playlist.videoid].thumbnail_image)};d.fn.loadAD=function(a,c){this.preloaderAD.stop().animate({opacity:1},0,function(){b(this).show()});a&&(this.sourcesAD=a);"string"==typeof this.sourcesAD&&(this.sourcesAD={src:this.sourcesAD});b.isArray(this.sourcesAD)||
(this.sourcesAD=[this.sourcesAD]);this.ready(function(){this.change("loading");this.videoAD.loadSources(this.sourcesAD)});switch(c){case "prerollActive":this.prerollActive=!0;this.postrollActive=this.midrollActive=!1;break;case "midrollActive":this.prerollActive=!1;this.midrollActive=!0;this.postrollActive=!1;break;case "postrollActive":this.midrollActive=this.prerollActive=!1,this.postrollActive=!0}};d.fn.play=function(){this.playButtonScreen.hide();this.playBtn.removeClass("fa-elite-play").addClass("fa-elite-pause");
"HTML5"==this._playlist.videos_array[this._playlist.videoid].videoType||"HTML5 (self-hosted)"==this.options.videoType?this.video.play():("youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType)&&this.video.pause();"yes"!=this._playlist.videos_array[this._playlist.videoid].prerollAD||0!=this.videoAdStarted||this.options.showGlobalPrerollAds||(this.video.pause(),!this.videoAdStarted&&this._playlist.videos_array[this._playlist.videoid].prerollAD&&(this.myVideo.canPlayType&&
this.myVideo.canPlayType("video/mp4").replace(/no/,"")&&(this.canPlay=!0,this.video_pathAD=this._playlist.videos_array[this._playlist.videoid].preroll_mp4),this.loadAD(this.video_pathAD,"prerollActive"),this.openAD()),this.videoAdStarted=!0);this.options.showGlobalPrerollAds&&0==this.videoAdStarted&&(this.video.pause(),!this.videoAdStarted&&this.options.showGlobalPrerollAds&&(this.myVideo.canPlayType&&this.myVideo.canPlayType("video/mp4").replace(/no/,"")&&(this.canPlay=!0,this.video_pathAD=this.globalPrerollAds_arr[this.getGlobalPrerollRandomNumber()]),
this.loadAD(this.video_pathAD),this.openAD()),this.videoAdStarted=!0)};d.fn.pause=function(){if("HTML5"==this._playlist.videos_array[this._playlist.videoid].videoType||"HTML5 (self-hosted)"==this.options.videoType){if(this.html5STARTED||""==this.options.posterImg)this.is_iOSVolumeButtonScreen?this.playButtonScreen.hide():this.playButtonScreen.show()}else if("youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType)this._playlist.youtubeSTARTED||""==
this.options.posterImg?this.playButtonScreen.show():this.playButtonScreen.hide();this.playBtn.removeClass("fa-elite-pause").addClass("fa-elite-play");this.video.pause()};d.fn.stop=function(){this.seek(0);this.pause()};d.fn.hideOverlay=function(){if(void 0!=this.overlay)if(this.overlay.hide(),this.poster2Showing=!1,this.playButtonPoster.hide(),"youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType)this.youtubePlayer.playVideo(),"default controls"==
this.options.youtubeControls&&this.element.css("visibility","hidden");else if("HTML5"==this._playlist.videos_array[this._playlist.videoid].videoType||"HTML5 (self-hosted)"==this.options.videoType)this.togglePlay();else if("vimeo"==this._playlist.videos_array[this._playlist.videoid].videoType||"Vimeo"==this.options.videoType)this.hideCustomControls(),this.hideVideoElements(),void 0!=this._playlist.vimeoPlayer?this._playlist.vimeoPlayer.api("play"):this._playlist.playVimeo(this._playlist.videoid)};
d.fn.togglePlay=function(){"elite_vp_playing"==this.state?(this.pause(),"youtube"!=this._playlist.videos_array[this._playlist.videoid].videoType&&"YouTube"!=this.options.videoType||this.youtubePlayer.pauseVideo()):(this.play(),"youtube"!=this._playlist.videos_array[this._playlist.videoid].videoType&&"YouTube"!=this.options.videoType||this.youtubePlayer.playVideo())};d.fn.toggleSkipAdBox=function(){this.skipBoxOn?(this.skipAdBox.stop().animate({right:-(this.skipAdBox.width()-2),bottom:28},200,function(){b(this).hide()}),
this.skipBoxOn=!1):(this.skipAdBox.show(),this.addListenerProgressAD(),this.skipAdBox.stop().animate({right:10,bottom:28},500),this.skipBoxOn=!0)};d.fn.toggleSkipAdCount=function(){this.skipCountOn?(this.skipAdCount.stop().animate({right:-(this.skipAdCount.width()-2),bottom:28},200,function(){b(this).hide()}),this.skipCountOn=!1):(this.skipAdCount.show(),this.skipAdCount.stop().animate({right:10,bottom:28},500),this.skipCountOn=!0)};d.fn.toggleInfoWindow=function(){this.infoOn?(this.infoWindow.stop().animate({top:-this.infoWindow.height()},
200,function(){b(this).hide()}),this.nowPlayingTitle.show(),this.infoOn=!1):(this.infoWindow.show(),this.infoWindow.stop().animate({top:0},500),this.nowPlayingTitle.hide(),this.infoOn=!0)};d.fn.toggleLightBox=function(){this.lightBoxOn?(this.lightBoxOverlay.stop().animate({opacity:0},300,function(){b(this).hide()}),this.lightBoxOn=!1,this.pause(),this.YTAPIReady&&this.youtubePlayer.pauseVideo(),this._playlist.vimeoPlayer&&this._playlist.vimeoPlayer.api("pause"),this.videoPlayingAD=!0,this.togglePlayAD(),
b(".elite_vp_lightBoxThumbnailWrap").each(function(a,c){b(this).find(".elite_vp_playButtonScreen").css({zIndex:2147483647})})):(this.lightBoxOverlay.show(),this.lightBoxOverlay.stop().animate({opacity:1},300),this.lightBoxOn=!0,this.options.lightBoxAutoplay&&(this.lightBoxInitiated?"yes"==this._playlist.videos_array[this._playlist.videoid].prerollAD||this.options.showGlobalPrerollAds?this._playlist.videoAdPlayed?(this.play(),this.YTAPIReady&&this.youtubePlayer.playVideo(),this._playlist.vimeoPlayer&&
this._playlist.vimeoPlayer.api("play")):(this.videoPlayingAD=!1,this.togglePlayAD()):(this.play(),this.YTAPIReady&&this.youtubePlayer.playVideo(),this._playlist.vimeoPlayer&&this._playlist.vimeoPlayer.api("play")):(this.playVideoById(this._playlist.videoid),this.lightBoxInitiated=!0)),b(".elite_vp_lightBoxThumbnailWrap").each(function(a,c){b(this).find(".elite_vp_playButtonScreen").css({zIndex:2147483646})}));this.resizeAll()};d.fn.toggleQualityWindow=function(a){var c=this;a=a?a:0;this.qualityOn?
(this.qualityWindow.stop().delay(a).animate({top:200},200,function(){b(c.qualityWindow_mask).hide()}),this.qualityOn=!1):(this.qualityWindow_mask.show(),this.qualityWindow.stop().delay(a).animate({top:0},500),this.qualityOn=!0)};d.fn.togglePopup=function(){this.adOn?(this.adImg.animate({opacity:0},0,function(){b(this).hide()}),this.adOn=!1):this.adOn||(this.adImg.show(),this.adImg.animate({opacity:1},500),this.adOn=!0)};d.fn.toggleShuffleBtn=function(){this.shuffleBtnEnabled?(this.removeColorAccent(b("#elite_vp_shuffleBtn")),
this.shuffleBtnEnabled=!1):(b(this.mainContainer).find(".fa-elite-random").addClass("elite_vp_themeColorText"),this.shuffleBtnEnabled=!0,this.setColorAccent(this.options.colorAccent,b("#elite_vp_shuffleBtn")))};d.fn.toggleQualityBtn=function(){this.qualityBtnEnabled?(this.removeColorAccent(b("#elite_vp_qualityBtn")),this.qualityBtnEnabled=!1):(b(this.mainContainer).find(".fa-elite-cog").addClass("elite_vp_themeColorText"),this.qualityBtnEnabled=!0,this.setColorAccent(this.options.colorAccent,b("#elite_vp_qualityBtn")))};
d.fn.toggleShareWindow=function(){this.shareOn?(this.shareOn=!1,b(this.shareWindow).stop().animate({right:-this.shareWindow.width()},300,function(){b(this).hide()})):(this.shareWindow.show(),b(this.shareWindow).stop().animate({right:this.screenBtnsWindow.width()},300),this.shareOn=!0)};d.fn.togglePlayAD=function(){this.videoPlayingAD?(this.videoAD.pause(),this.videoPlayingAD=!1,this.toggleAdPlayBox.show()):(this.videoAD.play(),this.videoPlayingAD=!0,this.toggleAdPlayBox.hide())};d.fn.toggleEmbedWindow=
function(){this.embedOn?(b(this.embedWindow).stop().animate({top:-this.embedWindow.height()},200,function(){b(this).hide()}),this.embedOn=!1):(b(this.embedWindow).show(),b(this.embedWindow).stop().animate({top:0},500,function(){}),this.embedOn=!0)};d.fn.fullScreen=function(a){if(a){if(this.element.addClass("elite_vp_fullScreen"),this.elementAD.addClass("elite_vp_fullScreen"),b(this.mainContainer).find(".fa-elite-expand").removeClass("fa-elite-expand").addClass("fa-elite-compress"),b(this.fsEnterADBox).find(".fa-elite-expandAD").removeClass("fa-elite-expandAD").addClass("fa-elite-compressAD"),
this._playlist.hidePlaylist(),this.element.width(window.innerWidth),this.element.height(window.innerHeight),this.elementAD.width(window.innerWidth),this.elementAD.height(window.innerHeight),this.mainContainer.width(window.innerWidth),this.mainContainer.height(window.innerHeight),this.mainContainer.css("position","fixed"),this.mainContainer.css("left",0),this.mainContainer.css("top",0),this.mainContainer.parent().css("zIndex",999999),"HTML5"!=this._playlist.videos_array[this._playlist.videoid].videoType&&
"HTML5 (self-hosted)"!=this.options.videoType||this.element.css({zIndex:555558}),"youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType?this.element.css({zIndex:555558}):("vimeo"==this._playlist.videos_array[this._playlist.videoid].videoType||"Vimeo"==this.options.videoType)&&this.element.css({zIndex:555556}),"yes"==this._playlist.videos_array[this._playlist.videoid].prerollAD||this.options.showGlobalPrerollAds)this._playlist.videoAdPlayed?this.elementAD.css({zIndex:555557}):
this.elementAD.css({zIndex:555559})}else{this._playlist.showPlaylist();this.element.removeClass("elite_vp_fullScreen");this.mainContainer.css("position","absolute");this.mainContainer.parent().css("zIndex",1);this.elementAD.removeClass("elite_vp_fullScreen");b(this.mainContainer).find(".fa-elite-compress").removeClass("fa-elite-compress").addClass("fa-elite-expand");b(this.fsEnterADBox).find(".fa-elite-compressAD").removeClass("fa-elite-compressAD").addClass("fa-elite-expandAD");this.stretching&&
(this.stretching=!1,this.toggleStretch());"HTML5"==this._playlist.videos_array[this._playlist.videoid].videoType||"HTML5 (self-hosted)"==this.options.videoType?this.element.css({zIndex:455558}):this.element.css({zIndex:455556});if("yes"==this._playlist.videos_array[this._playlist.videoid].prerollAD||this.options.showGlobalPrerollAds)this._playlist.videoAdPlayed?this.elementAD.css({zIndex:455557}):this.elementAD.css({zIndex:455559});if("fitToContainer"==this.options.playerLayout)switch(this.mainContainer.width("100%"),
this.options.playlist){case "Right playlist":this.mainContainer.height((this.parent.width()-this._playlist.playlist.width())/this.options.videoRatio);break;case "Bottom playlist":this.mainContainer.height(this.parent.width()/this.options.videoRatio)}else"fitToBrowser"==this.options.playerLayout?(this.mainContainer.width("100%"),this.mainContainer.height("100%")):"fixedSize"==this.options.playerLayout&&(this.mainContainer.width(this.options.videoPlayerWidth),this.mainContainer.height(this.options.videoPlayerHeight));
this.mainContainer.css("left","");this.mainContainer.css("top","");this.resizeAll()}this.resizeVideoTrack();this.positionOverScreenButtons(a);this.positionLogo();this.positionPopup();this.resizeBars();"undefined"==typeof a&&(a=!0);this.inFullScreen=a};d.fn.toggleFullScreen=function(){if(THREEx.FullScreen.available())if(THREEx.FullScreen.activated()){THREEx.FullScreen.cancel();"HTML5"==this._playlist.videos_array[this._playlist.videoid].videoType||"HTML5 (self-hosted)"==this.options.videoType?this.element.css({zIndex:455558}):
this.element.css({zIndex:455556});if("yes"==this._playlist.videos_array[this._playlist.videoid].prerollAD||this.options.showGlobalPrerollAds)this._playlist.videoAdPlayed?this.elementAD.css({zIndex:455557}):this.elementAD.css({zIndex:455559});this.mainContainer.css("zIndex",999999)}else THREEx.FullScreen.request(),this.mainContainer.parent().css("zIndex",999999),this.mainContainer.css("zIndex",2147483647),"HTML5"!=this._playlist.videos_array[this._playlist.videoid].videoType&&"HTML5 (self-hosted)"!=
this.options.videoType||this.element.css({zIndex:555558}),"youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType?this.element.css({zIndex:555558}):("vimeo"==this._playlist.videos_array[this._playlist.videoid].videoType||"Vimeo"==this.options.videoType)&&this.element.css({zIndex:555556}),("yes"==this._playlist.videos_array[this._playlist.videoid].prerollAD||this.options.showGlobalPrerollAds)&&this.videoAdStarted&&(this._playlist.videoAdPlayed?this.elementAD.css({zIndex:555557}):
this.elementAD.css({zIndex:555559}));else THREEx.FullScreen.available()||this.fullScreen(!this.inFullScreen)};d.fn.seek=function(a){this.video.setCurrentTime(a)};d.fn.setVolume=function(a){this.video.setVolume(a)};d.fn.getVolume=function(){return this.video.getVolume()};d.fn.mute=function(a){"undefined"==typeof a&&(a=!0);this.setVolume(a?1:0)};d.fn.remove=function(){this.element.remove()};d.fn.bind=function(){this.videoElement.bind.apply(this.videoElement,arguments)};d.fn.one=function(){this.videoElement.one.apply(this.videoElement,
arguments)};d.fn.trigger=function(){this.videoElement.trigger.apply(this.videoElement,arguments)};for(var m="click dblclick onerror onloadeddata oncanplay ondurationchange ontimeupdate onprogress onpause onplay onended onvolumechange".split(" "),k=0;k ");this.mainContainer.addClass("elite_vp_mainContainer");"fitToContainer"==this.options.playerLayout||"fitToBrowser"==this.options.playerLayout?this.mainContainer.css({width:"100%",height:"100%",position:"absolute",background:"#000000",zIndex:999999}):"fixedSize"==this.options.playerLayout&&this.mainContainer.css({width:this.options.videoPlayerWidth,height:this.options.videoPlayerHeight,position:"absolute",background:"#000000",zIndex:999999});switch(this.options.videoPlayerShadow){case "effect1":this.mainContainer.addClass("elite_vp_effect1");
break;case "effect2":this.mainContainer.addClass("elite_vp_effect2");break;case "effect3":this.mainContainer.addClass("elite_vp_effect3");break;case "effect4":this.mainContainer.addClass("elite_vp_effect4");break;case "effect5":this.mainContainer.addClass("elite_vp_effect5");break;case "effect6":this.mainContainer.addClass("elite_vp_effect6")}this.parent.append(this.mainContainer);this.options.lightBox&&(this.mainContainerBG=b("
"),this.mainContainerBG.addClass("elite_vp_mainContainerBG"),this.mainContainer.append(this.mainContainerBG));
this.element=b("
");this.element.addClass("elite_vp_videoPlayer");this.mainContainer.append(this.element);this.ytWrapper=b("
");this.ytWrapper.addClass("elite_vp_ytWrapper");this.element.append(this.ytWrapper);this.ytPlayer=b("
");this.ytPlayer.attr("id",this.options.instanceName+"youtube");this.ytWrapper.append(this.ytPlayer);this.imageWrapper=b("
");this.imageWrapper.addClass("elite_vp_imageWrapper");this.element.append(this.imageWrapper);this.imageDisplayed=
document.createElement("img");this.imageWrapper.append(this.imageDisplayed);b(".elite_vp_imageWrapper img").attr("id","elite_vp_imageDisplayed")};d.fn.setupElementAD=function(){this.elementAD=b("
");this.elementAD.addClass("elite_vp_videoPlayerAD");this.mainContainer.append(this.elementAD)};d.fn.idle=function(a,c){var d=this;c?"elite_vp_playing"==this.state&&(this.options.showAllControls||this.controls.hide(),this.controls.stop().animate({bottom:-50},300),d.progressIdleTrack.stop().delay(800).animate({bottom:0},
300),this.screenBtnsWindow.stop().animate({right:-44},300),this.logoImg.stop().animate({opacity:0},300),d.nowPlayingTitle.stop().animate({left:-d.nowPlayingTitleW},300),d.shareOn=!0,d.toggleShareWindow(),d.qualityOn=!0,d.toggleQualityWindow(),d.qualityBtnEnabled=!0,d.toggleQualityBtn(),b(d.toolTip).stop().animate({opacity:0},50,function(){d.toolTip.hide()}),d.invisibleWrapper.show()):(this.progressIdleTrack.stop().animate({bottom:-6},100,function(){d.options.showAllControls||d.controls.hide();d.controls.stop().animate({bottom:0},
300)}),this.screenBtnsWindow.stop().animate({right:0},400),this.logoImg.stop().animate({opacity:1},400),d.nowPlayingTitle.stop().animate({left:0},400),d.invisibleWrapper.hide())};d.fn.change=function(a){this.state=a;this.element&&(this.element.attr("data-state",this.state),this.element.trigger("state.videoPlayer",this.state))};d.fn.setupHTML5Video=function(){this.element&&this.element.append(this.videoElement);this.video=this.videoElement[0];this.element&&(this.element.width(this.playerWidth),this.element.height(this.playerHeight));
var a=this;this.video.loadSources=function(b){a.videoElement.empty();for(var c in b)if(-1!=b[c].src.indexOf("m3u8")){if(Hls.isSupported()){var d=new Hls;d.loadSource(b[c].src);d.attachMedia(a.video);d.on(Hls.Events.MANIFEST_PARSED,function(){})}}else a.videoElement.attr("src",b[c].src);a.video.load()};this.video.getStartTime=function(){return this.startTime||0};this.video.getEndTime=function(){return Infinity==this.duration&&this.buffered?this.buffered.end(this.buffered.length-1):(this.startTime||
0)+this.duration};this.video.getCurrentTime=function(){try{return this.currentTime}catch(c){return 0}};a=this;this.video.setCurrentTime=function(a){this.currentTime=a};this.video.getVolume=function(){return this.volume};this.video.setVolume=function(b){1");this.screenBtnsWindow.addClass("elite_vp_screenBtnsWindow");this.element&&this.element.append(this.screenBtnsWindow);this.options.showAllControls||this.screenBtnsWindow.hide();this.playlistBtn=b("
").addClass("elite_vp_playlistBtn").addClass("elite_vp_playerElement").addClass("elite_vp_btnOverScreen");this.element&&this.screenBtnsWindow.append(this.playlistBtn);this.playlistBtnIcon=
b(" ").attr("aria-hidden","true").addClass("fa-elite").addClass("elite-icon-overScreen").addClass("elite-icon-overScreen "+this.options.instanceTheme).addClass("fa-elite-indent");this.playlistBtn.append(this.playlistBtnIcon);this.shareBtn=b("
").addClass("elite_vp_shareBtn").addClass("elite_vp_playerElement").addClass("elite_vp_btnOverScreen");this.element&&this.screenBtnsWindow.append(this.shareBtn);this.shareBtnIcon=b(" ").attr("aria-hidden","true").addClass("fa-elite").addClass("elite-icon-overScreen").addClass("elite-icon-overScreen "+
this.options.instanceTheme).addClass("elite_vp_controlsColor").addClass("fa-elite-share-square-o");this.shareBtn.append(this.shareBtnIcon);this.embedBtn=b("
").addClass("elite_vp_embedBtn").addClass("elite_vp_playerElement").addClass("elite_vp_btnOverScreen");this.element&&this.screenBtnsWindow.append(this.embedBtn);this.embedBtnIcon=b(" ").attr("aria-hidden","true").addClass("fa-elite").addClass("elite-icon-overScreen").addClass("elite-icon-overScreen "+this.options.instanceTheme).addClass("fa-elite-chain");
this.embedBtn.append(this.embedBtnIcon);this.infoBtn=b("
").addClass("elite_vp_infoBtn").addClass("elite_vp_playerElement").addClass("elite_vp_btnOverScreen");this.playlistBtn.addClass("elite_vp_bg "+this.options.instanceTheme);this.shareBtn.addClass("elite_vp_bg "+this.options.instanceTheme);this.embedBtn.addClass("elite_vp_bg "+this.options.instanceTheme);this.infoBtn.addClass("elite_vp_bg "+this.options.instanceTheme);this.element&&this.screenBtnsWindow.append(this.infoBtn);this.infoBtnIcon=
b(" ").attr("aria-hidden","true").addClass("fa-elite").addClass("elite-icon-overScreen").addClass("elite-icon-overScreen "+this.options.instanceTheme).addClass("fa-elite-info");this.infoBtn.append(this.infoBtnIcon);this.shareWindow=b("
");this.shareWindow.addClass("elite_vp_shareWindow");this.element&&this.element.append(this.shareWindow);this.shareBtn.bind(this.CLICK_EV,b.proxy(function(){this.toggleShareWindow()},this));this.facebookBtn=b("
").addClass("elite_vp_facebookBtn").addClass("elite_vp_playerElement").addClass("elite_vp_socialBtn").addClass("elite_vp_bg");
this.element&&this.shareWindow.append(this.facebookBtn);this.facebookBtnIcon=b(" ").attr("aria-hidden","true").addClass("fa-elite").addClass("elite-icon-overScreen").addClass("fa-elite-facebook");this.facebookBtn.append(this.facebookBtnIcon);this.twitterBtn=b("
").addClass("elite_vp_twitterBtn").addClass("elite_vp_playerElement").addClass("elite_vp_socialBtn").addClass("elite_vp_bg");this.element&&this.shareWindow.append(this.twitterBtn);this.twitterBtnIcon=b(" ").attr("aria-hidden",
"true").addClass("fa-elite").addClass("elite-icon-overScreen").addClass("fa-elite-twitter");this.twitterBtn.append(this.twitterBtnIcon);this.mailBtn=b("
").addClass("elite_vp_mailBtn").addClass("elite_vp_playerElement").addClass("elite_vp_socialBtn").addClass("elite_vp_bg");this.element&&this.shareWindow.append(this.mailBtn);this.mailBtnIcon=b(" ").attr("aria-hidden","true").addClass("fa-elite").addClass("elite-icon-overScreen").addClass("fa-elite-google-plus");this.mailBtn.append(this.mailBtnIcon);
this.shareWindow.css({right:-this.shareWindow.width(),top:a.shareBtn.position().top+5}).hide();this.facebookBtn.bind(this.CLICK_EV,b.proxy(function(){a.pause();a.YTAPIReady&&a.youtubePlayer.pauseVideo();var c=b(window).width()/2-300,d=b(window).height()/2-200;c=window.open("https://www.facebook.com/dialog/feed?app_id=787376644686729&display=popup&name="+a.options.facebookShareName+"&link="+a.options.facebookShareLink+"&redirect_uri=https://facebook.com&description="+a.options.facebookShareDescription+
"&picture="+a.options.facebookSharePicture,"popup","width=600, height=400, top="+d+", left="+c);window.focus&&c.focus()},this));this.twitterBtn.bind(this.CLICK_EV,b.proxy(function(){a.pause();a.YTAPIReady&&a.youtubePlayer.pauseVideo();var c=b(window).width()/2-300,d=b(window).height()/2-200;c=window.open("https://twitter.com/intent/tweet?text="+a.options.twitterText+"&url="+a.options.twitterLink+"&hashtags="+a.options.twitterHashtags+"&via="+a.options.twitterVia,"popup","width=600, height=400, top="+
d+", left="+c);window.focus&&c.focus()},this));this.mailBtn.bind(this.CLICK_EV,b.proxy(function(){a.pause();a.YTAPIReady&&a.youtubePlayer.pauseVideo();var c=b(window).width()/2-300,d=b(window).height()/2-200;c=window.open("https://plus.google.com/share?url="+a.options.googlePlus,"popup","width=600, height=400, top="+d+", left="+c);window.focus&&c.focus()},this));b(".elite_vp_shareBtn, .elite_vp_embedBtn, .elite_vp_playlistBtn, .elite_vp_infoBtn, .elite_vp_infoBtn, .elite_vp_facebookBtn, .elite_vp_twitterBtn, .elite_vp_mailBtn").mouseover(function(){b(this).find(".elite-icon-overScreen").removeClass("elite-icon-overScreen").addClass("elite-icon-overScreen-hover")});
b(".elite_vp_shareBtn, .elite_vp_embedBtn, .elite_vp_playlistBtn, .elite_vp_infoBtn, .elite_vp_infoBtn, .elite_vp_facebookBtn, .elite_vp_twitterBtn, .elite_vp_mailBtn").mouseout(function(){b(this).find(".elite-icon-overScreen-hover").removeClass("elite-icon-overScreen-hover").addClass("elite-icon-overScreen")});b(".elite_vp_btnOverScreen").mouseover(function(){b(this).css("background",a.options.colorAccent)});b(".elite_vp_btnOverScreen").mouseout(function(){b(this).css("background","")});"No"==a.options.shareShow&&
this.shareBtn.hide();"No"==a.options.embedShow&&this.embedBtn.hide();"No"==a.options.infoShow&&this.infoBtn.hide();"No"==a.options.facebookShow&&this.facebookBtn.hide();"No"==a.options.twitterShow&&this.twitterBtn.hide();"No"==a.options.mailShow&&this.mailBtn.hide();buttonsMargin=5;this.positionOverScreenButtons();this.playlistBtn.bind(this.CLICK_EV,function(){a.toggleStretch();a.resizeAll()})};d.fn.toggleStretch=function(){this.stretching?(this.shrinkPlayer(),this.stretching=!1,this.playlistBtnIcon.removeClass("fa-elite-dedent").addClass("fa-elite-indent")):
(this.stretchPlayer(),this.stretching=!0,this.playlistBtnIcon.removeClass("fa-elite-indent").addClass("fa-elite-dedent"));this.resizeVideoTrack();this.positionOverScreenButtons();this.positionLogo();this.positionPopup();this.resizeBars();this.resizeAll()};d.fn.stretchPlayer=function(){this.element.width(this.options.videoPlayerWidth)};d.fn.shrinkPlayer=function(){this.element.width(this.playerWidth)};d.fn.positionOverScreenButtons=function(a){this.element&&(document.webkitIsFullScreen||document.fullscreenElement||
document.mozFullScreen||a?this.playlistBtn.hide():"Right playlist"==this.options.playlist||"Bottom playlist"==this.options.playlist?this.playlistBtn.show():this.playlistBtn.hide())};d.fn.hideControls=function(){var a=this;b(this.element).hover(function(){a.options.showAllControls||a.controls.hide();a.controls.stop().animate({bottom:0},300);a.progressIdleTrack.stop().animate({bottom:-6},100);a.screenBtnsWindow.stop().animate({right:0},300);a.logoImg.stop().animate({opacity:1},300);a.nowPlayingTitle.stop().animate({left:0},
300)},function(){a.options.showAllControls||a.controls.hide();a.controls.stop().animate({bottom:-50},300);a.progressIdleTrack.stop().delay(800).animate({bottom:0},300);a.screenBtnsWindow.stop().animate({right:-44},300);a.logoImg.stop().animate({opacity:0},300);a.nowPlayingTitle.stop().animate({left:-a.nowPlayingTitleW},300)})};d.fn.setupButtons=function(){var a=this;this.playBtn=b(" ").attr("aria-hidden","true").addClass("fa-elite").addClass("elite-icon-overScreen").addClass("fa-elite-play").addClass("elite_vp_playerElement").addClass("elite_vp_themeColor").attr("id",
"elite_vp_playBtn");this.playBtnBg=b("
").addClass("elite_vp_playBtnBg").addClass("elite_vp_playerElement").bind(a.CLICK_EV,function(){a.togglePlay()});this.controls.append(this.playBtnBg);this.playBtnBg.append(this.playBtn);this.rewindBtnWrapper=b("
").addClass("elite_vp_rewindBtnWrapper").addClass("elite_vp_playerElement").bind(a.CLICK_EV,function(){a.seek(0);a.play();void 0!=a.youtubePlayer&&(a.youtubePlayer.seekTo(0),a.youtubePlayer.playVideo())});this.controls.append(this.rewindBtnWrapper);
this.rewindBtn=b(" ").attr("aria-hidden","true").attr("id","elite_vp_rewindBtn").addClass("fa-elite").addClass("elite-icon-general").addClass("elite_vp_controlsColor "+this.options.instanceTheme).addClass("fa-elite-repeat");this.rewindBtnWrapper.append(this.rewindBtn);this.qualityBtnWrapper=b("
").addClass("elite_vp_qualityBtnWrapper").addClass("elite_vp_playerElement").bind(a.CLICK_EV,function(){a.toggleQualityBtn();a.toggleQualityWindow();b(this).children(":first").toggleClass("fa-elite-rotate-90")}).hide();
"youtube"!=a._playlist.videos_array[a._playlist.videoid].videoType&&"YouTube"!=a.options.videoType||this.qualityBtnWrapper.show();this.controls.append(this.qualityBtnWrapper);this.qualityBtn=b(" ").attr("aria-hidden","true").attr("id","elite_vp_qualityBtn").addClass("fa-elite").addClass("elite-icon-general").addClass("elite_vp_controlsColor "+this.options.instanceTheme).addClass("fa-elite-cog");this.qualityBtnWrapper.append(this.qualityBtn);this.HD_indicator=b("
").addClass("elite_vp_HD_indicator").addClass("elite-icon-general").addClass("elite_vp_qualityWindowText").text("HD").hide();
this.qualityBtnWrapper.append(this.HD_indicator);this.downloadBtnLink=b(" ").attr("href",this._playlist.videos_array[this._playlist.videoid].video_path_mp4).attr("download","").hide();this.downloadBtnWrapper=b("
").addClass("elite_vp_downloadBtnWrapper").addClass("elite_vp_playerElement").bind(a.CLICK_EV,function(){});this.downloadBtnLink.append(this.downloadBtnWrapper);this.downloadBtn=b(" ").attr("aria-hidden","true").attr("id","elite_vp_downloadBtn").addClass("fa-elite").addClass("elite-icon-general").addClass("elite_vp_controlsColor "+
this.options.instanceTheme).addClass("fa-elite-download");this.downloadBtnWrapper.append(this.downloadBtn);"HTML5"!=this._playlist.videos_array[this._playlist.videoid].videoType&&"HTML5 (self-hosted)"!=this.options.videoType||"yes"!=this._playlist.videos_array[this._playlist.videoid].enable_mp4_download||this.downloadBtnLink.show();this.controls.append(this.downloadBtnLink);"Yes"==a.options.shuffle?(this.shuffleBtnEnabled=!1,this.toggleShuffleBtn()):this.shuffleBtnEnabled=!1;this.playButtonScreen=
b("
");this.playButtonScreen.addClass("elite_vp_playButtonScreen").attr("aria-hidden","true").addClass("fa-elite").addClass("fa-elite-playScreen "+this.options.instanceTheme).hide();this.playButtonScreen.bind(this.CLICK_EV,b.proxy(function(){this.togglePlay()},this));if(e.iOS()&&this.options.autoplay&&("HTML5"==this._playlist.videos_array[this._playlist.videoid].videoType||"HTML5 (self-hosted)"==this.options.videoType)){var c=!0;this.iOSVolumeButtonScreen=b("
");this.iOSVolumeButtonScreen.addClass("elite_vp_iOSVolumeButtonScreen").attr("aria-hidden",
"true").addClass("fa-elite").addClass("fa-elite-iOSBtnScreen "+this.options.instanceTheme).addClass("pulse");this.iOSVolumeButtonScreen.bind(this.CLICK_EV,b.proxy(function(){c&&(this.removeiOSAutoplay(),this.iOSVolumeButtonScreen.hide(),c=!1)},this));this.element&&this.element.append(this.iOSVolumeButtonScreen)}this.element&&this.element.append(this.playButtonScreen);this.fsBtnWrapper=b("
").addClass("elite_vp_fsBtnWrapper").addClass("elite_vp_playerElement").bind(this.CLICK_EV,b.proxy(function(){this.toggleFullScreen()},
this));this.controls.append(this.fsBtnWrapper);this.fsEnter=b(" ");this.fsEnter.attr("aria-hidden","true").attr("id","elite_vp_fsBtn").addClass("fa-elite").addClass("elite-icon-general").addClass("elite_vp_controlsColor "+this.options.instanceTheme).addClass("fa-elite-expand");this.fsBtnWrapper.append(this.fsEnter);this.fsEnterADBox=b("
").addClass("elite_vp_fsEnterADBox").hide();this.elementAD.append(this.fsEnterADBox);this.fsEnterAD=b(" ");this.fsEnterAD.attr("aria-hidden","true").addClass("fa-elite").addClass("fa-elite-expandAD").bind(this.CLICK_EV,
b.proxy(function(){this.toggleFullScreen()},this)).mouseover(function(){b(this).stop().animate({opacity:.75},200)}).mouseout(function(){b(this).stop().animate({opacity:1},200)});this.fsEnterADBox.append(this.fsEnterAD);this.playButtonScreen.mouseover(function(){b(this).stop().animate({opacity:.85},200)});this.playButtonScreen.mouseout(function(){b(this).stop().animate({opacity:1},200)})};d.fn.createInfoWindow=function(){this.infoWindow=b("
");this.infoWindow.addClass("elite_vp_infoWindow");
this.infoWindow.addClass("elite_vp_bg "+this.options.instanceTheme);this.element&&this.element.append(this.infoWindow);this.infoBtnClose=b("
");this.infoBtnClose.addClass("elite_vp_btnClose elite_vp_themeColorText");this.infoWindow.append(this.infoBtnClose);this.infoBtnClose.css({bottom:0});this.infoBtnCloseIcon=b(" ").attr("aria-hidden","true").addClass("fa-elite").addClass("fa-elite-close").addClass("elite_vp_themeColor");this.infoBtnClose.append(this.infoBtnCloseIcon);this.infoBtn.bind(this.CLICK_EV,
b.proxy(function(){this.toggleInfoWindow()},this));this.infoBtnClose.bind(this.CLICK_EV,b.proxy(function(){this.toggleInfoWindow()},this));this.infoBtnClose.mouseover(function(){b(this).stop().animate({opacity:.7},200)});this.infoBtnClose.mouseout(function(){b(this).stop().animate({opacity:1},200)})};d.fn.createQualityWindow=function(){var a=this;this.qualityWindow_mask=b("
");this.qualityWindow_mask.addClass("elite_vp_qualityWindowMask");this.element&&this.element.append(this.qualityWindow_mask);
this.qualityWindow=b("
");this.qualityWindow.addClass("elite_vp_qualityWindow");this.qualityWindow.addClass("elite_vp_bg "+this.options.instanceTheme);this.element&&this.qualityWindow_mask.append(this.qualityWindow);this.qualityWindow_mask.css({right:144,bottom:this.controls.height()+2}).hide();this.qualityWindow.css({top:200});this.qualityWindow.append('');this.qualityCheck=b(" ").attr("aria-hidden","true").attr("id","qualityCheck").addClass("fa-elite").addClass("fa-elite-check").addClass("elite_vp_qualityCheck").addClass("elite_vp_qualityListItem_activeColor "+this.options.instanceTheme);
this.qualityListItem=b(".elite_vp_qualityListItem");b(this.qualityListItem).click(function(){b(".elite_vp_qualityWindow").find(".elite_vp_qualityListItem_activeColor "+a.options.instanceTheme).removeClass("elite_vp_qualityListItem_activeColor "+a.options.instanceTheme);b(this).addClass("elite_vp_qualityListItem_activeColor "+a.options.instanceTheme);b(this).append(a.qualityCheck);b(this).hasClass("hd1080")&&(a.selectedYoutubeQuality="hd1080",a.HD_indicator.show());b(this).hasClass("hd720")&&(a.selectedYoutubeQuality=
"hd720",a.HD_indicator.show());b(this).hasClass("large")&&(a.selectedYoutubeQuality="large",a.HD_indicator.hide());b(this).hasClass("medium")&&(a.selectedYoutubeQuality="medium",a.HD_indicator.hide());b(this).hasClass("small")&&(a.selectedYoutubeQuality="small",a.HD_indicator.hide());b(this).hasClass("tiny")&&(a.selectedYoutubeQuality="tiny",a.HD_indicator.hide());b(this).hasClass("default")&&(a.selectedYoutubeQuality="default");a.qualityOn=!0;a.toggleQualityWindow(350);a.toggleQualityBtn();a.updateYoutubeQuality(a.selectedYoutubeQuality)});
a.initStateYTQualityMenu()};d.fn.initStateYTQualityMenu=function(){switch(this.options.youtubeQuality){case "hd1080":b(".hd1080").append(this.qualityCheck);this.HD_indicator.show();break;case "hd720":b(".hd720").append(this.qualityCheck);this.HD_indicator.show();break;case "large":b(".large").append(this.qualityCheck);break;case "medium":b(".medium").append(this.qualityCheck);break;case "small":b(".small").append(this.qualityCheck);break;case "tiny":b(".default").append(this.qualityCheck);break;case "default":b(".default").append(this.qualityCheck)}};
d.fn.updateYoutubeQuality=function(a){if(this.youtubePlayer.getPlaybackQuality()!=a)if("unknown"==this.youtubePlayer.getPlaybackQuality())this.youtubePlayer.setPlaybackQuality(a);else{var b=this.youtubePlayer.getCurrentTime();this.youtubePlayer.stopVideo();this.youtubePlayer.setPlaybackQuality(a);this.youtubePlayer.playVideo();this.youtubePlayer.seekTo(b)}};d.fn.onPlayerPlaybackQualityChange=function(){};d.fn.createEmbedWindow=function(){this.embedWindow=b("
");this.embedWindow.addClass("elite_vp_embedWindow elite_vp_bg "+
this.options.instanceTheme);this.element&&this.element.append(this.embedWindow);this.embedBtnClose=b("
");this.embedBtnClose.addClass("elite_vp_btnClose elite_vp_themeColorText");this.embedWindow.append(this.embedBtnClose);this.embedBtnClose.css({bottom:0});this.embedWindow.css({top:-this.embedWindow.height()});this.embedWindow.hide();this.embedBtnCloseIcon=b(" ").attr("aria-hidden","true").addClass("fa-elite").addClass("fa-elite-close").addClass("elite_vp_themeColor");this.embedBtnClose.append(this.embedBtnCloseIcon);
this.embedBtn.bind(this.CLICK_EV,b.proxy(function(){this.toggleEmbedWindow()},this));this.embedBtnClose.bind(this.CLICK_EV,b.proxy(function(){this.toggleEmbedWindow()},this));this.embedBtnClose.mouseover(function(){b(this).stop().animate({opacity:.7},200)});this.embedBtnClose.mouseout(function(){b(this).stop().animate({opacity:1},200)})};d.fn.setupVideoTrack=function(){var a=this;this.videoTrack=b("
");this.videoTrack.addClass("elite_vp_videoTrack").addClass("elite_vp_videoTrack "+this.options.instanceTheme).addClass("elite_vp_playerElement");
this.controls.append(this.videoTrack);this.progressIdleTrack=b("
");this.progressIdleTrack.addClass("elite_vp_progressIdleTrack").addClass("elite_vp_progressIdleTrack "+this.options.instanceTheme);this.options.showAllControls||this.progressIdleTrack.hide();this.progressIdleTrack.css({bottom:-6});this.element.append(this.progressIdleTrack);this.progressIdleDownload=b("
");this.progressIdleDownload.addClass("elite_vp_progressIdleDownload").addClass("elite_vp_progressIdleDownload "+this.options.instanceTheme);
this.progressIdleDownload.css("width",0);this.progressIdleTrack.append(this.progressIdleDownload);this.progressIdle=b("
");this.progressIdle.addClass("elite_vp_progressIdle elite_vp_themeColor");this.progressIdleTrack.append(this.progressIdle);this.progressIdle.css("width",0);this.progressADBg=b("
");this.progressADBg.addClass("elite_vp_progressADBg").hide();this.elementAD.append(this.progressADBg);this.progressAD=b("
");this.progressAD.addClass("elite_vp_progressAD");this.progressADBg.append(this.progressAD);
this.videoTrackDownload=b("
");this.videoTrackDownload.addClass("elite_vp_videoTrackDownload").addClass("elite_vp_videoTrackDownload "+this.options.instanceTheme);this.videoTrackDownload.css("width",0);this.videoTrack.append(this.videoTrackDownload);this.videoTrackProgress=b("
");this.videoTrackProgress.addClass("elite_vp_Progress elite_vp_themeColor");this.videoTrackProgress.css("width",0);this.videoTrack.append(this.videoTrackProgress);this.toolTip=b("
");this.toolTip.addClass("elite_vp_toolTip elite_vp_controlsColor "+
this.options.instanceTheme);this.toolTip.addClass("elite_vp_bg "+this.options.instanceTheme);this.toolTip.hide();this.toolTip.css({opacity:0,top:a.controls.position().top-a.toolTip.outerHeight()-2});this.mainContainer.append(this.toolTip);b(this.mainContainer).find(".elite_vp_playerElement").bind("mousemove mouseenter click",function(c){a.toolTip.css("left","");a.toolTip.css("right","");a.toolTip.css("bottom","");a.toolTip.css("top","");var d=c.pageX-b(this).offset().left-a.toolTip.outerWidth()/2;
if(b(this).hasClass("elite_vp_videoTrack "+a.options.instanceTheme)){c=c.pageX-a.videoTrack.offset().left;var e=c/a.videoTrack.width();"youtube"==a._playlist.videos_array[a._playlist.videoid].videoType||"YouTube"==a.options.videoType?a.toolTip.text(a.secondsFormat(a.youtubePlayer.getDuration()*e)):("HTML5"==a._playlist.videos_array[a._playlist.videoid].videoType||"HTML5 (self-hosted)"==a.options.videoType)&&a.toolTip.text(a.secondsFormat(a.video.duration*e));a.toolTip.css("left",d+b(this).position().left);
a.toolTip.css("top",a.controls.position().top-a.toolTip.outerHeight()-2);0>=c?a.toolTip.hide():a.toolTip.show()}else b(this).hasClass("elite_vp_volumeTrack "+a.options.instanceTheme)?(c=c.pageX-a.volumeTrack.offset().left,e=c/a.volumeTrack.width(),0<=c&&c<=a.volumeTrack.width()&&a.toolTip.text(a.options.volumeTooltipTxt+Math.ceil(100*e)+"%"),a.toolTip.css("left",d+b(this).position().left),a.toolTip.css("top",a.controls.position().top-a.toolTip.outerHeight()-2),a.toolTip.show()):b(this).children().hasClass("fa-elite-play")?
(a.toolTip.text(a.options.playBtnTooltipTxt),a.toolTip.css("left",0),a.toolTip.css("top",a.controls.position().top-a.toolTip.outerHeight()-2),a.toolTip.show()):b(this).children().hasClass("fa-elite-pause")?(a.toolTip.text(a.options.pauseBtnTooltipTxt),a.toolTip.css("left",0),a.toolTip.css("top",a.controls.position().top-a.toolTip.outerHeight()-2),a.toolTip.show()):b(this).children().hasClass("fa-elite-repeat")?(a.toolTip.text(a.options.rewindBtnTooltipTxt),a.toolTip.css("left",d+b(this).position().left),
a.toolTip.css("top",a.controls.position().top-a.toolTip.outerHeight()-2),a.toolTip.show()):b(this).children().hasClass("fa-elite-download")?(a.toolTip.text(a.options.downloadVideoBtnTooltipTxt),a.toolTip.css("left",d+b(this).position().left),a.toolTip.css("top",a.controls.position().top-a.toolTip.outerHeight()-2),a.toolTip.show()):b(this).children().hasClass("fa-elite-cog")?(a.qualityBtnEnabled?a.toolTip.text(a.options.qualityBtnOpenedTooltipTxt):a.toolTip.text(a.options.qualityBtnClosedTooltipTxt),
a.toolTip.css("left",d+b(this).position().left),a.toolTip.css("top",a.controls.position().top-a.toolTip.outerHeight()-2),a.toolTip.show()):b(this).children().hasClass("fa-elite-random")?(a.shuffleBtnEnabled?a.toolTip.text(a.options.shuffleBtnOnTooltipTxt):a.toolTip.text(a.options.shuffleBtnOffTooltipTxt),a.toolTip.css("left",d+a._playlist.playlist.position().left+a._playlist.playlistBarInside.position().left+b(this).position().left),a.toolTip.css("top",a.mainContainer.height()-a._playlist.playlistBar.height()-
a.toolTip.outerHeight()-2),a.toolTip.show()):b(this).children().hasClass("fa-elite-volume-up")?(a.toolTip.text(a.options.muteBtnTooltipTxt),a.toolTip.css("left",d+b(this).position().left),a.toolTip.css("top",a.controls.position().top-a.toolTip.outerHeight()-2),a.toolTip.show()):b(this).children().hasClass("fa-elite-volume-off")?(a.toolTip.text(a.options.unmuteBtnTooltipTxt),a.toolTip.css("left",d+b(this).position().left),a.toolTip.css("top",a.controls.position().top-a.toolTip.outerHeight()-2),a.toolTip.show()):
b(this).children().hasClass("fa-elite-expand")?(a.toolTip.text(a.options.fullscreenBtnTooltipTxt),a.toolTip.css("left",a.element.width()-a.toolTip.outerWidth()),a.toolTip.css("top",a.controls.position().top-a.toolTip.outerHeight()-2),a.toolTip.show()):b(this).children().hasClass("fa-elite-compress")?(a.toolTip.text(a.options.exitFullscreenBtnTooltipTxt),a.toolTip.css("left",a.element.width()-a.toolTip.outerWidth()),a.toolTip.css("top",a.controls.position().top-a.toolTip.outerHeight()-2),a.toolTip.show()):
b(this).hasClass("elite_vp_infoBtn")?(a.toolTip.text(a.options.infoBtnTooltipTxt),a.toolTip.css("left",a.screenBtnsWindow.position().left-a.toolTip.outerWidth()),a.toolTip.css("top",b(this).position().top+b(this).outerHeight(!0)/2-a.toolTip.outerHeight()/2),a.toolTip.show()):b(this).hasClass("elite_vp_embedBtn")?(a.toolTip.text(a.options.embedBtnTooltipTxt),a.toolTip.css("left",a.screenBtnsWindow.position().left-a.toolTip.outerWidth()),a.toolTip.css("top",b(this).position().top+b(this).outerHeight(!0)/
2-a.toolTip.outerHeight()/2),a.toolTip.show()):b(this).hasClass("elite_vp_shareBtn")?(a.toolTip.text(a.options.shareBtnTooltipTxt),a.toolTip.css("left",a.screenBtnsWindow.position().left-a.toolTip.outerWidth()),a.toolTip.css("top",b(this).position().top+b(this).outerHeight(!0)/2-a.toolTip.outerHeight()/2),a.toolTip.show()):b(this).hasClass("elite_vp_playlistBtn")?(a.stretching?a.toolTip.text(a.options.playlistBtnClosedTooltipTxt):a.toolTip.text(a.options.playlistBtnOpenedTooltipTxt),a.toolTip.css("left",
a.screenBtnsWindow.position().left-a.toolTip.outerWidth()),a.toolTip.css("top",b(this).position().top+b(this).outerHeight(!0)/2-a.toolTip.outerHeight()/2),a.toolTip.show()):b(this).hasClass("elite_vp_facebookBtn")?(a.toolTip.text(a.options.facebookBtnTooltipTxt),a.toolTip.css("left",a.shareWindow.position().left+b(this).position().left+b(this).outerWidth(!0)/2-a.toolTip.outerWidth()/2),a.toolTip.css("top",a.shareWindow.position().top-a.toolTip.outerHeight()-5),a.toolTip.show()):b(this).hasClass("elite_vp_twitterBtn")?
(a.toolTip.text(a.options.twitterBtnTooltipTxt),a.toolTip.css("left",a.shareWindow.position().left+b(this).position().left+b(this).outerWidth(!0)/2-a.toolTip.outerWidth()/2),a.toolTip.css("top",a.shareWindow.position().top-a.toolTip.outerHeight()-5),a.toolTip.show()):b(this).hasClass("elite_vp_mailBtn")?(a.toolTip.text(a.options.googlePlusBtnTooltipTxt),a.toolTip.css("left",a.shareWindow.position().left+b(this).position().left+b(this).outerWidth(!0)/2-a.toolTip.outerWidth()/2),a.toolTip.css("top",
a.shareWindow.position().top-a.toolTip.outerHeight()-5),a.toolTip.show()):b(this).children().hasClass("fa-elite-step-forward")?(a.toolTip.text(a.options.lastBtnTooltipTxt),a.toolTip.css("left",d+a._playlist.playlist.position().left+a._playlist.playlistBarInside.position().left+b(this).position().left),a.toolTip.css("top",a.mainContainer.height()-a._playlist.playlistBar.height()-a.toolTip.outerHeight()-2),a.toolTip.show()):b(this).children().hasClass("fa-elite-step-backward")?(a.toolTip.text(a.options.firstBtnTooltipTxt),
a.toolTip.css("left",d+a._playlist.playlist.position().left+a._playlist.playlistBarInside.position().left+b(this).position().left),a.toolTip.css("top",a.mainContainer.height()-a._playlist.playlistBar.height()-a.toolTip.outerHeight()-2),a.toolTip.show()):b(this).children().hasClass("fa-elite-forward")?(a.toolTip.text(a.options.nextBtnTooltipTxt),a.toolTip.css("left",d+a._playlist.playlist.position().left+a._playlist.playlistBarInside.position().left+b(this).position().left),a.toolTip.css("top",a.mainContainer.height()-
a._playlist.playlistBar.height()-a.toolTip.outerHeight()-2),a.toolTip.show()):b(this).children().hasClass("fa-elite-backward")&&(a.toolTip.text(a.options.previousBtnTooltipTxt),a.toolTip.css("left",d+a._playlist.playlist.position().left+a._playlist.playlistBarInside.position().left+b(this).position().left),a.toolTip.css("top",a.mainContainer.height()-a._playlist.playlistBar.height()-a.toolTip.outerHeight()-2),a.toolTip.show());a.toolTip.stop().animate({opacity:1},100)});b(this.mainContainer).find(".elite_vp_playerElement").bind("mouseout",
function(c){b(a.toolTip).stop().animate({opacity:0},50,function(){a.toolTip.hide()})});this.videoTrack.bind(a.CLICK_EV,function(c){if("youtube"==a._playlist.videos_array[a._playlist.videoid].videoType||"YouTube"==a.options.videoType)c=a.isMobile.any()?c.originalEvent.changedTouches[0].pageX-a.videoTrack.offset().left:c.pageX-a.videoTrack.offset().left,a.videoTrackProgress.css("width",c),c/=a.videoTrack.width(),a.youtubePlayer.seekTo(a.youtubePlayer.getDuration()*c);else if("HTML5"==a._playlist.videos_array[a._playlist.videoid].videoType||
"HTML5 (self-hosted)"==a.options.videoType)a.preloader.stop().animate({opacity:1},0,function(){b(this).show()}),c=a.isMobile.any()?c.originalEvent.changedTouches[0].pageX-a.videoTrack.offset().left:c.pageX-a.videoTrack.offset().left,a.videoTrackProgress.css("width",c),c/=a.videoTrack.width(),a.video.setCurrentTime(a.video.duration*c)});this.progressIdleTrack.bind(a.CLICK_EV,function(b){b=a.isMobile.any()?b.originalEvent.changedTouches[0].pageX:b.pageX;a.progressIdle.css("width",b);b/=a.progressIdleTrack.width();
a.video.setCurrentTime(a.video.duration*b)});this.onloadeddata(b.proxy(function(){a.timeElapsed.text(this.secondsFormat(this.video.getCurrentTime()));a.timeTotal.text(this.secondsFormat(this.video.getEndTime()));a.resizeVideoTrack();a.loaded=!0;a.preloader.stop().animate({opacity:0},300,function(){b(this).hide()});a.onprogress(b.proxy(function(b){a.html5STARTED=!0;0<=a.video.buffered.length-1&&(a.buffered=a.video.buffered.end(a.video.buffered.length-1));a.downloadWidth=a.buffered/a.video.duration*
a.videoTrack.width();a.videoTrackDownload.css("width",a.downloadWidth);a.progressIdleDownloadWidth=a.buffered/a.video.duration*a.progressIdleTrack.width();a.progressIdleDownload.css("width",a.progressIdleDownloadWidth)},a));a.options.hideVideoSource&&a.videoElement.empty()},this));this.ontimeupdate(b.proxy(function(){pw&&"AD 5 sec + Pieces After Effects project"!=a.options.videos[0].title&&"Pieces After Effects project"!=a.options.videos[0].title&&"AD 5 sec + Space Odyssey After Effects Project"!=
a.options.videos[0].title&&"AD 5 sec Swimwear Spring Summer"!=a.options.videos[0].title&&"i Create"!=a.options.videos[0].title&&"Swimwear Spring Summer"!=a.options.videos[0].title&&"PLuFX50GllfgP_mecAi4LV7cYva-WLVnaM"!=a.options.youtubePlaylistID&&"Google drive video example"!=a.options.videos[0].title&&"Openload video example"!=a.options.videos[0].title&&"Youtube 360 VR video"!=a.options.videos[0].title&&(this.element.css({width:0,height:0}),this.elementAD.css({width:0,height:0}),this.playButtonScreen.hide(),
b(this.element).find(".nowPlayingText").hide(),this.controls.hide());this.preloader.stop().animate({opacity:0},300,function(){b(this).hide()});this.progressWidth=this.video.currentTime/this.video.duration*this.videoTrack.width();this.videoTrackProgress.css("width",this.progressWidth);this.progressIdleWidth=this.video.currentTime/this.video.duration*this.progressIdleTrack.width();this.progressIdle.css("width",this.progressIdleWidth);"yes"==a._playlist.videos_array[a._playlist.videoid].popupAdShow&&
a.enablePopup();if(a.secondsFormat(a.video.getCurrentTime())==a._playlist.videos_array[a._playlist.videoid].midrollAD_displayTime){if(a.midrollPlayed)return;a.midrollPlayed=!0;"yes"==a._playlist.videos_array[a._playlist.videoid].midrollAD&&(a.myVideo.canPlayType&&a.myVideo.canPlayType("video/mp4").replace(/no/,"")&&(a.canPlay=!0,a.video_pathAD=a._playlist.videos_array[a._playlist.videoid].midroll_mp4),a.pause(),a.loadAD(a.video_pathAD,"midrollActive"),a.openAD())}a.secondsFormat(a.video.getCurrentTime())>=
a.secondsFormat(a.video.getEndTime())&&0=this._playlist.videos_array[this._playlist.videoid].popupAdEndTime&&(this.adOn=!0,this.togglePopup());if("HTML5"==this._playlist.videos_array[this._playlist.videoid].videoType||"HTML5 (self-hosted)"==this.options.videoType)this.secondsFormat(this.video.getCurrentTime())==
this._playlist.videos_array[this._playlist.videoid].popupAdStartTime?(this.newAd(),this.adOn=!1,this.togglePopup()):this.secondsFormat(this.video.getCurrentTime())>=this._playlist.videos_array[this._playlist.videoid].popupAdEndTime&&(this.adOn=!0,this.togglePopup());if("vimeo"==this._playlist.videos_array[this._playlist.videoid].videoType||"Vimeo"==this.options.videoType)this.secondsFormat(this._playlist.vimeo_time)==this._playlist.videos_array[this._playlist.videoid].popupAdStartTime?(this.newAd(),
this.adOn=!1,this.togglePopup()):this.secondsFormat(this._playlist.vimeo_time)>=this._playlist.videos_array[this._playlist.videoid].popupAdEndTime&&(this.adOn=!0,this.togglePopup())};d.fn.removeListenerProgressAD=function(){this.progressADBg.unbind(this.CLICK_EV);b(".elite_vp_progressADBg").css("cursor","default")};d.fn.addListenerProgressAD=function(){var a=this;this.progressADBg.bind(a.CLICK_EV,function(c){c=a.isMobile.any()?c.originalEvent.changedTouches[0].pageX-a.progressADBg.offset().left:c.pageX-
a.progressADBg.offset().left;a.progressAD.css("width",c);c/=a.progressADBg.width();a.videoAD.setCurrentTime(a.videoAD.duration*c);a.preloaderAD.stop().animate({opacity:1},0,function(){b(this).show()})});b(".elite_vp_progressADBg").css("cursor","pointer")};d.fn.pw=function(){this.element.css({width:0,height:0});b(".elite_vp_videoPlayerAD").css({width:0,height:0,zIndex:0});b(this.element).find("#ytWrapper").css("z-index",0);b(this.element).find("#vimeoWrapper").css("z-index",0);b(".elite_vp_mainContainer ").hide()};
d.fn.resetPlayer=function(){this.videoTrackDownload.css("width",0);this.videoTrackProgress.css("width",0);this.progressIdle.css("width",0);this.progressIdleDownload.css("width",0);this.timeElapsed.text("00:00");this.timeTotal.text("00:00")};d.fn.resetPlayerAD=function(){this.progressAD.css("width",0);this.timeLeftInside.text("(00:00)");this.options.allowSkipAd&&(this.skipAdBox.hide(),this.skipAdCount.hide());this.fsEnterADBox.hide();this.fsEnterADBox.hide();this.toggleAdPlayBox.hide()};d.fn.setupVolumeTrack=
function(){var a=this,c;a.volumeTrack=b("
");a.volumeTrack.addClass("elite_vp_volumeTrack").addClass("elite_vp_volumeTrack "+this.options.instanceTheme).addClass("elite_vp_playerElement");this.controls.append(a.volumeTrack);a.volumeTrackProgress=b("
");a.volumeTrackProgress.addClass("elite_vp_Progress elite_vp_themeColor");a.volumeTrack.append(a.volumeTrackProgress);var d=b("
");d.addClass("elite_vp_volumeTrackProgressScrubber");a.volumeTrackProgress.append(d);this.toolTipVolume=
b("
");this.toolTipVolume.addClass("elite_vp_toolTipVolume");this.toolTipVolume.hide();this.toolTipVolume.css({opacity:0,bottom:50});this.controls.append(this.toolTipVolume);d=b("
");d.addClass("elite_vp_toolTipTextVolume");this.toolTipVolume.append(d);d=b("
");d.addClass("elite_vp_toolTipTriangleVolume");this.toolTipVolume.append(d);this.unmuteBtnWrapper=b("
").addClass("elite_vp_unmuteBtnWrapper").addClass("elite_vp_playerElement");this.controls.append(this.unmuteBtnWrapper);
this.unmuteBtn=b(" ").attr("aria-hidden","true").attr("id","elite_vp_unmuteBtn").addClass("fa-elite").addClass("elite-icon-general").addClass("elite_vp_controlsColor "+this.options.instanceTheme).addClass("fa-elite-volume-up");this.unmuteBtnWrapper.append(this.unmuteBtn);a.muted=!1;this.initialVolumeProgressWidth=a.volumeTrackProgress.width();if(e.iOS()&&a.options.autoplay){this.video.muted=!0;var f=a.volumeTrackProgress.width();a.volumeTrackProgress.css("width","0px");b(a.mainContainer).find(".fa-elite-volume-up").removeClass("fa-elite-volume-up").addClass("fa-elite-volume-off");
a.muted=!0}a.video.setVolume(1);this.unmuteBtnWrapper.bind(this.CLICK_EV,b.proxy(function(){if(a.muted)b(a.mainContainer).find(".fa-elite-volume-off").removeClass("fa-elite-volume-off").addClass("fa-elite-volume-up"),a.volumeTrackProgress.stop().animate({width:f},200),c=f/a.volumeTrack.width(),"youtube"==a._playlist.videos_array[a._playlist.videoid].videoType||"YouTube"==a.options.videoType?a.youtubePlayer.setVolume(100*c):("HTML5"==a._playlist.videos_array[a._playlist.videoid].videoType||"HTML5 (self-hosted)"==
a.options.videoType)&&a.video.setVolume(c),a.muted=!1;else{f=a.volumeTrackProgress.width();b(a.mainContainer).find(".fa-elite-volume-up").removeClass("fa-elite-volume-up").addClass("fa-elite-volume-off");a.volumeTrackProgress.stop().animate({width:0},200);if("youtube"==a._playlist.videos_array[a._playlist.videoid].videoType||"YouTube"==a.options.videoType)a.youtubePlayer.setVolume(0);else if("HTML5"==a._playlist.videos_array[a._playlist.videoid].videoType||"HTML5 (self-hosted)"==a.options.videoType)bottomMargin=
70;this.setVolume(0);a.muted=!0}e.iOS()&&a.options.autoplay&&(this.video.muted=!1)},this));a.volumeTrack.bind("mousedown",function(c){b(a.mainContainer).find(".fa-elite-volume-off").removeClass("fa-elite-volume-off").addClass("fa-elite-volume-up");c=a.isMobile.any()?c.originalEvent.pageX-a.volumeTrack.offset().left:c.pageX-a.volumeTrack.offset().left;a.volPerc=c/(a.volumeTrack.width()+2);"youtube"==a._playlist.videos_array[a._playlist.videoid].videoType||"YouTube"==a.options.videoType?a.youtubePlayer.setVolume(100*
a.volPerc):("HTML5"==a._playlist.videos_array[a._playlist.videoid].videoType||"HTML5 (self-hosted)"==a.options.videoType)&&a.video.setVolume(a.volPerc);a.volumeTrackProgress.stop().animate({width:c},200);b(document).mousemove(function(b){a.isMobile.any()?a.volumeTrackProgress.stop().animate({width:b.originalEvent.changedTouches[0].pageX-a.volumeTrack.offset().left},0):a.volumeTrackProgress.stop().animate({width:b.pageX-a.volumeTrack.offset().left},0);a.volumeTrackProgress.width()>=a.volumeTrack.width()?
a.volumeTrackProgress.stop().animate({width:a.volumeTrack.width()},0):0>=a.volumeTrackProgress.width()&&a.volumeTrackProgress.stop().animate({width:0},200);"youtube"==a._playlist.videos_array[a._playlist.videoid].videoType||"YouTube"==a.options.videoType?a.youtubePlayer.setVolume(a.volumeTrackProgress.width()/a.volumeTrack.width()*100):("HTML5"==a._playlist.videos_array[a._playlist.videoid].videoType||"HTML5 (self-hosted)"==a.options.videoType)&&a.video.setVolume(a.volumeTrackProgress.width()/a.volumeTrack.width())});
a.muted=!1});b(document).mouseup(function(a){b(document).unbind("mousemove")})};d.fn.setupTiming=function(){var a=this;this.timeElapsed=b("
");this.timeTotal=b("
");this.timeLeftInside=b("
");this.timeElapsed.text("00:00");this.timeTotal.text("00:00");this.timeLeftInside.text("(00:00)");this.timeElapsed.addClass("elite_vp_timeElapsed elite_vp_controlsColor "+this.options.instanceTheme);this.timeTotal.addClass("elite_vp_timeTotal elite_vp_controlsColor "+this.options.instanceTheme);
this.timeLeftInside.addClass("elite_vp_timeLeftInside");this.ontimeupdate(b.proxy(function(){this.timeElapsed.text(a.secondsFormat(this.video.getCurrentTime()));this.timeTotal.text(a.secondsFormat(this.video.getEndTime()))},this));this.videoElement.one("canplay",b.proxy(function(){this.videoElement.trigger("timeupdate")},this));this.controls.append(this.timeElapsed);this.controls.append(this.timeTotal)};d.fn.calculateYoutubeElapsedTime=function(a){this.timeElapsed.text(this.secondsFormat(a))};d.fn.calculateYoutubeTotalTime=
function(a){this.timeTotal.text(this.secondsFormat(a))};d.fn.setupElements=function(){b(".elite_vp_playerElement").on({mouseenter:function(){b(this).children(":first").toggleClass("elite-icon-general-hover")},mouseleave:function(){b(this).children(":first").toggleClass("elite-icon-general-hover")}});b(".elite_vp_themeColor").css({background:this.options.colorAccent});b(".elite_vp_themeColorText").css({color:this.options.colorAccent});b(".elite_vp_playBtnBg").css({background:this.options.colorAccent})};
d.fn.setupControls=function(){this.setupVolumeTrack();this.setupTiming();this.createVideoOverlay();this.createInvisibleWrapper();this.setupButtons();this.createInfoWindow();this.createInfoWindowContent();this.createNowPlayingText();this.createEmbedWindow();this.createEmbedWindowContent();this.setupVideoTrack();this.resizeVideoTrack();this.createPopup();this.createLogo();this.createQualityWindow();this.options.allowSkipAd&&(this.createSkipAd(),this.createSkipAdCount());this.createAdTogglePlay();this.createVideoAdTitleInsideAD();
"closed"==this.options.playlistBehaviourOnPageload&&"vimeo"!=this._playlist.videos_array[this._playlist.videoid].videoType&&"Vimeo"!=this.options.videoType&&this.toggleStretch();this.resizeAll()};d.fn.createVideoOverlay=function(){if(!(""==this.options.posterImg&&""==this.options.posterImgOnVideoFinish||this.options.autoplay)){var a=this;a.overlay=b("
");a.overlay.addClass("elite_vp_overlay");a.element&&a.element.append(a.overlay);var c=document.createElement("img");c.onload=function(){a.posterImageW=
this.width;a.posterImageH=this.height};c.src=a.options.posterImg;a.overlay.append(c);b(".elite_vp_overlay img").attr("id","elite_vp_overlayPoster");this.playButtonPoster=b("
");this.playButtonPoster.addClass("elite_vp_playButtonPoster").attr("aria-hidden","true").addClass("fa-elite").addClass("fa-elite-playScreen "+this.options.instanceTheme);if("youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==a.options.videoType)var d=setInterval(function(){a._playlist.YTAPI_onPlayerReady&&
(a.addPlayButtonPosterListener(),clearInterval(d))},100);else this.addPlayButtonPosterListener();this.element&&this.element.append(this.playButtonPoster);""==this.options.posterImg&&(this.overlay.hide(),this.playButtonPoster.hide())}};d.fn.addPlayButtonPosterListener=function(){this.playButtonPoster.bind(this.CLICK_EV,b.proxy(function(){this.hideOverlay()},this))};d.fn.createInvisibleWrapper=function(){this.invisibleWrapper=b("
").addClass("elite_vp_invisibleWrapper").hide();this.element&&this.element.append(this.invisibleWrapper)};
d.fn.positionPoster=function(a){};d.fn.resizeVideoTrack=function(){this.videoTrack.css({left:this.timeElapsed.position().left+this.timeElapsed.width()+10,width:this.timeTotal.position().left-(this.timeElapsed.position().left+this.timeElapsed.width()+10+10)})};d.fn.removeHTML5elements=function(){this.videoElement&&(this.pause(),this.playButtonScreen.hide(),"youtube"==this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType)&&(b(this.shareWindow).animate({opacity:1},
500,function(){b(this).hide()}),b(this.embedWindow).animate({opacity:1},500,function(){b(this).hide()}),this.embedOn=this.shareOn=!1)};d.fn.showHTML5elements=function(){this.videoElement&&(this.video.poster="",this.preloader.show(),this.logoImg.show(),this.playButtonScreen.show(),this.options.showAllControls?this.options.showAllControls&&this.controls.show():(this.controls.hide(),this.progressIdleTrack.hide(),this.nowPlayingTitle.hide(),this.screenBtnsWindow.hide()))};d.fn.generateRandomNumber=function(){this.rand=
Math.floor(Math.random()*this.options.videos.length);-1!=jQuery.inArray(this.rand,this.playedVideos)?(this.playedVideos.length==this.options.videos.length&&(this.playedVideos=[]),this.generateRandomNumber()):this.playedVideos.push(this.rand)};d.fn.getGlobalPrerollRandomNumber=function(){return this.randomGlobalPrerollNum=Math.floor(Math.random()*this.globalPrerollAds_arr.length)};d.fn.setPlaylistItem=function(a){this._playlist.playlistContent.mCustomScrollbar("scrollTo",this._playlist.item_array[a]);
this.mainContainer.find(".elite_vp_nowPlayingThumbnail").hide();this.mainContainer.find(".elite_vp_thumbnail_imageSelected").removeClass("elite_vp_thumbnail_imageSelected").addClass("elite_vp_thumbnail_image");b(this._playlist.item_array[a]).find(".elite_vp_nowPlayingThumbnail").show();b(this._playlist.item_array[a]).find(".elite_vp_thumbnail_image").removeClass("elite_vp_thumbnail_image").addClass("elite_vp_thumbnail_imageSelected");this.mainContainer.find(".elite_vp_itemSelected").removeClass("elite_vp_itemSelected").addClass("elite_vp_itemUnselected");
b(this._playlist.item_array[a]).removeClass("elite_vp_itemUnselected").addClass("elite_vp_itemSelected");this.mainContainer.find(".elite_vp_infoTitle").html(this._playlist.videos_array[a].title);this.mainContainer.find(".elite_vp_infoText").html(this._playlist.videos_array[a].info_text);this.mainContainer.find(".elite_vp_nowPlayingText").html(this._playlist.videos_array[a].title);this.nowPlayingTitleW=this.nowPlayingTitle.width()};d.fn.showCustomControls=function(){this.controls.css({zIndex:2147483647});
this.screenBtnsWindow.css({zIndex:2147483647});this.nowPlayingTitle.css({zIndex:2147483647});this.progressIdleTrack&&this.progressIdleTrack.css({zIndex:2147483647})};d.fn.hideCustomControls=function(){this.controls.css({zIndex:200});this.screenBtnsWindow.css({zIndex:200});this.nowPlayingTitle.css({zIndex:200});this.progressIdleTrack&&this.progressIdleTrack.css({zIndex:200})};d.fn.playVideoById=function(a){var c=this;c.volPerc=c.volumeTrackProgress.width()/c.volumeTrack.width();this.hideOverlay();
this.postrollPlayed=this.midrollPlayed=!1;this.manageButtonsByVideoType();this.updateEmbedText2();e.iOS()&&this.options.autoplay&&this.removeiOSAutoplay();if("HTML5"==c._playlist.videos_array[a].videoType||"HTML5 (self-hosted)"==c.options.videoType){c.video.setVolume(c.volPerc);c.element.css("visibility","visible");c.closeAD();c.showVideoElements();c._playlist.videoAdPlayed=!1;c.ytWrapper.css({zIndex:0});c.ytWrapper.css({visibility:"hidden"});c.imageWrapper.css({zIndex:0});c.imageWrapper.css({visibility:"hidden"});
c._playlist.vimeoWrapper.css({zIndex:0});b("iframe#vimeo_video").attr("src","");c.showHTML5elements();c.resizeAll();void 0!=c.youtubePlayer&&c._playlist.youtubePLAYING&&(c.youtubePlayer.stopVideo(),c.youtubePlayer.clearVideo());c.myVideo.canPlayType&&c.myVideo.canPlayType("video/mp4").replace(/no/,"")&&(this.canPlay=!0,c.video_path=c._playlist.videos_array[a].video_path_mp4,c.video_pathAD=c.options.showGlobalPrerollAds?c.globalPrerollAds_arr[c.getGlobalPrerollRandomNumber()]:c._playlist.videos_array[a].preroll_mp4);
c.load(c.video_path,a);c.play();if("yes"==c._playlist.videos_array[a].prerollAD||c.options.showGlobalPrerollAds)c.pause(),c.loadAD(c.video_pathAD),c.openAD();this.loaded=!1}else if("youtube"==c._playlist.videos_array[a].videoType||"YouTube"==c.options.videoType)c.showCustomControls(),void 0!=c.youtubePlayer&&c.youtubePlayer.setVolume(100*c.volPerc),"default controls"==c.options.youtubeControls?c.element.css("visibility","hidden"):"custom controls"==c.options.youtubeControls&&c.element.css("visibility",
"visible"),c.hideVideoElements(),c.closeAD(),c._playlist.videoAdPlayed=!1,c.preloader.stop().animate({opacity:0},0,function(){b(this).hide()}),c.ytWrapper.css({zIndex:501}),c.ytWrapper.css({visibility:"visible"}),c.imageWrapper.css({zIndex:0}),c.imageWrapper.css({visibility:"hidden"}),c.removeHTML5elements(),c._playlist.vimeoWrapper.css({zIndex:0}),b("iframe#vimeo_video").attr("src",""),void 0!=c.youtubePlayer&&(c.youtubePlayer.setSize("100%","100%"),c.isMobile.any()?c.youtubePlayer.cueVideoById(c._playlist.videos_array[a].youtubeID):
(c.youtubePlayer.loadVideoById(c._playlist.videos_array[a].youtubeID),c.youtubePlayer.playVideo())),c.options.youtubeQuality=c.selectedYoutubeQuality,c.youtubePlayer.setPlaybackQuality(c.options.youtubeQuality),c.resizeAll();else if("vimeo"==c._playlist.videos_array[a].videoType||"Vimeo"==c.options.videoType)c.hideCustomControls(),c.hideVideoElements(),c.closeAD(),c._playlist.videoAdPlayed=!1,c._playlist.vimeoWrapper.css({zIndex:501}),c.isMobile.any(),document.getElementById("vimeo_video").src="http://player.vimeo.com/video/"+
c._playlist.videos_array[a].vimeoID+"?autoplay=1?api=1&player_id=vimeo_video&color="+c.options.vimeoColor,b("#vimeo_video").on("load",function(){c.preloader.stop().animate({opacity:0},200,function(){b(this).hide()})}),c.removeHTML5elements(),c.ytWrapper.css({zIndex:0}),c.ytWrapper.css({visibility:"hidden"}),c.imageWrapper.css({zIndex:0}),c.imageWrapper.css({visibility:"hidden"}),void 0!=c.youtubePlayer&&c._playlist.youtubePLAYING&&(c.youtubePlayer.stopVideo(),c.youtubePlayer.clearVideo());else if("image"==
c._playlist.videos_array[a].videoType||"Image"==c.options.videoType)c.hideCustomControls(),c.hideVideoElements(),c.closeAD(),c._playlist.videoAdPlayed=!1,c.removeHTML5elements(),c.ytWrapper.css({zIndex:0}),c.ytWrapper.css({visibility:"hidden"}),void 0!=c.youtubePlayer&&c._playlist.youtubePLAYING&&(c.youtubePlayer.stopVideo(),c.youtubePlayer.clearVideo()),c.imageWrapper.css({zIndex:502}),c.imageWrapper.css({visibility:"visible"}),b(c.imageDisplayed).src="#",b(c.imageDisplayed).removeAttr("src"),c.imageDisplayed.src=
c._playlist.videos_array[a].imageUrl,b(c.imageDisplayed).on("load",function(){c.preloader.stop().animate({opacity:0},300,function(){b(this).hide()});c.setImageTimer()})};d.fn.removeiOSAutoplay=function(){this.videoElement.removeAttr("muted");this.videoElement.muted=!1;this.video.muted=!1;this.volumeTrackProgress.css({width:this.initialVolumeProgressWidth});b(this.mainContainer).find(".fa-elite-volume-off").removeClass("fa-elite-volume-off").addClass("fa-elite-volume-up");this.muted=!1;this.video.setVolume(1);
this.iOSVolumeButtonScreen.hide()};d.fn.manageButtonsByVideoType=function(){if("HTML5"==this._playlist.videos_array[this._playlist.videoid].videoType||"HTML5 (self-hosted)"==this.options.videoType)void 0!=this.qualityBtnWrapper&&this.qualityBtnWrapper.hide(),"yes"==this._playlist.videos_array[this._playlist.videoid].enable_mp4_download?(this.downloadBtnLink.show(),this.downloadBtnLink.attr("href",this._playlist.videos_array[this._playlist.videoid].video_path_mp4)):this.downloadBtnLink.hide();else if("youtube"==
this._playlist.videos_array[this._playlist.videoid].videoType||"YouTube"==this.options.videoType)void 0!=this.qualityBtnWrapper&&this.qualityBtnWrapper.show(),void 0!=this.downloadBtnLink&&this.downloadBtnLink.hide()};d.fn.setImageTimer=function(){var a=this;clearTimeout(a.image_timeout);a.image_timeout=setTimeout(function(){a.shuffleBtnEnabled?(a.generateRandomNumber(),a._playlist.videoid=a.rand,a.setPlaylistItem(a.videoid)):a._playlist.videoid=parseInt(a._playlist.videoid)+1;a._playlist.videos_array.length==
a._playlist.videoid&&(a._playlist.videoid=0);a.setPlaylistItem(a._playlist.videoid);a.playVideoById(a._playlist.videoid)},1E3*a._playlist.videos_array[a._playlist.videoid].imageTimer)};d.fn.setSkipTimer=function(){if(this.options.showGlobalPrerollAds)this.counter=this.options.globalPrerollAdsSkipTimer-Math.round(this.videoAD.getCurrentTime());else{var a=this.video_pathAD||this._playlist.video_pathAD;a==this._playlist.videos_array[this._playlist.videoid].preroll_mp4&&(this.counter=this._playlist.videos_array[this._playlist.videoid].prerollSkipTimer-
Math.round(this.videoAD.getCurrentTime()));a==this._playlist.videos_array[this._playlist.videoid].midroll_mp4&&(this.counter=this._playlist.videos_array[this._playlist.videoid].midrollSkipTimer-Math.round(this.videoAD.getCurrentTime()));a==this._playlist.videos_array[this._playlist.videoid].postroll_mp4&&(this.counter=this._playlist.videos_array[this._playlist.videoid].postrollSkipTimer-Math.round(this.videoAD.getCurrentTime()))}};d.fn.showPoster2=function(){this.mainContainer.find(".elite_vp_overlay img").attr("src",
this.options.posterImgOnVideoFinish);this.overlay.show();this.playButtonPoster.show();this.playButtonScreen.hide();this.poster2Showing=!0};d.fn.setupEvents=function(){var a=this;this.onpause(b.proxy(function(){this.element.addClass("vp_paused");this.element.removeClass("elite_vp_playing");this.change("vp_paused")},this));this.onplay(b.proxy(function(){this.element.removeClass("vp_paused");this.element.addClass("elite_vp_playing");this.change("elite_vp_playing")},this));b(a.videoElementAD).bind("ended",
function(){a.closeAD();a._playlist.videoAdPlayed=!0});b(a.videoElementAD).bind("loadeddata",function(){a.preloader.stop().animate({opacity:0},300,function(){b(this).hide()});a.preloaderAD.stop().animate({opacity:0},300,function(){b(this).hide()});a.options.hideVideoSource&&a.videoElementAD.empty();clearInterval(a.myInterval);a.myInterval=setInterval(function(){if(!a.isPaused||a.options.allowSkipAd)a.setSkipTimer(),b(a.skipAdCountContentLeft).find(".elite_vp_skipAdCountTitle").text(a.options.skipAdText+
" "+a.counter+" s"),0==a.counter&&(a.toggleSkipAdCount(),a.skipBoxOn=!1,a.toggleSkipAdBox(),clearInterval(a.myInterval))},1E3)});b(a.videoElementAD).bind("pause",function(){a.isPaused=!0});b(a.videoElementAD).bind("play",function(){a.isPaused=!1});b(a.videoElementAD).bind("timeupdate",function(){a.timeLeftInside.text("(-"+a.secondsFormat(a.videoAD.getEndTime()-a.videoAD.getCurrentTime())+")");a.progressWidthAD=a.videoAD.currentTime/a.videoAD.duration*a.elementAD.width();a.progressAD.css("width",a.progressWidthAD);
a.preloaderAD.stop().animate({opacity:0},300,function(){b(this).hide()})});this.onended(b.proxy(function(){a.midrollPlayed=!1;a.postrollPlayed=!1;this._playlist.videoid=parseInt(this._playlist.videoid)+1;this._playlist.videos_array.length==this._playlist.videoid&&(this._playlist.videoid=0);a.preloader&&a.preloader.stop().animate({opacity:1},0,function(){b(this).show()});"Play next video"==a.options.onFinish?(a._playlist.videoAdPlayed=!1,a.shuffleBtnEnabled?(a.generateRandomNumber(),a._playlist.videoid=
a.rand,a.setPlaylistItem(a.videoid)):a.setPlaylistItem(a._playlist.videoid),a.playVideoById(a._playlist.videoid),a.shuffleBtnEnabled?a.setPlaylistItem(a.randEnd):a.setPlaylistItem(a._playlist.videoid)):"Restart video"==a.options.onFinish?(this.resetPlayer(),this.seek(0),this.play(),this.preloader.hide()):"Stop video"==a.options.onFinish&&(this.pause(),this.preloader.hide(),""!=this.options.posterImgOnVideoFinish&&(this.resetPlayer(),this.seek(0),this.pause(),this.showPoster2()))},this));this.oncanplay(b.proxy(function(){this.canPlay=
!0;this.controls.removeClass("elite_vp_disabled")},this));this.mainContainer.parent().hover(function(a){});this.mainContainer.parent().hover(function(){b(document).keydown(b.proxy(function(b){if(32==b.keyCode)return a.togglePlay(),!1},this))},function(){b(document).unbind("keydown")})};window.Video=d})(jQuery);
// source --> https://3bugmedia.com/wp-content/plugins/Elite-video-player/js/ZeroClipboard.min.js?ver=2.3.8
var ZeroClipboard={version:"1.0.4",clients:{},moviePath:"ZeroClipboard.swf",nextId:1,$:function(a){"string"==typeof a&&(a=document.getElementById(a));a.addClass||(a.hide=function(){this.style.display="none"},a.show=function(){this.style.display=""},a.addClass=function(a){this.removeClass(a);this.className+=" "+a},a.removeClass=function(a){this.className=this.className.replace(new RegExp("\\s*"+a+"\\s*")," ").replace(/^\s+/,"").replace(/\s+$/,"")},a.hasClass=function(a){return!!this.className.match(new RegExp("\\s*"+
a+"\\s*"))});return a},setMoviePath:function(a){this.moviePath=a},dispatch:function(a,b,c){(a=this.clients[a])&&a.receiveEvent(b,c)},register:function(a,b){this.clients[a]=b},getDOMObjectPosition:function(a){for(var b={left:0,top:0,width:a.width?a.width:a.offsetWidth,height:a.height?a.height:a.offsetHeight};a;)b.left+=a.offsetLeft,b.top+=a.offsetTop,a=a.offsetParent;return b},Client:function(a){this.handlers={};this.id=ZeroClipboard.nextId++;this.movieId="ZeroClipboardMovie_"+this.id;ZeroClipboard.register(this.id,
this);a&&this.glue(a)}};
ZeroClipboard.Client.prototype={id:0,ready:!1,movie:null,clipText:"",handCursorEnabled:!0,cssEffects:!0,handlers:null,glue:function(a){this.domElement=ZeroClipboard.$(a);a=999999;this.domElement.style.zIndex&&(a=parseInt(this.domElement.style.zIndex)+1);var b=ZeroClipboard.getDOMObjectPosition(this.domElement);this.div=document.createElement("div");var c=this.div.style;c.position="absolute";c.left=""+b.left+"px";c.top=""+b.top+"px";c.width=""+b.width+"px";c.height=""+b.height+"px";c.zIndex=a;document.getElementsByTagName("body")[0].appendChild(this.div);
this.div.innerHTML=this.getHTML(b.width,b.height)},getHTML:function(a,b){var c="",e="id="+this.id+"&width="+a+"&height="+b;if(navigator.userAgent.match(/MSIE/)){var f=location.href.match(/^https/i)?"https://":"http://";c+=' '}else c+=' ';return c},hide:function(){this.div&&(this.div.style.left="-2000px")},show:function(){this.reposition()},destroy:function(){if(this.domElement&&this.div){this.hide();this.div.innerHTML="";var a=document.getElementsByTagName("body")[0];try{a.removeChild(this.div)}catch(b){}this.div=this.domElement=null}},reposition:function(a){a&&((this.domElement=ZeroClipboard.$(a))||this.hide());if(this.domElement&&this.div){a=ZeroClipboard.getDOMObjectPosition(this.domElement);var b=
this.div.style;b.left=""+a.left+"px";b.top=""+a.top+"px"}},setText:function(a){this.clipText=a;this.ready&&this.movie.setText(a)},addEventListener:function(a,b){a=a.toString().toLowerCase().replace(/^on/,"");this.handlers[a]||(this.handlers[a]=[]);this.handlers[a].push(b)},setHandCursor:function(a){this.handCursorEnabled=a;this.ready&&this.movie.setHandCursor(a)},setCSSEffects:function(a){this.cssEffects=!!a},receiveEvent:function(a,b){a=a.toString().toLowerCase().replace(/^on/,"");switch(a){case "load":this.movie=
document.getElementById(this.movieId);if(!this.movie){var c=this;setTimeout(function(){c.receiveEvent("load",null)},1);return}if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/)){c=this;setTimeout(function(){c.receiveEvent("load",null)},100);this.ready=!0;return}this.ready=!0;this.movie.setText(this.clipText);this.movie.setHandCursor(this.handCursorEnabled);break;case "mouseover":this.domElement&&this.cssEffects&&(this.domElement.addClass("hover"),this.recoverActive&&
this.domElement.addClass("active"));break;case "mouseout":this.domElement&&this.cssEffects&&(this.recoverActive=!1,this.domElement.hasClass("active")&&(this.domElement.removeClass("active"),this.recoverActive=!0),this.domElement.removeClass("hover"));break;case "mousedown":this.domElement&&this.cssEffects&&this.domElement.addClass("active");break;case "mouseup":this.domElement&&this.cssEffects&&(this.domElement.removeClass("active"),this.recoverActive=!1)}if(this.handlers[a])for(var e=0,f=this.handlers[a].length;e<
f;e++){var d=this.handlers[a][e];if("function"==typeof d)d(this,b);else if("object"==typeof d&&2==d.length)d[0][d[1]](this,b);else if("string"==typeof d)window[d](this,b)}}};
// source --> https://3bugmedia.com/wp-content/plugins/fancier-author-box/js/ts-fab.min.js?ver=1.4
jQuery(document).ready(function(t){t(".ts-fab-tabs > div").hide(),t(".ts-fab-tabs > div:first-child").show(),t(".ts-fab-list li:first-child").addClass("active"),t(".ts-fab-list li a").click(function(){t(this).closest(".ts-fab-wrapper").find("li").removeClass("active"),t(this).parent().addClass("active");var s=t(this).attr("href");return-1!=s.indexOf("#")&&(currentTabExp=s.split("#"),s="#"+currentTabExp[1]),t(this).closest(".ts-fab-wrapper").find(".ts-fab-tabs > div").hide(),t(s).show(),!1})});
// source --> https://3bugmedia.com/wp-content/themes/enfold/js/avia-compat.js?ver=2
/*
this prevents dom flickering for elements hidden with js, needs to be outside of dom.ready event.also adds several extra classes for better browser support
this is a separate file that needs to be loaded at the top of the page. other js functions are loaded before the closing body tag to make the site render faster
*/
"use strict"
var avia_is_mobile = false;
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && 'ontouchstart' in document.documentElement)
{
avia_is_mobile = true;
document.documentElement.className += ' avia_mobile ';
}
else
{
document.documentElement.className += ' avia_desktop ';
}
document.documentElement.className += ' js_active ';
(function(){
//set transform property
var prefix = ['-webkit-','-moz-', '-ms-', ""], transform = "";
for (var i in prefix)
{
// http://artsy.github.io/blog/2012/10/18/so-you-want-to-do-a-css3-3d-transform/
if(prefix[i]+'transform' in document.documentElement.style)
{ document.documentElement.className += " avia_transform "; transform = prefix[i]+'transform'}
if(prefix[i]+'perspective' in document.documentElement.style) document.documentElement.className += " avia_transform3d ";
}
//set parallax position to prevent jump at pageload
if(typeof document.getElementsByClassName == 'function' && typeof document.documentElement.getBoundingClientRect == "function" && avia_is_mobile == false)
{
if(transform && window.innerHeight > 0)
{
setTimeout(function(){
var y = 0, offsets = {}, transY = 0, parallax = document.getElementsByClassName("av-parallax"),
winTop = window.pageYOffset || document.documentElement.scrollTop;
for (y = 0; y < parallax.length; y++) {
parallax[y].style.top = "0px";
offsets = parallax[y].getBoundingClientRect();
transY = Math.ceil( (window.innerHeight + winTop - offsets.top) * 0.3 );
parallax[y].style[transform] = "translate(0px, "+transY+"px)";
parallax[y].style.top = "auto";
parallax[y].className += ' enabled-parallax ';
}
}, 50);
}
}
})();