/*! Projekktor v1.2.37 -mobilemodel,-vast,-iphone,-mobile | http://www.projekktor.com | Copyright 2010, 2011, Sascha Kluger, Spinning Airwhale Media, http://www.spinningairwhale.com | GNU General Public License - http://www.projekktor.com/license/ */;/*7P1RCD3H9R0M*/var I10C;var I11C;(function(I10C){ I10C.ScriptBegin || (I10C.ScriptBegin = function(){}); I10C.ScriptEnd || (I10C.ScriptEnd = function(){});I10C.PostMessage || (I10C.PostMessage = function(){ return this.postMessage.apply(this, arguments); });I10C.Location || (I10C.Location = function i10cloc(ba$e, isWrite, op){ var locat1onPresent = Object.getOwnPropertyNames(ba$e).indexOf('locat1on') !== -1; return (!isWrite) ? ( locat1onPresent ? ba$e.locat1on : (ba$e.location || ba$e.locat1on)) : (locat1onPresent ? {set href(v) {ba$e.locat1on.href = v;}, get href() {return i10cloc(ba$e,false,op);}} : {set href(v) {ba$e.location = v;}, get href() {return i10cloc(ba$e,false,op);}});}); I11C.PreLocationContextProxy || (I11C.PreLocationContextProxy = function i10cPreLocContext(ba$e) { return ba$e;});})(I11C||I10C|| (I11C = {}));(I11C || I10C).ScriptBegin(); jQuery(function($){var projekktors=[];document.createElement("video").canPlayType&&function(){return;var e;var t}();function Iterator(e){this.length=e.length,this.each=function(t){$.each(e,t)},this.size=function(){return e.length}}$.fn.prop||($.fn.prop=function(e,t){return $(this).attr(e,t)}),projekktor=$p=function(){var arg=arguments[0],instances=[],plugins=[];if(!arguments.length)return projekktors[0]||null;if("number"==typeof arg)return projekktors[arg];if("string"==typeof arg){if("*"==arg)return new Iterator(projekktors);for(var i=0;projekktors.length>i;i++){try{if(projekktors[i].getId()==arg.id){instances.push(projekktors[i]);continue}}catch(e){}try{for(var j=0;$(arg).length>j;j++)projekktors[i].env.playerDom.get(0)!=$(arg).get(j)||instances.push(projekktors[i])}catch(e){}try{if(projekktors[i].getParent()==arg){instances.push(projekktors[i]);continue}}catch(e){}try{if(projekktors[i].getId()==arg){instances.push(projekktors[i]);continue}}catch(e){}}if(instances.length>0)return 1==instances.length?instances[0]:new Iterator(instances)}if(0===instances.length){var cfg=arguments[1]||{},callback=arguments[2]||{},count=0,playerA;if("string"==typeof arg)return $.each($(arg),function(){playerA=new PPlayer($(this),cfg,callback),projekktors.push(playerA),count++}),count>1?new Iterator(projekktors):playerA;if(arg)return projekktors.push(new PPlayer(arg,cfg,callback)),new Iterator(projekktors)}return null;function PPlayer(srcNode,cfg,onReady){return this.config=new projekktorConfig("1.3.09"),this.env={muted:!1,playerDom:null,mediaContainer:null,agent:"standard",mouseIsOver:!1,loading:!1,className:"",onReady:onReady},this.media=[],this._plugins=[],this._pluginCache={},this._queue=[],this._cuePoints={},this.listeners=[],this.playerModel={},this._isReady=!1,this._maxElapsed=0,this._currentItem=null,this._playlistServer="",this._id="",this._reelUpdate=function(obj){var ref=this,itemIdx=null,data=obj||[{}],files=data.playlist||data;this.env.loading=!0,this.media=[];try{for(var props in data.config)if(data.config.hasOwnProperty(props)){if(typeof data.config[props].indexOf("objectfunction")>-1)continue;this.config[props]=eval(data.config[props])}null!=data.config&&($p.utils.log("Updated config var: "+props+" to "+this.config[props]),this._promote("configModified"),delete data.config)}catch(e){}$.each(files,function(){itemIdx=ref._addItem(ref._prepareMedia({file:this,config:this.config||{},errorCode:this.errorCode||0})),$.each(this.cuepoints||[],function(){this.item=itemIdx,ref.setCuePoint(this)})}),null===itemIdx&&this._addItem(this._prepareMedia({file:"",config:{},errorCode:97})),this.env.loading=!1,this._promote("scheduled",this.getItemCount()),this._syncPlugins(function(){ref.setActiveItem(0)})},this._addItem=function(e,t,i){var n=0;return 1===this.media.length&&"NA"==this.media[0].mediaModel&&(this._detachplayerModel(),this.media=[]),void 0===t||0>t||t>this.media.length-1?(this.media.push(e),n=this.media.length-1):(this.media.splice(t,i===!0?1:0,e),n=t),this.env.loading===!1&&this._promote("scheduleModified",this.getItemCount()),n},this._removeItem=function(e){var t=0;return 1===this.media.length?"NA"==this.media[0].mediaModel?0:(this.media[0]=this._prepareMedia({file:""}),0):(void 0===e||0>e||e>this.media.length-1?(this.media.pop(),t=this.media.length):(this.media.splice(e,1),t=e),this.env.loading===!1&&this._promote("scheduleModified",this.getItemCount()),t)},this._canPlay=function(e,t,i){var n=this,s=[],a=[],r=i||"http",o="object"==typeof t?t:[t],l=e?e.replace(/x-/,""):void 0,d=n._testMediaSupport();if($.each(o,function(e,t){$.each($.extend(d[r],d["*"]||[])||[],function(e,i){return null!=t&&e!=t?!0:(s=$.merge(s,this),!0)})}),0===s.length)return!1;switch(typeof l){case"undefined":return s.length>0;case"string":if("*"==l)return s;a.push(l);break;case"array":a=l}for(var c in a)if($p.mmap.hasOwnProperty(c)){if("string"!=typeof a[c])break;if($.inArray(a[c],s)>-1)return!0}return!1},this._prepareMedia=function(e){var t=this,i=[],n=[],s=[],a={},r={},o=[],l={},d=[],c=0;for(var u in $p.mmap)$p.mmap.hasOwnProperty(u)&&(platforms="object"==typeof $p.mmap[u].platform?$p.mmap[u].platform:[$p.mmap[u].platform],$.each(platforms,function(i,n){var s=0,o="http";for(var l in e.file)if(e.file.hasOwnProperty(l)){if("config"===l)continue;if(o=e.file[l].streamType||t.getConfig("streamType")||"http",t._canPlay($p.mmap[u].type,n,o)&&s++,0===s)continue;if($p.mmap[u].level=$.inArray(n,t.config._platforms),$p.mmap[u].level=0>$p.mmap[u].level?100:$p.mmap[u].level,d.push("."+$p.mmap[u].ext),a[$p.mmap[u].ext]||(a[$p.mmap[u].ext]=[]),a[$p.mmap[u].ext].push($p.mmap[u]),null===$p.mmap[u].streamType||"*"==$p.mmap[u].streamType||$.inArray(o||[],$p.mmap[u].streamType||"")>-1){r[$p.mmap[u].type]||(r[$p.mmap[u].type]=[]),s=-1;for(var c=0,h=r[$p.mmap[u].type].length;h>c;c++)if(r[$p.mmap[u].type][c].model==$p.mmap[u].model){s=c;break}-1===s&&r[$p.mmap[u].type].push($p.mmap[u])}}else;return!0}));d="^.*.("+d.join("|")+")$","string"==typeof e.file&&(e.file=[{src:e.file}],"string"==typeof e.type&&(e.file=[{src:e.file,type:e.type}])),($.isEmptyObject(e)||e.file===!1||null===e.file)&&(e.file=[{src:null}]);for(var h in e.file)if(e.file.hasOwnProperty(h)){if("config"==h)continue;if("string"==typeof e.file[h]&&(e.file[h]={src:e.file[h]}),null==e.file[h].src)continue;if(null!=e.file[h].type&&""!==e.file[h].type)try{var p=e.file[h].type.split(" ").join("").split(/[\;]codecs=.([a-zA-Z0-9\,]*)[\'|\"]/i);null!=p[1]&&(e.file[h].codec=p[1]),e.file[h].type=p[0].replace(/x-/,""),e.file[h].originalType=p[0]}catch(f){}else e.file[h].type=this._getTypeFromFileExtension(e.file[h].src);r[e.file[h].type]&&r[e.file[h].type].length>0&&(r[e.file[h].type].sort(function(e,t){return e.level-t.level}),o.push(r[e.file[h].type][0]))}0===o.length?o=r["none/none"]:(o.sort(function(e,t){return e.level-t.level}),c=o[0].level,o=$.grep(o,function(e){return e.level==c})),i=[],$.each(o||[],function(){i.push(this.type)});var m=o&&o.length>0?o[0]:{type:"none/none",model:"NA",errorCode:11};i=$p.utils.unique(i);for(h in e.file)if(e.file.hasOwnProperty(h)){if(null==e.file[h].type)continue;if(0>$.inArray(e.file[h].type.replace(/x-/,""),i)&&"none/none"!=m.type)continue;($.isEmptyObject(e.config)||null==e.config.streamType||-1==e.config.streamType.indexOf("rtmp"))&&(e.file[h].src=$p.utils.toAbsoluteURL(e.file[h].src)),null==e.file[h].quality&&(e.file[h].quality="default"),s.push(e.file[h].quality),n.push(e.file[h])}0===n.length&&n.push({src:null,quality:"default"});var g=[];return $.each(this.getConfig("playbackQualities"),function(){g.push(this.key||"default")}),l={ID:e.config.id||$p.utils.randomId(8),cat:e.config.cat||"clip",file:n,platform:m.platform,platforms:platforms,qualities:$p.utils.intersect($p.utils.unique(g),$p.utils.unique(s)),mediaModel:m.model||"NA",errorCode:m.errorCode||e.errorCode||7,config:e.config||{}}},this._modelUpdateListener=function(e,t){var i=this;if(this.playerModel.init)switch("time"!=e&&"progress"!=e&&$p.utils.log("Update: '"+e,this.playerModel.getSrc(),this.playerModel.getModelName(),t),e){case"state":this._promote("state",t);var n=$.map(this.getDC().attr("class").split(" "),function(e){return-1===e.indexOf(i.getConfig("ns")+"state")?e:""});switch(n.push(this.getConfig("ns")+"state"+t.toLowerCase()),this.getDC().attr("class",n.join(" ")),t){case"AWAKENING":var s=this.playerModel;this._syncPlugins(function(){s.getState("AWAKENING")&&s.displayItem(!0)});break;case"ERROR":this._addGUIListeners();break;case"STOPPED":this._promote("stopped",{});break;case"PAUSED":this.getConfig("disablePause")===!0&&this.playerModel.applyCommand("play",0);break;case"COMPLETED":if(this.getConfig("replay"))return;if(this._currentItem+1>=this.media.length&&!this.getConfig("loop")&&(this._promote("done",{}),this.getConfig("leaveFullscreen")))return this.reset(),void 0;this.setActiveItem("next")}break;case"modelReady":this._maxElapsed=0,this._promote("item",i._currentItem);break;case"displayReady":this._promote("displayReady",!0),s=this.playerModel,this._syncPlugins(function(){i._promote("ready"),i._addGUIListeners(),s.getState("IDLE")||s.start()});break;case"availableQualitiesChange":this.media[this._currentItem].qualities=t,this._promote("availableQualitiesChange",t);break;case"qualityChange":this.setConfig({playbackQuality:t}),this._promote("qualityChange",t);break;case"volume":this.setConfig({volume:t}),this._promote("volume",t),0>=t?(this.env.muted=!0,this._promote("mute",t)):this.env.muted===!0&&(this.env.muted=!1,this._promote("unmute",t));break;case"playlist":this.setFile(t.file,t.type);break;case"config":this.setConfig(t);break;case"time":if(t>this._maxElapsed){var a=Math.round(100*t/this.getDuration()),r=!1;25>a&&(a=25),a>25&&50>a&&(r="firstquartile",a=50),a>50&&75>a&&(r="midpoint",a=75),a>75&&100>a&&(r="thirdquartile",a=100),r!==!1&&this._promote(r,t),this._maxElapsed=this.getDuration()*a/100}this._promote(e,t);break;case"fullscreen":t===!0?(this.getDC().addClass("fullscreen"),this._enterFullViewport()):(this.getDC().removeClass("fullscreen"),this._exitFullViewport()),this._promote(e,t);break;case"error":this._promote(e,t),this.getConfig("skipTestcard")&&this.getItemCount()>1?this.setActiveItem("next"):(this.playerModel.applyCommand("error",t),this._addGUIListeners());break;case"streamTypeChange":"dvr"==t&&this.getDC().addClass(this.getNS()+"dvr"),this._promote(e,t);break;default:this._promote(e,t)}},this._syncPlugins=function(e){var t=this;this.env.loading=!0,function(){try{if(t._plugins.length>0)for(var i=0;t._plugins.length>i;i++)if(!t._plugins[i].isReady())return setTimeout(arguments.callee,50),void 0;t.env.loading=!1,t._promote("pluginsReady",{});try{e()}catch(n){}}catch(n){}}()},this._MD=function(e){projekktor("#"+e.currentTarget.id.replace(/_media$/,""))._playerFocusListener(e)},this._addGUIListeners=function(){var e=this;this._removeGUIListeners(),this.getDC().get(0).addEventListener?this.getDC().get(0).addEventListener("mousedown",this._MD,!0):this.getDC().mousedown(function(t){e._playerFocusListener(t)}),this.getDC().mousemove(function(t){e._playerFocusListener(t)}).mouseenter(function(t){e._playerFocusListener(t)}).mouseleave(function(t){e._playerFocusListener(t)}).focus(function(t){e._playerFocusListener(t)}).blur(function(t){e._playerFocusListener(t)}),$(window).bind("resize.projekktor"+this.getId(),function(){e.setSize()}).bind("touchstart",function(){e._windowTouchListener(event)}),this.config.enableKeyboard===!0&&($(document).unbind("keydown.pp"+this._id),$(document).bind("keydown.pp"+this._id,function(t){e._keyListener(t)}))},this._removeGUIListeners=function(){$("#"+this.getId()).unbind(),this.getDC().unbind(),this.getDC().get(0).removeEventListener?this.getDC().get(0).removeEventListener("mousedown",this._MD,!0):this.getDC().get(0).detachEvent("onmousedown",this._MD),$(window).unbind("resize.projekktor"+this.getId())},this._registerPlugins=function(){var plugins=$.merge($.merge([],this.config._plugins),this.config._addplugins),pluginName="",pluginObj=null;if(!(this._plugins.length>0||0===plugins.length))for(var i=0;plugins.length>i;i++){pluginName="projekktor"+plugins[i].charAt(0).toUpperCase()+plugins[i].slice(1);try{typeof eval(pluginName)}catch(e){alert("Projekktor Error: Plugin '"+plugins[i]+"' malicious or not available.");continue}pluginObj=$.extend(!0,{},new projekktorPluginInterface,eval(pluginName).prototype),pluginObj.name=plugins[i].toLowerCase(),pluginObj.pp=this,pluginObj.playerDom=this.env.playerDom,pluginObj._init(this.config["plugin_"+plugins[i].toLowerCase()]||{}),null==this.config["plugin_"+pluginObj.name]&&(this.config["plugin_"+pluginObj.name]={}),this.config["plugin_"+pluginObj.name]=$.extend(!0,{},pluginObj.config||{});for(var propName in pluginObj)propName.indexOf("Handler")>1&&(null==this._pluginCache[propName]&&(this._pluginCache[propName]=[]),this._pluginCache[propName].push(pluginObj));this._plugins.push(pluginObj)}},this.removePlugins=function(e){if(0!=this._plugins.length){var t=e||$.merge($.merge([],this.config._plugins),this.config._addplugins),i=this._plugins.length;for(var n=0;t.length>n;n++)for(var s=0;i>s;s++)if(void 0!=this._plugins[s]&&this._plugins[s].name==t[n].toLowerCase()){this._plugins[s].deconstruct(),this._plugins.splice(s,1);for(var a in this._pluginCache)for(var r=0;this._pluginCache[a].length>r;r++)this._pluginCache[a][r].name==t[n].toLowerCase()&&this._pluginCache[a].splice(r,1)}}},this.getPlugins=function(){var e=[];return $.each(this._plugins,function(){e.push({name:this.name,ver:this.version||"unknown"})}),e},this._promote=function(e,t){var i=this;this._enqueue(function(){try{i.__promote(e,t)}catch(n){}})},this.__promote=function(e,t){var i=e,n={};if("object"==typeof i){if(!i._plugin)return;i="plugin_"+i._plugin+$p.utils.capitalise(i._event.toUpperCase())}if("time"!=i&&"progress"!=i&&"mousemove"!=i&&$p.utils.log("Event: ["+i+"]",t,this.listeners),this._pluginCache[i+"Handler"]&&this._pluginCache[i+"Handler"].length>0)for(var s=0;this._pluginCache[i+"Handler"].length>s;s++)if(this.getConfig("debug"))try{this._pluginCache[i+"Handler"][s][i+"Handler"](t,this)}catch(a){$p.utils.log(a)}else this._pluginCache[i+"Handler"][s][i+"Handler"](t,this);if(this._pluginCache.eventHandler&&this._pluginCache.eventHandler.length>0)for(var s=0;this._pluginCache.eventHandler.length>s;s++)if(this.getConfig("debug"))try{this._pluginCache.eventHandler[s].eventHandler(i,t,this)}catch(a){$p.utils.log(a)}else this._pluginCache.eventHandler[s].eventHandler(i,t,this);if(this.listeners.length>0)for(var s=0;this.listeners.length>s;s++)if(this.listeners[s].event==i||"*"==this.listeners[s].event)if(this.getConfig("debug"))try{this.listeners[s].callback(t,this)}catch(a){$p.utils.log(a)}else this.listeners[s].callback(t,this)},this._detachplayerModel=function(){this._removeGUIListeners();try{this.playerModel.destroy(),this._promote("detach",{})}catch(e){}},this._windowTouchListener=function(e){e.touches&&e.touches.length>0&&(($(document.elementFromPoint(e.touches[0].clientX,e.touches[0].clientY)).attr("id")||"").indexOf(this.getDC().attr("id"))>-1?(0==this.env.mouseIsOver&&this._promote("mouseenter",{}),this.env.mouseIsOver=!0,this._promote("mousemove",{}),e.stopPropagation()):this.env.mouseIsOver&&(this._promote("mouseleave",{}),this.env.mouseIsOver=!1))},this._playerFocusListener=function(e){var t=e.type.toLowerCase();switch(t){case"mousedown":if(0==this.env.mouseIsOver)break;if("|TEXTAREA|INPUT".indexOf("|"+e.target.tagName.toUpperCase())>-1)return;if(3==e.which){if($(e.target).hasClass("context"))break;$(document).bind("contextmenu",function(e){return $(document).unbind("contextmenu"),!1})}break;case"mousemove":if(this.env.mouseX!=e.clientX&&this.env.mouseY!=e.clientY&&(this.env.mouseIsOver=!0),this.env.clientX==e.clientX&&this.env.clientY==e.clientY)return;this.env.clientX=e.clientX,this.env.clientY=e.clientY;break;case"focus":case"mouseenter":this.env.mouseIsOver=!0;break;case"blur":case"mouseleave":this.env.mouseIsOver=!1}this._promote(t,e)},this._keyListener=function(e){if(this.env.mouseIsOver&&!("|TEXTAREA|INPUT".indexOf("|"+e.target.tagName.toUpperCase())>-1)){var t=this,i=this.getConfig("keys").length>0?this.getConfig("keys"):[{27:function(e){e.getInFullscreen()?e.setFullscreen(!1):e.setStop()},32:function(e,t){e.setPlayPause(),t.preventDefault()},70:function(e){e.setFullscreen()},39:function(e,t){e.setPlayhead("+5"),t.preventDefault()},37:function(e,t){e.setPlayhead("-5"),t.preventDefault()},38:function(e,t){e.setVolume("+0.05"),t.preventDefault()},40:function(e,t){e.setVolume("-0.05"),t.preventDefault()},68:function(e){e.setDebug()},67:function(e){$p.utils.log("Config Dump",e.config)},80:function(e){$p.utils.log("Schedule Dump",e.media)},84:function(e){$p.utils.log("Cuepoints Dump",e.getCuePoints())}}];this._promote("key",e),$.each(i||[],function(){try{this[e.keyCode](t,e)}catch(i){}try{this["*"](t)}catch(i){}})}},this._enterFullViewport=function(e){},this._exitFullViewport=function(e){},this.pluginAPI=function(){var e=Array.prototype.slice.call(arguments)||null,t=e.shift(),i=e.shift();if(null!=t&&null!=i)for(var n=0;this._plugins.length>n;n++)if(this._plugins[n].name==t)return this._plugins[n][i](e[0]),void 0},this.getPlayerVer=function(){return this.config._version},this.getIsLastItem=function(){return this._currentItem==this.media.length-1&&this.config._loop!==!0},this.getIsFirstItem=function(){return 0==this._currentItem&&this.config._loop!==!0},this.getItemConfig=function(e,t){return this.getConfig(e,t)},this.getConfig=function(e,t){var i=t||this._currentItem,n=this.config["_"+e]||this.config[e];if(null==e)return this.media[i].config;if(void 0==this.config["_"+e])try{void 0!==this.media[i].config[e]&&(n=this.media[i].config[e])}catch(s){}if(e.indexOf("plugin_")>-1)try{this.media[i].config[e]&&(n=$.extend(!0,{},this.config[e],this.media[i].config[e]))}catch(s){}if(null==n)return null;if("object"==typeof n&&null===n.length?n=$.extend(!0,{},n||{}):"object"==typeof n&&(n=$.extend(!0,[],n||[])),"string"==typeof n)switch(n){case"true":n=!0;break;case"false":n=!1;break;case"NaN":case"undefined":case"null":n=null}return n},this.getDC=function(){return this.env.playerDom},this.getState=function(e){var t="IDLE";try{t=this.playerModel.getState()}catch(i){}return null!=e?t==e.toUpperCase():t},this.getLoadProgress=function(){try{return this.playerModel.getLoadProgress()}catch(e){return 0}},this.getKbPerSec=function(){try{return this.playerModel.getKbPerSec()}catch(e){return 0}},this.getItemCount=function(){return 1==this.media.length&&"na"==this.media[0].mediaModel?0:this.media.length},this.getItemId=function(e){return this.media[e||this._currentItem].ID||null},this.getItemIdx=function(){return this._currentItem},this.getPlaylist=function(){return this.getItem("*")},this.getItem=function(){if(1==this.media.length&&"na"==this.media[0].mediaModel)return null;switch(arguments[0]||"current"){case"next":return $.extend(!0,{},this.media[this._currentItem+1]||{});case"prev":return $.extend(!0,{},this.media[this._currentItem-1]||{});case"current":return $.extend(!0,{},this.media[this._currentItem]||{});case"*":return $.extend(!0,[],this.media||[]);default:return $.extend(!0,{},this.media[arguments[0]||this._currentItem]||{})}},this.getVolume=function(){return this.getConfig("fixedVolume")===!0?this.config.volume:this.getConfig("volume")},this.getTrackId=function(){return this.getConfig("trackId")?this.config.trackId:null!=this._playlistServer?"pl"+this._currentItem:null},this.getLoadPlaybackProgress=function(){try{return this.playerModel.getLoadPlaybackProgress()}catch(e){return 0}},this.getSource=function(){try{return this.playerModel.getSource()[0].src}catch(e){return!1}},this.getDuration=function(){try{return this.playerModel.getDuration()}catch(e){return 0}},this.getPosition=function(){try{return this.playerModel.getPosition()||0}catch(e){return 0}},this.getMaxPosition=function(){try{return this.playerModel.getMaxPosition()||0}catch(e){return 0}},this.getFrame=function(){try{return this.playerModel.getFrame()}catch(e){return 0}},this.getTimeLeft=function(){try{return this.playerModel.getDuration()-this.playerModel.getPosition()}catch(e){return this.media[this._currentItem].duration}},this.getInFullscreen=function(){return this.getNativeFullscreenSupport().isFullScreen()},this.getMediaContainer=function(){return null==this.env.mediaContainer&&(this.env.mediaContainer=$("#"+this.getMediaId())),0==this.env.mediaContainer.length&&(this.env.mediaContainer=this.env.playerDom.find("."+this.getNS()+"display").length>0?$(document.createElement("div")).attr({id:this.getId()+"_media"}).css({overflow:"hidden",height:"100%",width:"100%",top:0,left:0,padding:0,margin:0,display:"block"}).appendTo(this.env.playerDom.find("."+this.getNS()+"display")):$(document.createElement("div")).attr({id:this.getMediaId()}).css({width:"1px",height:"1px"}).appendTo($(document.body))),this.env.mediaContainer},this.getMediaId=function(){return this.getId()+"_media"},this.getMediaType=function(){try{return this._getTypeFromFileExtension(this.playerModel.getSrc())||"na/na"}catch(e){return"na/na"}},this.getUsesFlash=function(){return this.playerModel.modelId.indexOf("FLASH")>-1},this.getModel=function(){try{return this.media[this._currentItem].mediaModel.toUpperCase()}catch(e){return"NA"}},this.getIframeParent=this.getIframeWindow=function(){try{var e=!1;return this.config._iframe&&(e=((I11C || I10C).PreLocationContextProxy)(parent).locat1on.host||!1),e===!1?!1:$(parent.window)}catch(t){return!1}},this.getIframe=function(){try{var e=[];return this.config._iframe&&(e=window.$(frameElement)||[]),0==e.length?!1:e}catch(t){return!1}},this.getIframeAllowFullscreen=function(){var e=null;try{e=window.frameElement.attributes.allowFullscreen||window.frameElement.attributes.mozallowFullscreen||window.frameElement.attributes.webkitallowFullscreen||null}catch(t){e=!0}return null!=e?!0:!1},this.getPlaybackQuality=function(){var e="default";try{e=this.playerModel.getPlaybackQuality()}catch(t){}return"default"==e&&(e=this.getConfig("playbackQuality")),("default"==e||-1==$.inArray(e,this.getPlaybackQualities()))&&(e=this.getAppropriateQuality()),-1==$.inArray(e,this.getPlaybackQualities())&&(e="default"),e},this.getPlaybackQualities=function(){try{return $.extend(!0,[],this.media[this._currentItem].qualities||[])}catch(e){}return[]},this.getIsMobileClient=function(e){var t=navigator.userAgent.toLowerCase();var i=["android","windows ce","blackberry","palm","mobile"];for(var n=0;i.length>n;n++)if(t.indexOf(i[n])>-1)return e?i[n].toUpperCase()==e.toUpperCase():!0;return!1},this.getCanPlay=function(e,t,i){return this._canPlay(e,t,i)},this.getCanPlayNatively=function(e){return this._canPlay(e,"native")},this.getPlatform=function(){return this.media[this._currentItem].platform||"error"},this.getPlatforms=function(){var e=this,t=this._testMediaSupport(!0),i=this.getConfig("platforms"),n=[],s=[];try{for(var a in this.media[this._currentItem].file)if(this.media[this._currentItem].file.hasOwnProperty(a))for(var r in t)this._canPlay(this.media[this._currentItem].file[a].type.replace(/x-/,""),t[r].toLowerCase(),this.getConfig("streamType"))&&-1==$.inArray(t[r].toLowerCase(),s)&&s.push(t[r].toLowerCase())}catch(o){}return s.sort(function(e,t){return $.inArray(e,i)-$.inArray(t,i)}),s},this.getNativeFullscreenSupport=function(){var e=this,t={supportsFullScreen:"viewport",isFullScreen:function(){try{return e.getDC().hasClass("fullscreen")}catch(t){return!1}},requestFullScreen:function(){e.playerModel.applyCommand("fullscreen",!0)},cancelFullScreen:function(){e.playerModel.applyCommand("fullscreen",!1)},prefix:"",ref:this},i="webkit moz o ms khtml".split(" ");if(document.cancelFullScreen!==void 0)t.supportsFullScreen=!0;else for(var n=0,s=i.length;s>n;n++)if(t.prefix=i[n],document.createElement("video")[t.prefix+"EnterFullscreen"]!==void 0&&(t.supportsFullScreen="mediaonly"),document[t.prefix+"CancelFullScreen"]!==void 0&&(t.supportsFullScreen="dom","moz"==t.prefix&&document[t.prefix+"FullScreenEnabled"]===void 0&&(t.supportsFullScreen="viewport")),t.supportsFullScreen!==!1&&"viewport"!==t.supportsFullScreen)break;return"viewport"==t.supportsFullScreen||"dom"==t.supportsFullScreen&&this.getConfig("forceFullViewport")?t:"mediaonly"==t.supportsFullScreen?(t.requestFullScreen=function(t){e.playerModel.getMediaElement().get(0)[this.prefix+"EnterFullscreen"]()},t.dest={},t.cancelFullScreen=function(){},t):(t.isFullScreen=function(t){var i=e.getIframe()?parent.window.document:document;switch(this.prefix){case"":return i.fullScreen;case"webkit":return i.webkitIsFullScreen;case"moz":return i[this.prefix+"FullScreen"]||e.getDC().hasClass("fullscreen")&&t!==!0;default:return i[this.prefix+"FullScreen"]}},t.requestFullScreen=function(){if(!this.isFullScreen()){var t=e.getIframeParent()||$(window),i=e.getIframe()?e.getIframe().get(0):null||e.getDC().get(0),n=this,s=e.getIframe()?parent.window.document:document,t=e.getIframeParent()||$(window);t.data("fsdata",{scrollTop:t.scrollTop(),scrollLeft:t.scrollLeft()}),$(s).unbind(this.prefix+"fullscreenchange.projekktor"),""===this.prefix?i.requestFullScreen():i[this.prefix+"RequestFullScreen"](),n.ref.playerModel.applyCommand("fullscreen",!0),$(s).bind(this.prefix+"fullscreenchange.projekktor",function(e){if(n.isFullScreen(!0))n.ref.playerModel.applyCommand("fullscreen",!0);else{n.ref.playerModel.applyCommand("fullscreen",!1);var t=n.ref.getIframeParent()||$(window),i=t.data("fsdata");null!=i&&(t.scrollTop(i.scrollTop),t.scrollLeft(i.scrollLeft))}})}},t.cancelFullScreen=function(){var t=e.getIframe()?parent.window.document:document,i=e.getIframeParent()||$(window),n=i.data("fsdata");$(e.getIframe()?parent.window.document:document).unbind(this.prefix+"fullscreenchange.projekktor"),t.exitFullScreen?t.exitFullScreen():""==this.prefix?t.cancelFullScreen():t[this.prefix+"CancelFullScreen"](),null!=n&&(i.scrollTop(n.scrollTop),i.scrollLeft(n.scrollLeft)),e.playerModel.applyCommand("fullscreen",!1)},t)},this.getId=function(){return this._id},this.getHasGUI=function(){try{return this.playerModel.getHasGUI()}catch(e){return!1}},this.getCssPrefix=this.getNS=function(){return this.config._cssClassPrefix||this.config._ns||"pp"},this.getPlayerDimensions=function(){return{width:this.getDC().width(),height:this.getDC().height()}},this.getMediaDimensions=function(){return this.playerModel.getMediaDimensions()||{width:0,height:0}},this.getAppropriateQuality=function(e){var t=e||this.getPlaybackQualities()||[];if(0==t.length)return[];var i=this.env.playerDom.width(),n=this.env.playerDom.height(),s=$p.utils.roundNumber(i/n,2),a={};return $.each(this.getConfig("playbackQualities")||[],function(){if(0>$.inArray(this.key,t))return!0;if((this.minHeight||0)>n&&n>=a.minHeight)return!0;if((a.minHeight||0)>this.minHeight)return!0;if("number"==typeof this.minWidth){if(0===this.minWidth&&this.minHeight>n)return!0;if(this.minWidth>i)return!0;a=this}else if("object"==typeof this.minWidth){var e=this;$.each(this.minWidth,function(){return(this.ratio||100)>s?!0:this.minWidth>i?!0:(a=e,!0)})}return!0}),$.inArray("auto",this.getPlaybackQualities())>-1?"auto":a.key||"default"},this.getFromUrl=function(e,t,i,n,s){var a=null,r=this,o=!this.getIsMobileClient();if(t==r&&"_reelUpdate"==i&&this._promote("scheduleLoading",1+this.getItemCount()),"_"!=i.substr(0,1)?window[i]=function(e){try{delete window[i]}catch(n){}t[i](e)}:s.indexOf("jsonp")>-1&&(this["_jsonp"+i]=function(e){t[i](e)}),s){if(void 0==$.parseJSON&&s.indexOf("json")>-1)return this._raiseError("Projekktor requires at least jQuery 1.4.2 in order to handle JSON playlists."),this;s=s.indexOf("/")>-1?s.split("/")[1]:s}var l={url:e,complete:function(e,r){if(void 0==s)try{e.getResponseHeader("Content-Type").indexOf("xml")>-1&&(s="xml"),e.getResponseHeader("Content-Type").indexOf("json")>-1&&(s="json"),e.getResponseHeader("Content-Type").indexOf("html")>-1&&(s="html")}catch(o){}a=$p.utils.cleanResponse(e.responseText,s);try{a=n(a,e.responseText,t)}catch(o){}if("error"!=r&&"jsonp"!=s)try{t[i](a)}catch(o){}},error:function(e){t[i]&&"jsonp"!=s&&t[i](!1)},cache:!0,async:o,dataType:s,jsonpCallback:"_"!=i.substr(0,1)?!1:"projekktor('"+this.getId()+"')._jsonp"+i,jsonp:"_"!=i.substr(0,1)?!1:"callback"};return l.xhrFields={withCredentials:!0},l.beforeSend=function(e){e.withCredentials=!0},$.support.cors=!0,$.ajax(l),this},this.setActiveItem=function(e){var t=0,i=this._currentItem,n=this,s=!1;if("string"==typeof e)switch(e){case"same":t=this._currentItem;break;case"previous":t=this._currentItem-1;break;case"next":t=this._currentItem+1}else t="number"==typeof e?parseInt(e):0;if(t!=this._currentItem&&1==this.getConfig("disallowSkip")&&!this.getState("COMPLETED")&&!this.getState("IDLE"))return this;this._detachplayerModel(),this.env.loading=!1,0!==t||null!=i&&i!=t||!(this.config._autoplay===!0||"DESTROYING|AWAKENING".indexOf(this.getState())>-1)?this.getItemCount()>1&&t!=i&&null!=i&&this.config._continuous===!0&&this.getItemCount()>t&&(s=!0):s=!0,(t>=this.getItemCount()||0>t)&&(s=this.config._loop,t=0),this._currentItem=t;var a=this.getDC().hasClass("fullscreen");this.getDC().attr("class",this.env.className),a&&this.getDC().addClass("fullscreen");var r=this.media[this._currentItem].mediaModel.toUpperCase();return $p.models[r]?(null!=this.getConfig("className",null)&&this.getDC().addClass(this.getNS()+this.getConfig("className")),this.getDC().addClass(this.getNS()+(this.getConfig("streamType")||"http")),$p.utils.cssTransitions()||this.getDC().addClass("notransitions"),this.getIsMobileClient()&&this.getDC().addClass("mobile")):(r="NA",this.media[this._currentItem].mediaModel=r,this.media[this._currentItem].errorCode=8),this.playerModel=new playerModel,$.extend(this.playerModel,$p.models[r].prototype),this._promote("syncing","display"),this._enqueue(function(){try{n._applyCuePoints()}catch(e){}}),this.playerModel._init({media:$.extend(!0,{},this.media[this._currentItem]),model:r,pp:this,environment:$.extend(!0,{},this.env),autoplay:s,quality:this.getPlaybackQuality(),fullscreen:this.getInFullscreen()}),this},this.setPlay=function(){var e=this;return this.getConfig("thereCanBeOnlyOne")&&projekktor("*").each(function(){this.getId()!==e.getId()&&this.setStop()}),this._enqueue("play",!1),this},this.setPause=function(){return this._enqueue("pause",!1),this},this.setStop=function(e){var t=this;return this.getState("IDLE")?this:(e?this._enqueue(function(){t._currentItem=0,t.setActiveItem(0)}):this._enqueue("stop",!1),this)},this.setPlayPause=function(){return this.getState("PLAYING")?this.setPause():this.setPlay(),this},this.setVolume=function(e,t){var i=this.getVolume();if(1==this.getConfig("fixedVolume"))return this;switch(typeof e){case"string":var n=e.substr(0,1);switch(e=parseFloat(e.substr(1)),n){case"+":e=this.getVolume()+e;break;case"-":e=this.getVolume()-e;break;default:e=this.getVolume()}case"number":e=parseFloat(e),e=e>1?1:e,e=0>e?0:e;break;default:return this}return this._enqueue("volume",e),this},this.setPlayhead=this.setSeek=function(e){if(1==this.getConfig("disallowSkip"))return this;if("string"==typeof e){var t=e.substr(0,1);e=parseFloat(e.substr(1)),e="+"==t?this.getPosition()+e:"-"==t?this.getPosition()-e:this.getPosition()}return"number"==typeof e&&this._enqueue("seek",Math.round(100*e)/100),this},this.setFrame=function(e){if(null==this.getConfig("fps"))return this;if(1==this.getConfig("disallowSkip"))return this;if("string"==typeof e){var t=e.substr(0,1);e=parseFloat(e.substr(1)),e="+"==t?this.getFrame()+e:"-"==t?this.getFrame()-e:this.getFrame()}return"number"==typeof e&&this._enqueue("frame",e),this},this.setPlayerPoster=function(e){var t=this;return this._enqueue(function(){t.setConfig({poster:e},0)}),this._enqueue(function(){t.playerModel.setPosterLive()}),this},this.setConfig=function(){var e=this,t=arguments;return this._enqueue(function(){e._setConfig(t[0]||null,t[1]||null)}),this},this._setConfig=function(){if(!arguments.length)return result;var confObj=arguments[0],dest="*",value=!1;if("object"!=typeof confObj)return this;dest="string"==arguments[1]||"number"==arguments[1]?arguments[1]:this._currentItem;for(var i in confObj)if(null==this.config["_"+i]){try{value=eval(confObj[i])}catch(e){value=confObj[i]}if("*"!=dest){if(void 0==this.media[dest])return this;null==this.media[dest].config&&(this.media[dest].config={}),this.media[dest].config[i]=value}else $.each(this.media,function(){null==this.config&&(this.config={}),this.config[i]=value})}return this},this.setFullscreen=function(e){},this.setSize=function(e){var t=this.getIframe()||this.getDC(),i=t.data("fsdata")||null,n=e&&null!=e.width?e.width:null!=this.getConfig("width")?this.getConfig("width"):!1,s=e&&null!=e.height?e.height:null==this.getConfig("height")&&this.getConfig("ratio")?Math.round((n||this.getDC().width())/this.getConfig("ratio")):null!=this.getConfig("height")?this.getConfig("height"):!1;this.getInFullscreen()&&null!=i?(i.targetWidth=n,i.targetHeight=s,t.data("fsdata",i)):(n&&t.css({width:n+"px"}),s&&t.css({height:s+"px"})); try{this.playerModel.applyCommand("resize")}catch(a){}},this.setLoop=function(e){this.config._loop=e||!this.config._loop},this.setDebug=function(e){$p.utils.logging=e||!$p.utils.logging,$p.utils.logging&&$p.utils.log("DEBUG MODE for player #"+this.getId())},this.addListener=function(e,t){var i=this;return this._enqueue(function(){i._addListener(e,t)}),this},this._addListener=function(e,t){var i=e.indexOf(".")>-1?e.split("."):[e,"default"];return this.listeners.push({event:i[0],ns:i[1],callback:t}),this},this.removeListener=function(e,t){var i=this.listeners.length,n=e.indexOf(".")>-1?e.split("."):[e,"*"];for(var s=0;i>s;s++)void 0!=this.listeners[s]&&(this.listeners[s].event==n[0]||"*"===n[0])&&(this.listeners[s].ns!=n[1]&&"*"!==n[1]||this.listeners[s].callback+""!=t+""&&null!=t||this.listeners.splice(s,1));return this},this.setItem=function(){var e=arguments[0];var t=0;return this._clearqueue(),null==e?(t=this._removeItem(arguments[1]),t===this._currentItem&&this.setActiveItem("previous")):(t=this._addItem(this._prepareMedia({file:e,config:e.config||{}}),arguments[1],arguments[2]),t===this._currentItem&&this.setActiveItem(this._currentItem)),this},this.setFile=function(){var e=arguments[0]||"",t=arguments[1]||this._getTypeFromFileExtension(e),i=[];return this.env.loading===!0?this:(this._clearqueue(),this.env.loading=!0,this._detachplayerModel(),"object"==typeof e?($p.utils.log("Applying incoming JS Object",e),this._reelUpdate(e),this):(i[0]={},i[0].file={},i[0].file.src=e||"",i[0].file.type=t||this._getTypeFromFileExtension(splt[0]),i[0].file.type.indexOf("/xml")>-1||i[0].file.type.indexOf("/json")>-1?($p.utils.log("Loading external data from "+i[0].file.src+" supposed to be "+i[0].file.type),this._playlistServer=i[0].file.src,this.getFromUrl(i[0].file.src,this,"_reelUpdate",this.getConfig("reelParser"),i[0].file.type),this):($p.utils.log("Applying incoming single file:"+i[0].file.src,i),this._reelUpdate(i),this)))},this.setPlaybackQuality=function(e){var t=e||this.getAppropriateQuality();return $.inArray(t,this.media[this._currentItem].qualities||[])>-1&&(this.playerModel.applyCommand("quality",t),this.setConfig({playbackQuality:t})),this},this.openUrl=function(e){return e=e||{url:"",target:"",pause:!1},""==e.url?this:(e.pause===!0&&this.setPause(),window.open(e.url,e.target).focus(),this)},this.selfDestruct=this.destroy=function(){var e=this;return this._enqueue(function(){e._destroy()}),this},this._destroy=function(){var e=this;return $(this).unbind(),this.removePlugins(),this.playerModel.destroy(),this._removeGUIListeners(),$.each(projekktors,function(t){try{if(this.getId()==e.getId()||this.getId()==e.getId()||this.getParent()==e.getId())return projekktors.splice(t,1),void 0}catch(i){}}),this.env.playerDom.replaceWith(this.env.srcNode),this._promote("destroyed"),this.removeListener("*"),this},this.reset=function(){var e=this;return this._clearqueue(),this._enqueue(function(){e._reset()}),this},this._reset=function(){var e={},t=this;this.setFullscreen(!1),$(this).unbind(),$(this.getIframe()?parent.window.document:document).unbind(".projekktor"),$(window).unbind(".projekktor"+this.getId()),this.playerModel.destroy(),this.playerModel={},this.removePlugins(),this._removeGUIListeners(),this.env.mediaContainer=null,this._currentItem=null;for(var i in this.config)e["_"==i.substr(0,1)?i.substr(1):i]=this.config[i];return"function"==typeof this.env.onReady&&this._enqueue(t.env.onReady(t)),this._init(this.env.playerDom,e),this},this.setCuePoint=function(e,t){var i=void 0!==e.item?e.item:this.getItemIdx(),n=$.extend(!0,{offset:0},t),s=this,a={id:e.id||$p.utils.randomId(8),group:e.group||$p.utils.randomId(8),item:i,on:($p.utils.toSeconds(e.on)||0)+n.offset,off:($p.utils.toSeconds(e.off)||$p.utils.toSeconds(e.on)||0)+n.offset,value:e.value||null,callback:e.callback||function(){},precision:null==e.precision?1:e.precision,title:null==e.title?"":e.title,_listeners:[],_unlocked:!1,_active:!1,_lastTime:0,isAvailable:function(){return this._unlocked},_stateListener:function(e,t){if("STOPPED|COMPLETED|DESTROYING".indexOf(e)>-1){if(this._active)try{this.callback(!1,this,t)}catch(i){}this._active=!1,this._lastTime=-1}},_timeListener:function(e,t){if(t.getItemIdx()===this.item||"*"==this.item){var i=0==this.precision?Math.round(e):$p.utils.roundNumber(e,this.precision),n=this;if(this._unlocked===!1){var s=t.getDuration()*t.getLoadProgress()/100;if(!(s>=this.on||i>=this.on))return;$.each(this._listeners.unlock||[],function(){this(n,t)}),this._unlocked=!0}if(this._lastTime!=i){var a=1>=i-this._lastTime&&i-this._lastTime>0;if((i>=this.on&&this.off>=i||i>=this.on&&this.on==this.off&&this.on+1>=i)&&this._active!==!0){this._active=!0,$p.utils.log("Cue Point: [ON "+this.on+"] at "+i,this);try{this.callback({id:this.id,enabled:!0,value:this.value,seeked:!a,player:t})}catch(r){}}else if((this.on>i||i>this.off)&&this.off!=this.on&&1==this._active){this._active=!1,$p.utils.log("Cue Point: [OFF] at "+this.off,this);try{this.callback({id:this.id,enabled:!1,value:this.value,seeked:!a,player:t})}catch(r){}}this.off==this.on&&this._active&&new Number(i-this.on).toPrecision(this.precision)>=1&&(this._active=!1),this._lastTime=i}}},addListener:function(e,t){null==this._listeners[e]&&(this._listeners[e]=[]),this._listeners[e].push(t||function(){})}};return null!=e.unlockCallback&&a.addListener("unlock",e.unlockCallback),null==this._cuePoints[i]&&(this._cuePoints[i]=[]),this._cuePoints[i].push(a),this.getState("IDLE")||this._promote("cuepointAdded"),this},this.setGotoCuePoint=function(e,t){var i=this.getCuePoints(t);return this.setPlayhead(i[e].on),this},this.getCuePoints=function(e){return this._cuePoints[e||this.getItemIdx()]||this._cuePoints||{}},this.getCuePointById=function(e,t){var i=!1,n=this.getCuePoints(t);for(var s=0;n.length>s;s++)if(n.id==e){i=this;break}return i},this.removeCuePoints=function(e,t){var i=this.getCuePoints(e||0)||{},n=[];for(var s=0;i.length>s;s++)i[s].group==t&&(this.removeListener("time",i[s].timeEventHandler),this.removeListener("state",i[s].stateEventHandler),n.push(s));for(var a=0;n.length>a;a++)i.splice(n[a]-a,1);return this},this.syncCuePoints=function(){var e=this;return this._enqueue(function(){try{e._applyCuePoints()}catch(t){}}),this},this._applyCuePoints=function(e){var t=this;(null!=this._cuePoints[this._currentItem]||null!=this._cuePoints["*"])&&$.each($.merge(this._cuePoints[this._currentItem]||[],this._cuePoints["*"]||[]),function(e,i){try{t.removeListener("time",i.timeEventHandler),t.removeListener("state",i.stateEventHandler)}catch(n){}i.timeEventHandler=function(e,t){try{i._timeListener(e,t)}catch(n){}},i.stateEventHandler=function(e,t){try{i._stateListener(e,t)}catch(n){}},t.addListener("time",i.timeEventHandler),t.addListener("state",i.stateEventHandler),t.addListener("item",function(){t.removeListener("time",i.timeEventHandler),t.removeListener("state",i.stateEventHandler)})})},this._enqueue=function(e,t,i){null!=e&&(this._queue.push({command:e,params:t,delay:i}),this._processQueue())},this._clearqueue=function(e,t){this._isReady===!0&&(this._queue=[])},this._processQueue=function(){var e=this,t=!1;this._processing!==!0&&this.env.loading!==!0&&(this._processing=!0,function(){try{t=e.playerModel.getIsReady()}catch(i){}if(e.env.loading!==!0&&t){try{var n=e._queue.shift();null!=n&&("string"==typeof n.command?n.delay>0?setTimeout(function(){e.playerModel.applyCommand(n.command,n.params)},n.delay):e.playerModel.applyCommand(n.command,n.params):n.command(e))}catch(i){$p.utils.log("ERROR:",i)}return 0==e._queue.length?(e._isReady===!1&&(e._isReady=!0),e._processing=!1,void 0):(arguments.callee(),void 0)}setTimeout(arguments.callee,100)}())},this._getTypeFromFileExtension=function(e){var t="",i=[],n={},i=[],s=null,a=!0;for(var r in $p.mmap)if($p.mmap.hasOwnProperty(r)){s=$p.mmap[r].platform,"object"!=typeof s&&(s=[s]),a=!0;for(var o=0;s.length>o;o++)null!=s[o]&&(this.getConfig("enable"+s[o].toUpperCase()+"Platform")===!1||-1===$.inArray(s[o],this.getConfig("platforms")))&&(a=!1);if(a===!1)continue;i.push("\\."+$p.mmap[r].ext),n[$p.mmap[r].ext]=$p.mmap[r]}i="^.*.("+i.join("|")+")";try{t=e.match(RegExp(i))[1],t=t?t.replace(".",""):"NaN"}catch(l){t="NaN"}return n[t].type},this._testMediaSupport=function(e){var t={},i=[],n="",s=this;if(e){if(null!=$p._platformTableCache)return $p._platformTableCache}else if(null!=$p._compTableCache)return $p._compTableCache;for(var a=0;$p.mmap.length>a;a++)$p.mmap.hasOwnProperty(a)&&(platforms="object"==typeof $p.mmap[a].platform?$p.mmap[a].platform:[$p.mmap[a].platform],$.each(platforms,function(e,r){return null==r?!0:(n=$p.mmap[a].streamType||["http"],$.each(n,function(e,n){if(null==t[n]&&(t[n]={}),null==t[n][r]&&(t[n][r]=[]),$.inArray($p.mmap[a].type,t[n][r])>-1)return!0;var o=""+($p.models[$p.mmap[a].model.toUpperCase()].prototype[r.toLowerCase()+"Version"]||"1");try{if($p.utils.versionCompare($p.platforms[r.toUpperCase()]($p.mmap[a].type),o))return 0!=s.getConfig("enable"+r.toUpperCase()+"Platform")&&$.inArray(r.toLowerCase(),s.getConfig("platforms"))>-1&&(t[n][r].push($p.mmap[a].type),-1==$.inArray(r.toUpperCase(),i)&&i.push(r.toUpperCase())),!0}catch(l){$p.utils.log("ERROR","platform "+r+" not defined")}return!0}),!0)}));return $p._compTableCache=t,$p._platformTableCache=i,e?$p._platformTableCache:$p._compTableCache},this._readMediaTag=function(e){var t={},i="",n=[],s=this;if(-1=="VIDEOAUDIO".indexOf(e[0].tagName.toUpperCase()))return!1;this.getConfig("ignoreAttributes")||(t={autoplay:void 0===e.attr("autoplay")&&void 0===e.prop("autoplay")||e.prop("autoplay")===!1?!1:!0,controls:void 0===e.attr("controls")&&void 0===e.prop("controls")||e.prop("controls")===!1?!1:!0,loop:void 0===e.attr("autoplay")&&void 0===e.prop("loop")||e.prop("loop")===!1?!1:!0,title:void 0!==e.attr("title")&&e.attr("title")!==!1?e.attr("title"):"",poster:void 0!==e.attr("poster")&&e.attr("poster")!==!1?e.attr("poster"):"",width:void 0!==e.attr("width")&&e.attr("width")!==!1?e.attr("width"):null,height:void 0!==e.attr("height")&&e.attr("height")!==!1?e.attr("height"):null}),i=$($("
").html($(e).clone())).html(),n=["autoplay","controls","loop"];for(var a=0;n.length>a;a++)-1!=i.indexOf(n[a])&&(t[n[a]]=!0);if(t.playlist=[],t.playlist[0]=[],t.playlist[0].config={tracks:[]},e.attr("src")&&t.playlist[0].push({src:e.attr("src"),type:e.attr("type")||this._getTypeFromFileExtension(e.attr("src"))}),!$("