"+c+"
").appendTo(e)},applySrc:function(){},applyImage:function(d,b){var f=a("").hide(),e=this;$p.utils.blockSelection(f);if(d===""||d===undefined){return a("").attr({id:this.pp.getMediaId()+"_image"}).appendTo(b)}f.html("").appendTo(b).attr({id:this.pp.getMediaId()+"_image",alt:this.pp.getConfig("title")||""}).css({position:"absolute"});f.error(function(g){a(this).remove()});f.load(function(h){var g=h.currentTarget;if(!f.data("od")){f.data("od",{width:g.naturalWidth,height:g.naturalHeight})}f.show();$p.utils.stretch(e.pp.getConfig("imageScaling"),f,b.width(),b.height())});f.attr("src",d);var c=function(i,g){if(g.is(":visible")===false){e.pp.removeListener("fullscreen",arguments.callee)}var h=g.width(),j=g.height(),k=i.width(),m=i.height();if($p.utils.stretch(e.pp.getConfig("imageScaling"),i,g.width(),g.height())){try{e.sendUpdate("scaled",{realWidth:i._originalDimensions.width,realHeight:i._originalDimensions.height,displayWidth:e.mediaElement.width(),displayHeight:e.mediaElement.height()})}catch(l){}}if(i.attr("src")!=e.getPoster()){i.attr("src",e.getPoster())}};this.pp.addListener("fullscreen.poster",function(){c(f,b)});this.pp.addListener("resize.poster",function(){c(f,b)});return f},createFlash:function(d,b,c){this.mediaElement=$p.utils.embeddFlash(b.html(""),d,c,true);this._waitforPlayer()},_waitforPlayer:function(){var c=this,b=0;if(this._displayReady===true){return}this._setBufferState("empty");(function(){if(b>6&&c._isFF()){b=0;var d=a(c.mediaElement).parent(),g=a(c.mediaElement).clone();d.html("").append(g);c.mediaElement=g}d=c.mediaElement;try{if(a(d).attr("id").indexOf("testcard")>-1){return}}catch(f){console.log(f)}b++;try{if(d===undefined){setTimeout(arguments.callee,200)}else{if(d.get(0)[c.flashVerifyMethod]===undefined){setTimeout(arguments.callee,200)}else{c._setBufferState("full");c.flashReadyListener();a("#"+a(c.mediaElement).attr("id")+"_cc").css({width:"100%",height:"100%"})}}}catch(f){setTimeout(arguments.callee,200)}})()},_setState:function(c){var b=this;c=c.toUpperCase();if(this._currentState!=c&&this._currentState!="ERROR"){if(this._currentState=="PAUSED"&&c=="PLAYING"){this.sendUpdate("resume",this.media);this._isPlaying=true}if((this._currentState=="IDLE"||this._currentState=="STARTING")&&c=="PLAYING"){this.sendUpdate("start",this.media);this._isPlaying=true}if(c=="PAUSED"){this._isPlaying=false}if(c=="ERROR"){this.setPlay=this.setPause=function(){b.sendUpdate("start")}}this._currentState=c.toUpperCase();this.sendUpdate("state",this._currentState)}},_setBufferState:function(b){if(this._currentBufferState!=b.toUpperCase()){this._currentBufferState=b.toUpperCase();this.sendUpdate("buffer",this._currentBufferState)}},_setSeekState:function(c,b){if(this._currentSeekState!=c.toUpperCase()){this._currentSeekState=c.toUpperCase();this.sendUpdate("seek",this._currentSeekState)}},_scaleVideo:function(h){var d=this.pp.getMediaContainer();if(this.pp.getIsMobileClient()){return}try{var f=d.width(),i=d.height(),b=this.media.videoWidth,c=this.media.videoHeight;if($p.utils.stretch(this.pp.getConfig("videoScaling"),this.mediaElement,f,i,b,c)){this.sendUpdate("scaled",{realWidth:b,realHeight:c,displayWidth:f,displayHeight:i})}}catch(g){}},_isFF:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}}});jQuery(function(a){$p.newModel({modelId:"NA",iLove:[{ext:"NaN",type:"none/none",platform:"browser"}],hasGUI:true,applyMedia:function(c){var b=this;c.html("");this.mouseClick=function(d){b.pp.removeListener("mousedown",arguments.callee);b._setState("completed")};this.displayReady();if(this.pp.getConfig("enableTestcard")&&!this.pp.getIsMobileClient()){this.setTestcard((this.media.file[0].src!=null&&this.media.errorCode===7)?5:this.media.errorCode);this.pp.addListener("mousedown",mouseClick)}else{this.applyCommand("stop");window.location.href=this.media.file[0].src}},detachMedia:function(){this.pp.removeListener("leftclick",this.mouseClick)}})});jQuery(function(a){$p.newModel({modelId:"PLAYLIST",iLove:[{ext:"json",type:"text/json",platform:"browser"},{ext:"jsonp",type:"text/jsonp",platform:"browser"},{ext:"xml",type:"text/xml",platform:"browser"},{ext:"json",type:"application/json",platform:"browser"},{ext:"jsonp",type:"application/jsonp",platform:"browser"},{ext:"xml",type:"application/xml",platform:"browser"}],applyMedia:function(b){this.displayReady()},setPlay:function(){this.sendUpdate("playlist",this.media)}})});var projekktorDisplay=function(){};jQuery(function(a){projekktorDisplay.prototype={version:"1.1.00",logo:null,logoIsFading:false,display:null,displayClicks:0,buffIcn:null,buffIcnSprite:null,bufferDelayTimer:null,_controlsDims:null,config:{displayClick:{callback:"setPlayPause",value:null},displayPlayingClick:{callback:"setPlayPause",value:null},displayDblClick:{callback:null,value:null},staticControls:false,bufferIconDelay:1000,spriteUrl:"",spriteWidth:50,spriteHeight:50,spriteTiles:25,spriteOffset:1,spriteCountUp:false},initialize:function(){this.display=this.applyToPlayer(a(""));this.startButton=this.applyToPlayer(a("").addClass("start"),"startbtn");this.buffIcn=this.applyToPlayer(a("").addClass("buffering"),"buffericn");this.imaContainer=this.applyToPlayer(a("").addClass("ima"),"ima");this.setActive();if(this.config.spriteUrl!==""){this.buffIcnSprite=a("").appendTo(this.buffIcn).css({width:this.config.spriteWidth,height:this.config.spriteHeight,marginLeft:((this.buffIcn.width()-this.config.spriteWidth)/2)+"px",marginTop:((this.buffIcn.height()-this.config.spriteHeight)/2)+"px",backgroundColor:"transparent",backgroundImage:"url("+this.config.spriteUrl+")",backgroundRepeat:"no-repeat",backgroundPosition:"0 0"}).addClass("inactive")}this.pp.getMediaContainer();this.pluginReady=true},displayReadyHandler:function(){var b=this;this.startButton.unbind().click(function(){b.pp.setPlay()});this.hideStartButton()},syncingHandler:function(){this.showBufferIcon();if(this.pp.getState("IDLE")){this.hideStartButton()}},readyHandler:function(){this.hideBufferIcon();if(this.pp.getState("IDLE")){this.showStartButton()}},bufferHandler:function(b){if(!this.pp.getState("PLAYING")&&!this.pp.getState("AWAKENING")){return}if(b=="EMPTY"){this.showBufferIcon()}else{this.hideBufferIcon()}},stateHandler:function(b){switch(b){case"IDLE":clearTimeout(this._cursorTimer);this.display.css("cursor","pointer");break;case"STARTING":this.showBufferIcon();this.hideStartButton();break;case"PLAYING":this.hideBufferIcon();this.hideStartButton();break;case"IDLE":this.showStartButton();break;case"AWAKENING":this.hideStartButton();break;case"COMPLETED":this.hideBufferIcon();break;default:this.hideStartButton()}},errorHandler:function(){this.hideBufferIcon();this.hideStartButton()},startHandler:function(){this.mousemoveHandler()},stoppedHandler:function(){this.hideBufferIcon()},scheduleLoadingHandler:function(){this.hideStartButton();this.showBufferIcon()},scheduledHandler:function(){if(!this.getConfig("autoplay")){this.showStartButton()}this.hideBufferIcon()},plugineventHandler:function(c){if(c.PLUGIN=="controlbar"&&c.EVENT=="show"&&this.getConfig("staticControls")){var b=c.height*100/this.pp.getDC().height();this.display.height((100-b)+"%").data("sc",true)}},qualityChangeHandler:function(){this.hideBufferIcon()},mousemoveHandler:function(b){var c=this.display;if(this.pp.getState("IDLE")){c.css("cursor","pointer");return}c.css("cursor","auto");clearTimeout(this._cursorTimer);if("AWAKENING|ERROR|PAUSED".indexOf(this.pp.getState())==-1){this._cursorTimer=setTimeout(function(){c.css("cursor","none")},3000)}},mousedownHandler:function(b){var c=this;if((a(b.target).attr("id")||"").indexOf("_media")==-1){return}clearTimeout(this._cursorTimer);this.display.css("cursor","auto");if(b.which!=1){return}switch(this.pp.getState()){case"ERROR":this.pp.setConfig({disallowSkip:false});this.pp.setActiveItem("next");return;case"IDLE":this.pp.setPlay();return}if(this.pp.getHasGUI()===true){return}this.displayClicks++;this.pp._promote("displayClick");if(this.displayClicks>0){setTimeout(function(){if(c.displayClicks==1){if(c.pp.getState()=="PLAYING"){c.clickHandler("displayPlaying")}else{c.clickHandler("display")}}else{if(c.displayClicks==2){c.clickHandler("displayDbl")}}c.displayClicks=0},250)}return},showStartButton:function(){this.startButton.addClass("active").removeClass("inactive")},hideStartButton:function(){this.startButton.addClass("inactive").removeClass("active")},hideBufferIcon:function(){clearTimeout(this.bufferDelayTimer);this.buffIcn.addClass("inactive").removeClass("active")},showBufferIcon:function(c){var e=this;clearTimeout(this.bufferDelayTimer);if(this.pp.getHasGUI()){return}if((this.pp.getModel()==="YTAUDIO"||this.pp.getModel()==="YTVIDEO")&&!this.pp.getState("IDLE")){c=true}if(c!==true&&this.getConfig("bufferIconDelay")>0){this.bufferDelayTimer=setTimeout(function(){e.showBufferIcon(true)},this.getConfig("bufferIconDelay"));return}if(this.buffIcn.hasClass("active")){return}this.buffIcn.addClass("active").removeClass("inactive");if(e.buffIcnSprite==null){return}var b=(e.config.spriteCountUp===true)?0:(e.config.spriteHeight+e.config.spriteOffset)*(e.config.spriteTiles-1),d=b;e.buffIcnSprite.addClass("active").removeClass("inactive");(function(){if(!e.buffIcn.is(":visible")){return}e.buffIcnSprite.css("backgroundPosition","0px -"+d+"px");if(e.config.spriteCountUp===true){d+=e.config.spriteHeight+e.config.spriteOffset}else{d-=e.config.spriteHeight+e.config.spriteOffset }if(d>(b+e.config.spriteHeight)*e.config.spriteTiles||d