PageSourceSearch

https://cleanenergyheatingsystems.com/wp-content/plugins/ultimate-video-player/js/videoPlayer.min.js?ver=7.0.7

js cleanenergyheatingsystems.com collected 2026-10-08 06:16:24 UTC 72,754 bytes, 140 lines download raw bytes

1(function(b){b.fn.Video=function(a,b){return new c(this,a)};var n={videoType:"HTML5",skinPlayer:"Default",skinPlaylist:"Default",autoplay:!1,autohideControls:4,videoPlayerWidth:746,videoPlayerHeight:420,vimeoColor:"F11116",videoPlayerShadow:"effect1",posterImg:"images/preview_images/3.jpg",playlist:"Right playlist",onFinish:"Play next video",nowPlayingText:"Yes",fullscreen:"Fullscreen native",rightClickMenu:!0,shareShow:"Yes",facebookLink:"http://codecanyon.net/",twitterLink:"http://codecanyon.net/",
2logoShow:"Yes",logoClickable:"Yes",logoPath:"images/logo/logo.png",logoGoToLink:"http://codecanyon.net/",logoPosition:"bottom-right",embedShow:"Yes",embedCodeSrc:"www.yourwebsite.com/player/index.html",embedCodeW:"746",embedCodeH:"420",videos:[{title:"Youtube video",youtubeID:"XMGoYNoMtOQ",vimeoID:"46515976",mp4:"http://player.pageflip.com.hr/videos/Big_Buck_Bunny_Trailer.mp4",videoAdShow:"yes",videoAdGotoLink:"http://codecanyon.net/",mp4AD:"http://player.pageflip.com.hr/videos/Sintel_Trailer.mp4",
3description:"Video description goes here.",thumbImg:"images/thumbnail_images/pic3.jpg",info:"Video info goes here"},{title:"Vimeo video",youtubeID:"XMGoYNoMtOQ",vimeoID:"46515976",mp4:"http://player.pageflip.com.hr/videos/Big_Buck_Bunny_Trailer.mp4",videoAdShow:"yes",videoAdGotoLink:"http://codecanyon.net/",mp4AD:"http://player.pageflip.com.hr/videos/Sintel_Trailer.mp4",description:"Video description goes here.",thumbImg:"images/thumbnail_images/pic3.jpg",info:"Video info goes here"},{title:"Big Buck Bunny trailer",
4youtubeID:"XMGoYNoMtOQ",vimeoID:"46515976",mp4:"http://player.pageflip.com.hr/videos/Big_Buck_Bunny_Trailer.mp4",videoAdShow:"yes",videoAdGotoLink:"http://codecanyon.net/",mp4AD:"http://player.pageflip.com.hr/videos/Sintel_Trailer.mp4",description:"Video description goes here.",thumbImg:"images/thumbnail_images/pic3.jpg",info:"Video info goes here"},{title:"Big Buck Bunny trailer",youtubeID:"XMGoYNoMtOQ",vimeoID:"46515976",mp4:"http://player.pageflip.com.hr/videos/Big_Buck_Bunny_Trailer.mp4",videoAdShow:"yes",
5videoAdGotoLink:"http://codecanyon.net/",mp4AD:"http://player.pageflip.com.hr/videos/Sintel_Trailer.mp4",description:"Video description goes here.",thumbImg:"images/thumbnail_images/pic3.jpg",info:"Video info goes here"},{title:"Big Buck Bunny trailer",youtubeID:"XMGoYNoMtOQ",vimeoID:"46515976",mp4:"http://player.pageflip.com.hr/videos/Big_Buck_Bunny_Trailer.mp4",videoAdShow:"yes",videoAdGotoLink:"http://codecanyon.net/",mp4AD:"http://player.pageflip.com.hr/videos/Sintel_Trailer.mp4",description:"Video description goes here.",
6thumbImg:"images/thumbnail_images/pic3.jpg",info:"Video info goes here"},{title:"Big Buck Bunny trailer",youtubeID:"XMGoYNoMtOQ",vimeoID:"46515976",mp4:"http://player.pageflip.com.hr/videos/Big_Buck_Bunny_Trailer.mp4",videoAdShow:"yes",videoAdGotoLink:"http://codecanyon.net/",mp4AD:"http://player.pageflip.com.hr/videos/Sintel_Trailer.mp4",description:"Video description goes here.",thumbImg:"images/thumbnail_images/pic3.jpg",info:"Video info goes here"},{title:"Big Buck Bunny trailer",youtubeID:"XMGoYNoMtOQ",
7vimeoID:"46515976",mp4:"http://player.pageflip.com.hr/videos/Big_Buck_Bunny_Trailer.mp4",videoAdShow:"yes",videoAdGotoLink:"http://codecanyon.net/",mp4AD:"http://player.pageflip.com.hr/videos/Sintel_Trailer.mp4",description:"Video description goes here.",thumbImg:"images/thumbnail_images/pic3.jpg",info:"Video info goes here"},{title:"Big Buck Bunny trailer",youtubeID:"XMGoYNoMtOQ",vimeoID:"46515976",mp4:"http://player.pageflip.com.hr/videos/Big_Buck_Bunny_Trailer.mp4",videoAdShow:"yes",videoAdGotoLink:"http://codecanyon.net/",
8mp4AD:"http://player.pageflip.com.hr/videos/Sintel_Trailer.mp4",description:"Video description goes here.",thumbImg:"images/thumbnail_images/pic3.jpg",info:"Video info goes here"},{title:"Big Buck Bunny trailer",youtubeID:"XMGoYNoMtOQ",vimeoID:"46515976",mp4:"http://player.pageflip.com.hr/videos/Big_Buck_Bunny_Trailer.mp4",videoAdShow:"yes",videoAdGotoLink:"http://codecanyon.net/",mp4AD:"http://player.pageflip.com.hr/videos/Sintel_Trailer.mp4",description:"Video description goes here.",thumbImg:"images/thumbnail_images/pic3.jpg",
9info:"Video info goes here"}]},p=/hp-tablet/gi.test(navigator.appVersion),g="ontouchstart"in window&&!p,q="onorientationchange"in window?"orientationchange":"resize",r=g?"touchend":"click",t=g?"touchstart":"mousedown",u=g?"touchmove":"mousemove",v=g?"touchend":"mou
9seup",c=function(a,k){this._class=c;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,k);this.sources=
10this.options.srcs||this.options.sources;this.state=null;this.loaded=pw=this.embedOn=this.videoPlayingAD=this.shareOn=this.textAdOn=this.adOn=this.infoOn=this.stretching=this.realFullscreenActive=this.inFullScreen=!1;this.readyList=[];this.ADTriggered=this.videoAdStarted=!1;this.hasTouch=g;this.RESIZE_EV=q;this.CLICK_EV=r;this.START_EV=t;this.MOVE_EV=u;this.END_EV=v;this.canPlay=!1;this.myVideo=document.createElement("video");this.deviceAgent=navigator.userAgent.toLowerCase();this.agentID=this.deviceAgent.match(/(iphone)/);
11this.isiPhone=/iphone/i.test(navigator.userAgent.toLowerCase());console.log("videoPlayer.js");var d=document.createElement("script");d.src="https://www.youtube.com/iframe_api";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(d,e);console.log(d);this.options.rightClickMenu||b(".videoplayer").bind("contextmenu",function(){return!1});this.setupElement();this.setupElementAD();this.init()};c.fn=c.prototype;c.fn.loadCSSMain=function(a){b("#vpCSSMain").remove();b('<link rel="stylesheet" type="text/css" href="'+
12a+'" id="vpCSSMain" />').appendTo("head");this.req1=b.ajax({url:a,success:function(a){}})};c.fn.loadFontAwesome=function(a){b("#vpFontAwesome").remove();b('<link rel="stylesheet" type="text/css" href="'+a+'" id="vpFontAwesome" />').appendTo("head");this.req4=b.ajax({url:a,success:function(a){}})};c.fn.loadCSSTheme=function(a){b("#vpCSSTheme").remove();b('<link rel="stylesheet" type="text/css" href="'+a+'" id="vpCSSTheme" />').appendTo("head");this.req2=b.ajax({url:a,success:function(a){}})};c.fn.loadCSSThemePlaylist=
13function(a){b("#vpCSSPlaylist").remove();b('<link rel="stylesheet" type="text/css" href="'+a+'" id="vpCSSPlaylist" />').appendTo("head");this.req3=b.ajax({url:a,success:function(a){}})};c.fn.checkCSS=function(a){var c=this;b.when(c.req1,c.req2,c.req3,c.req4).done(function(){console.log("css loaded, font awesome loaded");c.setupElement();c.init()})};c.fn.init=function(){console.log("init");this.preloader=b("<div />");this.preloader.addClass("ult_vp_preloader");this.element.append(this.preloader);this.videoElement=
14b("<video />");this.videoElement.addClass("ult_vp_videoPlayer");this.videoElement.attr({width:this.options.width,height:this.options.height,autoplay:this.options.autoplay,preload:this.options.preload,controls:this.options.controls,autobuffer:this.options.autobuffer});this.videoElementAD=b("<video />");this.videoElementAD.addClass("ult_vp_videoPlayerAD");this.videoElementAD.attr({width:this.options.width,height:this.options.height,autoplay:this.options.autoplay,preload:this.options.preload,controls:this.options.controls,
15autobuffer:this.options.autobuffer});this._playlist=new PLAYER.Playlist(b,this,this.options,this.mainContainer,this.element,this.preloader,this.myVideo,this.canPlay,this.CLICK_EV,pw,this.hasTouch);"Right playlist"==this.options.playlist?(this.playerWidth=this.parent.width()-this._playlist.playlistW,this.playerHeight=this.options.videoPlayerHeight):"Bottom playlist"==this.options.playlist?(this.playerWidth=this.parent.width(),this.playerHeight=this.options.videoPlayerHeight-this._playlist.playlistH):
16"Off"==this.options.playlist&&(this.playerWidth=this.parent.width(),this.playerHeight=this.options.videoPlayerHeight);this.playlistWidth=this._playlist.playlistW;this.initPlayer();this.resize();this.resizeAll()};c.fn.initPlayer=function(){this.setupHTML5Video();this.setupHTML5VideoAD();this.ready(b.proxy(function(){this.setupEvents();this.change("initial");this.setupControls();this.load();this.setupAutoplay();this.element.bind("idle",b.proxy(this.idle,this));this.element.bind("state.videoPlayer",
17b.proxy(function(){this.element.trigger("reset.idle")},this))},this));this.secondsFormat=function(a){isNaN(a)&&(a=0);var b=[],c=Math.floor(a/60),f=Math.floor(a/3600);a=Math.round(0==a?0:a%60);0<f&&b.push(10>f?"0"+f:f);b.push(10>c?"0"+c:c);b.push(10>a?"0"+a:a);return b.join(":")};var a=this;b(window).resize(function(){a.inFullScreen||a.realFullscreenActive||a.resizeAll()});b(window).bind(this.RESIZE_EV,function(b){a.realFullscreenActive||a.resizeAll()});b(document).bind("webkitfullscreenchange mozfullscreenchange fullscreenchange",
18function(b){a.resize(b)});this.resize=function(c){document.webkitIsFullScreen||document.fullscreenElement||document.mozFullScreen?(this._playlist.hidePlaylist(),this.element.addClass("ult_vp_fullScreen"),this.elementAD.addClass("ult_vp_fullScreen"),b(this.controls).find(".fa-expand").removeClass("fa-expand").addClass("fa-compress"),b(this.fsEnterADBox).find(".fa-expandAD").removeClass("fa-expandAD").addClass("fa-compressAD"),a.element.width("100%"),a.element.height("100%"),a.elementAD.width("100%"),
19a.elementAD.height("100%"),a.realFullscreenActive=!0):(this._playlist.showPlaylist(),this.element.removeClass("ult_vp_fullScreen"),this.elementAD.removeClass("ult_vp_fullScreen"),b(this.controls).find(".fa-compress").removeClass("fa-compress").addClass("fa-expand"),b(this.fsEnterADBox).find(".fa-compressAD").removeClass("fa-compressAD").addClass("fa-expandAD"),a.element.width(a.playerWidth),a.element.height(a.playerHe
19ight),a.elementAD.width(a.playerWidth),a.elementAD.height(a.playerHeight),this.stretching&&
20(this.stretching=!1,this.toggleStretch()),a.element.css({zIndex:558}),"yes"==a._playlist.videos_array[a._playlist.videoid].videoAdShow&&(!a._playlist.videoAdPlayed&&a.videoAdStarted?a.elementAD.css({zIndex:559}):a.elementAD.css({zIndex:557})),a.mainContainer.parent().css("zIndex",1),a.realFullscreenActive=!1,a.resizeAll());this.resizeVideoTrack();this.positionOverScreenButtons();this.positionInfoWindow();this.positionAds();this.positionShareWindow();this.positionEmbedWindow();this.positionLogo();
21this.positionPoster();this.positionVideoAdBoxInside();this.positionSkipAdBox();this.positionToggleAdPlayBox();this.resizeBars();this.autohideControls()}};c.fn.resizeAll=function(a){if(this.options.responsive){a=this.parent.width()/(16/9);this.parent.height(a);"vimeo"==this.options.videoType&&("Right playlist"==this.options.playlist?(a=(this.parent.width()-260)/(16/9),this.parent.height(a)):"Bottom playlist"==this.options.playlist?(a=this.parent.width()/(16/9),this.parent.height(a+64)):"Off"==this.options.playlist&&
22(a=this.parent.width()/(16/9),this.parent.height(a)));switch(this.options.playlist){case "Right playlist":this.stretching?(370>this.element.width()?this.infoWindow.css({width:"100%"}):this.infoWindow.css({width:370}),360>this.parent.width()?this.videoTrack.hide():this.videoTrack.show(),338>this.parent.width()?this.sep2.hide():this.sep2.show(),331>this.parent.width()?this.rewindBtn.hide():this.rewindBtn.show(),308>this.parent.width()?this.sep3.hide():this.sep3.show(),302>this.parent.width()?this.infoBtn.hide():
23this.infoBtn.show(),277>this.parent.width()?this.sep4.hide():this.sep4.show(),262>this.parent.width()?this.timeElapsed.hide():this.timeElapsed.show(),262<this.parent.width()&&(this.timeTotal.show(),this.sep5.show(),this.unmuteBtn.show(),this.volumeTrack.show(),this.sep6.show(),this.fsEnter.show())):(370>this.element.width()?this.infoWindow.css({width:"100%"}):this.infoWindow.css({width:370}),439>this.parent.width()?this.videoTrack.hide():this.videoTrack.show(),411>this.parent.width()?this.sep2.hide():
24this.sep2.show(),406>this.parent.width()?this.rewindBtn.hide():this.rewindBtn.show(),381>this.parent.width()?this.sep3.hide():this.sep3.show(),375>this.parent.width()?this.infoBtn.hide():this.infoBtn.show(),350>this.parent.width()?this.sep4.hide():this.sep4.show(),335>this.parent.width()?this.timeElapsed.hide():this.timeElapsed.show(),302>this.parent.width()?this.timeTotal.hide():this.timeTotal.show(),287>this.parent.width()?this.sep5.hide():this.sep5.show(),460>this.parent.width()?(this.toggleAdPlayBox.css({width:33}),
25b(this.toggleAdPlayBox).find(".ult_vp_toggleAdPlayBoxTitle").hide(),this.videoAdBoxInside.css({width:132}),b(this.elementAD).find(".ult_vp_adsTitleInside").html("Advertisement - ")):(this.toggleAdPlayBox.css({width:97}),b(this.toggleAdPlayBox).find(".ult_vp_toggleAdPlayBoxTitle").show(),this.videoAdBoxInside.css({width:190}),b(this.elementAD).find(".ult_vp_adsTitleInside").html("Your video will resume in")),625>this.parent.width()?(this._playlist.playlist.css({width:75}),this.mainContainer.find(".ult_vp_itemRight").hide()):
26"Transparent"!=this.options.skinPlayer&&(this._playlist.playlist.css({width:260}),this.mainContainer.find(".ult_vp_itemRight").show()));break;case "Bottom playlist":376>this.parent.width()?this.embedBtn.hide():this.embedBtn.show();364>this.parent.width()?this.videoTrack.hide():this.videoTrack.show();336>this.parent.width()?this.sep2.hide():this.sep2.show();329>this.parent.width()?this.rewindBtn.hide():this.rewindBtn.show();306>this.parent.width()?this.sep3.hide():this.sep3.show();301>this.parent.width()?
27this.infoBtn.hide():this.infoBtn.show();275>this.parent.width()?this.sep4.hide():this.sep4.show();260>this.parent.width()?this.timeElapsed.hide():this.timeElapsed.show();break;case "Off":364>this.parent.width()?this.videoTrack.hide():this.videoTrack.show(),336>this.parent.width()?this.sep2.hide():this.sep2.show(),329>this.parent.width()?this.rewindBtn.hide():this.rewindBtn.show(),306>this.parent.width()?this.sep3.hide():this.sep3.show(),301>this.parent.width()?this.infoBtn.hide():this.infoBtn.show(),
28275>this.parent.width()?this.sep4.hide():this.sep4.show(),260>this.parent.width()?this.timeElapsed.hide():this.timeElapsed.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(this.parent.height())):"Off"==this.options.playlist&&(this.element.width(this.parent.parent().width()),
29this.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(this.parent.height()-this._playlist.playlist.height())):"Off"==this.options.playlist&&(this.element.width(this.parent.parent().width()),this.element.height(this.parent.height()));
30this._playlist.resizePlaylist();this.elementAD.width(this.element.width());this.elementAD.height(this.element.height());-1!=navigator.platform.indexOf("iPhone")&&"HTML5"==this.options.videoType&&(this.videoElement.width(this.element.width()-48),this.videoElementAD.width(this.element.width()-48),this.videoElement.height(this.element.height()-26),this.videoElementAD.height(this.element.height()-26));this.positionEmbedWindow();this.positionInfoWindow()}else{this.newPlayerWidth=b(window).width()-this.mainContainer.position().left;
31if("Right playlist"==this.options.playlist||"Off"==this.options.playlist)this.newPlayerHeight=this.newPlayerWidth/(16/9);"Bottom playlist"==this.options.playlist&&(this.newPlayerHeight=this.newPlayerWidth/(16/9)-64);if(this.newPlayerWidth<this.options.videoPlayerWidth)switch(this.options.playlist){case "Right playlist":"Transparent"!=this.options.skinPlayer||this.stretching?this.stretching?(364>this.newPlayerWidth?this.videoTrack.hide():this.videoTrack.show(),334>this.newPlayerWidth?this.sep2.hide():
32this.sep2.show(),383>this.newPlayerWidth?this.embedBtn.hide():this.embedBtn.show(),326>this.newPlayerWidth?this.rewindBtn.hide():this.rewindBtn.show(),310>this.newPlayerWidth?this.infoBtn.hide():this.infoBtn.show(),290>this.newPlayerWidth?this.sep4.hide():this.sep4.show(),270>this.newPlayerWidth?this.timeElapsed.hide():this.timeElapsed.show(),236>this.newPlayerWidth?this.timeTotal.hide():this.timeTotal.show(),213>this.newPlayerWidth&&(this.newPlayerWidth=213)):(623>this.newPlayerWidth?(this.videoTrack.hide(),
33this.infoWindow.css({width:"100%"})):(this.videoTrack.show(),this.infoWindow.css({width:370})),593>this.newPlayerWidth?this.sep2.hide():this.sep2.show(),590>this.newPlayerWidth?this.rewindBtn.hide():this.rewindBtn.show(),587>this.newPlayerWidth?this.embedBtn.hide():this.embedBtn.show(),564>this.newPlayerWidth?this.sep3.hide():this.sep3.show(),560>this.newPlayerWidth?this.infoBtn.hide():this.infoBtn.show(),552>this.newPlayerWidth?this.sep4.hide():this.sep4.show(),522>this.newPlayerWidth?this.timeElapsed.hide():
34this.timeElapsed.show(),491>this.newPlayerWidth?this.timeTotal.hide():this.timeTotal.show(),479>this.newPlayerWidth?(this.toggleAdPlayBox.css({width:33}),b(this.toggleAdPlayBox).find(".ult_vp_toggleAdPlayBoxTitle").hide()):(this.toggleAdPlayBox.css({width:97}),b(this.toggleAdPlayBox).find(".ult_vp_toggleAdPlayBoxTitle").show()),435>this.newPlayerWidth&&(this.newPlayerWidth=435)):(490>this.newPlayerWidth?this.videoTrack.hide():this.videoTrack.show(),458>this.newPlayerWidth?(this.sep1.hide(),this.sep2.hide()):
35(this.sep1.show(),this.sep2.show()),423>this.newPlayerWidth?this.rewindBtn.hide():this.rewindBtn.show(),411>this.newPlayerWidth?this.embedBtn.hide():this.embedBtn.show(),403>this.newPlayerWidth?this.sep3.hide():this.sep3.show(),394>this.newPlayerWidth?this.infoBtn.hide():this.infoBtn.show(),372>this.newPlayerWidth?this.sep4.hide():this.sep4.show(),352>this.newPlayerWidth?this.timeElapsed.hide():this.timeElapsed.show(),315>this.newPlayerWidth?this.timeTotal.hide():this.timeTotal.show(),255>this.newPlayerWidth?
36this.sep5.hide():this.sep5.show(),255>this.newPlayerWidth&&(this.newPlayerWidth=255));break;case "Bottom playlist":364>this.newPlayerWidth?this.videoTrack.hide():this.videoTrack.show();334>this.newPlayerWidth?this.sep2.hide():this.sep2.show();383>this.newPlayerWidth?this.embedBtn.hide():this.embedBtn.show();326>this.newPlayerWidth?this.rewindBtn.hide():this.rewindBtn.show();310>this.newPlayerWidth?this.infoBtn.hide():this.infoBtn.show();290>this.newPlayerWidth?this.sep4.hide():this.sep4.show();270>
37this.newPlayerWidth?this.timeElapsed.hide():this.timeElapsed.show();236>this.newPlayerWidth?this.timeTotal.hide():this.timeTotal.show();213>this.newPlayerWidth&&(this.newPlayerWidth=213);break;case "Off":364>this.newPlayerWidth?this.videoTrack.hide():this.videoTrack.show(),334>this.newPlayerWidth?this.sep2.hide():this.sep2.show(),326>this.newPlayerWidth?this.rewindBtn.hide():this.rewindBtn.show(),310>
37this.newPlayerWidth?this.infoBtn.hide():this.infoBtn.show(),290>this.newPlayerWidth?this.sep4.hide():
38this.sep4.show(),270>this.newPlayerWidth?this.timeElapsed.hide():this.timeElapsed.show(),236>this.newPlayerWidth?this.timeTotal.hide():this.timeTotal.show(),213>this.newPlayerWidth&&(this.newPlayerWidth=213)}else{this.newPlayerWidth=this.options.videoPlayerWidth;if("Right playlist"==this.options.playlist||"Off"==this.options.playlist)this.newPlayerHeight=this.options.videoPlayerHeight;"Bottom playlist"==this.options.playlist&&(this.newPlayerHeight=this.options.videoPlayerHeight-64);this.sep1.show();
39this.sep2.show();this.sep3.show();this.sep4.show();this.videoTrack.show();this.timeElapsed.show();this.timeTotal.show();this.volumeTrack.show();this.rewindBtn.show();this.unmuteBtn.show();this.embedBtn.show();this.infoBtn.show()}"Right playlist"==this.options.playlist?(-1!=navigator.platform.indexOf("iPhone")&&"HTML5"==this.options.videoType&&(this.videoElement.height(this.newPlayerHeight-26),this.videoElementAD.height(this.newPlayerHeight-26)),this.element.height(this.newPlayerHeight),this.mainContainer.css({width:this.newPlayerWidth,
40height:this.newPlayerHeight})):"Bottom playlist"==this.options.playlist?(-1!=navigator.platform.indexOf("iPhone")&&"HTML5"==this.options.videoType&&(this.videoElement.width(this.newPlayerWidth-48),this.videoElementAD.width(this.newPlayerWidth-48)),this.element.width(this.newPlayerWidth),this.mainContainer.css({width:this.newPlayerWidth,height:this.newPlayerHeight+this._playlist.playlistH})):"Off"==this.options.playlist&&(-1!=navigator.platform.indexOf("iPhone")&&"HTML5"==this.options.videoType&&(this.videoElement.width(this.newPlayerWidth-
4148),this.videoElementAD.width(this.newPlayerWidth-48)),this.element.width(this.newPlayerWidth),-1!=navigator.platform.indexOf("iPhone")&&"HTML5"==this.options.videoType&&(this.videoElement.height(this.newPlayerHeight-26),this.videoElementAD.height(this.newPlayerHeight-26)),this.element.height(this.newPlayerHeight),this.mainContainer.css({width:this.newPlayerWidth,height:this.newPlayerHeight}));this.stretching?"Right playlist"==this.options.playlist?(-1!=navigator.platform.indexOf("iPhone")&&"HTML5"==
42this.options.videoType&&(this.videoElement.width(this.newPlayerWidth-48),this.videoElementAD.width(this.newPlayerWidth-48)),this.element.width(this.newPlayerWidth)):"Bottom playlist"==this.options.playlist?(-1!=navigator.platform.indexOf("iPhone")&&"HTML5"==this.options.videoType&&(this.videoElement.height(this.newPlayerHeight+this._playlist.playlistH-26),this.videoElementAD.height(this.newPlayerHeight+this._playlist.playlistH-26)),this.element.height(this.newPlayerHeight+this._playlist.playlistH)):
43"Off"==this.options.playlist&&(-1!=navigator.platform.indexOf("iPhone")&&"HTML5"==this.options.videoType&&(this.videoElement.width(this.newPlayerWidth-48),this.videoElementAD.width(this.newPlayerWidth-48)),this.element.width(this.newPlayerWidth)):"Right playlist"==this.options.playlist?(-1!=navigator.platform.indexOf("iPhone")&&"HTML5"==this.options.videoType&&(this.videoElement.width(this.newPlayerWidth-this._playlist.playlistW-48),this.videoElementAD.width(this.newPlayerWidth-this._playlist.playlistW-
4448)),this.element.width(this.newPlayerWidth-this._playlist.playlistW),this._playlist.resizePlaylist(this.newPlayerWidth,this.newPlayerHeight)):"Bottom playlist"==this.options.playlist?(-1!=navigator.platform.indexOf("iPhone")&&"HTML5"==this.options.videoType&&(this.videoElement.height(this.newPlayerHeight-26),this.videoElementAD.height(this.newPlayerHeight-26)),this.element.height(this.newPlayerHeight),this._playlist.resizePlaylist(this.newPlayerWidth,this.newPlayerHeight)):"Off"==this.options.playlist&&
45(-1!=navigator.platform.indexOf("iPhone")&&"HTML5"==this.options.videoType&&(this.videoElement.width(this.newPlayerWidth-48),this.videoElementAD.width(this.newPlayerWidth-48)),this.element.width(this.newPlayerWidth));this.elementAD.width(this.element.width());this.elementAD.height(this.element.height());-1!=navigator.platform.indexOf("iPhone")&&"HTML5"==this.options.videoType&&this.playBtnScreen&&this.playBtnScreen.hide();if("youtube"==this.options.videoType&&void 0!=this._playlist.youtubePlayer)if(this.realFullscreenActive)this.element.width(b(document).width()),
46this.element.height(b(document).height()),this._playlist.youtubePlayer.setSize(this.element.width(),this.element.height());else switch(this.options.playlist){case "Right playlist":this._playlist.youtubePlayer.setSize(this.newPlayerWidth-this._playlist.playlistW,this.newPlayerHeight);break;case "Bottom playlist":this._playlist.youtubePlayer.setSize(this.newPlayerWidth,this.newPlayerHeight);break;case "Off":this._playlist.youtubePlayer.setSize(this.newPlayerWidth,this.newPlayerHeight)}this.positionEmbedWindow();
47this.positionInfoWindow();this.positionAds()}this.positionVideoAdBoxInside();this.positionSkipAdBox();this.positionToggleAdPlayBox();this.resizeVideoTrack();this.positionOverScreenButtons();this.positionShareWindow();this.positionAds();this.resizeBars();this.positionLogo();this.positionPoster();-1!=navigator.platform.indexOf("iPhone")&&(this.embedBtnClose.hide(),this.infoBtnClose.hide(),this.shareWindow.css({top:this.screenBtnsWindow.height(),right:13}))};c.fn.autohideControls=function(){var a=b(this.element),
48c=!1,d=1E3*this.options.autohideControls,e=0,f=function(){c&&a.trigger("idle",!1);c=!1;e=0};a.bind("mousemove keydown DOMMouseScroll mousewheel mousedown reset.idle",f);var w=setInterval(function(){e>=d?(f(),c=!0,a.trigger("idle",!0)):e+=1E3},1E3);a.unload(function(){clearInterval(w)})};c.fn.resizeBars=function(){this.downloadWidth=this.buffered/this.video.duration*this.videoTrack.width();this.videoTrackDownload.css("width",this.downloadWidth);this.progressWidth=this.video.currentTime/this.video.duration*
49this.videoTrack.width();this.videoTrackProgress.css("width",this.progressWidth);this.progressWidthAD=this.videoAD.currentTime/this.videoAD.duration*this.elementAD.width();this.progressAD.css("width",this.progressWidthAD)};c.fn.createLogo=function(){var a=this;this.logoImg=b("<div/>");this.logoImg.addClass("ult_vp_logo");this.img=new Image;this.img.src=a.options.logoPath;b(this.img).load(function(){a.logoImg.append(a.img);a.positionLogo()});"Yes"==a.options.logoShow&&this.element.append(this.logoImg);
50"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:.7},200)}),this.logoImg.mouseout(function(){b(this).stop().animate({opacity:1},200)}),b(".ult_vp_logo").css("cursor","pointer"))};c.fn.positionLogo=function(){"bottom-right"==this.options.logoPosition?this.logoImg.css({bottom:this.controls.height()+this.toolTip.height()+8,right:buttonsMargin}):"bottom-left"==
51this.options.logoPosition&&this.logoImg.css({bottom:this.controls.height()+this.toolTip.height()+8,left:buttonsMargin})};c.fn.createAds=function(){var a=this;this.adTextWindow=b("<div/>");this.adTextWindow.addClass("ult_vp_textAdsWindow");this.element.append(this.adTextWindow);this.adTextWindowWrapper=b("<div/>");this.adTextWindowWrapper.addClass("ult_vp_textAdsWindowWrapper");this.adTextWindow.append(this.adTextWindowWrapper);this.adTextContent=b("<div/>");this.adTextContent.addClass("ult_vp_textAdsContent");
52this.adTextWindowWrapper.append(this.adTextContent);this.adTextContent.append('<p class="ult_vp_textAdsTexts">'+a._playlist.videos_array[a._playlist.videoid].textAd+"</p>");this.scroll=new iScroll(a.adTextContent[0],{bounce:!1,momentum:!0});this.adTextWindow.hide();this.adTextWindow.css({opacity:0});this.adImg=b("<div/>");this.adImg.addClass("ult_vp_ads");a.image=new Image;a.image.src=a._playlist.videos_array[a._playlist.videoid].popupImg;b(a.image).load(function(){a.adImg.append(a.image);a.positionAds();
53a.adImg.append(a.adClose)});this.element.append(this.adImg);this.adImg.hide();this.adImg.css({opacity:0});this.adClose=b("<div />");this.adClose.addClass("ult_vp_adClose");this.adClose.css({bottom:0});this.adClose.bind(this.START_EV,b.proxy(function(){a.adOn=!0;a.toggleAdWindow()},this));this.adClose.mouseover(function(){b(this).stop().animate({opacity:.7},200)});this.adClose.mouseout(function(){b(this).stop().animate({opacity:1},200)});this.textAdClose=b("<div />");this.textAdClose.addClass("ult_vp_adClose");
54this.textAdClose.css({bottom:0});this.textAdClose.bind(this.START_EV,b.proxy(function(){a.textAdOn=!0;a.toggleTextAdWindow()},this));this.textAdClose.mouseover(function(){b(this).stop().animate({opacity:.7},200)});this.textAdClose.mouseout(function(){b(this).stop().animate({opacity:1},200)});this.adTextWindow.append(this.textAdClose)};c.fn.positionAds=function(){this.adImg.css({bottom:this.controls.height()+40,left:this.element.width()/2-this.adImg.width()/2});this.adTextWindow.css({bottom:this.controls.height()+
5540,left:this.element.width()/2-this.adTextWindow.width()/2})};c.fn.newAd=function(a,c){var d=this;this.adImg.hide();d.image.src="";d.image.src=d._playlist.videos_array[d._playlist.videoid].popupImg;b(d.image).bind(this.START_EV,b.proxy(function(){window.open(d._playlist.videos_array[d._playlist.videoid].popupAdGoToLink);switch(d.options.videoType){case "HTML5":d.pause();break;case "youtube":d._playlist.youtubePlayer.pauseVideo();break;case "vimeo":d._playlist.vimeoPlayer.api("pause")}},this))};c.fn.newTextAd=
56function(a,c){var d=this;this.adTextWindowWrapper.bind(this.START_EV,b.proxy(function(){window.open(d._playlist.videos_array[d._playlist.videoid].textAdGoToLink);switch(d.options.videoType){case "HTML5":d.pause();break;case "youtube":d._playlist.youtubePlayer.pauseVideo();break;case "vimeo":d._playlist.vimeoPlayer.api("pause")}},this))};c.fn.showVideoElements=function(){this.videoElement.show();this.videoElementAD.show()};c.fn.hideVideoElements=function(){this.videoElement.hide();this.videoElementAD.hide()};
57c.fn.setupAutoplay=function(){this.options.autoplay?this.play():this.options.autoplay||(this.pause(),this.preloader.hide())};c.fn.createNowPlayingText=function(){this.options.loadRandomVideoOnStart?this.element.append('<p class="ult_vp_nowPlayingText">'+this._playlist.videos_array[this._playlist.rand].title+"</p>"):this.element.append('<p class="ult_vp_nowPlayingText">'+this._playlist.videos_array[0].title+"</p>");"No"==this.options.nowPlayingText&&this.element.find(".ult_vp_nowPlayingText").hide()};
58c.fn.createInfoWindowContent=function(){this.options.loadRandomVideoOnStart?(this.infoWindow.append('<p class="ult_vp_infoTitle">'+this._playlist.videos_array[this._playlist.rand].title+"</p>"),this.infoWindow.append('<p class="ult_vp_infoText">
58'+this._playlist.videos_array[this._playlist.rand].info_text+"</p>")):(this.infoWindow.append('<p class="ult_vp_infoTitle">'+this._playlist.videos_array[0].title+"</p>"),this.infoWindow.append('<p class="ult_vp_infoText">'+this._playlist.videos_array[0].info_text+
59"</p>"));this.infoWindow.hide();this.positionInfoWindow()};c.fn.createSkipAd=function(){var a=this;this.skipAdBox=b("<div />").attr("title","Skip Ad").addClass("ult_vp_skipAdBox").bind(a.CLICK_EV,function(){a.closeAD()}).hide();this.elementAD.append(this.skipAdBox);this.skipAdBoxIcon=b("<span />").attr("aria-hidden","true").addClass("fa").addClass("fa-step-forward");this.skipAdBox.append(this.skipAdBoxIcon);this.skipAdBox.append('<p class="ult_vp_skipAdTitle">Skip Ad</p>');this.positionSkipAdBox()};
60c.fn.createAdTogglePlay=function(){var a=this;this.toggleAdPlayBox=b("<div />").attr("title","Play/pause ad").addClass("ult_vp_toggleAdPlayBox").bind(a.CLICK_EV,function(){a.togglePlayAD();a.ADTriggered=!0}).hide();this.elementAD.append(this.toggleAdPlayBox);this.toggleAdPlayBoxIcon=b("<span />").attr("aria-hidden","true").addClass("fa").addClass("fa-pauseAD");this.toggleAdPlayBox.append(this.toggleAdPlayBoxIcon);this.toggleAdPlayBox.append('<p class="ult_vp_toggleAdPlayBoxTitle">Pause Ad</p>');this.positionToggleAdPlayBox()};
61c.fn.createVideoAdTitleInsideAD=function(){this.videoAdBoxInside=b("<div />");this.videoAdBoxInside.addClass("ult_vp_videoAdBoxInside");this.elementAD.append(this.videoAdBoxInside);this.videoAdBoxInside.append('<p class="ult_vp_adsTitleInside">Your video will resume in</p>');this.videoAdBoxInside.append(this.timeLeftInside);this.videoAdBoxInside.hide();this.positionVideoAdBoxInside();this.videoAdBoxInsideNowPlaying=b("<div />");this.videoAdBoxInsideNowPlaying.addClass("ult_vp_videoAdBoxInsideNowPlaying");
62this.elementAD.append(this.videoAdBoxInsideNowPlaying);this.videoAdBoxInsideNowPlaying.append('<p class="ult_vp_adsTitleInsideNowPlaying">Advertisement</p>');this.videoAdBoxInsideNowPlaying.hide()};c.fn.createEmbedWindowContent=function(){b(this.embedWindow).append('<p class="ult_vp_embedTitle">EMBED CODE:</p>');b(this.embedWindow).append('<p class="ult_vp_embedText"></p>');b(this.embedWindow).find(".ult_vp_embedText").css({opacity:.5});var a=this.options.embedCodeSrc,c=this.options.embedCodeW,d=
63this.options.embedCodeH;b(this.embedWindow).find(".ult_vp_embedText").text("<iframe src='"+a+"' width='"+c+"' height='"+d+"' frameborder=0 webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>");b(this.embedWindow).hide();this.positionEmbedWindow();b(this.embedWindow).mouseover(function(){b(this).find(".ult_vp_embedText").stop().animate({opacity:1},300)});b(this.embedWindow).mouseout(function(){b(this).find(".ult_vp_embedText").stop().animate({opacity:.5},300)})};c.fn.ready=function(a){this.readyList.push(a);
64this.loaded&&a.call(this)};c.fn.load=function(a,c){var d=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"==d.options.videoType&&this.video.loadSources(this.sources)})};c.fn.closeAD=function(){this.videoPlayingAD=!0;this.togglePlayAD();this._playlist.videoAdPlayed=!0;this.resetPlayerAD();this.elementAD.width(0);this.elementAD.height(0);this.elementAD.css({zIndex:1});
65this.videoAdBoxInside.hide();this.skipAdBox.hide();this.fsEnterADBox.hide();this.toggleAdPlayBox.hide();this.videoAdBoxInsideNowPlaying.hide();"youtube"==this.options.videoType?(this.hideVideoElements(),this._playlist.youtubePlayer.playVideo()):"HTML5"==this.options.videoType?(this.showVideoElements(),this.togglePlay(),this.video.play()):"vimeo"==this.options.videoType&&(this.hideVideoElements(),void 0!=this._playlist.vimeoPlayer?this._playlist.vimeoPlayer.api("play"):this._playlist.playVimeo(this._playlist.videoid));
66this.exitToOriginalSize()};c.fn.openAD=function(){this.showVideoElements();this.elementAD.css({zIndex:559});this.videoAdBoxInside.show();this.skipAdBox.show();this.fsEnterADBox.show();this.toggleAdPlayBox.show();this.hasTouch?this.ADTriggered||(b(this.toggleAdPlayBox).find(".ult_vp_toggleAdPlayBoxTitle").text("Play Ad"),this.videoPlayingAD=!0,this.togglePlayAD()):b(this.toggleAdPlayBox).find(".ult_vp_toggleAdPlayBoxTitle").text("Pause Ad");this.videoAdBoxInsideNowPlaying.show();this.resizeAll()};
67c.fn.loadAD=function(a){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)})};c.fn.exitToOriginalSize=function(){THREEx.FullScreen.available()?THREEx.FullScreen.activated()?THREEx.FullScreen.cancel():this.inFullScreen&&this.fullScreen(!this.inFullScreen):THREEx.FullScreen.available();this.elementAD.css({zIndex:555})};
68c.fn.play=function(){this.playButtonScreen.stop().animate({opacity:0}
68,0,function(){b(this).hide()});this.playBtn.removeClass("fa-play").addClass("fa-pause");this.video.play();"yes"==this._playlist.videos_array[this._playlist.videoid].videoAdShow&&0==this.videoAdStarted&&(this.video.pause(),!this.videoAdStarted&&this._playlist.videos_array[this._playlist.videoid].videoAdShow&&(this.myVideo.canPlayType&&this.myVideo.canPlayType("video/mp4").replace(/no/,"")&&(this.canPlay=!0,this.video_pathAD=this._playlist.videos_array[this._playlist.videoid].video_path_mp4AD),
69this.loadAD(this.video_pathAD),this.openAD()),this.videoAdStarted=!0)};c.fn.pause=function(){this.playButtonScreen.stop().animate({opacity:1},0,function(){b(this).show()});this.playBtn.removeClass("fa-pause").addClass("fa-play");this.video.pause()};c.fn.stop=function(){this.seek(0);this.pause()};c.fn.hideOverlay=function(){void 0!=this.overlay&&(this.overlay.hide(),this.playButtonPoster.hide(),"youtube"==this.options.videoType?this._playlist.youtubePlayer.playVideo():"HTML5"==this.options.videoType?
70this.togglePlay():"vimeo"==this.options.videoType&&(void 0!=this._playlist.vimeoPlayer?this._playlist.vimeoPlayer.api("play"):this._playlist.playVimeo(this._playlist.videoid)))};c.fn.togglePlay=function(){"ult_vp_playing"==this.state?this.pause():this.play()};c.fn.toggleInfoWindow=function(){this.infoOn?(this.infoWindow.animate({opacity:0}
70,500,function(){b(this).hide()}),this.infoOn=!1):(this.infoWindow.show(),this.infoWindow.animate({opacity:1},500),this.infoOn=!0)};c.fn.toggleAdWindow=function(){this.adOn?
71(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)};c.fn.toggleTextAdWindow=function(){this.textAdOn?(this.adTextWindow.animate({opacity:0},0,function(){b(this).hide()}),this.textAdOn=!1):this.textAdOn||(this.adTextWindow.show(),this.adTextWindow.animate({opacity:1},500),this.textAdOn=!0)};c.fn.toggleShareWindow=function(){this.shareOn?(b(this.shareWindow).animate({opacity:0},500,function(){b(this).hide()}),
72this.shareOn=!1):(this.shareWindow.show(),b(this.shareWindow).animate({opacity:1},500),this.shareOn=!0)};c.fn.togglePlayAD=function(){this.videoPlayingAD?(this.videoAD.pause(),this.videoPlayingAD=!1,this.toggleAdPlayBoxIcon.removeClass("fa-pauseAD").addClass("fa-playAD"),b(this.toggleAdPlayBox).find(".ult_vp_toggleAdPlayBoxTitle").text("Play Ad")):(this.videoAD.play(),this.videoPlayingAD=!0,this.toggleAdPlayBoxIcon.removeClass("fa-playAD").addClass("fa-pauseAD"),b(this.toggleAdPlayBox).find(".ult_vp_toggleAdPlayBoxTitle").text("Pause Ad"))};
73c.fn.toggleEmbedWindow=function(){this.embedOn?(b(this.embedWindow).animate({opacity:0}
73,500,function(){b(this).hide()}),this.embedOn=!1):(b(this.embedWindow).show(),b(this.embedWindow).animate({opacity:1},500),this.embedOn=!0)};c.fn.fullScreen=function(a){a?(this._playlist.hidePlaylist(),this.element.addClass("ult_vp_fullScreen"),this.elementAD.addClass("ult_vp_fullScreen"),b(this.controls).find(".fa-expand").removeClass("fa-expand").addClass("fa-compress"),b(this.fsEnterADBox).find(".fa-expandAD").removeClass("fa-expandAD").addClass("fa-compressAD"),
74this.element.width(this.windowWidth),this.element.height(this.windowHeight),this.elementAD.width(this.windowWidth),this.elementAD.height(this.windowHeight),this.mainContainer.parent().css("zIndex",999999),"HTML5"==this.options.videoType?this.element.css({zIndex:558}):this.element.css({zIndex:556}),"yes"==this._playlist.videos_array[this._playlist.videoid].videoAdShow&&(this._playlist.videoAdPlayed?this.elementAD.css({zIndex:557}):this.elementAD.css({zIndex:559}))):(this._playlist.showPlaylist(),this.element.removeClass("ult_vp_fullScreen"),
75this.elementAD.removeClass("ult_vp_fullScreen"),this.mainContainer.parent().css("zIndex",1),b(this.controls).find(".fa-compress").removeClass("fa-compress").addClass("fa-expand"),b(this.fsEnterADBox).find(".fa-compressAD").removeClass("fa-compressAD").addClass("fa-expandAD"),this.element.width(this.playerWidth),this.element.height(this.playerHeight),this.elementAD.width(this.playerWidth),this.elementAD.height(this.playerHeight),this.stretching&&(this.stretching=!1,this.toggleStretch()),"HTML5"==this.options.videoType?
76this.element.css({zIndex:558}):this.element.css({zIndex:556}),"yes"==this._playlist.videos_array[this._playlist.videoid].videoAdShow&&(this._playlist.videoAdPlayed?this.elementAD.css({zIndex:557}):this.elementAD.css({zIndex:559})),this.resizeAll());this.resizeVideoTrack();this.positionOverScreenButtons(a);this.positionInfoWindow();this.positionEmbedWindow();this.positionShareWindow();this.positionVideoAdBoxInside();this.positionSkipAdBox();this.positionToggleAdPlayBox();this.positionLogo();this.positionPoster();
77this.positionAds();this.resizeBars();"undefined"==typeof a&&(a=!0);this.inFullScreen=a};c.fn.toggleFullScreen=function(){THREEx.FullScreen.available()?THREEx.FullScreen.activated()?("Fullscreen native"==this.options.fullscreen&&THREEx.FullScreen.cancel(),"Fullscreen browser"==this.options.fullscreen&&this.fullScreen(!this.inFullScreen),"HTML5"==this.options.videoType?this.element.css({zIndex:455558}):this.element.css({zIndex:455556}),"yes"==this._playlist.videos_array[this._playlist.videoid].videoAdShow&&
78(this._playlist.videoAdPlayed?this.elementAD.css({zIndex:455557}):this.elementAD.css({zIndex:455559}))):("Fullscreen native"==this.options.fullscreen&&(THREEx.FullScreen.request(),this.mainContainer.parent().css("zIndex",999999),"HTML5"==this.options.videoType?this.element.css({zIndex:455558}):this.element.css({zIndex:455556}),"yes"==this._playlist.videos_array[this._playlist.videoid].videoAdShow&&(this._playlist.videoAdPlayed?this.elementAD.css({zIndex:455557}):this.elementAD.css({zIndex:455559}))),
79"Fullscreen browser"==this.options.fullscreen&&this.fullScreen(!this.inFullScreen)):THREEx.FullScreen.available()||this.fullScreen(!this.inFullScreen)};c.fn.seek=function(a){this.video.setCurrentTime(a)};c.fn.setVolume=function(a){this.video.setVolume(a)};c.fn.getVolume=function(){return this.video.getVolume()};c.fn.mute=function(a){"undefined"==typeof a&&(a=!0);this.setVolume(a?1:0)};c.fn.remove=function(){this.element.remove()};c.fn.bind=function(){this.videoElement.bind.apply(this.videoElement,
80arguments)};c.fn.one=function(){this.videoElement.one.apply(this.videoElement,arguments)};c.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(" "),h=0;h<m.length;h++)(function(){var a=m[h],k=a.replace(/^(on)/,"");c.fn[a]=function(){var a=b.makeArray(arguments);a.unshift(k);this.bind.apply(this,a)}})();c.fn.triggerReady=function(){for(var a in this.readyList)this.readyList[a].call(this);
81this.loaded=!0};c.fn.setupElement=function(){this.mainContainer=b("<div />");this.mainContainer.addClass("ultra_vp_mainContainer");this.options.responsive?this.mainContainer.css({width:"100%",height:"100%",background:"#000000",position:"relative"}):this.mainContainer.css({width:this.options.videoPlayerWidth,height:this.options.videoPlayerHeight,position:"absolute",background:"#000000"});
81switch(this.options.videoPlayerShadow){case "Effect1":this.mainContainer.addClass("ult_vp_effect1");break;case "Effect2":this.mainContainer.addClass("ult_vp_effect2");
82break;case "Effect3":this.mainContainer.addClass("ult_vp_effect3");break;case "Effect4":this.mainContainer.addClass("ult_vp_effect4");break;case "Effect5":this.mainContainer.addClass("ult_vp_effect5");break;case "Effect6":this.mainContainer.addClass("ult_vp_effect6")}this.parent.append(this.mainContainer);this.element=b("<div />");this.element.addClass("ult_vp_videoPlayer");this.mainContainer.append(this.element)};c.fn.setupElementAD=function(){this.elementAD=b("<div />");this.elementAD.addClass("ult_vp_videoPlayerAD");
83this.mainContainer.append(this.elementAD)};c.fn.idle=function(a,b){b?"ult_vp_playing"==this.state&&(this.controls.stop().animate({opacity:0},300),this.shareBtn.stop().animate({opacity:0},300),this.playlistBtn.stop().animate({opacity:0},300),this.embedBtn.stop().animate({opacity:0},300),this.logoImg.stop().animate({opacity:0},300),this.element.find(".ult_vp_nowPlayingText").stop().animate({opacity:0}
83,300)):(this.controls.stop().animate({opacity:1},300),this.shareBtn.stop().animate({opacity:1},300),
84this.playlistBtn.stop().animate({opacity:1},300),this.embedBtn.stop().animate({opacity:1},300),this.logoImg.stop().animate({opacity:1},300),this.element.find(".ult_vp_nowPlayingText").stop().animate({opacity:1},300))};c.fn.change=function(a){this.state=a;this.element&&(this.element.attr("data-state",this.state),this.element.trigger("state.videoPlayer",this.state))};c.fn.setupHTML5Video=function(){this.element&&this.element.append(this.videoElement);this.video=this.videoElement[0];this.element&&(this.element.width(this.playerWidth),
85this.element.height(this.playerHeight));var a=this;this.video.loadSources=function(c){a.videoElement.empty();for(var d in c){var e=b("<source />");e.attr(c[d]);a.videoElement.append(e)}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(a){return 0}};
86a=this;this.video.setCurrentTime=function(a){this.currentTime=a};this.video.getVolume=function(){return this.volume};this.video.setVolume=function(a){this.volume=a};this.videoElement.dblclick(b.proxy(function(){this.toggleFullScreen()},this));this.videoElement.bind(this.CLICK_EV,b.proxy(function(){this.togglePlay()},this));this.triggerReady()};c.fn.setupHTML5VideoAD=function(){this.elementAD&&this.elementAD.append(this.videoElementAD);this.videoAD=this.videoElementAD[0];this.elementAD&&(this.elementAD.width(0),
87this.elementAD.height(0));var a=this;this.videoAD.loadSources=function(c){a.videoElementAD.empty();for(var d in c){var e=b("<source />");e.attr(c[d]);a.videoElementAD.append(e)}a.videoAD.load();a.videoPlayingAD=this.hasTouch?!0:!1;a.togglePlayAD()};this.videoAD.getStartTime=function(){return this.startTime||0};this.videoAD.getEndTime=function(){if(isNaN(this.duration))a.timeTotal.text("--:--");else return Infinity==this.duration&&this.buffered?this.buffered.end(this.buffered.length-1):(this.startTime||
880)+this.duration};this.videoAD.getCurrentTime=function(){try{return this.currentTime}catch(a){return 0}};this.videoAD.setCurrentTime=function(a){this.currentTime=a};this.videoAD.getVolume=function(){return this.volume};this.videoAD.setVolume=function(a){this.volume=a};this.videoElementAD.dblclick(b.proxy(function(){this.toggleFullScreen()},this));this.triggerReady();this.videoElementAD.bind(this.CLICK_EV,b.proxy(function(){""!=this._playlist.videos_array[this._playlist.videoid].videoAdGotoLink&&"videoAdGotoLink"!=
89this._playlist.videos_array[this._playlist.videoid].videoAdGotoLink&&(window.open(this._playlist.videos_array[this._playlist.videoid].videoAdGotoLink),this.videoPlayingAD=!0,this.togglePlayAD())},this))};c.fn.setupButtonsOnScreen=function(){var a=this;this.screenBtnsWindow=b("<div></div>");this.screenBtnsWindow.addClass("ult_vp_screenBtnsWindow");this.element&&this.element.append(this.screenBtnsWindow);this.playlistBtn=b("<div />").addClass("ult_vp_playlistBtn").addClass("vp_btnOverScreen");this.element&&
90this.screenBtnsWindow.append(this.playlistBtn);this.playlistBtnIcon=b("<span />").attr("aria-hidden","true").attr("title","Playlist toggle").addClass("fa").addClass("ult-icon-overScreen").addClass("fa-list-ul");this.playlistBtn.append(this.playlistBtnIcon);this.playlistBtn.append('<p class="ult_vp_playlistBtnText">VIDEOS</p>');b(this.element).find(".ult_vp_playlistBtnText").addClass("ult-icon-overScreen-Texts");this.shareBtn=b("<div />").addClass("ult_vp_shareBtn").addClass("vp_btnOverScreen");this.element&&
91this.screenBtnsWindow.append(this.shareBtn);this.shareBtnIcon=b("<span />").attr("aria-hidden","true").attr("title","Share").addClass("fa").addClass("ult-icon-overScreen").addClass("fa-share-square-o");this.shareBtn.append(this.shareBtnIcon);this.shareBtn.append('<p class="ult_vp_shareBtnText">SHARE</p>');b(this.element).find(".ult_vp_shareBtnText").addClass("ult-icon-overScreen-Texts");
91this.embedBtn=b("<div />").addClass("ult_vp_embedBtn").addClass("vp_btnOverScreen");this.element&&this.screenBtnsWindow.append(this.embedBtn);
92this.embedBtnIcon=b("<span />").attr("aria-hidden","true").attr("title","Embed").addClass("fa").addClass("ult-icon-overScreen").addClass("fa-code");this.embedBtn.append(this.embedBtnIcon);this.embedBtn.append('<p class="ult_vp_embedBtnText">EMBED</p>');b(this.element).find(".ult_vp_embedBtnText").addClass("ult-icon-overScreen-Texts");b(".ult_vp_shareBtn, .ult_vp_embedBtn, .ult_vp_playlistBtn").mouseover(function(){b(this).find(".ult-icon-overScreen-Texts").removeClass("ult-icon-overScreen-Texts").addClass("ult-icon-overScreen-Texts-hover");
93b(this).find(".ult-icon-overScreen").removeClass("ult-icon-overScreen").addClass("ult-icon-overScreen-hover")});b(".ult_vp_shareBtn, .ult_vp_embedBtn, .ult_vp_playlistBtn").mouseout(function(){b(this).find(".ult-icon-overScreen-Texts-hover").removeClass("ult-icon-overScreen-Texts-hover").addClass("ult-icon-overScreen-Texts");b(this).find(".ult-icon-overScreen-hover").removeClass("ult-icon-overScreen-hover").addClass("ult-icon-overScreen")});"No"==a.options.shareShow&&this.shareBtn.hide();"No"==a.options.embedShow&&
94this.embedBtn.hide();buttonsMargin=5;this.positionOverScreenButtons();this.playlistBtn.bind(this.CLICK_EV,function(){a.toggleStretch()})};c.fn.toggleStretch=function(){this.stretching?(this.shrinkPlayer(),this.stretching=!1):(this.stretchPlayer(),this.stretching=!0);this.resizeVideoTrack();this.positionOverScreenButtons();this.positionInfoWindow();this.positionEmbedWindow();this.positionShareWindow();this.positionLogo();this.positionPoster();this.positionAds();this.positionVideoAdBoxInside();this.positionSkipAdBox();
95this.positionToggleAdPlayBox();this.resizeBars();this.resizeAll()};c.fn.stretchPlayer=function(){this.element.width(this.options.videoPlayerWidth);this._playlist.hidePlaylist()};c.fn.shrinkPlayer=function(){this.element.width(this.playerWidth);this._playlist.showPlaylist()};c.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?
96this.playlistBtn.show():this.playlistBtn.hide())};c.fn.positionInfoWindow=function(){this.infoWindow.css({bottom:this.controls.height()+55,left:this.element.width()/2-this.infoWindow.width()/2})};c.fn.positionShareWindow=function(){this.shareWindow.css({})};c.fn.positionEmbedWindow=function(){this.embedWindow.css({bottom:this.element.height()/2-this.embedWindow.height()/2,left:this.element.width()/2-this.embedWindow.width()/2})};c.fn.positionVideoAdBoxInside=function(){this.videoAdBoxInside.css({left:this.elementAD.width()/
972-this.videoAdBoxInside.width()/2,bottom:this.controls.height()+45})};c.fn.positionSkipAdBox=function(){this.options.allowSkip?this.skipAdBox.css({right:10,bottom:10}):this.skipAdBox.css({display:"none"})};c.fn.positionToggleAdPlayBox=function(){this.options.allowSkip?this.toggleAdPlayBox.css({right:100,bottom:10}):this.toggleAdPlayBox.css({right:10,bottom:10})};c.fn.setupButtons=function(){var a=this;this.playBtn=b("<span />").attr("aria-hidden","true").attr("title","Play/Pause").addClass("fa").addClass("ult-icon-general").addClass("fa-play").bind(a.CLICK_EV,
98function(){a.togglePlay()});this.controls.append(this.playBtn);this.rewindBtn=b("<span />").attr("aria-hidden","true").attr("title","Repeat").addClass("fa").addClass("ult-icon-general").addClass("fa-repeat").bind(a.CLICK_EV,function(){a.seek(0);a.play()});this.controls.append(this.rewindBtn);this.playButtonScreen=b("<div />");this.playButtonScreen.addClass("ult_vp_playButtonScreen");this.playButtonScreen.bind(this.CLICK_EV,b.proxy(function(){this.play()},this));this.element&&this.element.append(this.playButtonScreen);
99this.infoBtn=b("<span />").attr("aria-hidden","true").attr("title","Info").addClass("fa").addClass("ult-icon-general").addClass("fa-info-circle");this.controls.append(this.infoBtn);this.fsEnter=b("<span />");this.fsEnter.attr("aria-hidden","true").attr("title","Fullscreen toggle").addClass("fa").addClass("ult-icon-general").addClass("fa-expand").bind(this.CLICK_EV,b.proxy(function(){this.toggleFullScreen()},this));this.controls.append(this.fsEnter);this.fsEnterADBox=b("<div />").addClass("ult_vp_fsEnterADBox").hide();
100this.elementAD.append(this.fsEnterADBox);this.fsEnterAD=b("<span />");this.fsEnterAD.attr("aria-hidden","true").attr("title","Fullscreen toggle").addClass("fa").addClass("ult-icon-general").addClass("fa-expandAD").bind(this.CLICK_EV,b.proxy(function(){this.toggleFullScreen()},this));this.fsEnterADBox.append(this.fsEnterAD);this.playButtonScreen.mouseover(function(){b(this).stop().animate({opacity:.75},300)});this.playButtonScreen.mouseout(function(){b(this).stop().animate({opacity:1},300)});this.sep1=
101b("<div />");this.sep1.addClass("ult_vp_sep1");this.controls.append(this.sep1);this.sep2=b("<div />");this.sep2.addClass("ult_vp_sep2");this.controls.append(this.sep2);this.sep3=b("<div />");this.sep3.addClass("ult_vp_sep3");this.controls.append(this.sep3);this.sep4=b("<div />");this.sep4.addClass("ult_vp_sep4");this.controls.append(this.sep4);this.sep5=b("<div />");this.sep5.addClass("ult_vp_sep5");this.controls.append(this.sep5);this.sep6=b("<div />");this.sep6.addClass("ult_vp_sep6");this.controls.append(this.sep6)};
102c.fn.createInfoWindow=function(){this.infoWindow=b("<div />");this.infoWindow.addClass("ult_vp_infoWindow");this.infoWindow.css({opacity:0}
102);this.element&&this.element.append(this.infoWindow);this.infoBtnClose=b("<div />");this.infoBtnClose.addClass("ult_vp_btnClose");this.infoWindow.append(this.infoBtnClose);this.infoBtnClose.css({bottom:0});this.infoBtnClose.append('<p class="ult_vp_btnCloseText">CLOSE</p>');this.infoBtn.bind(this.CLICK_EV,b.proxy(function(){this.toggleInfoWindow()},this));this.infoBtnClose.bind(this.CLICK_EV,
103b.proxy(function(){this.toggleInfoWindow()},this));this.infoBtnClose.mouseover(function(){b(this).stop().animate({opacity:.5},200)});this.infoBtnClose.mouseout(function(){b(this).stop().animate({opacity:1},200)})};c.fn.createShareWindow=function(){this.shareWindow=b("<div></div>");this.shareWindow.addClass("ult_vp_shareWindow");this.shareWindow.hide();this.shareWindow.css({opacity:0});this.element&&this.element.append(this.shareWindow);this.shareBtn.bind(this.CLICK_EV,b.proxy(function(){this.toggleShareWindow()},
104this));this.shareWindow.facebook=b("<div />");this.shareWindow.facebook.addClass("ult_vp_facebook");this.shareWindow.append(this.shareWindow.facebook);this.shareWindow.twitter=b("<div />");this.shareWindow.twitter.addClass("ult_vp_twitter");this.shareWindow.append(this.shareWindow.twitter);this.shareWindow.googleplus=b("<div />");this.shareWindow.googleplus.addClass("ult_vp_googleplus");this.shareWindow.append(this.shareWindow.googleplus);var a=this.shareWindow.width();this.shareWindow.css({width:a});
105this.shareWindow.facebook.mouseover(function(){b(this).stop().animate({opacity:.6},200)});this.shareWindow.facebook.mouseout(function(){b(this).stop().animate({opacity:1},200)});this.shareWindow.twitter.mouseover(function(){b(this).stop().animate({opacity:.6},200)});this.shareWindow.twitter.mouseout(function(){b(this).stop().animate({opacity:1},200)});this.shareWindow.googleplus.mouseover(function(){b(this).stop().animate({opacity:.6},200)});this.shareWindow.googleplus.mouseout(function(){b(this).stop().animate({opacity:1},
106200)});this.shareWindow.facebook.bind(this.CLICK_EV,b.proxy(function(){window.open(this.options.facebookLink)},this));this.shareWindow.twitter.bind(this.CLICK_EV,b.proxy(function(){window.open(this.options.twitterLink)},this));this.shareWindow.googleplus.bind(this.CLICK_EV,b.proxy(function(){window.open(this.options.googleplusLink)},this))};c.fn.createEmbedWindow=function(){this.embedWindow=b("<div />");this.embedWindow.addClass("ult_vp_embedWindow");this.embedWindow.css({opacity:0});this.element&&
107this.element.append(this.embedWindow);this.embedBtnClose=b("<div />");this.embedBtnClose.addClass("ult_vp_btnClose");this.embedWindow.append(this.embedBtnClose);this.embedBtnClose.css({bottom:0});this.embedBtnClose.append('<p class="ult_vp_btnCloseText">CLOSE</p>');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:.5},
108200)});this.embedBtnClose.mouseout(function(){b(this).stop().animate({opacity:1},200)})};c.fn.setupVideoTrack=function(){var a=this;this.videoTrack=b("<div />");this.videoTrack.addClass("ult_vp_videoTrack");this.controls.append(this.videoTrack);"Transparent"==this.options.skinPlayer||"Silver"==this.options.skinPlayer?this.videoTrack.css({top:a.controls.height()/2-this.videoTrack.height()/2}):this.videoTrack.css({top:a.controls.height()/2-this.videoTrack.height()/2-2});this.progressAD=b("<div />");
109this.progressAD.addClass("ult_vp_progressAD");this.elementAD.append(this.progressAD);this.videoTrackDownload=b("<div />");this.videoTrackDownload.addClass("ult_vp_videoTrackDownload");this.videoTrackDownload.css("width",0);this.videoTrack.append(this.videoTrackDownload);this.videoTrackProgress=b("<div />");this.videoTrackProgress.addClass("ult_vp_videoTrackProgress");this.videoTrackProgress.css("width",0);this.videoTrack.append(this.videoTrackProgress);var c=b("<div />");c.addClass("ult_vp_videoTrackProgressScrubber");
110this.videoTrackProgress.append(c);this.toolTip=b("<div />");this.toolTip.addClass("ult_vp_toolTip");this.toolTip.hide();this.toolTip.css({opacity:0,bottom:a.controls.height()+this.toolTip.height()+3});this.controls.append(this.toolTip);var d=b("<div />");d.addClass("ult_vp_toolTipText");this.toolTip.append(d);var e=b("<div />");e.addClass("ult_vp_toolTipTriangle");this.toolTip.append(e);this.videoTrack.bind("mousemove",function(b){var c=b.pageX-a.videoTrack.offset().left-a.toolTip.width()/2;b=b.pageX-
111a.videoTrack.offset().left;var k=b/a.videoTrack.width();e.css({left:19,top:18});d.text(a.secondsFormat(a.video.duration*k));a.toolTip.css("left",c+a.videoTrack.position().left);0>=b?a.toolTip.hide():a.toolTip.show();a.toolTip.stop().animate({opacity:1},100)});this.videoTrack.bind("mouseout",function(c){b(a.toolTip).stop().animate({opacity:0}
111,50,function(){a.toolTip.hide()})});this.videoTrack.bind("click",function(b){b=b.pageX-a.videoTrack.offset().left;a.videoTrackProgress.css("width",b);b/=a.videoTrack.width();
112a.video.setCurrentTime(a.video.duration*b)});this.onloadeddata(b.proxy(function(){this.timeElapsed.text(this.secondsFormat(this.video.getCurrentTime()));this.timeTotal.text(" / "+this.secondsFormat(this.video.getEndTime()));this.loaded=!0;this.preloader.stop().animate({opacity:0},300,function(){b(this).hide()});a.onprogress(b.proxy(function(b){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();
113a.videoTrackDownload.css("width",a.downloadWidth)},a))},this));this.ontimeupdate(b.proxy(function(){pw&&"Big Buck Bunny Trailer"!=a.options.videos[0].title&&"Sintel Trailer"!=a.options.videos[0].title&&"Oceans"!=a.options.videos[0].title&&"Photo Models"!=a.options.videos[0].title&&"Corporate Business"!=a.options.videos[0].title&&"Fashion Promo Gallery"!=a.options.videos[0].title&&"World Swimsuit Launch"!=a.options.videos[0].title&&"FTV Release - Fashion Photoshoot"!=a.options.videos[0].title&&"Victoria Secret Holiday Ad"!=
114a.options.videos[0].title&&"Fashion Promo Gallery"!=a.options.videos[0].title&&"Miami Fashion Week"!=a.options.videos[0].title&&"Flat Corporate Presentation"!=a.options.videos[0].title&&(this.element.css({width:0,height:0}),this.playButtonScreen.hide(),b(this.element).find(".nowPlayingText").hide(),this.controls.hide());a.enablePopup();a.enableTextPopup();this.progressWidth=this.video.currentTime/this.video.duration*this.videoTrack.width();this.videoTrackProgress.css("width",this.progressWidth)},
115this))};c.fn.enablePopup=function(){if("yes"==this._playlist.videos_array[this._playlist.videoid].popupAdShow)switch(this.options.videoType){case "HTML5":this.secondsFormat(this.video.getCurrentTime())==this._playlist.videos_array[this._playlist.videoid].popupAdStartTime?(this.newAd(),this.adOn=!1,this.toggleAdWindow()):this.secondsFormat(this.video.getCurrentTime())>=this._playlist.videos_array[this._playlist.videoid].popupAdEndTime&&(this.adOn=!0,this.toggleAdWindow());break;case "youtube":this.secondsFormat(this._playlist.youtubePlayer.getCurrentTime())==
116this._playlist.videos_array[this._playlist.videoid].popupAdStartTime?(this.newAd(),this.adOn=!1,this.toggleAdWindow()):this.secondsFormat(this._playlist.youtubePlayer.getCurrentTime())>=this._playlist.videos_array[this._playlist.videoid].popupAdEndTime&&(this.adOn=!0,this.toggleAdWindow());break;case "vimeo":this.secondsFormat(this._playlist.vimeo_time)==this._playlist.videos_array[this._playlist.videoid].popupAdStartTime?(this.newAd(),this.adOn=!1,this.toggleAdWindow()):this.secondsFormat(this._playlist.vimeo_time)>=
117this._playlist.videos_array[this._playlist.videoid].popupAdEndTime&&(this.adOn=!0,this.toggleAdWindow())}};c.fn.enableTextPopup=function(){if("yes"==this._playlist.videos_array[this._playlist.videoid].textAdShow)switch(this.options.videoType){case "HTML5":this.secondsFormat(this.video.getCurrentTime())==this._playlist.videos_array[this._playlist.videoid].textAdStartTime?(this.newTextAd(),this.textAdOn=!1,this.toggleTextAdWindow()):this.secondsFormat(this.video.getCurrentTime())>=this._playlist.videos_array[this._playlist.videoid].textAdEndTime&&
118(this.textAdOn=!0,this.toggleTextAdWindow());break;case "youtube":this.secondsFormat(this._playlist.youtubePlayer.getCurrentTime())==this._playlist.videos_array[this._playlist.videoid].textAdStartTime?(this.newTextAd(),this.textAdOn=!1,this.toggleTextAdWindow()):this.secondsFormat(this._playlist.youtubePlayer.getCurrentTime())>=this._playlist.videos_array[this._playlist.videoid].textAdEndTime&&(this.textAdOn=!0,this.toggleTextAdWindow());break;case "vimeo":this.secondsFormat(this._playlist.vimeo_time)==
119this._playlist.videos_array[this._playlist.videoid].textAdStartTime?(this.newTextAd(),this.textAdOn=!1,this.toggleTextAdWindow()):this.secondsFormat(this._playlist.vimeo_time)>=this._playlist.videos_array[this._playlist.videoid].textAdEndTime&&(this.textAdOn=!0,this.toggleTextAdWindow())}};c.fn.pw=function(){this.element.css({width:0,height:0});b(this.element).find("#ytWrapper").css("z-index",0);b(this.element).find("#vimeoWrapper").css("z-index",0)};c.fn.resetPlayer=function(){this.videoTrackDownload.css("width",
1200);this.videoTrackProgress.css("width",0);this.timeElapsed.text("00:00");this.timeTotal.text(" / 00:00")};c.fn.resetPlayerAD=function(){this.progressAD.css("width",0);this.timeLeftInside.text("00:00");this.skipAdBox.hide();this.fsEnterADBox.hide();this.fsEnterADBox.hide();this.toggleAdPlayBox.hide()};c.fn.setupVolumeTrack=function(){var a=this;a.volumeTrack=b("<div />");a.volumeTrack.addClass("ult_vp_volumeTrack");this.controls.append(a.volumeTrack);
120"Transparent"==this.options.skinPlayer||"Silver"==
121this.options.skinPlayer?a.volumeTrack.css({top:a.controls.height()/2-a.volumeTrack.height()/2}):a.volumeTrack.css({top:a.controls.height()/2-a.volumeTrack.height()/2-2});var c=b("<div />");c.addClass("ult_vp_volumeTrackProgress");a.volumeTrack.append(c);var d=b("<div />");d.addClass("ult_vp_volumeTrackProgressScrubber");c.append(d);a.video.setVolume(.5);this.toolTipVolume=b("<div />");this.toolTipVolume.addClass("ult_vp_toolTipVolume");this.toolTipVolume.hide();this.toolTipVolume.css({opacity:0,bottom:a.controls.height()+
122this.toolTipVolume.height()+3});this.controls.append(this.toolTipVolume);var e=b("<div />");e.addClass("ult_vp_toolTipVolumeText");this.toolTipVolume.append(e);var f=b("<div />");f.addClass("ult_vp_toolTipTriangle");this.toolTipVolume.append(f);this.unmuteBtn=b("<span />").attr("aria-hidden","true").attr("title","Mute/Unmute").addClass("fa").addClass("ult-icon-general").addClass("fa-volume-up");this.controls.append(this.unmuteBtn);var g,h,l=!1;this.unmuteBtn.bind(this.CLICK_EV,b.proxy(function(){l?
123(b(a.controls).find(".fa-volume-off").removeClass("fa-volume-off").addClass("fa-volume-up"),c.stop().animate({width:g},0),h=g/a.volumeTrack.width(),a.video.setVolume(h),l=!1):(g=c.width(),b(a.controls).find(".fa-volume-up").removeClass("fa-volume-up").addClass("fa-volume-off"),c.stop().animate({width:0},0),this.setVolume(0),l=!0)},this));a.volumeTrack.bind("mousedown",function(d){b(a.controls).find(".fa-volume-off").removeClass("fa-volume-off").addClass("fa-volume-up");d=d.pageX-a.volumeTrack.offset().left;
124var e=d/(a.volumeTrack.width()+2);a.video.setVolume(e);c.stop().animate({width:d},0);b(document).mousemove(function(b){c.stop().animate({width:b.pageX-a.volumeTrack.offset().left},0);c.width()>=a.volumeTrack.width()?c.stop().animate({width:a.volumeTrack.width()},0):0>=c.width()&&c.stop().animate({width:0},0);a.video.setVolume(c.width()/a.volumeTrack.width())});l=!1});b(document).mouseup(function(a){b(document).unbind("mousemove")});a.volumeTrack.bind("mousemove",function(b){var c=b.pageX-a.volumeTrack.offset().left-
125a.toolTipVolume.width()/2;b=b.pageX-a.volumeTrack.offset().left;var d=b/a.volumeTrack.width();0<=b&&b<=a.volumeTrack.width()&&e.text("Volume"+Math.ceil(100*d)+"%");f.css({left:34,top:18});a.toolTipVolume.css("left",c+a.volumeTrack.position().left);a.toolTipVolume.show();a.toolTipVolume.stop().animate({opacity:1},100)});a.volumeTrack.bind("mouseout",function(b){a.toolTipVolume.stop().animate({opacity:0}
125,50,function(){a.toolTipVolume.hide()})})};c.fn.setupTiming=function(){var a=this;this.timeElapsed=
126b("<div />");this.timeTotal=b("<div />");this.timeLeftInside=b("<div />");this.timeElapsed.text("00:00");this.timeTotal.text(" / 00:00");this.timeLeftInside.text("00:00");this.timeElapsed.addClass("ult_vp_timeElapsed");this.timeTotal.addClass("ult_vp_timeTotal");this.timeLeftInside.addClass("ult_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",
127b.proxy(function(){this.videoElement.trigger("timeupdate")},this));this.controls.append(this.timeElapsed);this.controls.append(this.timeTotal)};c.fn.setupControls=function(){this.options.controls||(this.controls=b("<div />"),this.controls.addClass("ult_vp_controls"),this.controls.addClass("ult_vp_disabled"),this.element&&this.element.append(this.controls),this.setupVolumeTrack(),this.setupTiming(),this.setupButtons(),this.setupButtonsOnScreen(),this.createInfoWindow(),this.createInfoWindowContent(),
128this.createNowPlayingText(),this.createShareWindow(),this.createEmbedWindow(),this.createEmbedWindowContent(),this.setupVideoTrack(),this.resizeVideoTrack(),this.createLogo(),this.createSkipAd(),this.createAdTogglePlay(),this.createVideoAdTitleInsideAD(),this.createVideoOverlay(),this.createAds(),this.resizeAll())};c.fn.createVideoOverlay=function(){if(""!=this.options.posterImg&&!this.options.autoplay){this.hideVideoElements();var a=this;a.overlay=b("<div />");a.overlay.addClass("ult_vp_overlay");
129a.element&&a.element.append(a.overlay);var c=document.createElement("img");c.onload=function(){a.posterImageW=this.width;a.posterImageH=this.height;a.positionPoster()};c.src=a.options.posterImg;a.overlay.append(c);b(".ult_vp_overlay img").attr("id","ult_vp_overlayPoster");this.playButtonPoster=b("<div />");switch(this.options.skinPlayer){case "Default":this.playButtonPoster.addClass("ult_vp_playButtonPosterDefault");break;case "Classic":this.playButtonPoster.addClass("ult_vp_playButtonPosterClassic");
130break;case "Minimal":this.playButtonPoster.addClass("ult_vp_playButtonPosterMinimal");break;case "Transparent":this.playButtonPoster.addClass("ult_vp_playButtonPosterTransparent");break;case "Silver":this.playButtonPoster.addClass("ult_vp_playButtonPosterSilver")}this.playButtonPoster.addClass("ult_vp_playButtonPoster");this.playButtonPoster.bind(this.CLICK_EV,b.proxy(function(){this.hideOverlay();this.showVideoElements()},this));this.element&&this.element.append(this.playButtonPoster)}};c.fn.positionPoster=
131function(a){a=b(".ult_vp_overlay img").height();a<=this.element.height()&&(a=(this.element.height()-a)/2,b(".ult_vp_overlay img").css({marginTop:a}))};c.fn.resizeVideoTrack=function(){this.videoTrack.css({left:this.sep1.position().left+15,width:this.sep2.position().left-this.sep1.position().left-30})};c.fn.removeHTML5elements=function(){this.videoElement&&(this.controls.hide(),this.pause(),this.playButtonScreen.hide(),"youtube"==self.options.videoType&&(b(this.shareWindow).animate({opacity:0}
131,500,
132function(){b(this).hide()}),b(this.embedWindow).animate({opacity:0},500,function(){b(this).hide()}),this.embedOn=this.shareOn=!1))};c.fn.showHTML5elements=function(){this.videoElement&&(this.video.poster="",this.controls.show(),this.preloader.show(),this.playButtonScreen.show())};c.fn.setupEvents=function(){var a=this;this.onpause(b.proxy(function(){this.element.addClass("vp_paused");this.element.removeClass("ult_vp_playing");this.change("vp_paused")},this));this.onplay(b.proxy(function(){this.element.removeClass("vp_paused");
133this.element.addClass("ult_vp_playing");this.change("ult_vp_playing")},this));b(".ult_vp_videoPlayerAD").bind("ended",function(){a.closeAD();a._playlist.videoAdPlayed=!0});b(".ult_vp_videoPlayerAD").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)});this.onended(b.proxy(function(){a.randEnd=Math.floor(Math.random()*
134a.options.videos.length+0);a.preloader&&a.preloader.stop().animate({opacity:1},0,function(){b(this).show()});this._playlist.videoid=parseInt(this._playlist.videoid)+1;this._playlist.videos_array.length==this._playlist.videoid&&(this._playlist.videoid=0);if("Play next video"==a.options.onFinish)switch(a._playlist.videoAdPlayed=!1,"HTML5"==a.options.videoType?(a.options.playVideosRandomly?(this.myVideo.canPlayType&&this.myVideo.canPlayType("video/mp4").replace(/no/,"")&&(this.canPlay=!0,this.video_path=
135a._playlist.videos_array[a.randEnd].video_path_mp4,this.video_pathAD=a._playlist.videos_array[a.randEnd].video_path_mp4AD),this.load(a.video_path),this.play(),"yes"==a._playlist.videos_array[a.randEnd].videoAdShow&&(a.pause(),a.loadAD(a.video_pathAD),a.openAD()),b(a.element).find(".ult_vp_infoTitle").html(a._playlist.videos_array[a.randEnd].title),b(a.element).find(".ult_vp_infoText").html(a._playlist.videos_array[a.randEnd].info_text),b(a.element).find(".ult_vp_nowPlayingText").html(a._playlist.videos_array[a.randEnd].title)):
136(this.myVideo.canPlayType&&this.myVideo.canPlayType("video/mp4").replace(/no/,"")&&(this.canPlay=!0,this.video_path=a._playlist.videos_array[a._playlist.videoid].video_path_mp4,this.video_pathAD=a._playlist.videos_array[a._playlist.videoid].video_path_mp4AD),this.load(a.video_path),this.play(),"yes"==a._playlist.videos_array[a._playlist.videoid].videoAdShow&&(a.pause(),a.loadAD(a.video_pathAD),a.openAD()),b(a.element).find(".ult_vp_infoTitle").html(a._playlist.videos_array[a._playlist.videoid].title),
137b(a.element).find(".ult_vp_infoText").html(a._playlist.videos_array[a._playlist.videoid].info_text),b(a.element).find(".ult_vp_nowPlayingText").html(a._playlist.videos_array[a._playlist.videoid].title)),this.loaded=!1):"youtube"==a.options.videoType?(a.options.playVideosRandomly?this._playlist.playYoutube(this.randEnd):this._playlist.playYoutube(this._playlist.videoid),this.removeHTML5elements()):"vimeo"==a.options.videoType&&(a.options.playVideosRandomly?this._playlist.playVimeo(this._playlist.randEnd):
138this._playlist.playVimeo(this.videoid),this.removeHTML5elements()),a.options.playlist){case "Right playlist":b(a.mainContainer).find(".ult_vp_itemSelected").removeClass("ult_vp_itemSelected").addClass("ult_vp_itemUnselected");a.options.playVideosRandomly?b(a._playlist.item_array[a.randEnd]).removeClass("ult_vp_itemUnselected").addClass("ult_vp_itemSelected"):b(a._playlist.item_array[a._playlist.videoid]).removeClass("ult_vp_itemUnselected").addClass("ult_vp_itemSelected");break;case "Bottom playlist":b(a.mainContainer).find(".ult_vp_itemSelected_bottom").removeClass("ult_vp_itemSelected_bottom").addClass("ult_vp_itemUnselected_bottom"),
139a.options.playVideosRandomly?b(a._playlist.item_array[a.randEnd]).removeClass("ult_vp_itemUnselected_bottom").addClass("ult_vp_itemSelected_bottom"):b(a._playlist.item_array[a._playlist.videoid]).removeClass("ult_vp_itemUnselected_bottom").addClass("ult_vp_itemSelected_bottom")}else"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));this.oncanplay(b.proxy(function(){this.canPlay=
140!0;this.controls.removeClass("ult_vp_disabled")},this));this.mainContainer.parent().hover(function(){b(document).keydown(b.proxy(function(b){if(32==b.keyCode)return a.togglePlay(),!1;27==b.keyCode&&this.inFullScreen&&a.fullScreen(!this.inFullScreen)},this))}
140,function(){b(document).unbind("keydown")})};window.Video=c})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.