!function(root,factory){"function"==typeof define&&define.amd?define(["jquery"],factory):root.jQuery?factory(root.jQuery):factory(root.Zepto)}(this,function($,undefined){$.fn.jPlayer=function(options){var name="jPlayer",isMethodCall="string"==typeof options,args=Array.prototype.slice.call(arguments,1),returnValue=this;return options=!isMethodCall&&args.length?$.extend.apply(null,[!0,options].concat(args)):options,isMethodCall&&"_"===options.charAt(0)?returnValue:(isMethodCall?this.each(function(){var instance=$(this).data(name),methodValue=instance&&$.isFunction(instance[options])?instance[options].apply(instance,args):instance;return methodValue!==instance&&methodValue!==undefined?(returnValue=methodValue,!1):void 0}):this.each(function(){var instance=$(this).data(name);instance?instance.option(options||{}):$(this).data(name,new $.jPlayer(options,this))}),returnValue)},$.jPlayer=function(options,element){if(arguments.length){this.element=$(element),this.options=$.extend(!0,{},this.options,options);var self=this;this.element.bind("remove.jPlayer",function(){self.destroy()}),this._init()}},"function"!=typeof $.fn.stop&&($.fn.stop=function(){}),$.jPlayer.emulateMethods="load play pause",$.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate",$.jPlayer.emulateOptions="muted volume",$.jPlayer.reservedEvent="ready flashreset resize repeat error warning",$.jPlayer.event={},$.each(["ready","setmedia","flashreset","resize","repeat","click","error","warning","loadstart","progress","suspend","abort","emptied","stalled","play","pause","loadedmetadata","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","timeupdate","ended","ratechange","durationchange","volumechange"],function(){$.jPlayer.event[this]="jPlayer_"+this}),$.jPlayer.htmlEvent=["loadstart","abort","emptied","stalled","loadedmetadata","canplay","canplaythrough"],$.jPlayer.pause=function(){$.each($.jPlayer.prototype.instances,function(i,element){element.data("jPlayer").status.srcSet&&element.jPlayer("pause")})},$.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""};var ConvertTime=function(){this.init()};ConvertTime.prototype={init:function(){this.options={timeFormat:$.jPlayer.timeFormat}},time:function(s){s=s&&"number"==typeof s?s:0;var myTime=new Date(1e3*s),hour=myTime.getUTCHours(),min=this.options.timeFormat.showHour?myTime.getUTCMinutes():myTime.getUTCMinutes()+60*hour,sec=this.options.timeFormat.showMin?myTime.getUTCSeconds():myTime.getUTCSeconds()+60*min,strHour=this.options.timeFormat.padHour&&10>hour?"0"+hour:hour,strMin=this.options.timeFormat.padMin&&10>min?"0"+min:min,strSec=this.options.timeFormat.padSec&&10>sec?"0"+sec:sec,strTime="";return strTime+=this.options.timeFormat.showHour?strHour+this.options.timeFormat.sepHour:"",strTime+=this.options.timeFormat.showMin?strMin+this.options.timeFormat.sepMin:"",strTime+=this.options.timeFormat.showSec?strSec+this.options.timeFormat.sepSec:""}};var myConvertTime=new ConvertTime;$.jPlayer.convertTime=function(s){return myConvertTime.time(s)},$.jPlayer.uaBrowser=function(userAgent){var ua=userAgent.toLowerCase(),rwebkit=/(webkit)[ \/]([\w.]+)/,ropera=/(opera)(?:.*version)?[ \/]([\w.]+)/,rmsie=/(msie) ([\w.]+)/,rmozilla=/(mozilla)(?:.*? rv:([\w.]+))?/,match=rwebkit.exec(ua)||ropera.exec(ua)||rmsie.exec(ua)||ua.indexOf("compatible")<0&&rmozilla.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"}},$.jPlayer.uaPlatform=function(userAgent){var ua=userAgent.toLowerCase(),rplatform=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/,rtablet=/(ipad|playbook)/,randroid=/(android)/,rmobile=/(mobile)/,platform=rplatform.exec(ua)||[],tablet=rtablet.exec(ua)||!rmobile.exec(ua)&&randroid.exec(ua)||[];return platform[1]&&(platform[1]=platform[1].replace(/\s/g,"_")),{platform:platform[1]||"",tablet:tablet[1]||""}},$.jPlayer.browser={},$.jPlayer.platform={};var browserMatch=$.jPlayer.uaBrowser(navigator.userAgent);browserMatch.browser&&($.jPlayer.browser[browserMatch.browser]=!0,$.jPlayer.browser.version=browserMatch.version);var platformMatch=$.jPlayer.uaPlatform(navigator.userAgent);platformMatch.platform&&($.jPlayer.platform[platformMatch.platform]=!0,$.jPlayer.platform.mobile=!platformMatch.tablet,$.jPlayer.platform.tablet=!!platformMatch.tablet),$.jPlayer.getDocMode=function(){var docMode;return $.jPlayer.browser.msie&&(document.documentMode?docMode=document.documentMode:(docMode=5,document.compatMode&&"CSS1Compat"===document.compatMode&&(docMode=7))),docMode},$.jPlayer.browser.documentMode=$.jPlayer.getDocMode(),$.jPlayer.nativeFeatures={init:function(){var fs,i,il,d=document,v=d.createElement("video"),spec={w3c:["fullscreenEnabled","fullscreenElement","requestFullscreen","exitFullscreen","fullscreenchange","fullscreenerror"],moz:["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror"],webkit:["","webkitCurrentFullScreenElement","webkitRequestFullScreen","webkitCancelFullScreen","webkitfullscreenchange",""],webkitVideo:["webkitSupportsFullscreen","webkitDisplayingFullscreen","webkitEnterFullscreen","webkitExitFullscreen","",""]},specOrder=["w3c","moz","webkit","webkitVideo"];for(this.fullscreen=fs={support:{w3c:!!d[spec.w3c[0]],moz:!!d[spec.moz[0]],webkit:"function"==typeof d[spec.webkit[3]],webkitVideo:"function"==typeof v[spec.webkitVideo[2]]},used:{}},i=0,il=specOrder.length;il>i;i++){var n=specOrder[i];if(fs.support[n]){fs.spec=n,fs.used[n]=!0;break}}if(fs.spec){var s=spec[fs.spec];fs.api={fullscreenEnabled:!0,fullscreenElement:function(elem){return elem=elem?elem:d,elem[s[1]]},requestFullscreen:function(elem){return elem[s[2]]()},exitFullscreen:function(elem){return elem=elem?elem:d,elem[s[3]]()}},fs.event={fullscreenchange:s[4],fullscreenerror:s[5]}}else fs.api={fullscreenEnabled:!1,fullscreenElement:function(){return null},requestFullscreen:function(){},exitFullscreen:function(){}},fs.event={}}},$.jPlayer.nativeFeatures.init(),$.jPlayer.focus=null,$.jPlayer.keyIgnoreElementNames="A INPUT TEXTAREA SELECT BUTTON";var keyBindings=function(event){var ignoreKey,f=$.jPlayer.focus,pageFocus=document.activeElement;f&&("undefined"!=typeof pageFocus?null!==pageFocus&&"BODY"!==pageFocus.nodeName.toUpperCase()&&(ignoreKey=!0):$.each($.jPlayer.keyIgnoreElementNames.split(/\s+/g),function(i,name){return event.target.nodeName.toUpperCase()===name.toUpperCase()?(ignoreKey=!0,!1):void 0}),ignoreKey||$.each(f.options.keyBindings,function(action,binding){return binding&&event.which===binding.key&&$.isFunction(binding.fn)?(event.preventDefault(),binding.fn(f),!1):void 0}))};$.jPlayer.keys=function(en){var event="keydown.jPlayer";$(document.documentElement).unbind(event),en&&$(document.documentElement).bind(event,keyBindings)},$.jPlayer.keys(!0),$.jPlayer.prototype={count:0,version:{script:"2.7.1",needFlash:"2.7.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",preload:"metadata",volume:.8,muted:!1,remainingDuration:!1,toggleDuration:!1,captureDuration:!0,playbackRate:1,defaultPlaybackRate:1,minPlaybackRate:.5,maxPlaybackRate:4,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",playbackRateBar:".jp-playback-rate-bar",playbackRateBarValue:".jp-playback-rate-bar-value",currentTime:".jp-current-time",duration:".jp-duration",title:".jp-title",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},stateClass:{playing:"jp-state-playing",seeking:"jp-state-seeking",muted:"jp-state-muted",looped:"jp-state-looped",fullScreen:"jp-state-full-screen"},useStateClassSkin:!1,autoBlur:!0,smoothPlayBar:!1,fullScreen:!1,fullWindow:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,hold:1e3},loop:!1,repeat:function(event){event.jPlayer.options.loop?$(this).unbind(".jPlayerRepeat").bind($.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){$(this).jPlayer("play")}):$(this).unbind(".jPlayerRepeat")},nativeVideoControls:{},noFullWindow:{msie:/msie [0-6]\./,ipad:/ipad.*?os [0-4]\./,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3]\.(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/,playbook:/playbook/},timeFormat:{},keyEnabled:!1,audioFullScreen:!1,keyBindings:{play:{key:32,fn:function(f){f.status.paused?f.play():f.pause()}},fullScreen:{key:13,fn:function(f){(f.status.video||f.options.audioFullScreen)&&f._setOption("fullScreen",!f.options.fullScreen)}},muted:{key:8,fn:function(f){f._muted(!f.options.muted)}},volumeUp:{key:38,fn:function(f){f.volume(f.options.volume+.1)}},volumeDown:{key:40,fn:function(f){f.volume(f.options.volume-.1)}}},verticalVolume:!1,verticalPlaybackRate:!1,globalVolume:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,consoleAlerts:!0,errorAlerts:!1,warningAlerts:!1},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,remaining:0,videoWidth:0,videoHeight:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,flash:!0},format:{mp3:{codec:"audio/mpeg",flashCanPlay:!0,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},m3u8a:{codec:'application/vnd.apple.mpegurl; codecs="mp4a.40.2"',flashCanPlay:!1,media:"audio"},m3ua:{codec:"audio/mpegurl",flashCanPlay:!1,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis, opus"',flashCanPlay:!1,media:"audio"},flac:{codec:"audio/x-flac",flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:!0,media:"audio"},rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},m3u8v:{codec:'application/vnd.apple.mpegurl; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!1,media:"video"},m3uv:{codec:"audio/mpegurl",flashCanPlay:!1,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:!0,media:"video"},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"video"}},_init:function(){var self=this;if(this.element.empty(),this.status=$.extend({},this.status),this.internal=$.extend({},this.internal),this.options.timeFormat=$.extend({},$.jPlayer.timeFormat,this.options.timeFormat),this.internal.cmdsIgnored=$.jPlayer.platform.ipad||$.jPlayer.platform.iphone||$.jPlayer.platform.ipod,this.internal.domNode=this.element.get(0),this.options.keyEnabled&&!$.jPlayer.focus&&($.jPlayer.focus=this),this.androidFix={setMedia:!1,play:!1,pause:!1,time:0/0},$.jPlayer.platform.android&&(this.options.preload="auto"!==this.options.preload?"metadata":"auto"),this.formats=[],this.solutions=[],this.require={},this.htmlElement={},this.html={},this.html.audio={},this.html.video={},this.flash={},this.css={},this.css.cs={},this.css.jq={},this.ancestorJq=[],this.options.volume=this._limitValue(this.options.volume,0,1),$.each(this.options.supplied.toLowerCase().split(","),function(index1,value1){var format=value1.replace(/^\s+|\s+$/g,"");if(self.format[format]){var dupFound=!1;$.each(self.formats,function(index2,value2){return format===value2?(dupFound=!0,!1):void 0}),dupFound||self.formats.push(format)}}),$.each(this.options.solution.toLowerCase().split(","),function(index1,value1){var solution=value1.replace(/^\s+|\s+$/g,"");if(self.solution[solution]){var dupFound=!1;$.each(self.solutions,function(index2,value2){return solution===value2?(dupFound=!0,!1):void 0}),dupFound||self.solutions.push(solution)}}),this.internal.instance="jp_"+this.count,this.instances[this.internal.instance]=this.element,this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count),this.internal.self=$.extend({},{id:this.element.attr("id"),jq:this.element}),this.internal.audio=$.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:undefined}),this.internal.video=$.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:undefined}),this.internal.flash=$.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:undefined,swf:this.options.swfPath+(".swf"!==this.options.swfPath.toLowerCase().slice(-4)?(this.options.swfPath&&"/"!==this.options.swfPath.slice(-1)?"/":"")+"Jplayer.swf":"")}),this.internal.poster=$.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:undefined}),$.each($.jPlayer.event,function(eventName,eventType){self.options[eventName]!==undefined&&(self.element.bind(eventType+".jPlayer",self.options[eventName]),self.options[eventName]=undefined)}),this.require.audio=!1,this.require.video=!1,$.each(this.formats,function(priority,format){self.require[self.format[format].media]=!0}),this.options=this.require.video?$.extend(!0,{},this.optionsVideo,this.options):$.extend(!0,{},this.optionsAudio,this.options),this._setSize(),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow),this.status.noVolume=this._uaBlocklist(this.options.noVolume),$.jPlayer.nativeFeatures.fullscreen.api.fullscreenEnabled&&this._fullscreenAddEventListeners(),this._restrictNativeVideoControls(),this.htmlElement.poster=document.createElement("img"),this.htmlElement.poster.id=this.internal.poster.id,this.htmlElement.poster.onload=function(){(!self.status.video||self.status.waitForPlay)&&self.internal.poster.jq.show()},this.element.append(this.htmlElement.poster),this.internal.poster.jq=$("#"+this.internal.poster.id),this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),this.internal.poster.jq.hide(),this.internal.poster.jq.bind("click.jPlayer",function(){self._trigger($.jPlayer.event.click)}),this.html.audio.available=!1,this.require.audio&&(this.htmlElement.audio=document.createElement("audio"),this.htmlElement.audio.id=this.internal.audio.id,this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio)),this.html.video.available=!1,this.require.video&&(this.htmlElement.video=document.createElement("video"),this.htmlElement.video.id=this.internal.video.id,this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video)),this.flash.available=this._checkForFlash(10.1),this.html.canPlay={},this.flash.canPlay={},$.each(this.formats,function(priority,format){self.html.canPlay[format]=self.html[self.format[format].media].available&&""!==self.htmlElement[self.format[format].media].canPlayType(self.format[format].codec),self.flash.canPlay[format]=self.format[format].flashCanPlay&&self.flash.available}),this.html.desired=!1,this.flash.desired=!1,$.each(this.solutions,function(solutionPriority,solution){if(0===solutionPriority)self[solution].desired=!0;else{var audioCanPlay=!1,videoCanPlay=!1;$.each(self.formats,function(formatPriority,format){self[self.solutions[0]].canPlay[format]&&("video"===self.format[format].media?videoCanPlay=!0:audioCanPlay=!0)}),self[solution].desired=self.require.audio&&!audioCanPlay||self.require.video&&!videoCanPlay}}),this.html.support={},this.flash.support={},$.each(this.formats,function(priority,format){self.html.support[format]=self.html.canPlay[format]&&self.html.desired,self.flash.support[format]=self.flash.canPlay[format]&&self.flash.desired}),this.html.used=!1,this.flash.used=!1,$.each(this.solutions,function(solutionPriority,solution){$.each(self.formats,function(formatPriority,format){return self[solution].support[format]?(self[solution].used=!0,!1):void 0})}),this._resetActive(),this._resetGate(),this._cssSelectorAncestor(this.options.cssSelectorAncestor),this.html.used||this.flash.used?this.css.jq.noSolution.length&&this.css.jq.noSolution.hide():(this._error({type:$.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:$.jPlayer.errorMsg.NO_SOLUTION,hint:$.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show()),this.flash.used){var htmlObj,flashVars="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;if($.jPlayer.browser.msie&&(Number($.jPlayer.browser.version)<9||$.jPlayer.browser.documentMode<9)){var objStr='',paramStr=['','','','',''];htmlObj=document.createElement(objStr);for(var i=0;i0&&(self.internal.cmdsIgnored=!1),self._getHtmlStatus(mediaElement),self._updateInterface(),self._trigger($.jPlayer.event.progress))},!1),mediaElement.addEventListener("loadeddata",function(){entity.gate&&(self.androidFix.setMedia=!1,self.androidFix.play&&(self.androidFix.play=!1,self.play(self.androidFix.time)),self.androidFix.pause&&(self.androidFix.pause=!1,self.pause(self.androidFix.time)),self._trigger($.jPlayer.event.loadeddata))},!1),mediaElement.addEventListener("timeupdate",function(){entity.gate&&(self._getHtmlStatus(mediaElement),self._updateInterface(),self._trigger($.jPlayer.event.timeupdate))},!1),mediaElement.addEventListener("durationchange",function(){entity.gate&&(self._getHtmlStatus(mediaElement),self._updateInterface(),self._trigger($.jPlayer.event.durationchange))},!1),mediaElement.addEventListener("play",function(){entity.gate&&(self._updateButtons(!0),self._html_checkWaitForPlay(),self._trigger($.jPlayer.event.play))},!1),mediaElement.addEventListener("playing",function(){entity.gate&&(self._updateButtons(!0),self._seeked(),self._trigger($.jPlayer.event.playing))},!1),mediaElement.addEventListener("pause",function(){entity.gate&&(self._updateButtons(!1),self._trigger($.jPlayer.event.pause))},!1),mediaElement.addEventListener("waiting",function(){entity.gate&&(self._seeking(),self._trigger($.jPlayer.event.waiting))},!1),mediaElement.addEventListener("seeking",function(){entity.gate&&(self._seeking(),self._trigger($.jPlayer.event.seeking))},!1),mediaElement.addEventListener("seeked",function(){entity.gate&&(self._seeked(),self._trigger($.jPlayer.event.seeked))},!1),mediaElement.addEventListener("volumechange",function(){entity.gate&&(self.options.volume=mediaElement.volume,self.options.muted=mediaElement.muted,self._updateMute(),self._updateVolume(),self._trigger($.jPlayer.event.volumechange))},!1),mediaElement.addEventListener("ratechange",function(){entity.gate&&(self.options.defaultPlaybackRate=mediaElement.defaultPlaybackRate,self.options.playbackRate=mediaElement.playbackRate,self._updatePlaybackRate(),self._trigger($.jPlayer.event.ratechange))},!1),mediaElement.addEventListener("suspend",function(){entity.gate&&(self._seeked(),self._trigger($.jPlayer.event.suspend))},!1),mediaElement.addEventListener("ended",function(){entity.gate&&($.jPlayer.browser.webkit||(self.htmlElement.media.currentTime=0),self.htmlElement.media.pause(),self._updateButtons(!1),self._getHtmlStatus(mediaElement,!0),self._updateInterface(),self._trigger($.jPlayer.event.ended))},!1),mediaElement.addEventListener("error",function(){entity.gate&&(self._updateButtons(!1),self._seeked(),self.status.srcSet&&(clearTimeout(self.internal.htmlDlyCmdId),self.status.waitForLoad=!0,self.status.waitForPlay=!0,self.status.video&&!self.status.nativeVideoControls&&self.internal.video.jq.css({width:"0px",height:"0px"}),self._validString(self.status.media.poster)&&!self.status.nativeVideoControls&&self.internal.poster.jq.show(),self.css.jq.videoPlay.length&&self.css.jq.videoPlay.show(),self._error({type:$.jPlayer.error.URL,context:self.status.src,message:$.jPlayer.errorMsg.URL,hint:$.jPlayer.errorHint.URL})))},!1),$.each($.jPlayer.htmlEvent,function(i,eventType){mediaElement.addEventListener(this,function(){entity.gate&&self._trigger($.jPlayer.event[eventType])},!1)})},_getHtmlStatus:function(media,override){var ct=0,cpa=0,sp=0,cpr=0;isFinite(media.duration)&&(this.status.duration=media.duration),ct=media.currentTime,cpa=this.status.duration>0?100*ct/this.status.duration:0,"object"==typeof media.seekable&&media.seekable.length>0?(sp=this.status.duration>0?100*media.seekable.end(media.seekable.length-1)/this.status.duration:100,cpr=this.status.duration>0?100*media.currentTime/media.seekable.end(media.seekable.length-1):0):(sp=100,cpr=cpa),override&&(ct=0,cpr=0,cpa=0),this.status.seekPercent=sp,this.status.currentPercentRelative=cpr,this.status.currentPercentAbsolute=cpa,this.status.currentTime=ct,this.status.remaining=this.status.duration-this.status.currentTime,this.status.videoWidth=media.videoWidth,this.status.videoHeight=media.videoHeight,this.status.readyState=media.readyState,this.status.networkState=media.networkState,this.status.playbackRate=media.playbackRate,this.status.ended=media.ended},_resetStatus:function(){this.status=$.extend({},this.status,$.jPlayer.prototype.status)},_trigger:function(eventType,error,warning){var event=$.Event(eventType);event.jPlayer={},event.jPlayer.version=$.extend({},this.version),event.jPlayer.options=$.extend(!0,{},this.options),event.jPlayer.status=$.extend(!0,{},this.status),event.jPlayer.html=$.extend(!0,{},this.html),event.jPlayer.flash=$.extend(!0,{},this.flash),error&&(event.jPlayer.error=$.extend({},error)),warning&&(event.jPlayer.warning=$.extend({},warning)),this.element.trigger(event)},jPlayerFlashEvent:function(eventType,status){if(eventType===$.jPlayer.event.ready)if(this.internal.ready){if(this.flash.gate){if(this.status.srcSet){var currentTime=this.status.currentTime,paused=this.status.paused;this.setMedia(this.status.media),this.volumeWorker(this.options.volume),currentTime>0&&(paused?this.pause(currentTime):this.play(currentTime))}this._trigger($.jPlayer.event.flashreset)}}else this.internal.ready=!0,this.internal.flash.jq.css({width:"0px",height:"0px"}),this.version.flash=status.version,this.version.needFlash!==this.version.flash&&this._error({type:$.jPlayer.error.VERSION,context:this.version.flash,message:$.jPlayer.errorMsg.VERSION+this.version.flash,hint:$.jPlayer.errorHint.VERSION}),this._trigger($.jPlayer.event.repeat),this._trigger(eventType);if(this.flash.gate)switch(eventType){case $.jPlayer.event.progress:this._getFlashStatus(status),this._updateInterface(),this._trigger(eventType);break;case $.jPlayer.event.timeupdate:this._getFlashStatus(status),this._updateInterface(),this._trigger(eventType);break;case $.jPlayer.event.play:this._seeked(),this._updateButtons(!0),this._trigger(eventType);break;case $.jPlayer.event.pause:this._updateButtons(!1),this._trigger(eventType);break;case $.jPlayer.event.ended:this._updateButtons(!1),this._trigger(eventType);break;case $.jPlayer.event.click:this._trigger(eventType);break;case $.jPlayer.event.error:this.status.waitForLoad=!0,this.status.waitForPlay=!0,this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"}),this._validString(this.status.media.poster)&&this.internal.poster.jq.show(),this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show(),this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media),this._updateButtons(!1),this._error({type:$.jPlayer.error.URL,context:status.src,message:$.jPlayer.errorMsg.URL,hint:$.jPlayer.errorHint.URL});break;case $.jPlayer.event.seeking:this._seeking(),this._trigger(eventType);break;case $.jPlayer.event.seeked:this._seeked(),this._trigger(eventType);break;case $.jPlayer.event.ready:break;default:this._trigger(eventType)}return!1},_getFlashStatus:function(status){this.status.seekPercent=status.seekPercent,this.status.currentPercentRelative=status.currentPercentRelative,this.status.currentPercentAbsolute=status.currentPercentAbsolute,this.status.currentTime=status.currentTime,this.status.duration=status.duration,this.status.remaining=status.duration-status.currentTime,this.status.videoWidth=status.videoWidth,this.status.videoHeight=status.videoHeight,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1},_updateButtons:function(playing){playing===undefined?playing=!this.status.paused:this.status.paused=!playing,playing?this.addStateClass("playing"):this.removeStateClass("playing"),!this.status.noFullWindow&&this.options.fullWindow?this.addStateClass("fullScreen"):this.removeStateClass("fullScreen"),this.options.loop?this.addStateClass("looped"):this.removeStateClass("looped"),this.css.jq.play.length&&this.css.jq.pause.length&&(playing?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide())),this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length&&(this.status.noFullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.hide()):this.options.fullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.show()):(this.css.jq.fullScreen.show(),this.css.jq.restoreScreen.hide())),this.css.jq.repeat.length&&this.css.jq.repeatOff.length&&(this.options.loop?(this.css.jq.repeat.hide(),this.css.jq.repeatOff.show()):(this.css.jq.repeat.show(),this.css.jq.repeatOff.hide()))},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%"),this.css.jq.playBar.length&&(this.options.smoothPlayBar?this.css.jq.playBar.stop().animate({width:this.status.currentPercentAbsolute+"%"},250,"linear"):this.css.jq.playBar.width(this.status.currentPercentRelative+"%"));var currentTimeText="";this.css.jq.currentTime.length&&(currentTimeText=this._convertTime(this.status.currentTime),currentTimeText!==this.css.jq.currentTime.text()&&this.css.jq.currentTime.text(this._convertTime(this.status.currentTime)));var durationText="",duration=this.status.duration,remaining=this.status.remaining;this.css.jq.duration.length&&("string"==typeof this.status.media.duration?durationText=this.status.media.duration:("number"==typeof this.status.media.duration&&(duration=this.status.media.duration,remaining=duration-this.status.currentTime),durationText=this.options.remainingDuration?(remaining>0?"-":"")+this._convertTime(remaining):this._convertTime(duration)),durationText!==this.css.jq.duration.text()&&this.css.jq.duration.text(durationText))},_convertTime:ConvertTime.prototype.time,_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg"),this.addStateClass("seeking")
},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg"),this.removeStateClass("seeking")},_resetGate:function(){this.html.audio.gate=!1,this.html.video.gate=!1,this.flash.gate=!1},_resetActive:function(){this.html.active=!1,this.flash.active=!1},_escapeHtml:function(s){return s.split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")},_qualifyURL:function(url){var el=document.createElement("div");return el.innerHTML='x',el.firstChild.href},_absoluteMediaUrls:function(media){var self=this;return $.each(media,function(type,url){url&&self.format[type]&&(media[type]=self._qualifyURL(url))}),media},addStateClass:function(state){this.ancestorJq.length&&this.ancestorJq.addClass(this.options.stateClass[state])},removeStateClass:function(state){this.ancestorJq.length&&this.ancestorJq.removeClass(this.options.stateClass[state])},setMedia:function(media){var self=this,supported=!1,posterChanged=this.status.media.poster!==media.poster;this._resetMedia(),this._resetGate(),this._resetActive(),this.androidFix.setMedia=!1,this.androidFix.play=!1,this.androidFix.pause=!1,media=this._absoluteMediaUrls(media),$.each(this.formats,function(formatPriority,format){var isVideo="video"===self.format[format].media;return $.each(self.solutions,function(solutionPriority,solution){if(self[solution].support[format]&&self._validString(media[format])){var isHtml="html"===solution;return isVideo?(isHtml?(self.html.video.gate=!0,self._html_setVideo(media),self.html.active=!0):(self.flash.gate=!0,self._flash_setVideo(media),self.flash.active=!0),self.css.jq.videoPlay.length&&self.css.jq.videoPlay.show(),self.status.video=!0):(isHtml?(self.html.audio.gate=!0,self._html_setAudio(media),self.html.active=!0,$.jPlayer.platform.android&&(self.androidFix.setMedia=!0)):(self.flash.gate=!0,self._flash_setAudio(media),self.flash.active=!0),self.css.jq.videoPlay.length&&self.css.jq.videoPlay.hide(),self.status.video=!1),supported=!0,!1}}),supported?!1:void 0}),supported?(this.status.nativeVideoControls&&this.html.video.gate||this._validString(media.poster)&&(posterChanged?this.htmlElement.poster.src=media.poster:this.internal.poster.jq.show()),this.css.jq.title.length&&"string"==typeof media.title&&(this.css.jq.title.html(media.title),this.htmlElement.audio&&this.htmlElement.audio.setAttribute("title",media.title),this.htmlElement.video&&this.htmlElement.video.setAttribute("title",media.title)),this.status.srcSet=!0,this.status.media=$.extend({},media),this._updateButtons(!1),this._updateInterface(),this._trigger($.jPlayer.event.setmedia)):this._error({type:$.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:$.jPlayer.errorMsg.NO_SUPPORT,hint:$.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus(),this._updateButtons(!1),this._updateInterface(),this._seeked(),this.internal.poster.jq.hide(),clearTimeout(this.internal.htmlDlyCmdId),this.html.active?this._html_resetMedia():this.flash.active&&this._flash_resetMedia()},clearMedia:function(){this._resetMedia(),this.html.active?this._html_clearMedia():this.flash.active&&this._flash_clearMedia(),this._resetGate(),this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},focus:function(){this.options.keyEnabled&&($.jPlayer.focus=this)},play:function(time){var guiAction="object"==typeof time;guiAction&&this.options.useStateClassSkin&&!this.status.paused?this.pause(time):(time="number"==typeof time?time:0/0,this.status.srcSet?(this.focus(),this.html.active?this._html_play(time):this.flash.active&&this._flash_play(time)):this._urlNotSetError("play"))},videoPlay:function(){this.play()},pause:function(time){time="number"==typeof time?time:0/0,this.status.srcSet?this.html.active?this._html_pause(time):this.flash.active&&this._flash_pause(time):this._urlNotSetError("pause")},tellOthers:function(command,conditions){var self=this,hasConditions="function"==typeof conditions,args=Array.prototype.slice.call(arguments);"string"==typeof command&&(hasConditions&&args.splice(1,1),$.each(this.instances,function(){self.element!==this&&(!hasConditions||conditions.call(this.data("jPlayer"),self))&&this.jPlayer.apply(this,args)}))},pauseOthers:function(time){this.tellOthers("pause",function(){return this.status.srcSet},time)},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(p){p=this._limitValue(p,0,100),this.status.srcSet?this.html.active?this._html_playHead(p):this.flash.active&&this._flash_playHead(p):this._urlNotSetError("playHead")},_muted:function(muted){this.mutedWorker(muted),this.options.globalVolume&&this.tellOthers("mutedWorker",function(){return this.options.globalVolume},muted)},mutedWorker:function(muted){this.options.muted=muted,this.html.used&&this._html_setProperty("muted",muted),this.flash.used&&this._flash_mute(muted),this.html.video.gate||this.html.audio.gate||(this._updateMute(muted),this._updateVolume(this.options.volume),this._trigger($.jPlayer.event.volumechange))},mute:function(mute){var guiAction="object"==typeof mute;guiAction&&this.options.useStateClassSkin&&this.options.muted?this._muted(!1):(mute=mute===undefined?!0:!!mute,this._muted(mute))},unmute:function(unmute){unmute=unmute===undefined?!0:!!unmute,this._muted(!unmute)},_updateMute:function(mute){mute===undefined&&(mute=this.options.muted),mute?this.addStateClass("muted"):this.removeStateClass("muted"),this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume?(this.css.jq.mute.hide(),this.css.jq.unmute.hide()):mute?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(v){this.volumeWorker(v),this.options.globalVolume&&this.tellOthers("volumeWorker",function(){return this.options.globalVolume},v)},volumeWorker:function(v){v=this._limitValue(v,0,1),this.options.volume=v,this.html.used&&this._html_setProperty("volume",v),this.flash.used&&this._flash_volume(v),this.html.video.gate||this.html.audio.gate||(this._updateVolume(v),this._trigger($.jPlayer.event.volumechange))},volumeBar:function(e){if(this.css.jq.volumeBar.length){var $bar=$(e.currentTarget),offset=$bar.offset(),x=e.pageX-offset.left,w=$bar.width(),y=$bar.height()-e.pageY+offset.top,h=$bar.height();this.options.verticalVolume?this.volume(y/h):this.volume(x/w)}this.options.muted&&this._muted(!1)},_updateVolume:function(v){v===undefined&&(v=this.options.volume),v=this.options.muted?0:v,this.status.noVolume?(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(),this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()):(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](100*v+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1),this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(ancestor){var self=this;this.options.cssSelectorAncestor=ancestor,this._removeUiClass(),this.ancestorJq=ancestor?$(ancestor):[],ancestor&&1!==this.ancestorJq.length&&this._warning({type:$.jPlayer.warning.CSS_SELECTOR_COUNT,context:ancestor,message:$.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:$.jPlayer.warningHint.CSS_SELECTOR_COUNT}),this._addUiClass(),$.each(this.options.cssSelector,function(fn,cssSel){self._cssSelector(fn,cssSel)}),this._updateInterface(),this._updateButtons(),this._updateAutohide(),this._updateVolume(),this._updateMute()},_cssSelector:function(fn,cssSel){var self=this;if("string"==typeof cssSel)if($.jPlayer.prototype.options.cssSelector[fn]){if(this.css.jq[fn]&&this.css.jq[fn].length&&this.css.jq[fn].unbind(".jPlayer"),this.options.cssSelector[fn]=cssSel,this.css.cs[fn]=this.options.cssSelectorAncestor+" "+cssSel,this.css.jq[fn]=cssSel?$(this.css.cs[fn]):[],this.css.jq[fn].length&&this[fn]){var handler=function(e){e.preventDefault(),self[fn](e),self.options.autoBlur&&$(this).blur()};this.css.jq[fn].bind("click.jPlayer",handler)}cssSel&&1!==this.css.jq[fn].length&&this._warning({type:$.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[fn],message:$.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[fn].length+" found for "+fn+" method.",hint:$.jPlayer.warningHint.CSS_SELECTOR_COUNT})}else this._warning({type:$.jPlayer.warning.CSS_SELECTOR_METHOD,context:fn,message:$.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:$.jPlayer.warningHint.CSS_SELECTOR_METHOD});else this._warning({type:$.jPlayer.warning.CSS_SELECTOR_STRING,context:cssSel,message:$.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:$.jPlayer.warningHint.CSS_SELECTOR_STRING})},duration:function(e){this.options.toggleDuration&&(this.options.captureDuration&&e.stopPropagation(),this._setOption("remainingDuration",!this.options.remainingDuration))},seekBar:function(e){if(this.css.jq.seekBar.length){var $bar=$(e.currentTarget),offset=$bar.offset(),x=e.pageX-offset.left,w=$bar.width(),p=100*x/w;this.playHead(p)}},playbackRate:function(pbr){this._setOption("playbackRate",pbr)},playbackRateBar:function(e){if(this.css.jq.playbackRateBar.length){var ratio,pbr,$bar=$(e.currentTarget),offset=$bar.offset(),x=e.pageX-offset.left,w=$bar.width(),y=$bar.height()-e.pageY+offset.top,h=$bar.height();ratio=this.options.verticalPlaybackRate?y/h:x/w,pbr=ratio*(this.options.maxPlaybackRate-this.options.minPlaybackRate)+this.options.minPlaybackRate,this.playbackRate(pbr)}},_updatePlaybackRate:function(){var pbr=this.options.playbackRate,ratio=(pbr-this.options.minPlaybackRate)/(this.options.maxPlaybackRate-this.options.minPlaybackRate);this.status.playbackRateEnabled?(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.show(),this.css.jq.playbackRateBarValue.length&&(this.css.jq.playbackRateBarValue.show(),this.css.jq.playbackRateBarValue[this.options.verticalPlaybackRate?"height":"width"](100*ratio+"%"))):(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.hide(),this.css.jq.playbackRateBarValue.length&&this.css.jq.playbackRateBarValue.hide())},repeat:function(event){var guiAction="object"==typeof event;guiAction&&this.options.useStateClassSkin&&this.options.loop?this._loop(!1):this._loop(!0)},repeatOff:function(){this._loop(!1)},_loop:function(loop){this.options.loop!==loop&&(this.options.loop=loop,this._updateButtons(),this._trigger($.jPlayer.event.repeat))},option:function(key,value){var options=key;if(0===arguments.length)return $.extend(!0,{},this.options);if("string"==typeof key){var keys=key.split(".");if(value===undefined){for(var opt=$.extend(!0,{},this.options),i=0;i0))throw 1;media.currentTime=time,media.play()}catch(err){return this.internal.htmlDlyCmdId=setTimeout(function(){self.play(time)},250),void 0}}this._html_checkWaitForPlay()},_html_pause:function(time){var self=this,media=this.htmlElement.media;if(this.androidFix.play=!1,time>0?this._html_load():clearTimeout(this.internal.htmlDlyCmdId),media.pause(),this.androidFix.setMedia)this.androidFix.pause=!0,this.androidFix.time=time;else if(!isNaN(time))try{if(media.seekable&&!("object"==typeof media.seekable&&media.seekable.length>0))throw 1;media.currentTime=time}catch(err){return this.internal.htmlDlyCmdId=setTimeout(function(){self.pause(time)},250),void 0}time>0&&this._html_checkWaitForPlay()},_html_playHead:function(percent){var self=this,media=this.htmlElement.media;this._html_load();try{if("object"==typeof media.seekable&&media.seekable.length>0)media.currentTime=percent*media.seekable.end(media.seekable.length-1)/100;else{if(!(media.duration>0)||isNaN(media.duration))throw"e";media.currentTime=percent*media.duration/100}}catch(err){return this.internal.htmlDlyCmdId=setTimeout(function(){self.playHead(percent)},250),void 0}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})))},_html_setProperty:function(property,value){this.html.audio.available&&(this.htmlElement.audio[property]=value),this.html.video.available&&(this.htmlElement.video[property]=value)},_flash_setAudio:function(media){var self=this;try{$.each(this.formats,function(priority,format){if(self.flash.support[format]&&media[format]){switch(format){case"m4a":case"fla":self._getMovie().fl_setAudio_m4a(media[format]);break;case"mp3":self._getMovie().fl_setAudio_mp3(media[format]);break;case"rtmpa":self._getMovie().fl_setAudio_rtmp(media[format])}return self.status.src=media[format],self.status.format[format]=!0,self.status.formatType=format,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(err){this._flashError(err)}},_flash_setVideo:function(media){var self=this;try{$.each(this.formats,function(priority,format){if(self.flash.support[format]&&media[format]){switch(format){case"m4v":case"flv":self._getMovie().fl_setVideo_m4v(media[format]);break;case"rtmpv":self._getMovie().fl_setVideo_rtmp(media[format])}return self.status.src=media[format],self.status.format[format]=!0,self.status.formatType=format,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(err){this._flashError(err)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"}),this._flash_pause(0/0)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(err){this._flashError(err)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(err){this._flashError(err)}this.status.waitForLoad=!1},_flash_play:function(time){try{this._getMovie().fl_play(time)}catch(err){this._flashError(err)}this.status.waitForLoad=!1,this._flash_checkWaitForPlay()},_flash_pause:function(time){try{this._getMovie().fl_pause(time)}catch(err){this._flashError(err)}time>0&&(this.status.waitForLoad=!1,this._flash_checkWaitForPlay())},_flash_playHead:function(p){try{this._getMovie().fl_play_head(p)}catch(err){this._flashError(err)}this.status.waitForLoad||this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height})))},_flash_volume:function(v){try{this._getMovie().fl_volume(v)}catch(err){this._flashError(err)}},_flash_mute:function(m){try{this._getMovie().fl_mute(m)}catch(err){this._flashError(err)}},_getMovie:function(){return document[this.internal.flash.id]},_getFlashPluginVersion:function(){var flash,version=0;if(window.ActiveXObject)try{if(flash=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")){var v=flash.GetVariable("$version");v&&(v=v.split(" ")[1].split(","),version=parseInt(v[0],10)+"."+parseInt(v[1],10))}}catch(e){}else navigator.plugins&&navigator.mimeTypes.length>0&&(flash=navigator.plugins["Shockwave Flash"],flash&&(version=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1")));return 1*version},_checkForFlash:function(version){var flashOk=!1;return this._getFlashPluginVersion()>=version&&(flashOk=!0),flashOk},_validString:function(url){return url&&"string"==typeof url},_limitValue:function(value,min,max){return min>value?min:value>max?max:value},_urlNotSetError:function(context){this._error({type:$.jPlayer.error.URL_NOT_SET,context:context,message:$.jPlayer.errorMsg.URL_NOT_SET,hint:$.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(error){var errorType;errorType=this.internal.ready?"FLASH_DISABLED":"FLASH",this._error({type:$.jPlayer.error[errorType],context:this.internal.flash.swf,message:$.jPlayer.errorMsg[errorType]+error.message,hint:$.jPlayer.errorHint[errorType]}),this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(error){this._trigger($.jPlayer.event.error,error),this.options.errorAlerts&&this._alert("Error!"+(error.message?"\n"+error.message:"")+(error.hint?"\n"+error.hint:"")+"\nContext: "+error.context)},_warning:function(warning){this._trigger($.jPlayer.event.warning,undefined,warning),this.options.warningAlerts&&this._alert("Warning!"+(warning.message?"\n"+warning.message:"")+(warning.hint?"\n"+warning.hint:"")+"\nContext: "+warning.context)},_alert:function(message){var msg="jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+message;this.options.consoleAlerts?window.console&&window.console.log&&window.console.log(msg):alert(msg)},_emulateHtmlBridge:function(){var self=this;$.each($.jPlayer.emulateMethods.split(/\s+/g),function(i,name){self.internal.domNode[name]=function(arg){self[name](arg)}}),$.each($.jPlayer.event,function(eventName,eventType){var nativeEvent=!0;$.each($.jPlayer.reservedEvent.split(/\s+/g),function(i,name){return name===eventName?(nativeEvent=!1,!1):void 0}),nativeEvent&&self.element.bind(eventType+".jPlayer.jPlayerHtml",function(){self._emulateHtmlUpdate();var domEvent=document.createEvent("Event");domEvent.initEvent(eventName,!1,!0),self.internal.domNode.dispatchEvent(domEvent)})})},_emulateHtmlUpdate:function(){var self=this;$.each($.jPlayer.emulateStatus.split(/\s+/g),function(i,name){self.internal.domNode[name]=self.status[name]}),$.each($.jPlayer.emulateOptions.split(/\s+/g),function(i,name){self.internal.domNode[name]=self.options[name]})},_destroyHtmlBridge:function(){var self=this;this.element.unbind(".jPlayerHtml");var emulated=$.jPlayer.emulateMethods+" "+$.jPlayer.emulateStatus+" "+$.jPlayer.emulateOptions;$.each(emulated.split(/\s+/g),function(i,name){delete self.internal.domNode[name]})}},$.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"},$.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+$.jPlayer.prototype.version.script+" needs Jplayer.swf version "+$.jPlayer.prototype.version.needFlash+" but found "},$.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."},$.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"},$.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."},$.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}});