"use strict";if(typeof window.MagixPlayer==="undefined"){window.MagixPlayer=function(){var a={};var c=null;var f=false;var b=new Object();this.open=function(k){var j=function(l){b[l.containerID]=a.openMMPlayer(l)};if(!f){a.initMMPlayer()}if(k.containerID!==undefined){k.container=$("#"+k.containerID);if(k.container!==undefined){j(k)}}else{if(k.container!==undefined&&typeof k.container=="object"){k.containerID=k.container.attr("id");j(k)}}};this.set=function(m,j,l){var k=new Array("play","pause","stop");if(b[j]!==undefined){if(k.indexOf(m)>=0){l=(typeof(l)==="object"&&l!==null)?l:{};b[j].mmPlayer.mpFunctions(m,l)}else{if(m==="destroy"){b[j].mmPlayer.destroy()}}}};var e=function(j){console.log(j)};var i=function(j){if($("#mlog").length<=0){$("body").append("
")}$("#mlog").append(j.toString()+"
")};var d=function(j){console.log(j)};var g=function(){e("FKT: die()");throw new Error("die()");return false};a.version="1.5.2";a.UserAgent=function(){this.desktop=[0,0,0,0,0,0,0,0];this.mobile=[0,0,0,0,0,0]};a.UserAgent.prototype.checkBrowser=function(k){var j=navigator.userAgent.toLowerCase().match(k);if(j!==null&&j.length>0){return true}return false};a.UserAgent.prototype.set=function(){this.checkBrowser(/chrome/);if(this.checkBrowser(/mobile|ipad|iphone|android/)){this.mobile[0]=1;if(this.checkBrowser(/iphone/)){this.mobile[1]=1}else{if(this.checkBrowser(/ipad/)){this.mobile[2]=1}else{if(this.checkBrowser(/android/)){this.mobile[3]=1}else{if(this.checkBrowser(/iemobile/)){this.mobile[4]=1}}}}if(this.mobile[2]==1&&this.checkBrowser(/chrome/)){this.mobile[5]=1}}else{this.desktop[0]=1;if(this.checkBrowser(/msie 7/)){this.desktop[1]=1}else{if(this.checkBrowser(/msie 8/)){this.desktop[2]=1}else{if(this.checkBrowser(/msie 9/)){this.desktop[3]=1}else{if(this.checkBrowser(/msie/)){this.desktop[4]=1}else{if(this.checkBrowser(/firefox/)){this.desktop[5]=1}else{if(this.checkBrowser(/chrome/)){this.desktop[6]=1}}}}}}if(this.desktop[6]==0&&this.checkBrowser("safari")){this.desktop[7]=1}}};a.UserAgent.prototype.isA=function(j){switch(j){case"mobile":if(this.mobile[0]==1){return true}break;case"desktop":if(this.desktop[0]==1){return true}break;case"ie":if(this.desktop[1]==1||this.desktop[2]==1||this.desktop[3]==1||this.desktop[4]==1){return true}break;case"ie7":if(this.desktop[1]==1){return true}break;case"ie8":if(this.desktop[2]==1){return true}break;case"ie9":if(this.desktop[3]==1){return true}break;case"ie10":if(this.desktop[4]==1){return true}break;case"ff":if(this.desktop[5]==1){return true}break;case"chrome":if(this.desktop[6]==1){return true}break;case"safari":if(this.desktop[7]==1){return true}break;case"iphone":if(this.mobile[1]==1){return true}break;case"ipad":if(this.mobile[2]==1){return true}break;case"android":if(this.mobile[3]==1){return true}break;case"iemobile":if(this.mobile[4]==1){return true}break;case"android-chrome":if(this.mobile[1]==1){return true}break;case"noHTML5":if(this.desktop[1]==1||this.desktop[2]==1||this.desktop[3]==1){return true}break}return false};a.JSBase=function(){this.touchStart={top:0,left:0}};a.JSBase.prototype.throwError=function(k,j){e("Error in "+k+": ");e(j);return false};a.JSBase.prototype.isNumber=function(j){return !isNaN(parseFloat(j))&&isFinite(j)};a.JSBase.prototype.isset=function(j){if(j==undefined){return false}return true};a.JSBase.prototype.addEvent=function(l,k,j){if(l.addEventListener){l.addEventListener(k,j,false)}else{if(l.attachEvent){l["e"+k+j]=j;l[k+j]=function(){l["e"+k+j](window.event)};l.attachEvent("on"+k,l[k+j])}}};a.JSBase.prototype.removeEvent=function(l,k,j){if(l.removeEventListener){l.removeEventListener(k,j,false)}else{if(l.detachEvent){l.detachEvent("on"+k,l[k+j]);l[k+j]=null;l["e"+k+j]=null}}};a.JSBase.prototype.str_replace=function(k,l,j){if(typeof(j)=="string"){return j.split(k).join(l)}return""};var h=function(j){this.scrollpane=null;this.scrollcontent=null;this.scrollbar=null;this.scroller=null;this.isInit=false;this.pre="";this.height=100;this.isPressed=false;this.scrolldiff=0;this.diff=0;this.max=0;this.min=0;this.factor=1;this.contentOffset0=0;this.init=function(k){if(!this.isInit){this.isInit=true;this.scrollpane=k.pane;this.pre=(k.pre!=null&&k.pre!=undefined)?k.pre:"scroll";this.height=(k.height!=null&&k.height!=undefined)?k.height:"100";this.width=(k.width!=null&&k.width!=undefined)?k.width:"100";this.scrollcontent=k.scrollcontent;this.buildStructure();this.setCss();this.calculateHeight();this.addScroll()}};this.barObject=function(k){if(this.isPressed){var m=k.pageY-this.diff;if(mthis.max){m=this.max}this.scroller.offset({top:m});var l=parseInt((this.scroller.offset().top-this.scrollbar.offset().top)/this.factor*(-1)+Number(this.contentOffset0));this.scrollcontent.offset({top:l})}};this.wheelObject=function(l,k){l=l?l:window.event;var o=0;if(l.wheelDelta){o=l.wheelDelta/60}else{if(l.detail){o=-l.detail/2}}var n=k.scrollcontent.offset().top+10*o;if(n>k.scrollpane.offset().top){n=k.scrollpane.offset().top}if(n<(k.scrollpane.offset().top-k.scrolldiff)){n=k.scrollpane.offset().top-k.scrolldiff}k.scrollcontent.offset({top:n});var m=parseInt((n-k.contentOffset0)*k.factor*(-1)+Number(k.scrollbar.offset().top));k.scroller.offset({top:m})};this.calculateHeight=function(){this.scrolldiff=this.scrollcontent.height()-this.height;if(this.scrolldiff>0){this.scrollbar.show();this.scrollcontent.width(this.scrollcontent.width()-1-this.scrollbar.width());this.contentOffset0=this.scrollcontent.offset().top;this.factor=this.height/this.scrollcontent.height();this.scrollerHeight=Math.floor(this.height*this.factor);this.min=this.scrollbar.offset().top;this.max=Number(this.min)+Number(this.height)-this.scrollerHeight;this.scroller.height(this.scrollerHeight)}else{this.scrollbar.hide()}};this.buildStructure=function(){if(this.scrollcontent==null||this.scrollcontent==undefined){this.scrollcontent=$("");this.scrollcontent=this.scrollcontent.html(this.scrollpane.html());this.scrollpane.html("");this.scrollpane.append(this.scrollcontent)}this.scrollpaneID=this.scrollpane.attr("id");this.scroller=$("");this.scrollbar=$("");this.scrollbar.append(this.scroller);this.scrollpane.prepend(this.scrollbar)};this.setCss=function(){this.scrollpane.css({position:"relative",height:this.height+"px",width:this.width+"px","overflow-x":"hidden","overflow-y":"hidden"});this.scrollcontent.css({position:"relative","float":"left",width:this.width+"px","overflow-x":"hidden","user-select":"none","-o-user-select":"none","-moz-user-select":"none","-khtml-user-select":"none","-webkit-user-select":"none"});(j.scrollerCSS!=null&&j.scrollerCSS!=undefined)?this.scroller.css(j.scrollerCSS):this.scroller.css({background:"#555",width:"10px"});(j.scrollbarCSS!=null&&j.scrollbarCSS!=undefined)?this.scrollbar.css(j.scrollbarCSS):this.scrollbar.css({background:"#777",width:"10px"});this.scroller.css({position:"relative",height:"10px",cursor:"pointer"});this.scrollbar.css({"float":"right",height:this.height+"px"})};this.addScroll=function(){var k=this;this.scrollpane.resize(function(){k.calculateHeight();k.addScroll()});this.scrollcontent.resize(function(){k.calculateHeight();k.addScroll()});if(this.scrollcontent.height()>this.scrollpane.height()){this.bindActions()}};this.bindActions=function(){var k=this;this.scroller.bind("mousedown",function(l){k.diff=l.pageY-k.scroller.offset().top;k.isPressed=true});$("html").mouseup(function(){k.isPressed=false});$("html").mousemove(function(l){k.barObject(l)});if(document.addEventListener){document.getElementById(this.scrollpaneID).addEventListener("mousewheel",function(l){k.wheelObject(l,k)},false);document.getElementById(this.scrollpaneID).addEventListener("DOMMouseScroll",function(l){k.wheelObject(l,k)},false)}else{if(document.attachEvent){document.getElementById(this.scrollpaneID).attachEvent("onmousewheel",function(l){k.wheelObject(l,k)},false)}}};this.init(j)};a.initMMPlayer=function(){a.userAgent=new a.UserAgent();a.userAgent.set();a.jsb=new a.JSBase();f=true};a.openMMPlayer=function(k){if(k.skinType==null||k.skinType==undefined){k.skinType="small"}var j=new a.MMPlayer_Skin();j.init(k);return j};a.MMPlayer_SkinBase=function(){this.mod={};this.dom={};this.mpProps={};this.mmPlayer=null};a.MMPlayer_SkinBase.prototype.initSkinBase=function(k){this.setParameters(k);this.container.hide();this.defineHTMLmoduls();this.buildHTMLstructure();var j=this.setCss();this.startLoading();this.buildMMPlayer();this.container.append("")};a.MMPlayer_SkinBase.prototype.setParameters=function(l){var k=this;var j={skinType:"small",skinColor:"dark",container:$("body"),pre:"mx",path:"",playlist:[],plMaxHeight:"auto",plFixHeight:"auto",showPlaylist:true,errorTxt:"File #file_name# not supported by your browser/system",errorTxtLocal:"File #file_name# not supported by your local browser/system",cssSelectors:{}};$.each(j,function(n,m){k[n]=(l[n]===null||l[n]==undefined)?m:l[n]});this.pre="mxw3mp-"+this.pre;this.skinPath=this.path;this.spritePath=this.skinPath+"/sprite.png";this.loaderPath=this.skinPath+"/loader.gif";this.attentionPath=this.skinPath+"/attention.png";j={fn:{},fileType:"audio",showTimer:true,playLoop:true,playShuffle:false,autoplay:true,activateKeys:true,defaultVol:0.7,videoHeight:0,videoWidth:0,flashLocal:false,flashWidth:1,flashHeight:1,flashAllowFullScreen:true};$.each(j,function(n,m){k.mpProps[n]=(l[n]===null||l[n]==undefined)?m:l[n]})};a.MMPlayer_SkinBase.prototype.defineHTMLmoduls=function(){this.mod.loader=$("");this.mod.content=$("");this.mod.controller=$("");this.mod.errorPane=$("");this.mod.mediaPane=$("");this.mod.videoPane=$("");this.mod.flashPane=$("");this.mod.flash=$("");this.mod.playOverlayer=$("");this.mod.btnFullscreen=$("");this.mod.btnFullscreenEx=$("");this.mod.btnPlay=$("");this.mod.btnPause=$("");this.mod.btnStop=$("");this.mod.btnNext=$("");this.mod.btnPrev=$("");this.mod.btnMute=$("");this.mod.btnUnmute=$("");this.mod.btnVolumeMax=$("");this.mod.btnLoop=$("");this.mod.btnLoopActive=$("");this.mod.btnUnloop=$("");this.mod.btnShuffle=$("");this.mod.btnShuffleActive=$("");this.mod.btnUnshuffle=$("");this.mod.dspCurTime=$("");this.mod.dspDuration=$("");this.mod.dspTimeBar=$("");this.mod.dspTimeVal=$("");this.mod.display=$("");this.mod.dspTimer=$("");this.mod.dspVolume=$("");this.mod.dspVolumeBar=$("");this.mod.dspVolumeVal=$("");this.mod.playlistPane=$("");this.mod.playlist=$("");this.mod.playlistTrack=$("")};a.MMPlayer_SkinBase.prototype.buildMMPlayer=function(){var j={path:this.path,skinPath:this.skinPath,container:this.container,pre:this.pre,playlist:this.playlist,showPlaylist:this.showPlaylist,fn:this.mpProps.fn,cssSelectors:this.mod,showTimebar:this.mpProps.showTimer,playLoop:this.mpProps.playLoop,playShuffle:this.mpProps.playShuffle,autoplay:this.mpProps.autoplay,activateKeys:this.mpProps.activateKeys,volume:this.mpProps.defaultVol,skin:{height:this.mpProps.skinHeight,width:this.mpProps.skinWidth},video:{height:this.mpProps.videoHeight,width:this.mpProps.videoWidth,playOverlayer:this.mpProps.playOverlayer,fullscreen:this.mpProps.flashAllowFullScreen},flash:{src:this.path,local:this.mpProps.flashLocal,width:this.mpProps.flashWidth,height:this.mpProps.flashHeight,wmode:"transparent",quality:"high",allowFullScreen:this.mpProps.flashAllowFullScreen,align:"middle"},errors:{errorTxt:this.errorTxt,errorTxtLocal:this.errorTxtLocal}};if(this.mpProps.fileType=="video"){this.mmPlayer=new a.MMVideoPlayer()}else{this.mmPlayer=new a.MMAudioPlayer()}this.mmPlayer.initPlayer(j)};a.MMPlayer_SkinBase.prototype.startLoading=function(){this.mod.loader.show();this.mod.videoPane.hide();this.mod.content.hide();this.container.append(this.mod.mediaPane);this.container.append(this.mod.loader);this.container.append(this.mod.content);this.container.show();this.container.css({margin:"auto"})};a.MMPlayer_SkinBase.prototype.completeLoading=function(){this.mod.loader.hide();this.mod.content.show();this.container.css({"user-select":"none","-o-user-select":"none","-moz-user-select":"none","-khtml-user-select":"none","-webkit-user-select":"none"})};a.MMPlayer_SkinBase.prototype.completeStructure=function(){this.mod.flashPane.append(this.mod.flash);this.mod.mediaPane.append(this.mod.videoPane);this.mod.mediaPane.append(this.mod.flashPane)};a.MMPlayer_SkinBase.prototype.calculatePlaylist=function(p,n){var k=this;if(this.showPlaylist){this.mod.playlist.append(this.mod.playlistTrack);this.mod.playlistPane.append(this.mod.playlist);this.mod.content.append(this.mod.playlistPane);var m=this.playlist.length;var l=0;if(parseInt(this.plMaxHeight)>0){var o=(n*m0&&!a.userAgent.isA("mobile")){l=Number(this.plFixHeight)+Number(p)}else{l=Math.ceil(m*n)+Number(6)+Number(p)}}this.mod.content.height(l);this.container.height(l);var j=this.loadPLScrollParams();this.mpProps.fn.fnStart=function(){k.completeLoading();var q=new h(j)}}else{this.mpProps.fn.fnStart=function(){k.completeLoading()}}};a.MMPlayer_SkinBase.prototype.setDefaultPlaylistCss=function(){if(this.showPlaylist){var j="";j+=" #"+this.pre+"-playlistPane{font-family:Arial,Verdana,Sans-Serif;background:#222;border:solid 1px #444;margin:0 auto}";j+=" #"+this.pre+"-playlist{margin:0;background:#555;color:#ddd;font-size:10px;white-space:nowrap}";j+=" ."+this.pre+"-playlistItem{height:16px;padding:2px 0px 0px 4px;border-top:solid 1px #777;border-bottom:solid 1px #000;cursor:pointer}";j+=" ."+this.pre+"-pi-mover{background:#888;}";j+=" ."+this.pre+"-pi-current{background:#333;}";return j}return""};a.MMPlayer_Skin=function(){this.parent=a.MMPlayer_Skin.prototype};a.MMPlayer_Skin.prototype=new a.MMPlayer_SkinBase;a.MMPlayer_Skin.prototype.init=function(j){j.skinType="flat";this.mpProps.skinWidth=185;this.mpProps.skinHeight=18;this.initSkinBase(j)};a.MMPlayer_Skin.prototype.buildHTMLstructure=function(){this.mod.dspVolumeBar.append(this.mod.dspVolumeVal);this.mod.dspVolume.append(this.mod.dspVolumeBar);this.mod.dspTimeBar.append(this.mod.dspTimeVal);this.mod.dspCurTime.html("0:00");this.mod.dspDuration.html("/0:00");this.mod.dspTimer.append(this.mod.dspCurTime);this.mod.dspTimer.append(this.mod.dspDuration);this.mod.controller.append(this.mod.btnPlay);this.mod.controller.append(this.mod.btnPause);this.mod.controller.append(this.mod.dspTimeBar);this.mod.controller.append(this.mod.dspTimer);this.mod.controller.append(this.mod.btnMute);this.mod.controller.append(this.mod.btnUnmute);this.mod.controller.append(this.mod.dspVolume);this.mod.content.append(this.mod.controller);this.completeStructure();this.mod.mediaPane.prepend(this.mod.playOverlayer);this.mod.mediaPane.prepend(this.mod.btnFullscreen);this.mod.mediaPane.prepend(this.mod.btnFullscreenEx);this.calculatePlaylist(18,20)};a.MMPlayer_Skin.prototype.loadPLScrollParams=function(){if(this.showPlaylist){return{pre:this.pre,pane:this.mod.playlistPane,scrollcontent:this.mod.playlist,height:this.container.height()-20,width:182,scrollerCSS:{background:"#222",width:"5px"},scrollbarCSS:{background:"#777",width:"5px"}}}else{return{}}};a.MMPlayer_Skin.prototype.setCss=function(){this.mpProps.videoWidth=(this.mpProps.videoWidth>0)?this.mpProps.videoWidth:183;this.mpProps.videoHeight=(this.mpProps.videoHeight>0)?this.mpProps.videoHeight:100;var l=parseInt(this.mpProps.videoHeight/2);if(l>=this.mpProps.videoWidth){l=this.mpProps.videoWidth-10}var m=(this.mpProps.videoWidth>this.mpProps.skinWidth)?this.mpProps.videoWidth:this.mpProps.skinWidth;this.container.css({width:m+"px"});var k="";var j="";j+=" #"+this.pre+"-loader{width:"+this.mpProps.skinWidth+"px;height:"+this.mpProps.skinHeight+"px;margin:0 auto;background:url('"+this.loaderPath+"') center center no-repeat}";j+=" #"+this.pre+"-mediaPane{margin:0 auto;z-index:auto;position:static;top:0;left:0;}";j+=" #"+this.pre+"-flashPane{height:1px;width:"+m+"px;margin:0 auto;overflow:hidden;border:none;opacity:0;filter:alpha(opacity=0)}";j+=" #"+this.pre+"-controller{z-index:auto;position:static;width:"+this.mpProps.skinWidth+"px;height:"+this.mpProps.skinHeight+"px;overflow:hidden;background:url('"+this.spritePath+"') 0 -1px no-repeat;margin:0 auto 1px auto;border:none;background-color:none}";j+=" #"+this.pre+"-controller .knob{width:13px;height:12px;float:left;margin-top:4px;margin-bottom:3px;margin-left:0px;margin-right:0px;cursor:pointer}";j+=" #"+this.pre+"-timeBar{float:left;width:54px;height:5px;margin:5px 0 0 2px;padding:2px 0;cursor:pointer;text-align:left;}";j+=" #"+this.pre+"-timeVal{height:4px;background:url('"+this.spritePath+"') -60px -24px no-repeat;margin:0;width:0}";k="#eee";switch(this.skinColor){case"light":case"silver":case"lightgrey":case"grey":k="#444";break}j+=" #"+this.pre+"-timer{font-size:9px;color:"+k+";float:left;margin:4px 4px 0 5px;width:42px;height:12px;overflow:hidden;}";j+=" #"+this.pre+"-play.knob{margin-left:7px}";j+=" #"+this.pre+"-pause.knob{margin-left:7px;display:none}";j+=" #"+this.pre+"-mute.knob{margin-left:7px}";j+=" #"+this.pre+"-unmute.knob{margin-left:7px;display:none}";j+=" #"+this.pre+"-volume{float:left;width:30px;height:4px;padding:0;margin:7px 0 0 0px;cursor:pointer;overflow:hidden}";j+=" #"+this.pre+"-volumeBar{width:100%,height:100%;padding:0;margin:0;cursor:pointer;overflow:hidden;text-align:left;}";j+=" #"+this.pre+"-volumeVal{width:20px;height:4px;background:url('"+this.spritePath+"') -117px -24px no-repeat;margin:0;padding:0}";j+=" #"+this.pre+"-flashPane{height:1px;background:#000;}";j+=" #"+this.pre+"-videoPane{display:none;height:"+this.mpProps.videoHeight+"px;width:"+this.mpProps.videoWidth+"px}";j+=" #"+this.pre+"-playlistPane{clear:both}";j+=" #"+this.pre+"-playOverlayer{height:"+(this.mpProps.videoHeight-20)+"px;width:"+this.mpProps.videoWidth+"px;background:url('"+this.skinPath+"/play_100.png') center center no-repeat;background-size:"+l+"px "+l+"px;z-index:1000;cursor:pointer;margin:0;position:absolute;opacity:0}";j+=" #"+this.pre+"-fullscreen{width:20px;height:20px;background:#eee url('"+this.skinPath+"/fullscreen_16.png') center center no-repeat;z-index:1000;cursor:pointer;margin-left:"+(this.mpProps.videoWidth-20)+"px;margin-top:"+(this.mpProps.videoHeight-20)+"px;position:absolute;display:none}";j+=" #"+this.pre+"-fullscreenEx{width:20px;height:20px;background:#eee url('"+this.skinPath+"/fullscreenEx_16.png') center center no-repeat;z-index:1002;cursor:pointer;position:absolute;display:none}";j+=" ."+this.pre+"-btnPlay{background:url('"+this.spritePath+"') -1px -24px no-repeat;}";j+=" ."+this.pre+"-btnPlayHover{background:url('"+this.spritePath+"') -1px -38px no-repeat;}";j+=" ."+this.pre+"-btnPause{background:url('"+this.spritePath+"') -15px -24px no-repeat;}";j+=" ."+this.pre+"-btnPauseHover{background:url('"+this.spritePath+"') -15px -38px no-repeat;}";j+=" ."+this.pre+"-btnMute{background:url('"+this.spritePath+"') -32px -24px no-repeat;}";j+=" ."+this.pre+"-btnMuteHover{background:url('"+this.spritePath+"') -32px -38px no-repeat;}";j+=" ."+this.pre+"-btnUnmute{background:url('"+this.spritePath+"') -46px -24px no-repeat;}";j+=" ."+this.pre+"-btnUnmuteHover{background:url('"+this.spritePath+"') -46px -38px no-repeat;}";j+=" #"+this.pre+"-video{display:block;margin:0 auto}";j+=" ."+this.pre+"-videoClass{background:#000;margin:0px 0 5px 0;border:solid 1px #999;}";j+=this.setDefaultPlaylistCss();j+=" #"+this.pre+"-mediaPane.openFullscreenMediaC{z-index:1001;position:absolute;top:0;left:0}";j+=" #"+this.pre+"-videoPane.openFullscreenVideoC{background:#000}";j+=" #"+this.pre+"-flashPane.openFullscreenVideoC{background:#000}";j+=" #"+this.pre+"-controller.openFullscreenControlC{z-index:1003;position:absolute}";return j};a.MMPlayer=function(){this.mpObj=null;this.pre="";this.vol=0.75;this.nav=null;this.mpLoop=false;this.mpShuffle=false;this.autoplay=true;this.curTime=0;this.duration=0;this.keysActivated=false;this.plIndex=0;this.swfData={};this.flashEnabled=false;this.flashMovie=null;this.flashBuild=false;this.canFlash=false;this.playFlash=false;this.paused=true;this.properties=null;this.propertiesSet=false;this.loaded=false;this.isFullscreen=false;this.playlist=[];this.showPlaylist=true;this.orderList=[0];this.orderReference=[]};a.MMPlayer.prototype.init=function(k,j){this.nav=navigator;this.errors=j;this.flashEnabled=this.checkFlashPlugin();this.flash=k;if(!this.flashBuild){this.loadDefaultFlash()}};a.MMPlayer.prototype.mpStart=function(){this.canFlash=(this.flashEnabled&&this.flashMovie&&typeof(this.flashMovie.loadMedia)!=undefined)?true:false;if(this.playlistContainer!=undefined&&this.playlistContainer!=null){if(!this.showPlaylist){this.playlistContainer.hide()}else{this.playlistContainer.show()}}var j=this;this.loaderContainer.animate({opacity:"0"},2000,function(){j.loadingComplete()})};a.MMPlayer.prototype.destroy=function(){this.mpStop();this.mpMedia=false;this.keysActivated=false;this.playlist=[];this.orderList=[0];this.orderReference=[];this.playerContainer.html("")};a.MMPlayer.prototype.setPrefix=function(){this.pre=(this.properties.pre===null||this.properties.pre===undefined)?"mp":this.properties.pre};a.MMPlayer.prototype.shufflePlaylist=function(){this.orderReference=this.orderList;if(this.mpShuffle){if(this.btnShuffleElem!=null&&this.btnShuffleActiveElem!=null){this.btnShuffleElem.hide();this.btnShuffleActiveElem.show()}var k=this.orderList;var j=this.playlist.length-1;var m=1;var l=this.orderList[this.plIndex];this.orderList=new Array();this.orderList.push(k[l]);this.orderReference[k[l]]=0;k=k.slice(0,l).concat(k.slice(l+1));do{l=parseInt(Math.random()*(k.length-1));this.orderList.push(k[l]);this.orderReference[k[l]]=m;k=k.slice(0,l).concat(k.slice(Number(l)+Number(1)))}while(m++0){this.mpMedia.currentTime=m.curTime}this.mpMedia.play();return false;case"pause":this.displayStop();this.mpMedia.pause();break;case"stop":this.displayStop();this.mpMedia.pause();this.mpMedia.currentTime=0;break;case"volume":this.mpMedia.volume=m.vol;break;case"currentTime":return this.mpMedia.currentTime;case"duration":var k=this.mpMedia.duration;if(a.jsb.isNumber(k)){return k-1}return this.mpMedia.currentTime+Number(1)}}catch(l){}}else{if(!this.canFlash){this.canFlash=(this.flashEnabled&&this.flashMovie&&typeof(this.flashMovie.loadMedia)!=undefined)?true:false;if(!this.canFlash){if(n=="play"){return this.setError("noPlugin")}return}}if(this.mpType=="video"){this.flashContainer.height(this.videoContainer.height());this.videoContainer.hide()}switch(n){case"load":if(this.flashMovie.loadMedia!==undefined){this.flashMovie.loadMedia(m.obj.mediaType.src);return true}this.canFlash=false;return false;break;case"setPoster":if(this.mpObj!==null&&this.flashMovie.setPreview!==undefined){this.flashMovie.setPreview(m.poster)}break;case"play":if(this.mpObj!==null&&this.flashMovie.startPlayback!==undefined){this.flashMovie.setVolume(m.vol);this.flashMovie.startPlayback(m.curTime);return true}return false;break;case"pause":if(this.mpObj!==null&&this.flashMovie.pausePlayback!==undefined){this.displayStop();this.flashMovie.pausePlayback()}break;case"stop":if(this.mpObj!==null&&this.flashMovie.stopPlayback!==undefined){this.displayStop();this.flashMovie.stopPlayback()}break;case"volume":if(this.mpObj!==null&&this.flashMovie.setVolume!==undefined){this.flashMovie.setVolume(m.vol)}break;case"currentTime":if(this.mpObj!==null&&this.flashMovie.getPlaytime!==undefined){return this.flashMovie.getPlaytime()}return 0;case"duration":if(this.mpObj!==null&&this.flashMovie.getDuration!==undefined){return this.flashMovie.getDuration()}return 0}}};a.MMPlayer.prototype.mpCanplay=function(){if(a.userAgent.isA("noHTML5")){return false}if(this.mpObj!=undefined&&this.mpObj.mediaType!=undefined){var j=this.mpMedia.canPlayType(this.mpObj.mediaType.type);if(!j.match(/maybe|probably/i)){return false}return true}return false};a.MMPlayer.prototype.mpPlayNext=function(k,l,m){this.mpStop();if(k==-1&&this.curTime>4){k=0}if(!a.jsb.isNumber(this.plIndex)){this.plIndex=0}var n=this.plIndex;this.plIndex=Number(this.plIndex)+Number(k);if(this.plIndex>=this.playlist.length){if(this.mpLoop){this.plIndex=0}else{this.plIndex=this.playlist.length-1;this.pauseMedia();m=false}}this.plIndex=(this.plIndex<0)?0:this.plIndex;var j=(this.orderList.length>this.plIndex)?this.orderList[this.plIndex]:0;if(l){this.playlist[j].mediaType=this.checkMediaType(this.playlist[j]);this.loadMedia(this.playlist[j]);this.setTimer(0,0)}if(m){if(this.playMedia(this.curTime)){this.simulateTimer()}}if(this.showPlaylist){$("."+this.pre+"-playlistItem").removeClass(this.pre+"-pi-current");$("#"+this.pre+"-pi-"+j).addClass(this.pre+"-pi-current")}};a.MMPlayer.prototype.mpPlay=function(j){if(a.userAgent.isA("mobile")&&this.mpObj.mediaType.extension!="flv"){window.location.href=this.mpObj.mediaType.src;return false}else{if(this.curTime===undefined){this.curTime=0}this.paused=false;this.btnPlayElem.hide();this.btnPauseElem.show();return this.mpFunctions("play",{curTime:j,vol:this.vol})}};a.MMPlayer.prototype.displayStop=function(){this.paused=true;this.btnPauseElem.hide();this.btnPlayElem.show()};a.MMPlayer.prototype.mpPause=function(){this.mpFunctions("pause",false)};a.MMPlayer.prototype.mpStop=function(){this.mpFunctions("stop",false)};a.MMPlayer.prototype.mpLoad=function(k){this.mpUnload();this.mpObj=k;this.playFlash=false;if(!this.mpCanplay()){this.playFlash=true;var j=["flv","m4v","mp4","mpeg4","mp3"];if($.inArray(k.mediaType.extension,j)==-1){return false}}this.mpFunctions("load",{obj:k});return true};a.MMPlayer.prototype.mpUnload=function(){};a.MMPlayer.prototype.getCurrentTime=function(){return this.mpFunctions("currentTime",false)};a.MMPlayer.prototype.getDuration=function(){return this.mpFunctions("duration",false)};a.MMPlayer.prototype.simulateTimer=function(){var k=this.getCurrentTime();var l=this.getDuration();if(a.userAgent.isA("noHTML5")){l--}if(k<=0||(k>0&&k0&&j>0&&j0)?this.mpObj.duration:l}this.duration=l;this.fieldCurTimeElem.html(this.getTimeVal(k,"#"));this.fieldDurationElem.html(this.getTimeVal(l,"/#"));if(this.btnTimeBarElem!=null&&this.btnTimeValElem!=null){var j=(this.duration>0)?Math.floor((this.btnTimeBarElem.width()/this.duration)*this.curTime):0;this.btnTimeValElem.width(j)}}};a.MMPlayer.prototype.getTimeVal=function(k,m){if(a.jsb.isNumber(k)){m=(m==undefined)?"#":m;if(k>0){var j=Math.floor(k/60);var l=Math.floor(k-j*60);if(l<10){l="0"+l}return a.jsb.str_replace("#",j+":"+l,m)}else{return a.jsb.str_replace("#","0:00",m)}}return""};a.MMPlayer.prototype.trackEnded=function(){this.mpPlayNext(1,true,true)};a.MMPlayer.prototype.setMPvolume=function(j){if(a.jsb.isNumber(j)&&j>=0&&j<=1){if(this.btnUnmuteElem!=null){this.btnUnmuteElem.hide();this.btnMuteElem.show()}this.lastMediaVolume=this.vol;this.vol=j;this.mpFunctions("volume",{vol:j});if(this.btnVolumeValElem!=null&&this.btnVolumeBarElem!=null){this.btnVolumeValElem.width(Math.floor(j*this.btnVolumeBarElem.width()))}return true}return false};a.MMPlayer.prototype.setMPvVolumeBar=function(m){if(this.btnVolumeBarElem!=null){var j=this.btnVolumeBarElem.width();var l=this.btnVolumeBarElem.offset().left;var k=m.pageX-l;if(j>0&&k>0&&k0){p.plIndex=$(j.target).attr("label");p.mpPlayNext(0,true,true)}else{switch(m){case"playOverlayer":case"video":case"pause":case"play":if(p.paused){p.mpPlayNext(0,false,true)}else{p.pauseMedia()}break;case"next":p.mpPlayNext(1,true,true);break;case"prev":p.mpPlayNext(-1,true,true);break;case"stop":p.pauseMedia(true);break;case"unmute":p.muteMedia(false);break;case"mute":p.muteMedia(true);break;case"volumeMax":p.setVolume(1);break;case"volumeBar":case"volumeVal":p.setMPvVolumeBar(j);break;case"setVolumeUp":p.setVolume(Number(p.vol)+Number(0.1));break;case"setVolumeDown":p.setVolume(p.vol-0.1);break;case"loop":case"loopActive":p.setLoop(!p.mpLoop);break;case"shuffle":case"shuffleActive":p.setShuffle();break;case"timeVal":case"timeBar":var o=p.btnTimeBarElem.width();var n=p.btnTimeBarElem.offset().left;var s=j.pageX-n;if(o>0&&s>0&&s0){$(this).addClass(p.pre+"-pi-mover")}else{var r=$(this).attr("hover_class");$(this).addClass(p.pre+"-btn"+r+"Hover")}}else{if(l=="mouseout"){if(q!==null&&q.length>0){$(this).removeClass(p.pre+"-pi-mover")}else{var r=$(this).attr("hover_class");$(this).removeClass(p.pre+"-btn"+r+"Hover")}}else{if(l=="resize"){if(p.isFullscreen){p.openFullscreen()}}}}}};a.MMPlayer.prototype.setMPCssSelectors=function(){this.playerContainer=this.properties.container;this.contentContainer=this.properties.cssSelectors.content;this.videoContainer=this.properties.cssSelectors.videoPane;this.playlistContainer=this.properties.cssSelectors.playlistPane;this.mediaContainer=this.properties.cssSelectors.mediaPane;this.flashContainer=this.properties.cssSelectors.flashPane;this.controlContainer=this.properties.cssSelectors.controller;this.loaderContainer=this.properties.cssSelectors.loader;this.contentContainer=this.properties.cssSelectors.content;this.btnPlayElem=this.properties.cssSelectors.btnPlay;this.btnStopElem=this.properties.cssSelectors.btnStop;this.btnPauseElem=this.properties.cssSelectors.btnPause;this.btnNextElem=this.properties.cssSelectors.btnNext;this.btnPrevElem=this.properties.cssSelectors.btnPrev;this.btnLoopElem=this.properties.cssSelectors.btnLoop;this.btnMuteElem=this.properties.cssSelectors.btnMute;this.btnUnmuteElem=this.properties.cssSelectors.btnUnmute;this.btnVolumeMaxElem=this.properties.cssSelectors.btnVolumeMax;this.btnVolumeBarElem=this.properties.cssSelectors.dspVolumeBar;this.btnVolumeValElem=this.properties.cssSelectors.dspVolumeVal;this.fieldCurTimeElem=this.properties.cssSelectors.dspCurTime;this.fieldDurationElem=this.properties.cssSelectors.dspDuration;this.btnTimeBarElem=this.properties.cssSelectors.dspTimeBar;this.btnTimeValElem=this.properties.cssSelectors.dspTimeVal;this.btnLoopActiveElem=this.properties.cssSelectors.btnLoopActive;this.btnShuffleElem=this.properties.cssSelectors.btnShuffle;this.btnShuffleActiveElem=this.properties.cssSelectors.btnShuffleActive;this.playlistElem=this.properties.cssSelectors.playlist;this.playOverlayer=this.properties.cssSelectors.playOverlayer;this.btnFullscreen=this.properties.cssSelectors.btnFullscreen;this.btnFullscreenEx=this.properties.cssSelectors.btnFullscreenEx;return true};a.MMPlayer.prototype.setMPevents=function(){if(!this.propertiesSet){this.propertiesSet=true;var j=this;this.playerContainer.on("click",{cObj:j},j.eventController);this.playerContainer.on("mouseover",".hover",{cObj:j},j.eventController);this.playerContainer.on("mouseout",".hover",{cObj:j},j.eventController);$("html").on("keydown",{cObj:j},j.eventController);$(window).on("resize",{cObj:j},j.eventController)}};a.MMPlayer.prototype.openPlaylist=function(){var p=0;var k=this.playlist.length;var n=k-1;var o=this;if(this.showPlaylist){this.orderList=new Array();if(this.playlistElem!=null){this.playlistElem.hide();$("."+o.pre+"-realTrack").remove();var q=this.properties.cssSelectors.playlistTrack;if(typeof(this.playlist)=="object"){do{var m=q.clone();m.addClass(o.pre+"-realTrack");if(p==0){m.addClass(o.pre+"-first "+o.pre+"-pi-current")}if(p==k-1){m.addClass(o.pre+"-last")}m.attr({label:p,id:o.pre+"-pi-"+p});o.orderList.push(p);p++;var r=p+" - "+o.playlist[p-1].title;m.html(r);o.playlistElem.append(m)}while(n--)}this.shufflePlaylist();q.hide();this.playlistElem.show()}else{if(typeof(this.playlist)=="object"){do{o.orderList.push(p);p++}while(n--)}}}};a.MMPlayer.prototype.setError=function(k){this.stopMedia();this.mpPlayNext(0,true,false);switch(window.location.protocol){case"http:":case"https:":var j=false;break;default:var j=true}switch(k){case"noPlugin":var l=(!j)?this.errors.errorTxt:this.errors.errorTxtLocal;break;default:var l=this.errors.errorTxt}l=a.jsb.str_replace("#file_name#",">"+this.mpObj.title+"<",l);if(this.loaded){alert(l)}};a.MMPlayer.prototype.checkFlashPlugin=function(){if(typeof this.nav.plugins!=undefined&&typeof this.nav.plugins["Shockwave Flash"]=="object"){var l=this.nav.plugins["Shockwave Flash"].description;if(l&&!(typeof this.nav.mimeTypes!=undefined&&this.nav.mimeTypes["application/x-shockwave-flash"]&&!this.nav.mimeTypes["application/x-shockwave-flash"].enabledPlugin)){return true}}else{if(typeof window.ActiveXObject!="undefined"){try{var j=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(j){l=j.GetVariable("$version");if(l){return true}}}catch(k){}}}return false};a.MMPlayer.prototype.loadDefaultFlash=function(){if(!this.flashEnabled){this.mpFlashBuilded(null);return false}this.flash.base=(this.flash.base===undefined||this.flash.base==null)?"":this.flash.base;this.swfData.flashvars=false;this.swfData.params={};this.swfData.params.swliveconnect="true";this.swfData.params.allowscriptaccess="always";this.swfData.params.wmode="window";this.swfData.params.quality="high";if(this.flash.bgColor!=null&&this.flash.bgColor!=undefined){this.swfData.params.bgColor=this.flash.bgColor}if(this.flash.quality!=null&&this.flash.quality!=undefined){this.swfData.params.quality=this.flash.quality}if(this.flash.wmode!=null&&this.flash.wmode!=undefined){this.swfData.params.wmode=this.flash.wmode}this.swfData.swfID=this.pre+"-flashFallback";this.swfData.flashSrc=this.flash.src+"webdisk_video_container.swf";this.swfData.flashID=this.pre+"-flash";this.swfData.width=this.flash.width;this.swfData.height=this.flash.height;this.buildSWF();this.flashBuild=true;return true};a.MMPlayer.prototype.buildSWF=function(){if(this.swfData.flashID!=undefined&&this.swfData.flashID!=""){var j={id:this.swfData.flashID,name:this.swfData.flashID};this.swfData.width=(this.flash.width<1)?1:this.flash.width;this.swfData.height=(this.flash.height<1)?1:this.flash.height;var k=this;swfobject.embedSWF(this.swfData.flashSrc,this.swfData.flashID,this.swfData.width,this.swfData.height,"10.0.0",false,this.swfData.flashvars,this.swfData.params,j,function(l){if(l.success){k.mpFlashBuilded(l.id);return true}else{return false}})}};a.MMAudioPlayer=function(){};a.MMAudioPlayer.prototype=new a.MMPlayer;a.MMAudioPlayer.prototype.initPlayer=function(m){this.mpType="audio";this.mpMedia=(a.userAgent.isA("noHTML5"))?new Object():new Audio();this.mpLoop=(a.jsb.isset(m.playLoop))?m.playLoop:false;this.mpShuffle=(a.jsb.isset(m.playShuffle))?m.playShuffle:false;this.vol=(a.jsb.isset(m.volume))?m.volume:0.75;this.autoplay=(a.jsb.isset(m.autoplay))?m.autoplay:false;this.playlist=(a.jsb.isset(m.playlist))?m.playlist:new Array();this.activateKeys=(a.jsb.isset(m.activateKeys))?m.activateKeys:true;this.showPlaylist=(a.jsb.isset(m.showPlaylist))?m.showPlaylist:true;this.plIndex=0;this.curTime=0;this.properties=m;this.setPrefix();if(this.setCssSelectors()){this.playOverlayer.hide();this.contentContainer.show();this.contentContainer.css({opacity:0});if(this.btnUnmuteElem!=undefined&&this.btnPauseElem!=null){this.btnPauseElem.hide()}if(this.btnUnmuteElem!=undefined&&this.btnUnmuteElem!=null){this.btnUnmuteElem.hide()}this.init(m.flash,m.errors)}else{a.jsb.throwError("Error: Unable to open player")}var j=this;var l=function(){j.simulateTimer2()};var k=function(){j.trackEnded()};if(!a.userAgent.isA("noHTML5")){a.jsb.removeEvent(this.mpMedia,"timeupdate",l);a.jsb.removeEvent(this.mpMedia,"ended",k);a.jsb.addEvent(this.mpMedia,"timeupdate",l);a.jsb.addEvent(this.mpMedia,"ended",k);a.jsb.addEvent(this.mpMedia,"trackEnded",k)}this.openPlaylist()};a.MMAudioPlayer.prototype.mpFlashBuilded=function(j){this.flashMovie=(j!=null)?document.getElementById(j):null;this.mpStart()};a.MMAudioPlayer.prototype.loadingComplete=function(){this.loaderContainer.hide();this.contentContainer.css({opacity:1});this.setVolume(this.vol);this.setLoop(this.mpLoop);this.setEvents();this.mpPlayNext(0,true,this.autoplay);if(typeof(this.properties.fn.fnStart)=="function"){this.properties.fn.fnStart()}this.loaded=true};a.MMAudioPlayer.prototype.checkMediaType=function(j){if(j.ogg!=null&&j.ogg!=undefined){return{src:j.ogg,media:"audio",extension:"ogg",type:"audio/ogg",codex:"; codecs=vorbis"}}if(j.oga!=null&&j.oga!=undefined){return{src:j.oga,media:"audio",extension:"ogg",type:"audio/ogg",codex:"; codecs=flac"}}if(j.mp3!=null&&j.mp3!=undefined){return{src:j.mp3,media:"audio",extension:"mp3",type:"audio/mpeg",codex:""}}if(j.wav!=null&&j.wav!=undefined){return{src:j.wav,media:"audio",extension:"wav",type:"audio/wav",codex:""}}return{src:"",media:"audio",extension:"",type:"",codex:""}};a.MMAudioPlayer.prototype.loadMedia=function(j){return this.mpLoad(j)};a.MMAudioPlayer.prototype.playMedia=function(j){return this.mpPlay(j)};a.MMAudioPlayer.prototype.pauseMedia=function(){this.mpPause()};a.MMAudioPlayer.prototype.stopMedia=function(){this.mpStop()};a.MMAudioPlayer.prototype.setLoop=function(j){this.setMPloop(j)};a.MMAudioPlayer.prototype.setVolume=function(j){this.setMPvolume(j)};a.MMAudioPlayer.prototype.muteMedia=function(j){this.setMPmute(j)};a.MMAudioPlayer.prototype.setShuffle=function(j){this.setMPshuffle(j)};a.MMAudioPlayer.prototype.setCssSelectors=function(){return this.setMPCssSelectors()};a.MMAudioPlayer.prototype.setEvents=function(){return this.setMPevents()};a.MMVideoPlayer=function(){};a.MMVideoPlayer.prototype=new a.MMPlayer;a.MMVideoPlayer.prototype.initPlayer=function(m){this.mpType="video";this.mpMedia=(a.userAgent.isA("noHTML5"))?new Object():document.createElement("video");this.mpLoop=(a.jsb.isset(m.playLoop))?m.playLoop:false;this.mpShuffle=(a.jsb.isset(m.playShuffle))?m.playShuffle:false;this.vol=(a.jsb.isset(m.volume))?m.volume:0.75;this.autoplay=(a.jsb.isset(m.autoplay))?m.autoplay:false;this.playlist=(a.jsb.isset(m.playlist))?m.playlist:new Array();this.activateKeys=(a.jsb.isset(m.activateKeys))?m.activateKeys:true;this.showPlaylist=(a.jsb.isset(m.showPlaylist))?m.showPlaylist:true;this.plIndex=0;this.curTime=0;this.properties=m;this.setPrefix();this.mpMedia.id=this.pre+"-video";if(this.setCssSelectors()){this.mediaContainer.addClass(this.pre+"-videoClass");this.contentContainer.show();this.contentContainer.css({opacity:0});if(this.btnUnmuteElem!=undefined&&this.btnPauseElem!=null){this.btnPauseElem.hide()}if(this.btnUnmuteElem!=undefined&&this.btnUnmuteElem!=null){this.btnUnmuteElem.hide()}this.init(m.flash,m.errors)}else{a.jsb.throwError("Error: Unable to open player")}var j=this;var l=function(){j.simulateTimer2()};var k=function(){j.trackEnded()};if(!a.userAgent.isA("noHTML5")){a.jsb.removeEvent(this.mpMedia,"timeupdate",l);a.jsb.removeEvent(this.mpMedia,"ended",k);a.jsb.addEvent(this.mpMedia,"timeupdate",l);a.jsb.addEvent(this.mpMedia,"ended",k)}this.openPlaylist()};a.MMVideoPlayer.prototype.mpFlashBuilded=function(j){this.flashMovie=(j!=null)?document.getElementById(j):null;this.mpMedia.width=this.properties.video.width;this.mpMedia.height=this.properties.video.height;this.flashContainer.width(this.mpMedia.width);this.flashContainer.height(this.mpMedia.height);this.mediaContainer.width(this.mpMedia.width);this.mediaContainer.height(this.mpMedia.height);$(this.flashMovie).width(this.mpMedia.width);$(this.flashMovie).height(this.mpMedia.height);if(this.properties.video.fullscreen){this.btnFullscreen.css({display:"block"})}this.mpStart()};a.MMVideoPlayer.prototype.loadingComplete=function(){this.loaderContainer.hide();this.contentContainer.css({opacity:1});var j=10+Number(Math.ceil(Number(this.videoContainer.height())+Number(this.contentContainer.height())));this.playerContainer.css({height:j+"px"});this.videoContainer.append(this.mpMedia);this.videoContainer.show();this.videoContainer.css({opacity:1});this.flashContainer.css({opacity:1,filter:"alpha(opacity=100)"});this.setVolume(this.vol);this.setLoop(this.mpLoop);this.setEvents();this.pauseMedia();this.showOverlayer();this.mpPlayNext(0,true,this.autoplay);if(typeof(this.properties.fn.fnStart)=="function"){this.properties.fn.fnStart()}this.loaded=true};a.MMVideoPlayer.prototype.checkMediaType=function(j){if(j.ogv!=null&&j.ogv!=undefined){return{src:j.ogv,media:"video",extension:"ogv",type:"video/ogg",codex:""}}if(j.m4v!=null&&j.m4v!=undefined){return{src:j.m4v,media:"video",extension:"m4v",type:"video/x-m4v",codex:""}}if(j.webmv!=null&&j.webmv!=undefined){return{src:j.webm,media:"video",extension:"webm",type:"video/webm",codex:"; codecs='vp8.0, vorbis'"}}if(j.flv!=null&&j.flv!=undefined){return{src:j.flv,media:"video",extension:"flv",type:"",codex:""}}if(j.mp4!=null&&j.mp4!=undefined){return{src:j.mp4,media:"video",extension:"mp4",type:"video/mp4",codex:""}}return{src:"",media:"video",extension:"",type:"",codex:""}};a.MMVideoPlayer.prototype.openFullscreen=function(){if(this.properties.video.fullscreen){if(!this.playFlash){this.playerContainer.hide()}this.isFullscreen=true;this.btnFullscreen.hide();this.btnFullscreenEx.show();var k=$(window).width();var m=$(window).height();var o=this.btnFullscreen.height();var n=k-2;var p=m-o-5;var j=this.controlContainer.width();var l=this.controlContainer.height();$("html").height(m);$("html").width(k);$("html").css({overflow:"hidden"});this.mediaContainer.addClass("openFullscreenMediaC");this.mediaContainer.width(k);this.mediaContainer.height(m);this.videoContainer.addClass("openFullscreenVideoC");this.videoContainer.width(n);this.videoContainer.height(p);this.flashContainer.addClass("openFullscreenVideoC");this.flashContainer.width(n);this.flashContainer.height(p);this.playOverlayer.width(k);this.playOverlayer.height(m);$(this.flashMovie).width("100%");$(this.flashMovie).height("100%");this.mpFunctions("setScreenDimensions",{h:p-1,w:n-1});this.btnFullscreenEx.css({margin:(m-o-1)+"px 0 0 "+(k-o-3)+"px"});this.controlContainer.addClass("openFullscreenControlC");this.controlContainer.css({top:(m-l)+"px",left:Math.ceil((k-j)/2)+"px"});if(!this.playFlash){this.flashContainer.height(1);this.videoContainer.show();this.playerContainer.show()}else{this.flashContainer.height(p);this.videoContainer.hide()}window.scrollTo(0,0)}};a.MMVideoPlayer.prototype.closeFullscreen=function(){if(this.properties.video.fullscreen){if(!this.playFlash){this.playerContainer.hide()}var k=this.properties.video.width;var l=this.properties.video.height;this.isFullscreen=false;this.btnFullscreen.show();this.btnFullscreenEx.hide();$("html").css({overflow:"auto",width:"auto",heigth:"auto"});this.mpFunctions("setScreenDimensions",{h:l,w:k});this.mediaContainer.removeClass("openFullscreenMediaC");this.mediaContainer.width(k);this.mediaContainer.height(l);this.videoContainer.removeClass("openFullscreenVideoC");this.videoContainer.width(k);this.videoContainer.height(l);this.flashContainer.removeClass("openFullscreenVideoC");this.flashContainer.width(k);this.playOverlayer.width(k);this.playOverlayer.height(l-20);this.controlContainer.removeClass("openFullscreenControlC");if(!this.playFlash){this.flashContainer.height(1);this.videoContainer.show();this.playerContainer.show()}else{this.flashContainer.height(l);this.videoContainer.hide()}var j=this}};a.MMVideoPlayer.prototype.loadMedia=function(k){var j=this.mpLoad(k);if(k.poster==undefined){k.poster=this.properties.skinPath+"/mp_video.jpg"}this.mpFunctions("setPoster",{poster:k.poster});return j};a.MMVideoPlayer.prototype.playMedia=function(k){var j=this.mpPlay(k);if(j||!a.userAgent.isA("mobile")){this.playOverlayer.css({opacity:0})}return j};a.MMVideoPlayer.prototype.pauseMedia=function(){this.showOverlayer();this.mpPause()};a.MMVideoPlayer.prototype.stopMedia=function(){this.showOverlayer();this.mpStop()};a.MMVideoPlayer.prototype.showOverlayer=function(){if(!a.userAgent.isA("iphone")||(a.userAgent.isA("iphone")&&this.playFlash)){this.playOverlayer.css({opacity:1})}else{this.playOverlayer.css({opacity:0})}};a.MMVideoPlayer.prototype.setLoop=function(j){this.setMPloop(j)};a.MMVideoPlayer.prototype.setVolume=function(j){this.setMPvolume(j)};a.MMVideoPlayer.prototype.muteMedia=function(j){this.setMPmute(j)};a.MMVideoPlayer.prototype.setShuffle=function(){this.setMPshuffle()};a.MMVideoPlayer.prototype.setCssSelectors=function(){return this.setMPCssSelectors()};a.MMVideoPlayer.prototype.setEvents=function(){return this.setMPevents()}};var mxp=new MagixPlayer()};