if(typeof(webtrekk)!='object'){var webtrekk=new Object();};webtrekk.mediaPlayerStatusMsg='';webtrekk.mediaClipPosition='';webtrekk.mediaClipLength='';webtrekk.mediaStVersion=200;function q3_sendinfo_media(q3_mi,mk,mt1,mt2,mg){if(typeof(mg)!='undefined'){mg=q3_stEscape(mg);}else{mg='';};q3_stQuicksend('st&mi='+q3_stEscape(q3_mi)+'&mk='+mk+'&mt1='+mt1+'&mt2='+mt2+'&mg='+mg+q3_stEncoding());};function q3_stQuicksend(params,script){if(!webtrekk.trackDomain||!webtrekk.trackId)return;if(!script)script="wt.pl";var q3_url=(location.protocol=="https:"?"https:":"http:")+"//"+webtrekk.trackDomain+"/"+webtrekk.trackId+"/"+script+"?p="+webtrekk.mediaStVersion+","+params;if(typeof(webtrekk.mediaGroup)=='object'){if(typeof(webtrekk.mediaGroup[0])!='undefined'&&webtrekk.mediaGroup[0]!=''){q3_url+='&mg='+q3_stEscape(webtrekk.mediaGroup[0]);}else{for(var i in webtrekk.mediaGroup){if(typeof(webtrekk.mediaGroup[i])=='string'&&webtrekk.mediaGroup[i]!=''){q3_url+='&mg'+i+'='+q3_stEscape(webtrekk.mediaGroup[i]);}}}};if(document.images){if(typeof(q3_i)=="undefined")q3_i=new Array();var ii=q3_i.length;q3_i[ii]=new Image();q3_i[ii].src=q3_url;}else{document.write("<img src='"+q3_url+"' height='1' width='1'>");}};function q3_stEscape(u){if(typeof(encodeURIComponent)=='function')return encodeURIComponent(u);return escape(u);};function q3_stEncoding(){var tmp="";if(typeof(encodeURIComponent)!='function')tmp+="&enc0=old";tmp+="&enc1=ü&enc2="
if(document.characterSet)tmp+=document.characterSet.toLowerCase();if(document.charset)tmp+=document.charset.toLowerCase();return tmp;};q3StreamPlayer=[{name:'Windows Media Player',shortname:'wm',actX:['WMPlayer.OCX'],mimes:['application/asx','application/x-mplayer2','video/x-ms-asf','video/x-ms-asf-plugin','audio/x-ms-wax','video/x-ms-wm','audio/x-ms-wma','video/x-ms-wmv','video/x-ms-wvx'],msgs:{"1":"stop","2":"pause","3":"play","8":"eof"},getStatus:function(){x='document.'+q3StreamTrekk.player+'.playState';return eval(x);},getPosition:function(){x='document.'+q3StreamTrekk.player+'.controls.currentPosition';return Math.floor(eval(x));},getClipLength:function(){if(!q3StreamTrekk.player){window.setTimeout("q3StreamPlayer[q3StreamTrekk.q3spid].getClipLength()",10);}else{x='document.'+q3StreamTrekk.player+'.currentMedia.duration';return Math.floor(eval(x));}}},{name:'RealPlayer',shortname:'rp',actX:['rmocx.RealPlayer G2 Control'],mimes:['audio/x-pn-realaudio','audio/x-pn-realaudio-plugin'],msgs:{"0":"stop","3":"play","4":"pause"},getStatus:function(){x='document.'+q3StreamTrekk.player+'.GetPlayState()';return eval(x);},getPosition:function(){x='document.'+q3StreamTrekk.player+'.GetPosition()';return Math.floor(eval(x)/1000);},getClipLength:function(){if(!q3StreamTrekk.player){window.setTimeout("q3StreamPlayer[q3StreamTrekk.q3spid].getClipLength()",10);}else{x='document.'+q3StreamTrekk.player+'.GetLength()';return Math.floor(eval(x)/1000);}}},{name:'QuickTime',shortname:'qt',actX:['QuickTime.QuickTime'],mimes:['video/quicktime','video/x-m4v'],msgs:{"0":"pause","1":"play"},getStatus:function(){x='document.'+q3StreamTrekk.player+'.GetRate()';return eval(x);},getPosition:function(){x='document.'+q3StreamTrekk.player+'.GetTime()';return Math.floor(eval(x)/1000);},getClipLength:function(){if(!q3StreamTrekk.player){window.setTimeout("q3StreamPlayer[q3StreamTrekk.q3spid].getClipLength()",10);}else{x='document.'+q3StreamTrekk.player+'.GetEndTime()';return Math.floor(eval(x)/1000);}}},];q3StreamTrekk={player:null,q3_PlayerStatus:0,q3_PlayerStatusMsg:null,q3_ClipPosition:0,q3_ClipLength:0,q3spid:null,isIE:navigator.userAgent.indexOf('MSIE')!=-1,init:function(){this.player=webtrekk.mediaPlayerId;if(typeof(webtrekk.mediaPlayer)!='string'||webtrekk.mediaPlayer==''){window.setTimeout("q3StreamTrekk.detectPlayer()",10);}else{switch(webtrekk.mediaPlayer){case 'rp':this.q3spid=1;break;case 'qt':this.q3spid=2;break;case 'wm':this.q3spid=0;break;}};if(this.q3spid!=null&&this.detectPlugin()){window.setTimeout("q3StreamTrekk.check()",100);}},check:function(){if(!this.q3_ClipLength||this.q3_ClipLength==0){this.q3_ClipLength=q3StreamPlayer[this.q3spid].getClipLength();window.setTimeout("q3StreamTrekk.check()",10);return;};window.setInterval("q3StreamTrekk.checkPlayerStatus()",1000);window.setInterval("q3StreamTrekk.setCurrentPosition()",100);this.q3RegisterEvent(window,(this.isIE&&window.onbeforeunload)?"beforeunload":"unload",this.sendPixelOnUnload);},checkPlayerStatus:function(){if(!webtrekk.mediaPlayerStatusMsg){webtrekk.mediaPlayerStatusMsg='init';webtrekk.mediaClipPosition=this.q3_ClipPosition;webtrekk.mediaClipLength=this.q3_ClipLength;this.sendPixel();};if(this.q3_PlayerStatus!=q3StreamPlayer[this.q3spid].getStatus()){this.q3_PlayerStatus=q3StreamPlayer[this.q3spid].getStatus();this.q3_PlayerStatusMsg=q3StreamPlayer[this.q3spid].msgs[this.q3_PlayerStatus];if((this.q3_PlayerStatusMsg=='stop'||this.q3_PlayerStatusMsg=='pause')&&this.q3_ClipPosition==this.q3_ClipLength)this.q3_PlayerStatusMsg='eof';webtrekk.mediaPlayerStatusMsg=this.q3_PlayerStatusMsg;webtrekk.mediaClipPosition=this.q3_ClipPosition;webtrekk.mediaClipLength=this.q3_ClipLength;this.sendPixel();}},setCurrentPosition:function(){if(q3StreamPlayer[this.q3spid].getPosition()>0){this.q3_ClipPosition=q3StreamPlayer[this.q3spid].getPosition();webtrekk.mediaClipPosition=this.q3_ClipPosition;}},detectPlugin:function(){plug=false;if(this.isIE){eval("try { p = new ActiveXObject(q3StreamPlayer[this.q3spid].actX[0]) }catch(e){};");if(typeof(p)=='object')plug=true;}else{if((navigator.mimeTypes)&&(navigator.mimeTypes.length>0)){for(a=0;a<navigator.mimeTypes.length;a++){for(aa=0;aa<q3StreamPlayer[this.q3spid].mimes.length;aa++){m=q3StreamPlayer[this.q3spid].mimes[aa];if(navigator.mimeTypes[a].type.indexOf(m)>=0){plug=true;break;}}}}};return plug;},detectPlayer:function(){p=false;for(z=0;z<q3StreamPlayer.length;z++){if(!document.layers&&document.getElementById){eval("try { p = q3StreamPlayer[z].getStatus() }catch(e){};");};if(p){webtrekk.mediaPlayer=q3StreamPlayer[z].shortname;q3StreamTrekk.init();return;}};q3StreamTrekk.init();},q3RegisterEvent:function(obj,e,f){if(obj.addEventListener){obj.addEventListener(e,f,false);}else{if(obj.attachEvent){obj.attachEvent("on"+e,f);}}},sendPixel:function(){if(webtrekk.mediaPlayerStatusMsg!=''&&typeof(webtrekk.mediaPlayerStatusMsg)!='undefined'){q3_stQuicksend('st&mi='+q3_stEscape(webtrekk.mediaId)+'&mk='+webtrekk.mediaPlayerStatusMsg+'&mt1='+webtrekk.mediaClipPosition+'&mt2='+webtrekk.mediaClipLength+q3_stEncoding());if(webtrekk.mediaPlayerStatusMsg=='stop'){this.q3_ClipPosition=1;webtrekk.mediaClipPosition=1;}}},sendPixelOnUnload:function(){if(webtrekk.mediaClipPosition>0&&webtrekk.mediaClipPosition!=webtrekk.mediaClipLength){q3_stQuicksend('st&mi='+q3_stEscape(webtrekk.mediaId)+'&mk=stop&mt1='+webtrekk.mediaClipPosition+'&mt2='+webtrekk.mediaClipLength+q3_stEncoding());}}};if(typeof(webtrekk.mediaPlayerId)=='string'&&webtrekk.mediaPlayerId!=''){q3StreamTrekk.init();};


