(function(e,c){var h=window.location,b=h.href,f=h.hash,a=f.indexOf("resize=false")<0,g=e(window),d=function(){var i=e("#page");
window.resizeBy(i.width()-g.width()+22,i.height()-g.height()+22)
};
e(function(){e(".arcodeon h1 a").click(function(){e("#shows_placeholder").slideToggle();
return false
})
});
g.load(function(){if(a){d()
}})
})(jQuery,L24.config);
(function(e){var d=310,a=69,f=e.player_plugins||[],b=function(g){return g.constructor==Array
},c=function(g){var h,j;
if("console" in window){j=window.console;
if(b(g)){j.log("Available plugins: "+g.length);
for(h=0;
h<g.length;
h++){j.log(" --> "+g[h].prototype.name)
}}else{j.log(g)
}}};
e.getPluginNameFromHash=function(){var i=document.location.hash,g,k,j;
if(i){i=i.toString();
g=i.indexOf("l24player=");
if(g>=0){j=i.substring(g+10);
k=j.indexOf("&");
return k<0?j:j.substring(0,k)
}return null
}return null
};
e.player_plugins={push:function(g){c("Adding "+g.prototype.name+" player plugin to the available ones");
f.push(g)
},get:function(g){var h,k,j=null;
c(f);
for(h=0;
h<f.length;
h++){k=f[h];
if(k.prototype.name==g){j=k;
break
}}if(j){f.splice(h,1);
c("Found "+j.prototype.name+" @ "+h);
c(f)
}return j
},existsHandlerFromMimeType:function(g){var i=navigator.mimeTypes[g];
return i!==null?true:false
},shift:function(){return f.shift()
}};
e.Player=function(j,i){var h,g=i&&i.name?i.name:e.getPluginNameFromHash();
if(g){c("Trying to get the plugin with name '"+g+"'");
h=e.player_plugins.get(g)
}if(!(h)){c("Getting the first available plugin from the available ones");
h=e.player_plugins.shift()
}this.player=new h(j)
};
e.Player.prototype={html:function(l){if(l&&"bindToElement" in this.player){return this.player.bindToElement(l)
}if("toHtml" in this.player){return this.player.toHtml()
}var m="getMkpObject" in this.player?this.player.getMkpObject():this.player,i=m.width||d,k=m.height||a,j='<object id="l24player" name="l24player" width="'+i+'" height="'+k+'" ',g;
for(g in m.attr){if(m.attr.hasOwnProperty(g)){j+=g+'="'+m.attr[g]+'" '
}}j+=">";
for(g in m.params){if(m.params.hasOwnProperty(g)){j+='<param name="'+g+'" value="'+m.params[g]+'" />'
}}j+="</object>";
return j
},init:function(){if("init" in this.player){this.player.init(document.getElementById("l24player"))
}},nextPluginName:function(){return f.length>0?f[0].prototype.name:null
}}
})(L24||{});
(function(a,d){var c=d.context_path||"",e=function(l){var f=l.lastIndexOf("/"),k=l.substring(0,f),h=l.substring(f+1),g=h.indexOf("?"),j="";
if(g>0){h=h.substring(0,g);
j=h.substring(g)
}return{server:k,stream:h,auth:j,akamai:l.indexOf(".edgefcs.net")>0}
},b=function(f){this.stream=f;
this.toHtml=function(){var i=e(f),k="file="+i.stream+"&streamer="+i.server+"&autostart=true&volume=100",h=c+"/resrc/objects/jwplayer-5.2.swf",j='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"',g='width="310" height="24" id="l24player" name="l24player" ',l='<param name="allowfullscreen" value="false" /><param name="wmode" value="opaque" /><param name="allowscriptaccess" value="never" />';
if(i.akamai){k+="&rtmp.subscribe=true"
}j+=g+"> ";
j+='<param name="movie" value="'+h+'" />';
l+='<param name="flashvars" value="'+k+'" />';
j+=l;
j+='<object type="application/x-shockwave-flash" ';
j+=g;
j+='data="'+h+'" >';
j+=l;
j+="</object></object>";
return j
}
};
b.prototype={mimetype:"application/x-shockwave-flash",name:"FlashPlayer",toString:function(){return"FlashPlayer plugin"
},init:function(){if("console" in window&&"info" in window.console){window.console.info(this.toString()+" has been initialized for stream: "+this.stream)
}}};
if(d.streamsrc.indexOf("rtmp://")===0){a.push(b)
}})(L24.player_plugins,L24.config);
(function(a){var b=null,f=window.ActiveXObject||window.GeckoActiveXObject||null,i={AnimationatStart:false,TransparentatStart:true,ShowControls:true,ShowDisplay:false,ShowStatusBar:true,autoStart:true,stretchToFit:false,enableContextMenu:false,uiMode:"full"},h=function(k){var e,j;
for(e in k){if(k.hasOwnProperty(e)){j=k[e];
if(j===true){k[e]=1
}else{if(j===false){k[e]=0
}}}}return k
},d=function(e){this.version=6;
this.classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95";
this.stream=e
},c=function(e){this.version=7;
this.classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6";
this.stream=e
};
d.prototype={activexplugin:(f!==null),name:"WM",mimetype:"application/x-mplayer2",init:function(){if("console" in window&&"info" in window.console){window.console.info(this.toString()+" has been initialized from stream "+this.stream)
}},toString:function(){var e="Windows media player "+this.version;
if(this.activexplugin){e+=" activex plugin"
}return e
},getMkpObject:function(){var j={},e=this;
j.params=this.activexplugin?i:h(i);
if(this.activexplugin){j.attr={standby:"Loading Windows Media Player components...",classid:e.classid};
j.params.filename=this.stream;
j.params.url=this.stream
}else{j.attr={type:e.mimetype,src:e.stream}
}return j
}};
c.prototype=new d();
if(f!==null){try{b=new f("WMPlayer.OCX.7");
a.push(c)
}catch(g){b=null;
a.push(d)
}}else{a.push(d)
}})(L24.player_plugins);
//v4.0.50401.0
if(!window.Silverlight)window.Silverlight={};Silverlight._silverlightCount=0;Silverlight.__onSilverlightInstalledCalled=false;Silverlight.fwlinkRoot="http://go2.microsoft.com/fwlink/?LinkID=";Silverlight.__installationEventFired=false;Silverlight.onGetSilverlight=null;Silverlight.onSilverlightInstalled=function(){window.location.reload(false)};Silverlight.isInstalled=function(b){if(b==undefined)b=null;var a=false,m=null;try{var i=null,j=false;if(window.ActiveXObject)try{i=new ActiveXObject("AgControl.AgControl");if(b===null)a=true;else if(i.IsVersionSupported(b))a=true;i=null}catch(l){j=true}else j=true;if(j){var k=navigator.plugins["Silverlight Plug-In"];if(k)if(b===null)a=true;else{var h=k.description;if(h==="1.0.30226.2")h="2.0.30226.2";var c=h.split(".");while(c.length>3)c.pop();while(c.length<4)c.push(0);var e=b.split(".");while(e.length>4)e.pop();var d,g,f=0;do{d=parseInt(e[f]);g=parseInt(c[f]);f++}while(f<e.length&&d===g);if(d<=g&&!isNaN(d))a=true}}}catch(l){a=false}return a};Silverlight.WaitForInstallCompletion=function(){if(!Silverlight.isBrowserRestartRequired&&Silverlight.onSilverlightInstalled){try{navigator.plugins.refresh()}catch(a){}if(Silverlight.isInstalled(null)&&!Silverlight.__onSilverlightInstalledCalled){Silverlight.onSilverlightInstalled();Silverlight.__onSilverlightInstalledCalled=true}else setTimeout(Silverlight.WaitForInstallCompletion,3e3)}};Silverlight.__startup=function(){navigator.plugins.refresh();Silverlight.isBrowserRestartRequired=Silverlight.isInstalled(null);if(!Silverlight.isBrowserRestartRequired){Silverlight.WaitForInstallCompletion();if(!Silverlight.__installationEventFired){Silverlight.onInstallRequired();Silverlight.__installationEventFired=true}}else if(window.navigator.mimeTypes){var b=navigator.mimeTypes["application/x-silverlight-2"],c=navigator.mimeTypes["application/x-silverlight-2-b2"],d=navigator.mimeTypes["application/x-silverlight-2-b1"],a=d;if(c)a=c;if(!b&&(d||c)){if(!Silverlight.__installationEventFired){Silverlight.onUpgradeRequired();Silverlight.__installationEventFired=true}}else if(b&&a)if(b.enabledPlugin&&a.enabledPlugin)if(b.enabledPlugin.description!=a.enabledPlugin.description)if(!Silverlight.__installationEventFired){Silverlight.onRestartRequired();Silverlight.__installationEventFired=true}}if(!Silverlight.disableAutoStartup)if(window.removeEventListener)window.removeEventListener("load",Silverlight.__startup,false);else window.detachEvent("onload",Silverlight.__startup)};if(!Silverlight.disableAutoStartup)if(window.addEventListener)window.addEventListener("load",Silverlight.__startup,false);else window.attachEvent("onload",Silverlight.__startup);Silverlight.createObject=function(m,f,e,k,l,h,j){var d={},a=k,c=l;d.version=a.version;a.source=m;d.alt=a.alt;if(h)a.initParams=h;if(a.isWindowless&&!a.windowless)a.windowless=a.isWindowless;if(a.framerate&&!a.maxFramerate)a.maxFramerate=a.framerate;if(e&&!a.id)a.id=e;delete a.ignoreBrowserVer;delete a.inplaceInstallPrompt;delete a.version;delete a.isWindowless;delete a.framerate;delete a.data;delete a.src;delete a.alt;if(Silverlight.isInstalled(d.version)){for(var b in c)if(c[b]){if(b=="onLoad"&&typeof c[b]=="function"&&c[b].length!=1){var i=c[b];c[b]=function(a){return i(document.getElementById(e),j,a)}}var g=Silverlight.__getHandlerName(c[b]);if(g!=null){a[b]=g;c[b]=null}else throw"typeof events."+b+" must be 'function' or 'string'";}slPluginHTML=Silverlight.buildHTML(a)}else slPluginHTML=Silverlight.buildPromptHTML(d);if(f)f.innerHTML=slPluginHTML;else return slPluginHTML};Silverlight.buildHTML=function(a){var b=[];b.push('<object type="application/x-silverlight" data="data:application/x-silverlight,"');if(a.id!=null)b.push(' id="'+Silverlight.HtmlAttributeEncode(a.id)+'"');if(a.width!=null)b.push(' width="'+a.width+'"');if(a.height!=null)b.push(' height="'+a.height+'"');b.push(" >");delete a.id;delete a.width;delete a.height;for(var c in a)if(a[c])b.push('<param name="'+Silverlight.HtmlAttributeEncode(c)+'" value="'+Silverlight.HtmlAttributeEncode(a[c])+'" />');b.push("</object>");return b.join("")};Silverlight.createObjectEx=function(b){var a=b,c=Silverlight.createObject(a.source,a.parentElement,a.id,a.properties,a.events,a.initParams,a.context);if(a.parentElement==null)return c};Silverlight.buildPromptHTML=function(b){var a="",d=Silverlight.fwlinkRoot,c=b.version;if(b.alt)a=b.alt;else{if(!c)c="";a="<a href='javascript:Silverlight.getSilverlight(\"{1}\");' style='text-decoration: none;'><img src='{2}' alt='Get Microsoft Silverlight' style='border-style: none'/></a>";a=a.replace("{1}",c);a=a.replace("{2}",d+"108181")}return a};Silverlight.getSilverlight=function(e){if(Silverlight.onGetSilverlight)Silverlight.onGetSilverlight();var b="",a=String(e).split(".");if(a.length>1){var c=parseInt(a[0]);if(isNaN(c)||c<2)b="1.0";else b=a[0]+"."+a[1]}var d="";if(b.match(/^\d+\056\d+$/))d="&v="+b;Silverlight.followFWLink("149156"+d)};Silverlight.followFWLink=function(a){top.location=Silverlight.fwlinkRoot+String(a)};Silverlight.HtmlAttributeEncode=function(c){var a,b="";if(c==null)return null;for(var d=0;d<c.length;d++){a=c.charCodeAt(d);if(a>96&&a<123||a>64&&a<91||a>43&&a<58&&a!=47||a==95)b=b+String.fromCharCode(a);else b=b+"&#"+a+";"}return b};Silverlight.default_error_handler=function(e,b){var d,c=b.ErrorType;d=b.ErrorCode;var a="\nSilverlight error message     \n";a+="ErrorCode: "+d+"\n";a+="ErrorType: "+c+"       \n";a+="Message: "+b.ErrorMessage+"     \n";if(c=="ParserError"){a+="XamlFile: "+b.xamlFile+"     \n";a+="Line: "+b.lineNumber+"     \n";a+="Position: "+b.charPosition+"     \n"}else if(c=="RuntimeError"){if(b.lineNumber!=0){a+="Line: "+b.lineNumber+"     \n";a+="Position: "+b.charPosition+"     \n"}a+="MethodName: "+b.methodName+"     \n"}alert(a)};Silverlight.__cleanup=function(){for(var a=Silverlight._silverlightCount-1;a>=0;a--)window["__slEvent"+a]=null;Silverlight._silverlightCount=0;if(window.removeEventListener)window.removeEventListener("unload",Silverlight.__cleanup,false);else window.detachEvent("onunload",Silverlight.__cleanup)};Silverlight.__getHandlerName=function(b){var a="";if(typeof b=="string")a=b;else if(typeof b=="function"){if(Silverlight._silverlightCount==0)if(window.addEventListener)window.addEventListener("unload",Silverlight.__cleanup,false);else window.attachEvent("onunload",Silverlight.__cleanup);var c=Silverlight._silverlightCount++;a="__slEvent"+c;window[a]=b}else a=null;return a};Silverlight.onRequiredVersionAvailable=function(){};Silverlight.onRestartRequired=function(){};Silverlight.onUpgradeRequired=function(){};Silverlight.onInstallRequired=function(){};Silverlight.IsVersionAvailableOnError=function(d,a){var b=false;try{if(a.ErrorCode==8001&&!Silverlight.__installationEventFired){Silverlight.onUpgradeRequired();Silverlight.__installationEventFired=true}else if(a.ErrorCode==8002&&!Silverlight.__installationEventFired){Silverlight.onRestartRequired();Silverlight.__installationEventFired=true}else if(a.ErrorCode==5014||a.ErrorCode==2106){if(Silverlight.__verifySilverlight2UpgradeSuccess(a.getHost()))b=true}else b=true}catch(c){}return b};Silverlight.IsVersionAvailableOnLoad=function(b){var a=false;try{if(Silverlight.__verifySilverlight2UpgradeSuccess(b.getHost()))a=true}catch(c){}return a};Silverlight.__verifySilverlight2UpgradeSuccess=function(d){var c=false,b="4.0.50401",a=null;try{if(d.IsVersionSupported(b+".99")){a=Silverlight.onRequiredVersionAvailable;c=true}else if(d.IsVersionSupported(b+".0"))a=Silverlight.onRestartRequired;else a=Silverlight.onUpgradeRequired;if(a&&!Silverlight.__installationEventFired){a();Silverlight.__installationEventFired=true}}catch(e){}return c}
var jeroenwijering=window.jeroenwijering||{};
jeroenwijering.utils={};
jeroenwijering.Player=function(b,c,a){var d;
this.configuration={backgroundcolor:"FFFFFF",windowless:"false",file:"",height:"260",image:"",backcolor:"FFFFFF",frontcolor:"000000",lightcolor:"000000",screencolor:"000000",width:"320",logo:"",overstretch:"false",shownavigation:"true",showstop:"false",showdigits:"true",usefullscreen:"true",usemute:"false",autostart:"false",bufferlength:"3",duration:"0",repeat:"false",sender:"",start:"0",volume:"90",link:"",linkfromdisplay:"false",linktarget:"_self"};
for(d in this.configuration){if(a[d]!==undefined){if(d.indexOf("color")>0){this.configuration[d]=a[d].substr(a[d].length-6)
}else{this.configuration[d]=a[d]
}}}Silverlight.createObjectEx({source:c,parentElement:b,properties:{width:this.configuration.width,height:this.configuration.height,version:"1.0",inplaceInstallPrompt:true,isWindowless:this.configuration.windowless,background:"#"+this.configuration.backgroundcolor},events:{onLoad:this.onLoadHandler,onError:null},context:this})
};
jeroenwijering.Player.prototype={addListener:function(a,b){this.view.listeners.push({type:a,func:b})
},getConfig:function(){return this.configuration
},onLoadHandler:function(a,c,b){c.configuration.sender=b;
c.controller=new jeroenwijering.Controller(c.configuration);
c.view=new jeroenwijering.View(c.configuration,c.controller);
c.model=new jeroenwijering.Model(c.configuration,c.controller,c.view);
c.controller.startMVC(c.view,c.model)
},sendEvent:function(b,a){switch(b.toUpperCase()){case"LINK":this.controller.setLink();
break;
case"MUTE":this.controller.setMute();
break;
case"PLAY":this.controller.setPlay();
break;
case"SCRUB":this.controller.setScrub(a);
break;
case"STOP":this.controller.setStop();
break;
case"VOLUME":this.controller.setVolume(a);
break;
case"FULLSCREEN":this.controller.setFullscreen();
break
}}};
jeroenwijering.Controller=function(a){this.configuration=a
};
jeroenwijering.Controller.prototype={startMVC:function(b,a){this.view=b;
this.model=a;
if(this.configuration.usemute=="true"){this.view.onVolume(0);
this.view.onMute(true);
this.model.goVolume(0)
}else{this.view.onVolume(this.configuration.volume);
this.model.goVolume(this.configuration.volume)
}if(this.configuration.autostart=="true"){this.model.goStart()
}else{this.model.goPause()
}},setState:function(a,b){var c=this.configuration.start;
this.state=b;
if(a=="Closed"&&c>0){setTimeout(jeroenwijering.utils.delegate(this,this.setScrub),200,c)
}},setLink:function(){if(this.configuration.linktarget=="_blank"){window.open(this.configuration.link)
}else{if(this.configuration.linktarget!==""){window.location=this.configuration.link
}}},setMute:function(){if(this.configuration.usemute=="true"){this.configuration.usemute="false";
this.model.goVolume(this.configuration.volume);
this.view.onMute(false)
}else{this.configuration.usemute="true";
this.model.goVolume(0);
this.view.onMute(true)
}},setPlay:function(){if(this.state=="Buffering"||this.state=="Playing"){if(this.configuration.duration===0){this.model.goStop()
}else{this.model.goPause()
}}else{this.model.goStart()
}},setScrub:function(a){if(a<2){a=0
}else{if(a>this.configuration.duration-4){a=this.configuration.duration-4
}}if(this.state=="Buffering"||this.state=="Playing"){this.model.goStart(a)
}else{this.model.goPause(a)
}},setStop:function(){this.model.goStop()
},setVolume:function(a){if(a<0){a=0
}else{if(a>100){a=100
}}this.configuration.volume=Math.round(a);
this.model.goVolume(a);
this.view.onVolume(a);
if(this.configuration.usemute=="true"){this.configuration.usemute="false";
this.view.onMute(false)
}},setFullscreen:function(){var a=!this.configuration.sender.getHost().content.FullScreen;
this.configuration.sender.getHost().content.FullScreen=a;
jeroenwijering.utils.delegate(this.view,this.view.onFullscreen)
}};
jeroenwijering.View=function(c,d){var a,b;
this.configuration=c;
a=this.configuration.sender;
this.listeners=[];
this.controller=d;
this.display=a.findName("PlayerDisplay");
this.controlbar=a.findName("PlayerControls");
b=a.getHost().content;
b.onResize=jeroenwijering.utils.delegate(this,this.resizePlayer);
b.onFullScreenChange=jeroenwijering.utils.delegate(this,this.onFullscreen);
this.assignColorsClicks();
this.resizePlayer()
};
jeroenwijering.View.prototype={onBuffer:function(b){var a=this.configuration.sender;
if(b===0){a.findName("BufferText").Text=null
}else{b=b<10?"0"+b:""+b;
a.findName("BufferText").Text=b
}this.delegate("BUFFER",Array(b))
},onFullscreen:function(c){var a=this.configuration.sender,b=a.getHost().content.FullScreen;
if(b){this.fstimeout=setTimeout(jeroenwijering.utils.delegate(this,this.hideFSControls),2000);
this.fslistener=this.display.addEventListener("MouseMove",jeroenwijering.utils.delegate(this,this.showFSControls));
a.findName("FullscreenSymbol").Visibility="Collapsed";
a.findName("FullscreenOffSymbol").Visibility="Visible"
}else{clearTimeout(this.fstimeout);
this.display.removeEventListener("MouseMove",this.fslistener);
this.controlbar.Visibility="Visible";
this.display.Cursor="Hand";
a.findName("FullscreenSymbol").Visibility="Visible";
a.findName("FullscreenOffSymbol").Visibility="Collapsed"
}this.resizePlayer();
this.delegate("FULLSCREEN")
},showFSControls:function(d,a){var b=d.findName("PlayerControls"),c=a.GetPosition(b).Y;
clearTimeout(this.fstimeout);
this.controlbar.Visibility="Visible";
this.display.Cursor="Hand";
if(c<0){this.fstimeout=setTimeout(jeroenwijering.utils.delegate(this,this.hideFSControls),2000)
}},hideFSControls:function(){this.controlbar.Visibility="Collapsed";
this.display.Cursor="None"
},onLoad:function(c){var b=this.configuration.sender,a=b.findName("TimeSlider").Width;
b.findName("DownloadProgress").Width=Math.round(a*c/100);
this.delegate("LOAD",Array(c))
},onMute:function(b){var a=this.configuration.sender;
this.configuration.usemute=""+b;
if(b){a.findName("VolumeHighlight").Visibility="Collapsed";
a.findName("MuteSymbol").Visibility="Visible";
a.findName("MuteOffSymbol").Visibility="Collapsed";
if(this.state=="Playing"){a.findName("MuteIcon").Visibility="Visible"
}}else{a.findName("VolumeHighlight").Visibility="Visible";
a.findName("MuteSymbol").Visibility="Collapsed";
a.findName("MuteOffSymbol").Visibility="Visible";
a.findName("MuteIcon").Visibility="Collapsed"
}this.delegate("MUTE")
},onState:function(b,c){var a=this.configuration.sender;
this.state=c;
if(c=="Buffering"||c=="Playing"||c=="Opening"){a.findName("PlayIcon").Visibility="Collapsed";
a.findName("PlaySymbol").Visibility="Collapsed";
a.findName("PlayOffSymbol").Visibility="Visible";
if(c=="Playing"){a.findName("BufferIcon").Visibility="Collapsed";
a.findName("BufferText").Visibility="Collapsed";
if(this.configuration.usemute=="true"){a.findName("MuteIcon").Visibility="Visible"
}}else{a.findName("BufferIcon").Visibility="Visible";
a.findName("BufferText").Visibility="Visible"
}}else{a.findName("MuteIcon").Visibility="Collapsed";
a.findName("BufferIcon").Visibility="Collapsed";
a.findName("BufferText").Visibility="Collapsed";
a.findName("PlaySymbol").Visibility="Visible";
a.findName("PlayOffSymbol").Visibility="Collapsed";
a.findName("PlayIcon").Visibility="Visible"
}this.delegate("STATE",Array(b,c))
},onTime:function(d,c){var b=this.configuration.sender,a=b.findName("TimeSlider").Width,e;
if(c>0){e=Math.round(a*d/c);
this.configuration.duration=c;
b.findName("ElapsedText").Text=jeroenwijering.utils.timestring(d);
b.findName("RemainingText").Text=jeroenwijering.utils.timestring(c-d);
b.findName("TimeSymbol").Visibility="Visible";
b.findName("TimeSymbol")["Canvas.Left"]=e+4;
b.findName("TimeHighlight").Width=e-2
}else{b.findName("TimeSymbol").Visibility="Collapsed"
}this.delegate("TIME",Array(d,c))
},onVolume:function(b){var a=this.configuration.sender;
a.findName("VolumeHighlight").Width=Math.round(b/5);
this.delegate("VOLUME",Array(b))
},assignColorsClicks:function(){this.display.Cursor="Hand";
this.display.Background="#FF"+this.configuration.screencolor;
if(this.configuration.linkfromdisplay=="false"){this.display.addEventListener("MouseLeftButtonUp",jeroenwijering.utils.delegate(this.controller,this.controller.setPlay))
}else{this.display.addEventListener("MouseLeftButtonUp",jeroenwijering.utils.delegate(this.controller,this.controller.setLink))
}if(this.configurationlogo!==""){this.display.findName("OverlayCanvas").Visibility="Visible";
this.display.findName("OverlayLogo").ImageSource=this.configuration.logo
}this.controlbar.findName("ControlbarBack").Fill="#FF"+this.configuration.backcolor;
this.assignButton("Play",this.controller.setPlay);
this.assignButton("Stop",this.controller.setStop);
this.configuration.sender.findName("ElapsedText").Foreground="#FF"+this.configuration.frontcolor;
this.assignSlider("Time",this.changeTime);
this.configuration.sender.findName("DownloadProgress").Fill="#FF"+this.configuration.frontcolor;
this.configuration.sender.findName("RemainingText").Foreground="#FF"+this.configuration.frontcolor;
this.assignButton("Link",this.controller.setLink);
this.assignButton("Fullscreen",this.controller.setFullscreen);
this.assignButton("Mute",this.controller.setMute);
this.assignSlider("Volume",this.changeVolume)
},assignButton:function(c,a){var b=this.configuration.sender.findName(c+"Button");
b.Cursor="Hand";
b.addEventListener("MouseLeftButtonUp",jeroenwijering.utils.delegate(this.controller,a));
b.addEventListener("MouseEnter",jeroenwijering.utils.delegate(this,this.rollOver));
b.addEventListener("MouseLeave",jeroenwijering.utils.delegate(this,this.rollOut));
this.configuration.sender.findName(c+"Symbol").Fill="#FF"+this.configuration.frontcolor;
try{this.configuration.sender.findName(c+"OffSymbol").Fill="#FF"+this.configuration.frontcolor
}catch(d){}},assignSlider:function(c,a){var b=this.configuration.sender.findName(c+"Button");
b.Cursor="Hand";
b.addEventListener("MouseLeftButtonUp",jeroenwijering.utils.delegate(this,a));
b.addEventListener("MouseEnter",jeroenwijering.utils.delegate(this,this.rollOver));
b.addEventListener("MouseLeave",jeroenwijering.utils.delegate(this,this.rollOut));
this.configuration.sender.findName(c+"Slider").Fill="#FF"+this.configuration.frontcolor;
this.configuration.sender.findName(c+"Highlight").Fill="#FF"+this.configuration.frontcolor;
this.configuration.sender.findName(c+"Symbol").Fill="#FF"+this.configuration.frontcolor
},delegate:function(c,a){for(var b=0;
b<this.listeners.length;
b++){if(this.listeners[b].type.toUpperCase()==c){this.listeners[b].func.apply(null,a)
}}},rollOver:function(c){var b=c.Name.substr(0,c.Name.length-6);
this.configuration.sender.findName(b+"Symbol").Fill="#FF"+this.configuration.lightcolor;
try{this.configuration.sender.findName(b+"OffSymbol").Fill="#FF"+this.configuration.lightcolor
}catch(a){}},rollOut:function(c){var b=c.Name.substr(0,c.Name.length-6);
this.configuration.sender.findName(b+"Symbol").Fill="#FF"+this.configuration.frontcolor;
try{this.configuration.sender.findName(b+"OffSymbol").Fill="#FF"+this.configuration.frontcolor
}catch(a){}},changeTime:function(e,b){var a=e.findName("TimeSlider"),c=b.GetPosition(a).X,d=Math.floor(c/a.Width*this.configuration.duration);
this.controller.setScrub(d)
},changeVolume:function(d,a){var c=d.findName("VolumeButton"),b=a.GetPosition(c).X;
this.controller.setVolume(b*5)
},resizePlayer:function(){var a=this.configuration.sender.getHost().content,c=a.actualWidth,d=a.actualHeight,b=a.FullScreen;
if(this.configuration.shownavigation=="true"){if(b===true){this.resizeDisplay(c,d);
this.controlbar["Canvas.Left"]=Math.round(c/2-250);
this.resizeControlbar(500,d-this.controlbar.Height-16);
this.controlbar.findName("ControlbarBack").Opacity=0.5
}else{this.resizeDisplay(c,d-20);
this.controlbar["Canvas.Left"]=0;
this.resizeControlbar(c,d-this.controlbar.Height);
this.controlbar.findName("ControlbarBack").Opacity=1
}}else{this.resizeDisplay(c,d)
}},resizeDisplay:function(a,b){this.stretchElement("PlayerDisplay",a,b);
this.stretchElement("VideoWindow",a,b);
this.stretchElement("PlaceholderImage",a,b);
this.centerElement("PlayIcon",a,b);
this.centerElement("MuteIcon",a,b);
this.centerElement("BufferIcon",a,b);
this.centerElement("BufferText",a,b);
this.display.findName("OverlayCanvas")["Canvas.Left"]=a-110;
this.display.Visibility="Visible"
},resizeControlbar:function(d,f,a){var c=17,b=37,e;
this.controlbar["Canvas.Top"]=f;
this.stretchElement("PlayerControls",d);
this.stretchElement("ControlbarBack",d);
this.placeElement("PlayButton",0);
this.placeElement("VolumeButton",d-24);
this.placeElement("MuteButton",d-37);
if(this.configuration.showstop=="true"){this.placeElement("StopButton",c);
c+=17
}else{this.controlbar.findName("StopButton").Visibility="Collapsed"
}if(this.configuration.usefullscreen=="true"){b+=18;
this.placeElement("FullscreenButton",d-b)
}else{this.controlbar.findName("FullscreenButton").Visibility="Collapsed"
}if(this.configuration.link!==""){b+=18;
this.placeElement("LinkButton",d-b)
}else{this.controlbar.findName("LinkButton").Visibility="Collapsed"
}if(this.configuration.showdigits=="true"&&d-b-c>160){b+=35;
this.controlbar.findName("RemainingButton").Visibility="Visible";
this.controlbar.findName("ElapsedButton").Visibility="Visible";
this.placeElement("RemainingButton",d-b);
this.placeElement("ElapsedButton",c);
c+=35
}else{this.controlbar.findName("RemainingButton").Visibility="Collapsed";
this.controlbar.findName("ElapsedButton").Visibility="Collapsed"
}this.placeElement("TimeButton",c);
this.stretchElement("TimeButton",d-c-b);
this.stretchElement("TimeShadow",d-c-b);
this.stretchElement("TimeStroke",d-c-b);
this.stretchElement("TimeFill",d-c-b);
this.stretchElement("TimeSlider",d-c-b-10);
this.stretchElement("DownloadProgress",d-c-b-10);
e=this.configuration.sender.findName("TimeSymbol");
this.stretchElement("TimeHighlight",e["Canvas.Left"]-5);
this.controlbar.Visibility="Visible"
},centerElement:function(b,a,d){var c=this.configuration.sender.findName(b);
c["Canvas.Left"]=Math.round(a/2-c.Width/2);
c["Canvas.Top"]=Math.round(d/2-c.Height/2)
},stretchElement:function(b,a,d){var c=this.configuration.sender.findName(b);
c.Width=a;
if(d!==undefined){c.Height=d
}},placeElement:function(b,a,c){var d=this.configuration.sender.findName(b);
d["Canvas.Left"]=a;
if(c){d["Canvas.Top"]=c
}}};
jeroenwijering.Model=function(a,b,d){var c={"true":"UniformToFill","false":"Uniform",fit:"Fill",none:"None"};
this.configuration=a;
this.controller=b;
this.view=d;
this.video=this.configuration.sender.findName("VideoWindow");
this.preview=this.configuration.sender.findName("PlaceholderImage");
this.state=this.video.CurrentState;
this.video.Stretch=c[this.configuration.overstretch];
this.preview.Stretch=c[this.configuration.overstretch];
this.video.BufferingTime=jeroenwijering.utils.spanstring(this.configuration.bufferlength);
this.video.AutoPlay=true;
this.video.AddEventListener("CurrentStateChanged",jeroenwijering.utils.delegate(this,this.stateChanged));
this.video.AddEventListener("MediaEnded",jeroenwijering.utils.delegate(this,this.mediaEnded));
this.video.AddEventListener("BufferingProgressChanged",jeroenwijering.utils.delegate(this,this.bufferChanged));
this.video.AddEventListener("DownloadProgressChanged",jeroenwijering.utils.delegate(this,this.downloadChanged));
if(this.configuration.image!=""){this.preview.Source=this.configuration.image
}};
jeroenwijering.Model.prototype={goPause:function(a){this.video.pause();
if(!isNaN(a)){this.video.Position=jeroenwijering.utils.spanstring(a)
}this.timeChanged()
},goStart:function(a){this.video.Visibility="Visible";
this.preview.Visibility="Collapsed";
if(this.state=="Closed"){this.video.Source=this.configuration.file
}else{this.video.play()
}if(!isNaN(a)){this.video.Position=jeroenwijering.utils.spanstring(a)
}},goStop:function(){this.video.Visibility="Collapsed";
this.preview.Visibility="Visible";
this.goPause(0);
this.video.Source="null";
this.view.onBuffer(0)
},goVolume:function(a){this.video.Volume=a/100
},stateChanged:function(){var a=this.video.CurrentState;
if(a!=this.state){this.controller.setState(this.state,a);
this.view.onState(this.state,a);
this.state=a;
this.configuration.duration=Math.round(this.video.NaturalDuration.Seconds*10)/10;
if(a!="Playing"&&a!="Buffering"&&a!="Opening"){clearInterval(this.timeint)
}else{this.timeint=setInterval(jeroenwijering.utils.delegate(this,this.timeChanged),100)
}}},mediaEnded:function(){if(this.configuration.repeat=="true"){this.goStart(0)
}else{this.state="Completed";
this.view.onState(this.state,"Completed");
this.video.Visibility="Collapsed";
this.preview.Visibility="Visible";
this.goPause(0)
}},bufferChanged:function(){var a=Math.round(this.video.BufferingProgress*100);
this.view.onBuffer(a)
},downloadChanged:function(){var a=Math.round(this.video.DownloadProgress*100);
this.view.onLoad(a)
},timeChanged:function(){var b;
try{b=Math.round(this.video.Position.Seconds*10)/10
}catch(a){b=0
}this.view.onTime(b,this.configuration.duration)
}};
jeroenwijering.utils.delegate=function(a,b){return function(){return b.apply(a,arguments)
}
};
jeroenwijering.utils.timestring=function(a){var c=Math.floor(a/3600),b=Math.floor(a%3600/60),d=Math.round(a%60),e="";
if(d>9){e+=d
}else{e+="0"+d
}if(b>9){e=b+":"+e
}else{e="0"+b+":"+e
}if(c>0){e=c+":"+e
}else{e=null
}return e
};
jeroenwijering.utils.spanstring=function(a){var c=Math.floor(a/3600),b=Math.floor(a%3600/60),d=Math.round(a%60*10)/10,e=c+":"+b+":"+d;
return e
};
(function(b,d,f,e){var c=d.context_path||"",a=function(h){this.stream=h;
var g={height:"20",width:"310",file:h,bufferlength:"3",backgroundcolor:"#000000",windowless:"true",shownavigation:"true",showstop:"true",showdigits:"false",autostart:"true",usefullscreen:"false"};
this.bindToElement=function(j){var i=new f.Player(j,c+"/resrc/objects/wmvplayer.xaml",g)
}
};
a.prototype={mimetype:"application/x-silverlight-2",name:"JWPlayer",toString:function(){return"JW Player silverlight plugin"
},init:function(){if("console" in window&&"info" in window.console){window.console.info(this.toString()+" has been initialized for stream: "+this.stream)
}}};
b.push(a)
})(L24.player_plugins,L24.config,jeroenwijering,Silverlight);

(function(e,d){var b,c=function(g){var f=(window.L24config||window.L24.config);
if(f){b=b||e("#player");
f.stream=f.stream||f.streamsrc;
f.name=g||null;
b.l24player(f)
}},a=function(f){if(b&&f){b.append('<p>Αν έχετε προβλήματα ακρόασης, <a href="#l24player='+f+'" id="btn_load_next_plugin">πατήστε εδώ</a></p>')
}};
e.fn.l24player=function(g){var f,i,h,j;
if(g=="player"){return this.data("player")
}if(!"stream" in g){e(this).html("No stream has been defined!")
}f=new d.Player(g.stream);
this.data("player",f);
i=f.html(this[0]);
if(i){this[0].innerHTML=f.html()
}f.init();
b=this;
a(f.nextPluginName());
return this
};
e("#btn_load_next_plugin").live("click",function(){c(d.getPluginNameFromHash())
});
c()
})(jQuery,L24||{});
(function(e){var b={btn_reset:"btn_email_form_reset",message:"#message",btn_send:"#submit",sender_name:"#name",sender_email:"#email"},m,h=function(o,n){var p="",q,r=e("#shows_placeholder");
if(r.size()==1){e(n).find("show").each(function(){var s=e(this),v=s.attr("from"),u=s.attr("to"),t=s.attr("title");
p+="<p><span>"+v+" - "+u+": </span>"+t+"</p>";
if(s.attr("currentShow")=="true"){e("#currentShow").html(t);
e("#currentShowDescription").html(s.attr("description"))
}});
e("#shows_placeholder").html(p)
}},a,k=function(o,q,p,n){n=n||e(o.message_list);
n.append("<p><span>"+p+" &laquo;</span>"+q+"</p>");
e(o.message).val(a||"")
},j=0,c=function(p,o,r){var n=e("#message-list"),q=e(o).find("stationInfo");
if(n.size()==1){if(r&&q.attr("messageStatus")=="ok"){k(p,r,q.attr("stamp"),n)
}q.find("message").each(function(){var s=e(this),t=s.attr("time");
n.append("<p><span>"+t+" &raquo;</span>"+s.text()+"</p>");
j=s.attr("id")
})
}},g=-1,d=function(n,p){if(g>=0){clearTimeout(g);
g=-1
}var o={vid:n.listener_id,sid:n.service_id,cid:n.check_id,r:Math.random()};
if(j!==0){o.lastm_id=j
}if(p){o.action="sendMessage";
o.message=p
}e.post(n.hermes_url,o,function(q){h(n,q);
c(n,q,p);
g=setTimeout(function(){d(n)
},n.update_interval)
},"xml")
},f=function(n){if(m){n.html(m)
}},i=function(o,p){var r=o.find(p.message).val(),s,n,q;
if(r!==""){q={vid:p.listener_id,sid:p.service_id,cid:p.check_id,action:"mailStation",mode:"mailStation",sender_message:r};
n=e(p.sender_email).val();
if(n!==""){q.sender_email=n
}s=e(p.sender_name).val();
if(s!==""){q.sender=s
}if(!(m)){m=o.html()
}o.html("Αποστολή μηνύματος στον σταθμό...");
e.post(p.hermes_url,q,function(v){var u=e(v).find("stationInfo").attr("emailStatus"),t=' href="#'+p.btn_reset+'" id="'+p.btn_reset+'"';
if(u=="DONE"){o.html("<p>Το μήνυμά σας εστάλη</p><a"+t+">Ξαναστείλτε</a>")
}else{o.html("<p>Υπήρξε κάποιο πρόβλημα κατά την αποστολή του μηνύματος</p><a "+t+">Ξαναπροσπαθήστε</a>")
}},"xml")
}},l=function(n){var o=e(n.message).val();
if(o==a||o===""){return
}d(n,o)
};
e.fn.l24EmailForm=function(p){var n=this;
m=n.html();
p=e.extend(b,p);
e(p.btn_send).live("click",function(){i(n,p);
return false
});
e("#"+p.btn_reset).live("click",function(){f(n);
return false
});
setTimeout(function(){d(p)
},p.update_interval);
return this
};
e.fn.l24messager=function(p){var n=this;
p=e.extend(b,p);
a=e(p.message).val();
e(p.message).click(function(){var o=e(this);
if(o.val()==a){o.val("")
}}).keydown(function(o){if(o.which==13){l(p);
return false
}});
e(p.btn_send).click(function(){l(p);
return false
});
d(p)
};
e(function(){var n=window.L24config||window.L24.config,o=e("#msgform, #send_form");
if(o.size()>0){o.l24EmailForm(n);
return
}e("#main").l24messager(n)
})
})(jQuery);
