Nhảy đến nội dung
Biểu mẫu tìm kiếm
×
Sản phẩm
Phần mềm kế toán doanh nghiệp MetaData Accounting
Phần mềm Kế toán Online - MetaData iBussiness
Phần mềm quản lý và tính tiền điện nước
Phần mềm quản lý bán hàng Quần áo, Giày dép
Đăng ký Hóa đơn Điện tử
Download
Bảng giá
Hỗ trợ
Liên hệ
Sign In
Hơn 10 năm phát triển và hoàn thiện
... với chất lượng ngày càng cao ...và tốt hơn nữa
Tổng quan về phần mềm kế toán Metadata Accounting
Tổng quan về
phần mềm kế toán
MetaData Accounting
Xem thêm
về Tổng quan về phần mềm kế toán Metadata Accounting
1
2
3
').attr({'src':e.mbYTPlayer.locationProtocol+'//www.youtube.com/iframe_api?v='+e.mbYTPlayer.version,'id':'YTAPI'});e('head').prepend(p)} else{setTimeout(function(){e(document).trigger('YTAPIReady')},100)};e(document).on('YTAPIReady',function(){if((a.isBackground&&t.backgroundIsInited)||a.isInit)return;if(a.isBackground){t.backgroundIsInited=!0};a.opt.autoPlay=typeof a.opt.autoPlay=='undefined'?(a.isBackground?!0:!1):a.opt.autoPlay;a.opt.vol=a.opt.vol?a.opt.vol:100;e.mbYTPlayer.getDataFromAPI(a);e(a).on('YTPChanged',function(){if(a.isInit)return;a.isInit=!0;if(e.browser.mobile&&a.canPlayOnMobile){if(a.opt.containment.outerWidth()>e(window).width()){a.opt.containment.css({maxWidth:'100%'});var t=a.opt.containment.outerWidth()*.6;a.opt.containment.css({maxHeight:t})};new YT.Player(l,{videoId:a.videoID.toString(),height:'100%',width:'100%',playerVars:c,events:{'onReady':function(e){a.player=e.target;s.css({opacity:1});a.wrapper.css({opacity:1})}}});return};new YT.Player(l,{videoId:a.videoID.toString(),playerVars:c,events:{'onReady':function(t){a.player=t.target;if(a.isReady)return;a.isReady=a.isPlayer&&!a.opt.autoPlay?!1:!0;a.playerEl=a.player.getIframe();e(a.playerEl).unselectable();o.optimizeDisplay();a.videoID=d;e(window).off('resize.YTP_'+a.id).on('resize.YTP_'+a.id,function(){o.optimizeDisplay()});e.mbYTPlayer.checkForState(a)},'onStateChange':function(t){if(typeof t.target.getPlayerState!='function')return;var o=t.target.getPlayerState();if(a.state==o)return;if(a.preventTrigger){a.preventTrigger=!1;return};a.state=o;var r;switch(o){case-1:r='YTPUnstarted';break;case 0:r='YTPEnd';break;case 1:r='YTPPlay';if(a.controlBar)a.controlBar.find('.mb_YTPPlaypause').html(e.mbYTPlayer.controls.pause);if(typeof _gaq!='undefined'&&eval(a.opt.gaTrack))_gaq.push(['_trackEvent','YTPlayer','Play',(a.hasData?a.videoData.title:a.videoID.toString())]);if(typeof ga!='undefined'&&eval(a.opt.gaTrack))ga('send','event','YTPlayer','play',(a.hasData?a.videoData.title:a.videoID.toString()));break;case 2:r='YTPPause';if(a.controlBar)a.controlBar.find('.mb_YTPPlaypause').html(e.mbYTPlayer.controls.play);break;case 3:a.player.setPlaybackQuality(a.opt.quality);r='YTPBuffering';if(a.controlBar)a.controlBar.find('.mb_YTPPlaypause').html(e.mbYTPlayer.controls.play);break;case 5:r='YTPCued';break;default:break};var i=e.Event(r);i.time=a.player.time;if(a.canTrigger)e(a).trigger(i)},'onPlaybackQualityChange':function(t){var o=t.target.getPlaybackQuality(),r=e.Event('YTPQualityChange');r.quality=o;e(a).trigger(r)},'onError':function(t){if(t.data==150){console.log('Embedding this video is restricted by Youtube.');if(a.isPlayList)e(a).playNext()};if(t.data==2&&a.isPlayList)e(a).playNext();if(typeof a.opt.onError=='function')a.opt.onError(o,t)}}})})});o.off('YTPTime.mask');e.mbYTPlayer.applyMask(a)})},getDataFromAPI:function(t){t.videoData=e.mbStorage.get('YTPlayer_data_'+t.videoID);e(t).off('YTPData.YTPlayer').on('YTPData.YTPlayer',function(){if(t.hasData){if(t.isPlayer&&!t.opt.autoPlay){var e=t.videoData.thumb_max||t.videoData.thumb_high||t.videoData.thumb_medium;t.opt.containment.css({background:'rgba(0,0,0,0.5) url('+e+') center center',backgroundSize:'cover'});t.opt.backgroundUrl=e}}});if(t.videoData){setTimeout(function(){t.opt.ratio=t.opt.ratio=='auto'?'16/9':t.opt.ratio;t.dataReceived=!0;e(t).trigger('YTPChanged');var r=e.Event('YTPData');r.prop={};for(var a in t.videoData)r.prop[a]=t.videoData[a];e(t).trigger(r)},500);t.hasData=!0} else if(e.mbYTPlayer.apiKey){e.getJSON(e.mbYTPlayer.locationProtocol+'//www.googleapis.com/youtube/v3/videos?id='+t.videoID+'&key='+e.mbYTPlayer.apiKey+'&part=snippet',function(r){t.dataReceived=!0;e(t).trigger('YTPChanged');function i(r){t.videoData={};t.videoData.id=t.videoID;t.videoData.channelTitle=r.channelTitle;t.videoData.title=r.title;t.videoData.description=r.description.length<400?r.description:r.description.substring(0,400)+' ...';t.videoData.aspectratio=t.opt.ratio=='auto'?'16/9':t.opt.ratio;t.opt.ratio=t.videoData.aspectratio;t.videoData.thumb_max=r.thumbnails.maxres?r.thumbnails.maxres.url:null;t.videoData.thumb_high=r.thumbnails.high?r.thumbnails.high.url:null;t.videoData.thumb_medium=r.thumbnails.medium?r.thumbnails.medium.url:null;e.mbStorage.set('YTPlayer_data_'+t.videoID,t.videoData)};i(r.items[0].snippet);t.hasData=!0;var a=e.Event('YTPData');a.prop={};for(var o in t.videoData)a.prop[o]=t.videoData[o];e(t).trigger(a)})} else{setTimeout(function(){e(t).trigger('YTPChanged')},50);if(t.isPlayer&&!t.opt.autoPlay){var r=e.mbYTPlayer.locationProtocol+'//i.ytimg.com/vi/'+t.videoID+'/hqdefault.jpg';t.opt.containment.css({background:'rgba(0,0,0,0.5) url('+r+') center center',backgroundSize:'cover'});t.opt.backgroundUrl=r};t.videoData=null;t.opt.ratio=t.opt.ratio=='auto'?'16/9':t.opt.ratio};if(t.isPlayer&&!t.opt.autoPlay){t.loading=e('
').addClass('loading').html('Loading').hide();e(t).append(t.loading);t.loading.fadeIn()}},removeStoredData:function(){e.mbStorage.remove()},getVideoData:function(){var e=this.get(0);return e.videoData},getVideoID:function(){var e=this.get(0);return e.videoID||!1},setVideoQuality:function(e){var t=this.get(0);t.player.setPlaybackQuality(e)},playlist:function(t,r,o){var i=this,a=i.get(0);a.isPlayList=!0;if(r)t=e.shuffle(t);if(!a.videoID){a.videos=t;a.videoCounter=0;a.videoLength=t.length;e(a).data('property',t[0]);e(a).mb_YTPlayer()};if(typeof o=='function')e(a).one('YTPChanged',function(){o(a)});e(a).on('YTPEnd',function(){e(a).playNext()});return i},playNext:function(){var t=this.get(0);if(t.checkForStartAt){clearTimeout(t.checkForStartAt);clearInterval(t.getState)};t.videoCounter++;if(t.videoCounter>=t.videoLength)t.videoCounter=0;e(t).changeMovie(t.videos[t.videoCounter]);return this},playPrev:function(){var t=this.get(0);if(t.checkForStartAt){clearInterval(t.checkForStartAt);clearInterval(t.getState)};t.videoCounter--;if(t.videoCounter<0)t.videoCounter=t.videoLength-1;e(t).changeMovie(t.videos[t.videoCounter]);return this},changeMovie:function(t){var a=this,r=a.get(0);r.opt.startAt=0;r.opt.stopAt=0;r.opt.mask=!1;r.opt.mute=!0;r.hasData=!1;r.hasChanged=!0;r.player.loopTime=undefined;if(t)e.extend(r.opt,t);r.videoID=getYTPVideoID(r.opt.videoURL).videoID;if(r.opt.loop=='true')r.opt.loop=9999;e(r.playerEl).CSSAnimate({opacity:0},200,function(){var t=e.Event('YTPChangeMovie');t.time=r.player.time;t.videoId=r.videoID;e(r).trigger(t);e(r).YTPGetPlayer().cueVideoByUrl(encodeURI(e.mbYTPlayer.locationProtocol+'//www.youtube.com/v/'+r.videoID),1,r.opt.quality);e(r).optimizeDisplay();e.mbYTPlayer.checkForState(r);e.mbYTPlayer.getDataFromAPI(r)});e.mbYTPlayer.applyMask(r)},getPlayer:function(){return e(this).get(0).player},playerDestroy:function(){var r=this.get(0);t.YTAPIReady=!0;t.backgroundIsInited=!1;r.isInit=!1;r.videoID=null;var a=r.wrapper;a.remove();e('#controlBar_'+r.id).remove();clearInterval(r.checkForStartAt);clearInterval(r.getState);return this},fullscreen:function(t){var r=this.get(0);if(typeof t=='undefined')t=r.opt.realfullscreen;t=eval(t);var i=e('#controlBar_'+r.id),n=i.find('.mb_OnlyYT'),a=r.isSelf?r.opt.containment:r.wrapper;if(t){var s=e.browser.mozilla?'mozfullscreenchange':e.browser.webkit?'webkitfullscreenchange':'fullscreenchange';e(document).off(s).on(s,function(){var t=o(document,'IsFullScreen')||o(document,'FullScreen');if(!t){r.isAlone=!1;n.html(e.mbYTPlayer.controls.onlyYT);e(r).YTPSetVideoQuality(r.opt.quality);a.removeClass('YTPFullscreen');a.CSSAnimate({opacity:r.opt.opacity},500);a.css({zIndex:0});if(r.isBackground){e('body').after(i)} else{r.wrapper.before(i)};e(window).resize();e(r).trigger('YTPFullScreenEnd')} else{e(r).YTPSetVideoQuality('default');e(r).trigger('YTPFullScreenStart')}})};if(!r.isAlone){function l(){r.overlay.css({cursor:'none'})};e(document).on('mousemove.YTPlayer',function(t){r.overlay.css({cursor:'auto'});clearTimeout(r.hideCursor);if(!e(t.target).parents().is('.mb_YTPBar'))r.hideCursor=setTimeout(l,3000)});l();if(t){a.css({opacity:0});a.addClass('YTPFullscreen');u(a.get(0));setTimeout(function(){a.CSSAnimate({opacity:1},1000);r.wrapper.append(i);e(r).optimizeDisplay();r.player.seekTo(r.player.getCurrentTime()+.1,!0)},500)} else a.css({zIndex:10000}).CSSAnimate({opacity:1},1000);n.html(e.mbYTPlayer.controls.showSite);r.isAlone=!0} else{e(document).off('mousemove.YTPlayer');r.overlay.css({cursor:'auto'});if(t){c()} else{a.CSSAnimate({opacity:r.opt.opacity},500);a.css({zIndex:0})};n.html(e.mbYTPlayer.controls.onlyYT);r.isAlone=!1};function o(e,t){var a=['webkit','moz','ms','o',''],o=0,r,i;while(o
0)||(t&&r.opt.vol==t)){if(!r.isMute)e(r).YTPMute();else e(r).YTPUnmute()} else{r.opt.vol=t;r.player.setVolume(r.opt.vol);if(r.volumeBar&&r.volumeBar.length)r.volumeBar.updateSliderVal(t)};return this},mute:function(){var t=this.get(0);if(t.isMute)return;t.player.mute();t.isMute=!0;t.player.setVolume(0);if(t.volumeBar&&t.volumeBar.length&&t.volumeBar.width()>10){t.volumeBar.updateSliderVal(0)};var a=e('#controlBar_'+t.id),o=a.find('.mb_YTPMuteUnmute');o.html(e.mbYTPlayer.controls.unmute);e(t).addClass('isMuted');if(t.volumeBar&&t.volumeBar.length)t.volumeBar.addClass('muted');var r=e.Event('YTPMuted');r.time=t.player.time;if(t.canTrigger)e(t).trigger(r);return this},unmute:function(){var t=this.get(0);if(!t.isMute)return;t.player.unMute();t.isMute=!1;t.player.setVolume(t.opt.vol);if(t.volumeBar&&t.volumeBar.length)t.volumeBar.updateSliderVal(t.opt.vol>10?t.opt.vol:10);var a=e('#controlBar_'+t.id),o=a.find('.mb_YTPMuteUnmute');o.html(e.mbYTPlayer.controls.mute);e(t).removeClass('isMuted');if(t.volumeBar&&t.volumeBar.length)t.volumeBar.removeClass('muted');var r=e.Event('YTPUnmuted');r.time=t.player.time;if(t.canTrigger)e(t).trigger(r);return this},applyFilter:function(t,r){return this.each(function(){var a=this;a.filters[t].value=r;if(a.filtersEnabled)e(a).YTPEnableFilters()})},applyFilters:function(t){return this.each(function(){var r=this;if(!r.isReady){e(r).on('YTPReady',function(){e(r).YTPApplyFilters(t)});return};for(var a in t)e(r).YTPApplyFilter(a,t[a]);e(r).trigger('YTPFiltersApplied')})},toggleFilter:function(t,r){return this.each(function(){var a=this;if(!a.filters[t].value)a.filters[t].value=r;else a.filters[t].value=0;if(a.filtersEnabled)e(this).YTPEnableFilters()})},toggleFilters:function(t){return this.each(function(){var r=this;if(r.filtersEnabled){e(r).trigger('YTPDisableFilters');e(r).YTPDisableFilters()} else{e(r).YTPEnableFilters();e(r).trigger('YTPEnableFilters')};if(typeof t=='function')t(r.filtersEnabled)})},disableFilters:function(){return this.each(function(){var t=this,r=e(t.playerEl);r.css('-webkit-filter','');r.css('filter','');t.filtersEnabled=!1})},enableFilters:function(){return this.each(function(){var t=this,o=e(t.playerEl),a='';for(var r in t.filters){if(t.filters[r].value)a+=r.replace('_','-')+'('+t.filters[r].value+t.filters[r].unit+') '};o.css('-webkit-filter',a);o.css('filter',a);t.filtersEnabled=!0})},removeFilter:function(t,r){return this.each(function(){var o=this;if(typeof t=='function'){r=t;t=null};if(!t)for(var a in o.filters){e(this).YTPApplyFilter(a,0);if(typeof r=='function')r(a)} else{e(this).YTPApplyFilter(t,0);if(typeof r=='function')r(t)}})},getFilters:function(){var e=this.get(0);return e.filters},addMask:function(t){var a=this.get(0),r=a.overlay,o=e('
').attr('src',t).on('load',function(){r.CSSAnimate({opacity:0},500,function(){a.hasMask=!0;r.css({backgroundImage:'url('+t+')',backgroundRepeat:'no-repeat',backgroundPosition:'center center',backgroundSize:'cover'});r.CSSAnimate({opacity:1},500)})});return this},removeMask:function(){var t=this.get(0),e=t.overlay;e.CSSAnimate({opacity:0},500,function(){t.hasMask=!1;e.css({backgroundImage:'',backgroundRepeat:'',backgroundPosition:'',backgroundSize:''});e.CSSAnimate({opacity:1},500)});return this},applyMask:function(t){var r=e(t);r.off('YTPTime.mask');if(t.opt.mask){if(typeof t.opt.mask=='string')r.YTPAddMask(t.opt.mask);else if(typeof t.opt.mask=='object'){for(var a in t.opt.mask){if(t.opt.mask[a])var o=e('
').attr('src',t.opt.mask[a])};if(t.opt.mask[0])r.YTPAddMask(t.opt.mask[0]);r.on('YTPTime.mask',function(e){for(var a in t.opt.mask){if(e.time==a)if(!t.opt.mask[a])r.YTPRemoveMask();else r.YTPAddMask(t.opt.mask[a])}})}}},manageProgress:function(){var t=this.get(0),r=e('#controlBar_'+t.id),i=r.find('.mb_YTPProgress'),n=r.find('.mb_YTPLoaded'),s=r.find('.mb_YTPseekbar'),l=i.outerWidth(),a=Math.floor(t.player.getCurrentTime()),o=Math.floor(t.player.getDuration()),u=(a*l)/o,c=0,f=t.player.getVideoLoadedFraction()*100;n.css({left:c,width:f+'%'});s.css({left:0,width:u});return{totalTime:o,currentTime:a}},buildControls:function(t){var r=t.opt;r.showYTLogo=r.showYTLogo||r.printUrl;if(e('#controlBar_'+t.id).length)return;t.controlBar=e('
').attr('id','controlBar_'+t.id).addClass('mb_YTPBar').css({whiteSpace:'noWrap',position:t.isBackground?'fixed':'absolute',zIndex:t.isBackground?10000:1000}).hide();var o=e('
').addClass('buttonBar'),d=e('
'+e.mbYTPlayer.controls.play+'
').addClass('mb_YTPPlaypause ytpicon').click(function(){if(t.player.getPlayerState()==1)e(t).YTPPause();else e(t).YTPPlay()}),p=e('
'+e.mbYTPlayer.controls.mute+'
').addClass('mb_YTPMuteUnmute ytpicon').click(function(){if(t.player.getVolume()==0){e(t).YTPUnmute()} else{e(t).YTPMute()}}),s=e('
').addClass('mb_YTPVolumeBar').css({display:'inline-block'});t.volumeBar=s;var f=e('
').addClass('mb_YTPTime'),n=r.videoURL?r.videoURL:'';if(n.indexOf('http')<0)n=e.mbYTPlayer.locationProtocol+'//www.youtube.com/watch?v='+r.videoURL;var l=e('
').html(e.mbYTPlayer.controls.ytLogo).addClass('mb_YTPUrl ytpicon').attr('title','view on YouTube').on('click',function(){window.open(n,'viewOnYT')}),u=e('
').html(e.mbYTPlayer.controls.onlyYT).addClass('mb_OnlyYT ytpicon').on('click',function(){e(t).YTPFullscreen(r.realfullscreen)}),i=e('
').addClass('mb_YTPProgress').css('position','absolute').click(function(e){a.css({width:(e.clientX-a.offset().left)});t.timeW=e.clientX-a.offset().left;t.controlBar.find('.mb_YTPLoaded').css({width:0});var r=Math.floor(t.player.getDuration());t.goto=(a.outerWidth()*r)/i.outerWidth();t.player.seekTo(parseFloat(t.goto),!0);t.controlBar.find('.mb_YTPLoaded').css({width:0})}),c=e('
').addClass('mb_YTPLoaded').css('position','absolute'),a=e('
').addClass('mb_YTPseekbar').css('position','absolute');i.append(c).append(a);o.append(d).append(p).append(s).append(f);if(r.showYTLogo){o.append(l)};if(t.isBackground||(eval(t.opt.realfullscreen)&&!t.isBackground))o.append(u);t.controlBar.append(o).append(i);if(!t.isBackground){t.controlBar.addClass('inlinePlayer');t.wrapper.before(t.controlBar)} else{e('body').after(t.controlBar)};s.simpleSlider({initialval:t.opt.vol,scale:100,orientation:'h',callback:function(r){if(r.value==0){e(t).YTPMute()} else{e(t).YTPUnmute()};t.player.setVolume(r.value);if(!t.isMute)t.opt.vol=r.value}})},checkForState:function(t){var r=t.opt.showControls?100:400;clearInterval(t.getState);if(!e.contains(document,t)){e(t).YTPPlayerDestroy();clearInterval(t.getState);clearInterval(t.checkForStartAt);return};e.mbYTPlayer.checkForStart(t);t.getState=setInterval(function(){var a=e(t).YTPManageProgress(),o=e(t),r=t.opt,n=t.opt.startAt?t.opt.startAt:1,i=t.opt.stopAt>t.opt.startAt?t.opt.stopAt:0;i=i
400&&t.isCompact){t.controlBar.removeClass('compact');t.isCompact=!1;if(!t.isMute&&t.volumeBar)t.volumeBar.updateSliderVal(t.opt.vol)};if(t.player.getPlayerState()==1&&(parseFloat(t.player.getDuration()-1.5)
0&&parseFloat(t.player.getCurrentTime())>i))){if(t.isEnded)return;t.isEnded=!0;setTimeout(function(){t.isEnded=!1},1000);if(t.isPlayList){if(!r.loop||(r.loop>0&&t.player.loopTime===r.loop-1)){t.player.loopTime=undefined;clearInterval(t.getState);var s=e.Event('YTPEnd');s.time=t.player.time;e(t).trigger(s);t.state=0;return}} else if(!r.loop||(r.loop>0&&t.player.loopTime===r.loop-1)){t.player.loopTime=undefined;t.preventTrigger=!0;e(t).YTPPause();t.state=0;t.wrapper.CSSAnimate({opacity:0},500,function(){if(t.controlBar)t.controlBar.find('.mb_YTPPlaypause').html(e.mbYTPlayer.controls.play);var r=e.Event('YTPEnd');r.time=t.player.time;e(t).trigger(r);t.player.seekTo(n,!0);if(!t.isBackground){t.opt.containment.css({background:'rgba(0,0,0,0.5) url('+t.opt.backgroundUrl+') center center',backgroundSize:'cover'})}});return};t.player.loopTime=t.player.loopTime?++t.player.loopTime:1;n=n||1;t.preventTrigger=!0;e(t).YTPPause();t.player.seekTo(n,!0);o.YTPPlay()}},r)},checkForStart:function(t){var a=e(t);if(!e.contains(document,t)){e(t).YTPPlayerDestroy();return};t.preventTrigger=!0;e(t).YTPPause();e(t).muteYTPVolume();e('#controlBar_'+t.id).remove();if(t.opt.showControls)e.mbYTPlayer.buildControls(t);if(t.opt.addRaster){var o=t.opt.addRaster=='dot'?'raster-dot':'raster';t.overlay.addClass(t.isRetina?o+' retina':o)} else{t.overlay.removeClass(function(t,r){var o=r.split(' '),a=[];e.each(o,function(e,t){if(/raster.*/.test(t)){a.push(t)}});a.push('retina');return a.join(' ')})};var r=t.opt.startAt?t.opt.startAt:1;t.player.playVideo();t.player.seekTo(r,!0);t.checkForStartAt=setInterval(function(){e(t).YTPMute();var n=t.player.getVideoLoadedFraction()>=r/t.player.getDuration();if(t.player.getDuration()>0&&t.player.getCurrentTime()>=r&&n){clearInterval(t.checkForStartAt);if(typeof t.opt.onReady=='function')t.opt.onReady(t);t.isReady=!0;var i=e.Event('YTPReady');i.time=t.player.time;e(t).trigger(i);t.preventTrigger=!0;e(t).YTPPause();if(!t.opt.mute)e(t).YTPUnmute();t.canTrigger=!0;if(t.opt.autoPlay){var o=e.Event('YTPStart');o.time=t.player.time;e(t).trigger(o);a.css('background-image','none');e(t.playerEl).CSSAnimate({opacity:1},1000);a.YTPPlay();t.wrapper.CSSAnimate({opacity:t.isAlone?1:t.opt.opacity},1000,function(){});if(e.browser.safari)a.YTPPlay()} else{t.player.pauseVideo();if(!t.isPlayer){e(t.playerEl).CSSAnimate({opacity:1},500);t.wrapper.CSSAnimate({opacity:t.isAlone?1:t.opt.opacity},500)};t.controlBar.find('.mb_YTPPlaypause').html(e.mbYTPlayer.controls.play)};if(t.isPlayer&&!t.opt.autoPlay){t.loading.html('Ready');setTimeout(function(){t.loading.fadeOut()},100)};if(t.controlBar)t.controlBar.slideDown(1000)} else if(e.browser.safari){t.player.playVideo();if(r>=0)t.player.seekTo(r,!0)}},1)},formatTime:function(e){var t=Math.floor(e/60),r=Math.floor(e-(60*t));return(t<=9?'0'+t:t)+' : '+(r<=9?'0'+r:r)}};e.fn.toggleVolume=function(){var t=this.get(0);if(!t)return;if(t.player.isMuted()){e(t).YTPUnmute();return!0} else{e(t).YTPMute();return!1}};e.fn.optimizeDisplay=function(){var i=this.get(0),n=i.opt,l=e(i.playerEl),t={};if(n.optimizeDisplay){var a=24,o=100,r={};var s=i.wrapper;r.width=s.outerWidth();r.height=s.outerHeight();t.width=r.width+((r.width*a)/100);t.height=n.ratio=='16/9'?Math.ceil((9*r.width)/16):Math.ceil((3*r.width)/4);t.marginTop=-((t.height-r.height)/2);t.marginLeft=-((r.width*(a/2))/100);if(t.height
jQuery.CSS.filters[t].max?jQuery.CSS.filters[t].max:r,jQuery.CSS.filters[t].unit),e[a+'filter']+=o+'('+r+') ',delete e[t]};jQuery.support.CSStransition=function(){var t=document.body||document.documentElement,e=t.style;return void 0!==e.transition||void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.MsTransition||void 0!==e.OTransition}(),jQuery.CSS={name:'mb.CSSAnimate',author:'Matteo Bicocchi',version:'2.0.0',transitionEnd:'transitionEnd',sfx:'',filters:{blur:{min:0,max:100,unit:'px'},brightness:{min:0,max:400,unit:'%'},contrast:{min:0,max:400,unit:'%'},grayscale:{min:0,max:100,unit:'%'},hueRotate:{min:0,max:360,unit:'deg'},invert:{min:0,max:100,unit:'%'},saturate:{min:0,max:400,unit:'%'},sepia:{min:0,max:100,unit:'%'}},normalizeCss:function(e){var t=jQuery.extend(!0,{},e);jQuery.browser.webkit||jQuery.browser.opera?jQuery.CSS.sfx='-webkit-':jQuery.browser.mozilla?jQuery.CSS.sfx='-moz-':jQuery.browser.msie&&(jQuery.CSS.sfx='-ms-');for(var r in t){'transform'===r&&(t[jQuery.CSS.sfx+'transform']=t[r],delete t[r]),'transform-origin'===r&&(t[jQuery.CSS.sfx+'transform-origin']=e[r],delete t[r]),'filter'!==r||jQuery.browser.mozilla||(t[jQuery.CSS.sfx+'filter']=e[r],delete t[r]),'blur'===r&&setFilter(t,'blur',e[r]),'brightness'===r&&setFilter(t,'brightness',e[r]),'contrast'===r&&setFilter(t,'contrast',e[r]),'grayscale'===r&&setFilter(t,'grayscale',e[r]),'hueRotate'===r&&setFilter(t,'hueRotate',e[r]),'invert'===r&&setFilter(t,'invert',e[r]),'saturate'===r&&setFilter(t,'saturate',e[r]),'sepia'===r&&setFilter(t,'sepia',e[r]);var a='';'x'===r&&(a=jQuery.CSS.sfx+'transform',t[a]=t[a]||'',t[a]+=' translateX('+setUnit(e[r],'px')+')',delete t[r]),'y'===r&&(a=jQuery.CSS.sfx+'transform',t[a]=t[a]||'',t[a]+=' translateY('+setUnit(e[r],'px')+')',delete t[r]),'z'===r&&(a=jQuery.CSS.sfx+'transform',t[a]=t[a]||'',t[a]+=' translateZ('+setUnit(e[r],'px')+')',delete t[r]),'rotate'===r&&(a=jQuery.CSS.sfx+'transform',t[a]=t[a]||'',t[a]+=' rotate('+setUnit(e[r],'deg')+')',delete t[r]),'rotateX'===r&&(a=jQuery.CSS.sfx+'transform',t[a]=t[a]||'',t[a]+=' rotateX('+setUnit(e[r],'deg')+')',delete t[r]),'rotateY'===r&&(a=jQuery.CSS.sfx+'transform',t[a]=t[a]||'',t[a]+=' rotateY('+setUnit(e[r],'deg')+')',delete t[r]),'rotateZ'===r&&(a=jQuery.CSS.sfx+'transform',t[a]=t[a]||'',t[a]+=' rotateZ('+setUnit(e[r],'deg')+')',delete t[r]),'scale'===r&&(a=jQuery.CSS.sfx+'transform',t[a]=t[a]||'',t[a]+=' scale('+setUnit(e[r],'')+')',delete t[r]),'scaleX'===r&&(a=jQuery.CSS.sfx+'transform',t[a]=t[a]||'',t[a]+=' scaleX('+setUnit(e[r],'')+')',delete t[r]),'scaleY'===r&&(a=jQuery.CSS.sfx+'transform',t[a]=t[a]||'',t[a]+=' scaleY('+setUnit(e[r],'')+')',delete t[r]),'scaleZ'===r&&(a=jQuery.CSS.sfx+'transform',t[a]=t[a]||'',t[a]+=' scaleZ('+setUnit(e[r],'')+')',delete t[r]),'skew'===r&&(a=jQuery.CSS.sfx+'transform',t[a]=t[a]||'',t[a]+=' skew('+setUnit(e[r],'deg')+')',delete t[r]),'skewX'===r&&(a=jQuery.CSS.sfx+'transform',t[a]=t[a]||'',t[a]+=' skewX('+setUnit(e[r],'deg')+')',delete t[r]),'skewY'===r&&(a=jQuery.CSS.sfx+'transform',t[a]=t[a]||'',t[a]+=' skewY('+setUnit(e[r],'deg')+')',delete t[r]),'perspective'===r&&(a=jQuery.CSS.sfx+'transform',t[a]=t[a]||'',t[a]+=' perspective('+setUnit(e[r],'px')+')',delete t[r])};return t},getProp:function(e){var t=[];for(var r in e)t.indexOf(r)<0&&t.push(uncamel(r));return t.join(',')},animate:function(e,t,r,o,a){return this.each(function(){function m(){i.called=!0,i.CSSAIsRunning=!1,s.off(jQuery.CSS.transitionEnd+'.'+i.id),clearTimeout(i.timeout),s.css(jQuery.CSS.sfx+'transition',''),'function'==typeof a&&a.apply(i),'function'==typeof i.CSSqueue&&(i.CSSqueue(),i.CSSqueue=null)};var i=this,s=jQuery(this);i.id=i.id||'CSSA_'+(new Date).getTime();var f=f||{type:'noEvent'};if(i.CSSAIsRunning&&i.eventType==f.type&&!jQuery.browser.msie&&jQuery.browser.version<=9)return i.CSSqueue=function(){s.CSSAnimate(e,t,r,o,a)},void 0;if(i.CSSqueue=null,i.eventType=f.type,0!==s.length&&e){if(e=jQuery.normalizeCss(e),i.CSSAIsRunning=!0,'function'==typeof t&&(a=t,t=jQuery.fx.speeds._default),'function'==typeof r&&(o=r,r=0),'string'==typeof r&&(a=r,r=0),'function'==typeof o&&(a=o,o='cubic-bezier(0.65,0.03,0.36,0.72)'),'string'==typeof t)for(var p in jQuery.fx.speeds){if(t==p){t=jQuery.fx.speeds[p];break};t=jQuery.fx.speeds._default};if(t||(t=jQuery.fx.speeds._default),'string'==typeof a&&(o=a,a=null),!jQuery.support.CSStransition){for(var n in e){if('transform'===n&&delete e[n],'filter'===n&&delete e[n],'transform-origin'===n&&delete e[n],'auto'===e[n]&&delete e[n],'x'===n){var u=e[n],c='left';e[c]=u,delete e[n]};if('y'===n){var u=e[n],c='top';e[c]=u,delete e[n]}('-ms-transform'===n||'-ms-filter'===n)&&delete e[n]};return s.delay(r).animate(e,t,a),void 0};var d={'default':'ease','in':'ease-in',out:'ease-out','in-out':'ease-in-out',snap:'cubic-bezier(0,1,.5,1)',easeOutCubic:'cubic-bezier(.215,.61,.355,1)',easeInOutCubic:'cubic-bezier(.645,.045,.355,1)',easeInCirc:'cubic-bezier(.6,.04,.98,.335)',easeOutCirc:'cubic-bezier(.075,.82,.165,1)',easeInOutCirc:'cubic-bezier(.785,.135,.15,.86)',easeInExpo:'cubic-bezier(.95,.05,.795,.035)',easeOutExpo:'cubic-bezier(.19,1,.22,1)',easeInOutExpo:'cubic-bezier(1,0,0,1)',easeInQuad:'cubic-bezier(.55,.085,.68,.53)',easeOutQuad:'cubic-bezier(.25,.46,.45,.94)',easeInOutQuad:'cubic-bezier(.455,.03,.515,.955)',easeInQuart:'cubic-bezier(.895,.03,.685,.22)',easeOutQuart:'cubic-bezier(.165,.84,.44,1)',easeInOutQuart:'cubic-bezier(.77,0,.175,1)',easeInQuint:'cubic-bezier(.755,.05,.855,.06)',easeOutQuint:'cubic-bezier(.23,1,.32,1)',easeInOutQuint:'cubic-bezier(.86,0,.07,1)',easeInSine:'cubic-bezier(.47,0,.745,.715)',easeOutSine:'cubic-bezier(.39,.575,.565,1)',easeInOutSine:'cubic-bezier(.445,.05,.55,.95)',easeInBack:'cubic-bezier(.6,-.28,.735,.045)',easeOutBack:'cubic-bezier(.175, .885,.32,1.275)',easeInOutBack:'cubic-bezier(.68,-.55,.265,1.55)'};d[o]&&(o=d[o]),s.off(jQuery.CSS.transitionEnd+'.'+i.id);var y=jQuery.CSS.getProp(e),l={};jQuery.extend(l,e),l[jQuery.CSS.sfx+'transition-property']=y,l[jQuery.CSS.sfx+'transition-duration']=t+'ms',l[jQuery.CSS.sfx+'transition-delay']=r+'ms',l[jQuery.CSS.sfx+'transition-timing-function']=o,setTimeout(function(){s.one(jQuery.CSS.transitionEnd+'.'+i.id,m),s.css(l)},1),i.timeout=setTimeout(function(){return i.called||!a?(i.called=!1,i.CSSAIsRunning=!1,void 0):(s.css(jQuery.CSS.sfx+'transition',''),a.apply(i),i.CSSAIsRunning=!1,'function'==typeof i.CSSqueue&&(i.CSSqueue(),i.CSSqueue=null),void 0)},t+r+10)}})}},jQuery.fn.CSSAnimate=jQuery.CSS.animate,jQuery.normalizeCss=jQuery.CSS.normalizeCss,jQuery.fn.css3=function(e){return this.each(function(){var t=jQuery(this),r=jQuery.normalizeCss(e);t.css(r)})};var nAgt=navigator.userAgent;if(!jQuery.browser){jQuery.browser={},jQuery.browser.mozilla=!1,jQuery.browser.webkit=!1,jQuery.browser.opera=!1,jQuery.browser.safari=!1,jQuery.browser.chrome=!1,jQuery.browser.msie=!1,jQuery.browser.ua=nAgt,jQuery.browser.name=navigator.appName,jQuery.browser.fullVersion=''+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10);var nameOffset,verOffset,ix;if(-1!=(verOffset=nAgt.indexOf('Opera')))jQuery.browser.opera=!0,jQuery.browser.name='Opera',jQuery.browser.fullVersion=nAgt.substring(verOffset+6),-1!=(verOffset=nAgt.indexOf('Version'))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8));else if(-1!=(verOffset=nAgt.indexOf('OPR')))jQuery.browser.opera=!0,jQuery.browser.name='Opera',jQuery.browser.fullVersion=nAgt.substring(verOffset+4);else if(-1!=(verOffset=nAgt.indexOf('MSIE')))jQuery.browser.msie=!0,jQuery.browser.name='Microsoft Internet Explorer',jQuery.browser.fullVersion=nAgt.substring(verOffset+5);else if(-1!=nAgt.indexOf('Trident')){jQuery.browser.msie=!0,jQuery.browser.name='Microsoft Internet Explorer';var start=nAgt.indexOf('rv:')+3,end=start+4;jQuery.browser.fullVersion=nAgt.substring(start,end)} else-1!=(verOffset=nAgt.indexOf('Chrome'))?(jQuery.browser.webkit=!0,jQuery.browser.chrome=!0,jQuery.browser.name='Chrome',jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1!=(verOffset=nAgt.indexOf('Safari'))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name='Safari',jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf('Version'))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf('AppleWebkit'))?(jQuery.browser.webkit=!0,jQuery.browser.name='Safari',jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf('Version'))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf('Firefox'))?(jQuery.browser.mozilla=!0,jQuery.browser.name='Firefox',jQuery.browser.fullVersion=nAgt.substring(verOffset+8)):(nameOffset=nAgt.lastIndexOf(' ')+1)<(verOffset=nAgt.lastIndexOf('/'))&&(jQuery.browser.name=nAgt.substring(nameOffset,verOffset),jQuery.browser.fullVersion=nAgt.substring(verOffset+1),jQuery.browser.name.toLowerCase()==jQuery.browser.name.toUpperCase()&&(jQuery.browser.name=navigator.appName));-1!=(ix=jQuery.browser.fullVersion.indexOf(';'))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),-1!=(ix=jQuery.browser.fullVersion.indexOf(' '))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),jQuery.browser.majorVersion=parseInt(''+jQuery.browser.fullVersion,10),isNaN(jQuery.browser.majorVersion)&&(jQuery.browser.fullVersion=''+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10)),jQuery.browser.version=jQuery.browser.majorVersion};jQuery.browser.android=/Android/i.test(nAgt),jQuery.browser.blackberry=/BlackBerry|BB|PlayBook/i.test(nAgt),jQuery.browser.ios=/iPhone|iPad|iPod|webOS/i.test(nAgt),jQuery.browser.operaMobile=/Opera Mini/i.test(nAgt),jQuery.browser.windowsMobile=/IEMobile|Windows Phone/i.test(nAgt),jQuery.browser.kindle=/Kindle|Silk/i.test(nAgt),jQuery.browser.mobile=jQuery.browser.android||jQuery.browser.blackberry||jQuery.browser.ios||jQuery.browser.windowsMobile||jQuery.browser.operaMobile||jQuery.browser.kindle,jQuery.isMobile=jQuery.browser.mobile,jQuery.isTablet=jQuery.browser.mobile&&jQuery(window).width()>765,jQuery.isAndroidDefault=jQuery.browser.android&&!/chrome/i.test(nAgt);!function(e){var t=(/iphone|ipod|ipad|android|ie|blackberry|fennec/.test(navigator.userAgent.toLowerCase()),'ontouchstart'in window||window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture||window.DocumentTouch&&document instanceof DocumentTouch||!1);e.simpleSlider={defaults:{initialval:0,scale:100,orientation:'h',readonly:!1,callback:!1},events:{start:t?'touchstart':'mousedown',end:t?'touchend':'mouseup',move:t?'touchmove':'mousemove'},init:function(r){return this.each(function(){var a=this,o=e(a);o.addClass('simpleSlider'),a.opt={},e.extend(a.opt,e.simpleSlider.defaults,r),e.extend(a.opt,o.data());var n='h'==a.opt.orientation?'horizontal':'vertical',i=e('
').addClass('level').addClass(n);o.prepend(i),a.level=i,o.css({cursor:'default'}),'auto'==a.opt.scale&&(a.opt.scale=e(a).outerWidth()),o.updateSliderVal(),a.opt.readonly||(o.on(e.simpleSlider.events.start,function(e){t&&(e=e.changedTouches[0]),a.canSlide=!0,o.updateSliderVal(e),o.css({cursor:'col-resize'}),e.preventDefault(),e.stopPropagation()}),e(document).on(e.simpleSlider.events.move,function(r){t&&(r=r.changedTouches[0]),a.canSlide&&(e(document).css({cursor:'default'}),o.updateSliderVal(r),r.preventDefault(),r.stopPropagation())}).on(e.simpleSlider.events.end,function(){e(document).css({cursor:'auto'}),a.canSlide=!1,o.css({cursor:'auto'})}))})},updateSliderVal:function(t){function n(e,t){return Math.floor(100*e/t)};var a=this,r=a.get(0);if(r.opt){r.opt.initialval='number'==typeof r.opt.initialval?r.opt.initialval:r.opt.initialval(r);var o=e(r).outerWidth(),i=e(r).outerHeight();r.x='object'==typeof t?t.clientX+document.body.scrollLeft-a.offset().left:'number'==typeof t?t*o/r.opt.scale:r.opt.initialval*o/r.opt.scale,r.y='object'==typeof t?t.clientY+document.body.scrollTop-a.offset().top:'number'==typeof t?(r.opt.scale-r.opt.initialval-t)*i/r.opt.scale:r.opt.initialval*i/r.opt.scale,r.y=a.outerHeight()-r.y,r.scaleX=r.x*r.opt.scale/o,r.scaleY=r.y*r.opt.scale/i,r.outOfRangeX=r.scaleX>r.opt.scale?r.scaleX-r.opt.scale:r.scaleX<0?r.scaleX:0,r.outOfRangeY=r.scaleY>r.opt.scale?r.scaleY-r.opt.scale:r.scaleY<0?r.scaleY:0,r.outOfRange='h'==r.opt.orientation?r.outOfRangeX:r.outOfRangeY,'undefined'!=typeof t?r.value='h'==r.opt.orientation?r.x>=a.outerWidth()?r.opt.scale:r.x<=0?0:r.scaleX:r.y>=a.outerHeight()?r.opt.scale:r.y<=0?0:r.scaleY:r.value='h'==r.opt.orientation?r.scaleX:r.scaleY,'h'==r.opt.orientation?r.level.width(n(r.x,o)+'%'):r.level.height(n(r.y,i)),'function'==typeof r.opt.callback&&r.opt.callback(r)}}},e.fn.simpleSlider=e.simpleSlider.init,e.fn.updateSliderVal=e.simpleSlider.updateSliderVal}(jQuery);!function(e){e.mbCookie={set:function(e,t,r,a){t=JSON.stringify(t),r||(r=7),a=a?'; domain='+a:'';var i,o=new Date;o.setTime(o.getTime()+1e3*60*60*24*r),i='; expires='+o.toGMTString(),document.cookie=e+'='+t+i+'; path=/'+a},get:function(e){for(var a=e+'=',o=document.cookie.split(';'),r=0;r