"use strict";var ThreeminPlayer=function(swfName){this._swfName=swfName;this._callbacks=new Array();this._config=new PlayerConfig();this._jsonMedia=null;this._canPlayMedia=true;if(null!=swfName)
this._config.setPlayerName(swfName);else
this._swfName=this._config.getPlayerName();ThreeminPlayer.PLAYER_MAP[swfName]=this;ThreeminPlayer.PLAYER_COUNT=0;};ThreeminPlayer.prototype.embedd=function(divID,swfURL){var playerVersion=swfobject.getFlashPlayerVersion();var majorVersion=playerVersion.major;swfobject.embedSWF((null==swfURL?ThreeminPlayer.SWF_PLAYER_URL:swfURL),divID,this._config.getDimWidth(),this._config.getDimHeight(),"9.0.115",ThreeminPlayer.SWF_INSTALL_URL,this._config.getFlashVars(),this._config.getParameter(),this._config.getAttributes());};ThreeminPlayer.prototype.setConfig=function(config){this._config=config;this._swfName=this._config.getPlayerName();ThreeminPlayer.PLAYER_MAP[this._swfName]=this;};ThreeminPlayer.prototype.getConfig=function(config){return this._config;};ThreeminPlayer.prototype.playMedia=function(mid){return callJStoAS(mid,ThreeminPlayer.PLAY_MEDIA,this._swfName);};ThreeminPlayer.prototype.handleEvent=function(event,body){return callJStoAS(body,event,this._swfName);};ThreeminPlayer.prototype.dispose=function(){callJStoAS(ThreeminPlayer.MSG_NONE,ThreeminPlayer.DISPOSE,this._swfName);}
ThreeminPlayer.prototype.stop=function(){callJStoAS(ThreeminPlayer.MSG_NONE,ThreeminPlayer.STOP_MEDIA,this._swfName);};ThreeminPlayer.prototype.play=function(){callJStoAS(ThreeminPlayer.MSG_NONE,ThreeminPlayer.PLAY_CURRENT_MEDIA,this._swfName);};ThreeminPlayer.prototype.getMediaId=function(){return this._jsonMedia.id;};ThreeminPlayer.prototype.getMedia=function(){return this._jsonMedia;};ThreeminPlayer.prototype.canPlayMedia=function(){return this._canPlayMedia;};ThreeminPlayer.prototype.allowPlayMedia=function(value){this._canPlayMedia=value;};ThreeminPlayer.prototype.changeHeader=function(arr){if(arr[0]['channel']){$("media_header_channel").innerHTML=unescape(this.getMedia().channelName);$("media_header_channel").href=unescape(this.getMedia().channelHref);}
if(arr[0]['subchannel']){$("media_header_subchannel").innerHTML=unescape(this.getMedia().subchannelName);$("media_header_subchannel").href=unescape(this.getMedia().subchannelHref);$("media_header_text").href=this.getMedia().href;$("subchannel_info_link").href=unescape(this.getMedia().subchannelHref);if($("subchannel_link_add")&&$("subchannel_link_del")){$("subchannel_link_add").writeAttribute("onclick","change_subscription('"+this.getMedia().subchannelID+"', 'add_subscription', 'head', this); return false;");$("subchannel_link_del").writeAttribute("onclick","change_subscription('"+this.getMedia().subchannelID+"', 'del_subscription', 'head', this); return false;");$('subchannel_link_add').hide();$('subchannel_link_del').hide();if(this.getMedia().isSubscript)
threemin_appear('subchannel_link_del');else
threemin_appear('subchannel_link_add');}}
if(!this.getMedia().isPartOfSeason&&this.getMedia().prefixTitle!='')
$("media_header_text").innerHTML=unescape(this.getMedia().prefixTitle)+arr[0]['episode_separator']+unescape(this.getMedia().title);else if(this.getMedia().isSerial&&this.getMedia().prefixSeason!='')
$("media_header_text").innerHTML=unescape(this.getMedia().prefixSeason)+arr[0]['episode_separator']+unescape(this.getMedia().title);else
$("media_header_text").innerHTML=unescape(this.getMedia().title);};ThreeminPlayer.prototype.setupDisplayAd=function(){if(typeof(ad_holder)=='object'){callJStoAS(ThreeminPlayer.MSG_NONE,ThreeminPlayer.SETUP_DISPLAY_AD_BEGIN,this._swfName);for(var _key in ad_holder){switch(_key){case"Leaderboard":callJStoAS(ad_holder[_key],ThreeminPlayer.SETUP_DISPLAY_AD_LEADERBOARD,this._swfName);break;case"Skyscraper":callJStoAS(ad_holder[_key],ThreeminPlayer.SETUP_DISPLAY_AD_SKYSCRAPER,this._swfName);break;}}
callJStoAS(ThreeminPlayer.MSG_NONE,ThreeminPlayer.SETUP_DISPLAY_AD_END,this._swfName);delete ad_holder;}}
ThreeminPlayer.prototype.getSimpleName=function(){return"[ThreeminPlayer]";};ThreeminPlayer.prototype.toString=function(){return this.getSimpleName()+" for SWF: "+this._swfName;};ThreeminPlayer.prototype.getSWFName=function(){return this._swfName;};ThreeminPlayer.prototype.addEventListener=function(type,delegate){if(null==delegate)
return;var typedList=this._callbacks[type];if(null==typedList){typedList=new Array();this._callbacks[type]=typedList=new Array();}
typedList.push(delegate);};ThreeminPlayer.prototype.notify=function(cmd,args){if(cmd==PlayerEvent.PLAYER_SYNC_MEDIA_COMPLETE){var mediaJsonString=callJStoAS(ThreeminPlayer.MSG_NONE,ThreeminPlayer.GET_MEDIA,this._swfName);this._jsonMedia=JSON.parse(mediaJsonString);}
var type=null;switch(cmd){case PlayerEvent.PLAYER_START:type=PlayerEvent.PLAYER_START;break;case PlayerEvent.PLAYER_READY:type=PlayerEvent.PLAYER_READY;break;case PlayerEvent.PLAYER_PAUSE:type=PlayerEvent.PLAYER_PAUSE;break;case PlayerEvent.PLAYER_RESUME:type=PlayerEvent.PLAYER_RESUME;break;case PlayerEvent.PLAYER_STOP:type=PlayerEvent.PLAYER_STOP;break;case PlayerEvent.PLAYER_COMPLETE:type=PlayerEvent.PLAYER_COMPLETE;break;case PlayerEvent.PLAYER_REQUEST_PREW:type=PlayerEvent.PLAYER_REQUEST_PREW;break;case PlayerEvent.PLAYER_REQUEST_NEXT:type=PlayerEvent.PLAYER_REQUEST_NEXT;break;case PlayerEvent.PLAYER_ERROR:type=PlayerEvent.PLAYER_ERROR;break;case PlayerEvent.PLAYER_LOADING:type=PlayerEvent.PLAYER_LOADING;break;case PlayerEvent.PLAYER_LOADING_FIN:type=PlayerEvent.PLAYER_LOADING_FIN;break;case PlayerEvent.PLAYER_CLIP_CLICK:type=PlayerEvent.PLAYER_CLIP_CLICK;break;case PlayerEvent.PLAYER_CLIP_CLICK:type=PlayerEvent.PLAYER_CLIP_CLICK;break;case PlayerEvent.PLAYER_PLAY_MEDIA:type=PlayerEvent.PLAYER_PLAY_MEDIA;break;case PlayerEvent.PLAYER_PLAY_PROMO:type=PlayerEvent.PLAYER_PLAY_PROMO;break;case PlayerEvent.PLAYER_SYNC_MEDIA_COMPLETE:type=PlayerEvent.PLAYER_SYNC_MEDIA_COMPLETE;break;case PlayerEvent.PLAYER_ENTER_FULLSCREEN:type=PlayerEvent.PLAYER_ENTER_FULLSCREEN;break;case PlayerEvent.PLAYER_LEAVE_FULLSCREEN:type=PlayerEvent.PLAYER_LEAVE_FULLSCREEN;break;case PlayerEvent.PLAYER_REQUEST_AD:type=PlayerEvent.PLAYER_REQUEST_AD;break;case PlayerEvent.PLAYER_REQUEST_AD_TIMEOUT:type=PlayerEvent.PLAYER_REQUEST_AD_TIMEOUT;break;case PlayerEvent.PLAYER_ERROR_MID:type=PlayerEvent.PLAYER_ERROR_MID;break;case PlayerEvent.PLAYER_ERROR_NOTHING_PLAY:type=PlayerEvent.PLAYER_ERROR_NOTHING_PLAY;break;case PlayerEvent.SCREENSHOT_SAVED:type=PlayerEvent.SCREENSHOT_SAVED;break;case PlayerEvent.OPEN_MEDIATHEK:type=PlayerEvent.OPEN_MEDIATHEK;break;}
if(type==null){return;}
var event=new PlayerEvent(type);var typedList=this._callbacks[type];var delegate=null;for(var index=0;index<typedList.length;index++){delegate=typedList[index];delegate(event);}};ThreeminPlayer.SWF_PLAYER_URL="http://www.3min.de/flash/3minPlayer.swf?v=1.4.1";ThreeminPlayer.SWF_INSTALL_URL="http://www.3min.de/flash/expressInstall.swf"
ThreeminPlayer.PLAYER_MAP=new Array();ThreeminPlayer.PLAYER_COUNT=0;ThreeminPlayer.MSG_NONE="NULL";ThreeminPlayer.DISPOSE="DISPOSE";ThreeminPlayer.PLAY_MEDIA="PLAY_MEDIA";ThreeminPlayer.STOP_MEDIA="STOP_MEDIA";ThreeminPlayer.PLAY_CURRENT_MEDIA="PLAY_CURRENT_MEDIA";ThreeminPlayer.GET_MID="GET_MID";ThreeminPlayer.GET_MEDIA="GET_MEDIA";ThreeminPlayer.SETUP_DISPLAY_AD_BEGIN="SETUP_DISPLAY_AD_BEGIN";ThreeminPlayer.SETUP_DISPLAY_AD_END="SETUP_DISPLAY_AD_END";ThreeminPlayer.SETUP_DISPLAY_AD_SKYSCRAPER="SETUP_DISPLAY_AD_SKYSCRAPER";ThreeminPlayer.SETUP_DISPLAY_AD_LEADERBOARD="SETUP_DISPLAY_AD_LEADERBOARD";ThreeminPlayer.UNKNOWN_MESSAGE_ERROR="UNKNOWN_MESSAGE_ERROR";ThreeminPlayer.HANDSHAKE_SWF="SWF_IS_REDY";ThreeminPlayer.HANDSHAKE_JS="JS_IS_REDY";var PlayerEvent=function(type){this._type=type;};PlayerEvent.prototype.getType=function(){return this._type;};PlayerEvent.prototype.toString=function(){return"[PlayerEvent] "+this._type;};PlayerEvent.PLAYER_START="PLAYER_START";PlayerEvent.PLAYER_READY="PLAYER_READY";PlayerEvent.PLAYER_PAUSE="PLAYER_PAUSE";PlayerEvent.PLAYER_RESUME="PLAYER_RESUME";PlayerEvent.PLAYER_STOP="PLAYER_STOP";PlayerEvent.PLAYER_REQUEST_PREW="PLAYER_REQUEST_PREW";PlayerEvent.PLAYER_REQUEST_NEXT="PLAYER_REQUEST_NEXT";PlayerEvent.PLAYER_COMPLETE="PLAYER_COMPLETE";PlayerEvent.PLAYER_PLAY_MEDIA="PLAYER_PLAY_MEDIA";PlayerEvent.PLAYER_PLAY_PROMO="PLAYER_PLAY_PROMO";PlayerEvent.PLAYER_LOADING="PLAYER_LOADING";PlayerEvent.PLAYER_LOADING_FIN="PLAYER_LOADING_FIN";PlayerEvent.PLAYER_SYNC_MEDIA_COMPLETE="PLAYER_SYNC_MEDIA_COMPLETE";PlayerEvent.PLAYER_CLIP_CLICK="PLAYER_CLIP_CLICK";PlayerEvent.PLAYER_ENTER_FULLSCREEN="PLAYER_ENTER_FULLSCREEN";PlayerEvent.PLAYER_LEAVE_FULLSCREEN="PLAYER_LEAVE_FULLSCREEN";PlayerEvent.PLAYER_ERROR="PLAYER_ERROR";PlayerEvent.PLAYER_ERROR_MID="PLAYER_ERROR_MID";PlayerEvent.PLAYER_ERROR_NOTHING_PLAY="PLAYER_ERROR_NOTHING_PLAY";PlayerEvent.PLAYER_REQUEST_AD="PLAYER_REQUEST_AD";PlayerEvent.PLAYER_REQUEST_AD_TIMEOUT="PLAYER_REQUEST_AD_TIMEOUT";PlayerEvent.SCREENSHOT_SAVED="SCREENSHOT_SAVED";PlayerEvent.OPEN_MEDIATHEK="OPEN_MEDIATHEK";function callJStoAS(parameter,command,swfName){try{return getSwfContainer(swfName).callJStoAS((command?command:ThreeminPlayer.CMD)+':'+parameter);}
catch(error){return-1;}};function call3minJSPlayerControl(swfName,cmd,args){if(cmd==ThreeminPlayer.HANDSHAKE_SWF){return ThreeminPlayer.HANDSHAKE_JS;}
var player=ThreeminPlayer.PLAYER_MAP[swfName];if(null!=player){player.notify(cmd,args);return"OK";}
return"NO_PLAYER_FOUND";};function getSwfContainer(swfName){var isIE=(window==null);return(isIE)?window[swfName]:document[swfName];};var PlayerConfig=function(){this._baseHost="http://www.3min.de/";this._player_name="3min_Player_"+ThreeminPlayer.PLAYER_COUNT;this._useLoggedIn="false";this._localConnectionName="";this._videoLink=null;this._tabLink=null;this._linkPostfix=null;this._playlistNavType=PlayerConfig.PLAYLIST_NAV_STANDARD;this._playlists=new Array();this._playlistCount=0;this._plugins=new Array();this._pluginsCount=0;this._mediaid="0";this._i18n_descriptor="de";this._show_logo="true";this._show_options="true";this._show_currently_playing="true";this._allow_fullscreen="true";this._show_mediathek="false";this._autostart="false";this._debug_level="warn";this._maintenanceMode="false";this._useTestAddLevelIdEW="test";this._useTestAddLevelIdLC="test";this._useTestAddCallsEW="false";this._useTestAddCallsLC="false";this._useTestAddCalls="false";this._default_Bandwithdetection="true";this._default_showTimeRemaining="true";this._default_volume="0.5";this._default_quality=PlayerConfig.HIGH_QUALITY;this._endScenarioStrict="false";this._endScenario=PlayerConfig.END_SCENARIO_RELATED;this._defaultStartup=PlayerConfig.FIRST_MEDIA;this._deviceIdentifyer=PlayerConfig.DEVICE_EXTERN;this._dimWidth="848";this._dimHeight="480";this._divBg=null;this._prerollRatio=0;this._prerollOnFirstClip="false";this._cuePointEneabled="false";this._vavURL=null;};PlayerConfig.prototype.toString=function(){return"[PlayerConfig] "+this.getFlashVars();};PlayerConfig.prototype.getBaseHost=function(){return this._baseHost;};PlayerConfig.prototype.getPlayerName=function(){return this._player_name;};PlayerConfig.prototype.getDimWidth=function(){return this._dimWidth;};PlayerConfig.prototype.getDimHeight=function(){return this._dimHeight;};PlayerConfig.prototype.getFlashVars=function(){var vars={media_id:this._mediaid,i18n_descriptor:this._i18n_descriptor,show_logo:this._show_logo,show_options:this._show_options,show_currently_playing:this._show_currently_playing,show_fullscreen:this._allow_fullscreen,show_mediathek:this._show_mediathek,autostart:this._autostart,default_quality:this._default_quality,default_showTimeRemaining:this._default_showTimeRemaining,default_volume:this._default_volume,default_bandwith_detection:this._default_Bandwithdetection,is_logged_in:this._useLoggedIn,player_name:this._player_name,local_connection_name:this._localConnectionName,end_scenario:this._endScenario,end_scenario_strict:this._endScenarioStrict,default_playlist_startup:this._defaultStartup,device_identifyer:this._deviceIdentifyer,nav_type_playlist:this._playlistNavType,debug_level:this._debug_level,maintance_mode:this._maintenanceMode,test_add_calls:this._useTestAddCalls,test_add_calls_ew:this._useTestAddCallsEW,test_add_calls_lc:this._useTestAddCallsLC,test_add_level_id_ew:this._useTestAddLevelIdEW,test_add_level_id_lc:this._useTestAddLevelIdLC,promo_ratio:this._prerollRatio,promo_on_first_clip:this._prerollOnFirstClip,cue_points_enabled:this._cuePointEneabled,base_host:this._baseHost};if(this._vavURL!=null)
vars["vav_plugin"]=this._vavURL;if(this._videoLink!=null)
vars["video_link_url"]=this._videoLink;if(this._tabLink!=null)
vars["tab_link_url"]=this._tabLink;if(this._linkPostfix!=null)
vars["link_postfix"]=this._linkPostfix;var plist;for(var entry in this._playlists){plist=this._playlists[entry];if(plist&&(typeof plist=='object')){if(vars[plist.type]!=null)
vars[plist.type]=vars[plist.type]+";"+"["+plist.index+"|"+plist.name+"|"+plist.params+"|"+plist.active+"]";else
vars[plist.type]="["+plist.index+"|"+plist.name+"|"+plist.params+"|"+plist.active+"]";}}
if(this._pluginsCount>0){var plugin;for(var pluginEntry in this._plugins){plugin=this._plugins[pluginEntry];if(plugin&&(typeof plugin=='object')){if(vars["plugins"]!=null)
vars["plugins"]=vars["plugins"]+";"+"["+plugin.url+"|"+plugin.clazz+"|"+plugin.args+"]";else
vars["plugins"]="["+plugin.url+"|"+plugin.clazz+"|"+plugin.args+"]";}}}
return vars;};PlayerConfig.prototype.getParameter=function(){return{quality:"high",allowfullscreen:this._allow_fullscreen,allowScriptAccess:"always",bgcolor:this._divBg,wmode:"opaque",scale:"noborder"};};PlayerConfig.prototype.getAttributes=function(){return{id:this._player_name,name:this._player_name};};PlayerConfig.prototype.setBaseHost=function(baseHost){if(baseHost.lastIndexOf("/")!=baseHost.length-1)
baseHost+="/";this._baseHost=baseHost;};PlayerConfig.prototype.setClickTargetVideo=function(link){this._videoLink=link;};PlayerConfig.prototype.setClickTargetTab=function(link){this._tabLink=link;};PlayerConfig.prototype.setLinkPostfix=function(params){this._linkPostfix=params;};PlayerConfig.prototype.setUserLoggedIn=function(userLoggedIn){this._useLoggedIn=""+userLoggedIn;};PlayerConfig.prototype.setPlaylistNavigationType=function(type){this._playlistNavType=type;};PlayerConfig.prototype.addPlaylist=function(playlistType,playlistName,values,activeFlag){this._playlists.push({index:this._playlistCount,type:playlistType,name:escape(playlistName),params:values,active:activeFlag});this._playlistCount++;};PlayerConfig.prototype.registerPlugin=function(pluginUrl,className,params){this._plugins.push({url:pluginUrl,clazz:className,args:params});this._pluginsCount++;}
PlayerConfig.prototype.setDivBgColor=function(divBg){this._divBg=divBg;};PlayerConfig.prototype.setDimension=function(width,height){this._dimWidth=""+width;this._dimHeight=""+height;};PlayerConfig.prototype.setMediaID=function(mid){this._mediaid=mid;};PlayerConfig.prototype.setI18NDescriptor=function(i18n){this._i18n_descriptor=i18n;};PlayerConfig.prototype.setDebugLevel=function(debugLevel){this._debug_level=debugLevel;};PlayerConfig.prototype.useTestAddCallsEW=function(value,levelID){this._useTestAddCallsEW=""+value;this._useTestAddCalls=this._useTestAddCallsLC||this._useTestAddCallsEW;this._useTestAddLevelIdEW=levelID;};PlayerConfig.prototype.useTestAddCallsLC=function(value,levelID){this._useTestAddCallsLC=""+value;this._useTestAddCalls=this._useTestAddCallsLC||this._useTestAddCallsEW;this._useTestAddLevelIdLC=levelID;};PlayerConfig.prototype.setMaintenanceMode=function(value){this._maintenanceMode=""+value;};PlayerConfig.prototype.setPlayerName=function(playerName){this._player_name=playerName;};PlayerConfig.prototype.showLogo=function(showLogo){this._show_logo=""+showLogo;};PlayerConfig.prototype.showOption=function(showOptions){this._show_options=""+showOptions;};PlayerConfig.prototype.showCurrentlyPlaying=function(showCurrentlyPlaying){this._show_currently_playing=""+showCurrentlyPlaying;};PlayerConfig.prototype.allowFullscreen=function(allowFullscreen){this._allow_fullscreen=""+allowFullscreen;};PlayerConfig.prototype.showMediathek=function(value){this._show_mediathek=""+value;};PlayerConfig.prototype.setLocalConnectionName=function(lcName){this._localConnectionName=lcName;};PlayerConfig.prototype.setAutostart=function(autostart){this._autostart=""+autostart;};PlayerConfig.prototype.setDefaultQuality=function(quality){this._default_quality=quality;};PlayerConfig.prototype.setDefaultVolume=function(volume){this._default_volume=volume;};PlayerConfig.prototype.setDefaultShowTimeRemaining=function(value){this._default_showTimeRemaining=""+value;};PlayerConfig.prototype.setDefaultUseBandwithDetection=function(value){this._default_Bandwithdetection=""+value;};PlayerConfig.prototype.setPrerollPlayOnFirstClip=function(value){this._prerollOnFirstClip=""+value;};PlayerConfig.prototype.setPrerollPlayRatio=function(value){this._prerollRatio=value;};PlayerConfig.prototype.setCuePointsEnabled=function(value){this._cuePointEneabled=""+value;};PlayerConfig.prototype.setEndScenario=function(scenario){this._endScenario=scenario;};PlayerConfig.prototype.setStrictEndScenario=function(value){this._endScenarioStrict=""+value;};PlayerConfig.prototype.setDefaultStartup=function(defaultStartup){this._defaultStartup=defaultStartup;};PlayerConfig.prototype.setDeviceIdentifyer=function(identifyer){this._deviceIdentifyer=identifyer;};PlayerConfig.prototype.setVAV=function(vavURL){this._vavURL=vavURL;};PlayerConfig.prototype.showMediaInfo=function(value){};PlayerConfig.prototype.showNextButton=function(value){};PlayerConfig.prototype.showPrevButton=function(value){};PlayerConfig.DEVICE_EXTERN="web_extern";PlayerConfig.DEVICE_EMBEDDED="web_embedded";PlayerConfig.DEVICE_VOD="web_vod";PlayerConfig.DEVICE_PLAYLIST="web_playlist";PlayerConfig.DEVICE_MY_3MIN="web_my_3min";PlayerConfig.DEVICE_ADMIN="web_admin";PlayerConfig.DEVICE_SHOWROOM="web_showroom";PlayerConfig.LAST_MEDIA="default_play_last_media";PlayerConfig.FIRST_MEDIA="default_play_first_media";PlayerConfig.HIGH_QUALITY="HQ";PlayerConfig.MEDIUM_QUALITY="MQ";PlayerConfig.LOW_QUALITY="LQ";PlayerConfig.END_SCENARIO_RESET="end_scenario_reset";PlayerConfig.END_SCENARIO_RELATED="end_scenario_related";PlayerConfig.END_SCENARIO_UPCOMMING="end_scenario_upcomming";PlayerConfig.END_SCENARIO_NONE="end_scenario_none";PlayerConfig.PLAYLIST_NAV_STANDARD="playlist_nav_standart";PlayerConfig.PLAYLIST_NAV_OVERLAY="playlist_nav_overlay";PlayerConfig.PLAYLIST_NAV_NONE="playlist_nav_none";PlayerConfig.PLAYLIST_SUBCHANNEL="playlist_subchannel";PlayerConfig.PLAYLIST_RELATED="playlist_related";PlayerConfig.PLAYLIST_TIMELINE="playlist_timeline";PlayerConfig.PLAYLIST_USER_PLIST="playlist_user_playlist";PlayerConfig.PLAYLIST_USER_ABO="playlist_user_abo";var Mediathek=function(threeminPlayder){this._baseHost=window.location;this._player_name="3min_Player_"+ThreeminPlayer.PLAYER_COUNT;this._dimWidth=screen.width;this._dimHeight=screen.height;this.setDimension(screen.width,screen.height);this._threeminPlayer=threeminPlayder;this._mediathekWindow=null;this._mediathekSWF=null;this._mediathekOpening=false;};Mediathek.prototype.toString=function(){return"[Mediathek] for Player: "+this._player_name;};Mediathek.prototype.setMediathekSWF=function(mediathekSWF){this._mediathekSWF=mediathekSWF;var media=this._threeminPlayer.getMedia();this._mediathekSWF.sendSignal(Mediathek.SELECT,"["+media.channelID+","+media.subchannelID+",0,"+media.id+"]");};Mediathek.prototype.openMedia=function(jsonMedia){var mediaMediathek=JSON.parse(jsonMedia);var mediaPlayer=this._threeminPlayer.getMedia();if(this._threeminPlayer.canPlayMedia()&&(mediaMediathek.subchannelID==mediaPlayer.subchannelID)){var ret=this._threeminPlayer.playMedia(mediaMediathek.id);}
else{window.location=mediaMediathek.href;}};Mediathek.prototype.setDimension=function(width,height){this._dimWidth=(width>0?width:this._dimWidth);this._dimHeight=(height>0?height:this._dimHeight);}
Mediathek.prototype.setMaxDimension=function(width,height){if(this._dimWidth>width)
this._dimWidth=width;if(this._dimHeight>height)
this._dimHeight=height;}
Mediathek.prototype.open=function(){if(this._mediathekOpening)
return;this._mediathekOpening=true;if(null!=this._mediathekWindow&&!isUndefined(this._mediathekWindow)){if(!this._mediathekWindow.closed){this._mediathekWindow.blur();this._mediathekWindow.focus();if(this._mediathekSWF){var media=this._threeminPlayer.getMedia();this._mediathekSWF.sendSignal(Mediathek.SELECT,"["+media.channelID+","+media.subchannelID+","+media.id+"]");}
this._mediathekOpening=false;return;}}
var options='resizable=1, toolbar=0, directories=0, status=0, scrollbars=0, menubar=0';this._mediathekWindow=window.open(this.buildTargetURL(),Mediathek.WINDOW_NAME,'left=20, top=20, width='+this._dimWidth+', height='+this._dimHeight+', '+options);window.mediathek=this;if(!isUndefined(this._mediathekWindow)){this._mediathekWindow.focus();}
else{alert("Turn of your Pop-Up Blocker to use the Mediathek ;)")}
this._mediathekOpening=false;};Mediathek.prototype.buildTargetURL=function(){if(null!=this._threeminPlayer){var media=this._threeminPlayer.getMedia();return this._threeminPlayer.getConfig().getBaseHost()+"mediathek.php";}
return window.location+"/mediathek/-1/-1/-1";};Mediathek.WINDOW_NAME="3min_Mediathek";Mediathek.SELECT="SELECT";if(this.JSON){}
else{this.JSON={};(function(){function f(n){return n<10?'0'+n:n;}
if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+
f(this.getUTCMonth()+1)+
'-'+
f(this.getUTCDate())+
'T'+
f(this.getUTCHours())+
':'+
f(this.getUTCMinutes())+
':'+
f(this.getUTCSeconds())+
'Z':null;};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}
var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+
string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+
'"':'"'+string+'"';}
function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}
if(typeof rep==='function'){value=rep.call(holder,key,value);}
switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}
v=partial.length===0?'[]':gap?'[\n'+gap+
partial.join(',\n'+gap)+
'\n'+
mind+
']':'['+partial.join(',')+']';gap=mind;return v;}
if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==='string'){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+
mind+
'}':'{'+partial.join(',')+'}';gap=mind;return v;}}
if(typeof JSON.stringify!=='function'){JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}
else
if(typeof space==='string'){indent=space;}
rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}
return str('',{'':value});};}
if(typeof JSON.parse!=='function'){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}
else{delete value[k];}}}}
return reviver.call(holder,key,value);}
cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+
('0000'+a.charCodeAt(0).toString(16)).slice(-4);});}
if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}
throw new SyntaxError('JSON.parse');};}}())};