	//Die Funktion dient dazu den verwendeten
//Browser zu ermittlen sie wird von einigen 
//Funktione verwendet
//Daher sollte sie moeglist wenig geaendert werden
//Reset Player Cookies
document.cookie = 'mp3playerStatus=';
document.cookie = 'mp3playerCurrentPosition=0';
var StrSearchFilter="";
var BrowserDetect = {
	init: function () {
		this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
		this.version = this.searchVersion(navigator.userAgent)
			|| this.searchVersion(navigator.appVersion)
			|| "an unknown version";
		this.OS = this.searchString(this.dataOS) || "an unknown OS";
	},
	searchString: function (data) {
		for (var i=0;i<data.length;i++)	{
			var dataString = data[i].string;
			var dataProp = data[i].prop;
			this.versionSearchString = data[i].versionSearch || data[i].identity;
			if (dataString) {
				if (dataString.indexOf(data[i].subString) != -1)
					return data[i].identity;
			}
			else if (dataProp)
				return data[i].identity;
		}
	},
	searchVersion: function (dataString) {
		var index = dataString.indexOf(this.versionSearchString);
		if (index == -1) return;
		return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
	},
	dataBrowser: [
		{ 	string: navigator.userAgent,
			subString: "OmniWeb",
			versionSearch: "OmniWeb/",
			identity: "OmniWeb"
		},
		{
			string: navigator.vendor,
			subString: "Apple",
			identity: "Safari"
		},
		{
			prop: window.opera,
			identity: "Opera"
		},
		{
			string: navigator.vendor,
			subString: "iCab",
			identity: "iCab"
		},
		{
			string: navigator.vendor,
			subString: "KDE",
			identity: "Konqueror"
		},
		{
			string: navigator.userAgent,
			subString: "Firefox",
			identity: "Firefox"
		},
		{
			string: navigator.vendor,
			subString: "Camino",
			identity: "Camino"
		},
		{		// for newer Netscapes (6+)
			string: navigator.userAgent,
			subString: "Netscape",
			identity: "Netscape"
		},
		{
			string: navigator.userAgent,
			subString: "MSIE",
			identity: "Explorer",
			versionSearch: "MSIE"
		},
		{
			string: navigator.userAgent,
			subString: "Gecko",
			identity: "Mozilla",
			versionSearch: "rv"
		},
		{ 		// for older Netscapes (4-)
			string: navigator.userAgent,
			subString: "Mozilla",
			identity: "Netscape",
			versionSearch: "Mozilla"
		}
	],
	dataOS : [
		{
			string: navigator.platform,
			subString: "Win",
			identity: "Windows"
		},
		{
			string: navigator.platform,
			subString: "Mac",
			identity: "Mac"
		},
		{
			string: navigator.platform,
			subString: "Linux",
			identity: "Linux"
		}
	]

};
BrowserDetect.init();


//Dies Funktion ersetzt alle Leerzeichen durch %20

function replaceSpacer(strInput){
	var intCounter =0;
	var stroutput ="";
	while(intCounter<strInput.length){
		if(strInput.charCodeAt(intCounter) ==32){
			stroutput+="%20";
		}else if(strInput.charCodeAt(intCounter) ==252){
			stroutput+="&uuml;";
		}else{
			stroutput+=strInput.charAt(intCounter);
		}

		intCounter++;
	}
	return stroutput;
}
	
		var ObjPlayer ="";
	var ObjItem="";
	var stopped=0;
	var actuelTime =0;
	var preActuelTime=0;
	var  actuelduration=0;
	var buffered=0;
	var videoplayerStatus=0;
	var playercreated=0;
	var ObjContainer="";
	var preSelectedBVideo="";
	var StrFileExtensionInternal="";
	var activeExtension="";
	var activeFeedId="";
	var selectedItemText="";
	var StrPlayerURL="";
	var activeMessageId="";
	function initVideoPlayer(ObjContainer,IntFeedId,IntMessageId,StrFileExtension){
		loadMovie(ObjContainer,"./audio/"+IntFeedId+"/"+IntMessageId+StrFileExtension);
	}
	function playFeed(ObjItemInit,ObjContainer,IntFeedId,IntMessageId,StrFileExtension,IntCFeedId,IntDirect){
		ObjItem =ObjItemInit;
		if(IntDirect==1)videoplayerStatus=0;
		StrFileExtensionInternal =StrFileExtension;
		if(ObjItem.src.indexOf("audio_play.png")!=-1 || IntDirect==1){
			//ObjItem.style.backgroundImage="url(./tmpl/default/images/stopbutton.png)";
			//ObjItem.style.width=24;
    	//ObjItem.style.height=23;
    	//ObjItem.style.marginLeft  =ObjItem.style.marginLeft -8;
    	buffered=0;
    	stopped=0;
			try{
				if(playercreated==0 || IntDirect==1){
					 //setLogo();
					 activeExtension=StrFileExtension;
					 activeFeedId=IntCFeedId;
					 activeMessageId=IntMessageId;
					 StrPlayerURL='http://www.test.yasssu.com/lib/quicktimefullscreen.php?FeedId='+IntFeedId+'&MessageId='+IntMessageId+'&Extension='+StrFileExtension;
					loadMovie(ObjContainer,"./audio/"+IntFeedId+"/"+IntMessageId+StrFileExtension);
					playercreated=1;
				}
				if(IntDirect==1){
					/*if(BrowserDetect.browser != 'Firefox'){
						document.getElementById('flashpic').innerHTML=''+
								'<div style="font-size:1;height:12px;_height:3px"></div>' +
								'<object style="margin-left:12px;_margin-top:-6px;width:380;height:250px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="380" height="250" id="intro" align="middle">' +
								'<param name="allowScriptAccess" value="sameDomain" />' +
								'<param name="allowFullScreen" value="false" />' +
								'<param name="movie" value="./tmpl/default/flash/intro_spot.swf" /><param name="wmode" value="transparent" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed wmode="transparent" style="margin-left:12px;_margin-top:-6px;width:380;height:250px" src="./tmpl/default/flash/intro_spot.swf" quality="high" bgcolor="#ffffff" width="380" height="250" name="intro" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />' +
								'</object>';
					}else{
						document.getElementById('flashpic').innerHTML=''+
								'' +
								'<object style="margin-left:2px;_margin-top:-6px;width:380;height:250px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="380" height="250" id="intro" align="middle">' +
								'<param name="allowScriptAccess" value="sameDomain" />' +
								'<param name="allowFullScreen" value="false" />' +
								'<param name="movie" value="./tmpl/default/flash/intro_spot.swf" /><param name="wmode" value="transparent" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed wmode="transparent" style="margin-left:2px;_margin-top:-6px;width:380;height:250px" src="./tmpl/default/flash/intro_spot.swf" quality="high" bgcolor="#ffffff" width="380" height="250" name="intro" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />' +
								'</object>';			
					}*/
				}
				//ObjPlayer.SetURL("http://213.208.1.115/podcast/"+IntFeedId+"/"+IntMessageId+".mp4");   
			}catch(e){
				//ObjPlayer.setURL("http://213.208.1.115/podcast/"+IntFeedId+"/"+IntMessageId+".mp4");   
			}
			if(document.getElementById('videoplayer')!=null){
				ObjPlayer=document.getElementById('videoplayer');
			}
    	if(playercreated==1){
    		try{
    			document.cookie = 'audiostopped=0';
    			document.getElementById('videoplayer').Play();
					//ObjPlayer.Play();
				}catch(E){
					//alert(E);
				}
			}
			try{
				displayPlayTime();
    		checkplaying();
    	}catch(E){}
		}else{
			buffered=0;
			stopped=1;
			videoplayerStatus=0;
		  ObjPlayer.Stop();
		  document.cookie = 'audiostopped=2';
		  if(activeExtension!=".m4v" && activeExtension!=".mp4" && activeExtension!=".mov"){
		  	//document.getElementById('flashpic').innerHTML='<div  onclick="playFeed(document.getElementById(\'playerbutton\'),document.getElementById(\'playerdetail\'),'+IntFeedId+','+IntMessageId+',0)" style="width:380;height:250px;font-size:2px;margin-left:15px;margin-top:0px;_margin-top:18px;background-image:url(/tmpl/default/images/video_play.jpg);cursor:pointer"></div>';
			}
		  try{
    		//ObjItem.style.marginLeft =ObjItem.style.marginLeft +8;
    	}catch(E){}
    	//ObjItem.style.width=20;
    	//ObjItem.style.height=23;
    	ObjItem.src="./tmpl/default/style/images/audio_play.png";
		}
	}
	

	function loadPlayerURL(strURL){
		alert(ObjPlayer.GetUrl());
	}
	
	function getBufferStatus() {   
    var timeLoaded = ObjPlayer.GetMaxTimeLoaded()   
    var duration = ObjPlayer.GetDuration();   
    return parseInt( timeLoaded * 100 / duration );   
	}  
	
	function getTime() {   
		try{
    	return ObjPlayer.GetTime() / ObjPlayer.GetTimeScale(); 
   	}catch(E){
   		return ObjPlayer.getTime() / ObjPlayer.GetTimeScale(); 
   	}  
	}   
  
	function getDuration() {   
		try{
    	return ObjPlayer.GetDuration() / ObjPlayer.GetTimeScale();   
   	}catch(E){
   		return ObjPlayer.getDuration() / ObjPlayer.GetTimeScale();
   	}  
	} 
	
	function setTime(sec) {   
      ObjPlayer.SetTime( sec * ObjPlayer.GetTimeScale() );     
	}   

	function getVolume() {   
    return parseInt( ObjPlayer.GetVolume() * 100 / 255 );   
	}   
	  
	function setVolume(vol) {   
	    ObjPlayer.SetVolume( vol * 255 / 100 );   
	}   

	function setPlayerSpeed(flSpeed){
		ObjPlayer.SetRate(flSpeed);
	}
	
	function checkplaying(){
		try{
			//ObjPlayer.SetControllerVisible(false);
			if(changetoSecond(getTime()) == preActuelTime){
				if(stopped==1){
	    		//ObjItem.style.marginLeft  =ObjItem.style.marginLeft +8;
	    		//ObjItem.style.width=20;
	    		//ObjItem.style.height=23;
	    		ObjItem.src="./tmpl/default/style/images/audio_play.png";
	    	}
			}else{
				if(stopped==0){
			 		ObjItem.src="./tmpl/default/style/images/audio_stopp.png";
			 		//ObjItem.style.width=24;
    	 		//bjItem.style.height=23;
    	 		//ObjItem.style.marginLeft  =ObjItem.style.marginLeft -8;
    		}
			}
			preActuelTime = changetoSecond(getTime());
		}catch(E){
		}
		setTimeout("checkplaying()",500);
	}
	//Dient zum setzen player Position
	function getVideoX( oElement )
	{
		var iReturnValue = 0;
		while( oElement != null ) {
			iReturnValue += oElement.offsetLeft;
			oElement = oElement.offsetParent;
		}
		return iReturnValue;
	}
	
	function setPlayerPos(ObjSetter){
		var IntLeft = getVideoX( ObjSetter );
		var IntLength = IntMouseLeft-IntLeft;
		var IntPercent =(IntLength*100)/(ObjSetter.style.width.substr(0,ObjSetter.style.width.length-2));
	
  	try{
  		var ActuelPos =Math.round((IntPercent*(ObjPlayer.GetDuration()/ObjPlayer.GetTimeScale()))/100);
  		if(ActuelPos!=Infinity){
  			if(getBufferStatus()>=IntPercent){
  				ObjPlayer.SetTime(ObjPlayer.GetTimeScale()*ActuelPos);
  			}
  		}
    }catch(E){
    }
	}
	function setPlayBorder(objitem){
		if(selectedItemText != objitem.id){
			objitem.parentNode.parentNode.style.border="1px coral solid";
			if(preSelectedBVideo==""){
			}else{
				preSelectedBVideo.parentNode.parentNode.style.border="";
				preSelectedBVideo="";
			}
			preSelectedBVideo = objitem;
			selectedItemText = objitem.id;
		}else{
			
		}
	}
	
	function displayPlayTime(){
		try{
			//ObjPlayer.SetControllerVisible(false);
			actuelTime = changetoSecond(getTime());
			actuelduration = changetoSecond(getDuration());
			if(actuelTime !="0:00:NaN" && actuelduration !="0:00:NaN"){
				if(getBufferStatus()>2){
					if(actuelTime==actuelduration){
						stopped=1;
						videoplayerStatus=0;
						buffered=0;
						//document.getElementById('videoplaytime').innerHTML="00:00:00 | 00:00:00";
						//document.getElementById('playertimebar').style.width="0%";
						try{
							//ObjItem.style.marginLeft  =ObjItem.style.marginLeft +8;
						}catch(E){
						}
		    		//ObjItem.style.width=20;
		    		//ObjItem.style.height=23;
		    		//playercreated=0;
		    		ObjItem.src="./tmpl/default/style/images/audio_play.png";
						//setLogo();
						//try{preSelectedBVideo.parentNode.parentNode.style.border=""}catch(E){};
						//ObjContainer.innerHTML='<div style="font-size:1;height:12px;_height:3px"></div>'+//<div style="z-index:1800;background-color:#000;margin-left:12px;_margin-top:-6px;width:380;height:250px"></div>';
						//		'<object style="margin-left:12px;_margin-top:-6px;width:380;height:250px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="380" height="250" id="intro" align="middle">'+
						//		'<param name="allowScriptAccess" value="sameDomain" />'+
						//		'<param name="allowFullScreen" value="false" />'+
						//		'<param name="movie" value="./tmpl/default/flash/intro_spot.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" />	<embed src="./tmpl/default/flash/intro_spot.swf" wmode="transparent" quality="high" bgcolor="#ffffff" width="218" height="325" name="intro" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+
						//		'</object>';
					}
					
					if(stopped==0 && videoplayerStatus!=1){
						videoplayerStatus=1;
						if(activeExtension==".m4v" || activeExtension==".mp4" || activeExtension==".mov"){
							ObjPlayer.width=380;
							ObjPlayer.height=250;
							//document.getElementById('flashpic').innerHTML="";
						}else{
							//document.getElementById('flashpic').innerHTML="";
							/*if(BrowserDetect.browser != 'Firefox'){
								document.getElementById('flashpic').innerHTML=''+
									'<div style="font-size:1;height:2px;_height:3px"></div>' +
									'<object style="margin-left:12px;_margin-top:-6px;width:380;height:250px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="380" height="250" id="intro" align="middle">' +
									'<param name="allowScriptAccess" value="sameDomain" />' +
									'<param name="allowFullScreen" value="false" />' +
									'<param name="movie" value="./tmpl/default/flash/audio_file/audio_file.swf?FeedId='+activeFeedId+'" /><param name="wmode" value="transparent" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed wmode="transparent" style="margin-left:12px;_margin-top:-6px;width:380;height:250px" src="./tmpl/default/flash/audio_file/audio_file.swf?FeedId='+activeFeedId+'" quality="high" bgcolor="#ffffff" width="380" height="250" name="intro" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />' +
									'</object>';
								}else{
								 document.getElementById('flashpic').innerHTML=''+
									'<div style="font-size:1;height:2px;_height:3px"></div>' +
									'<object style="margin-left:6px;margin-top:-15px;width:380;height:250px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="380" height="250" id="intro" align="middle">' +
									'<param name="allowScriptAccess" value="sameDomain" />' +
									'<param name="allowFullScreen" value="false" />' +
									'<param name="movie" value="./tmpl/default/flash/audio_file/audio_file.swf?FeedId='+activeFeedId+'" /><param name="wmode" value="transparent" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed wmode="transparent" style="margin-left:6px;margin-top:-15px;width:380;height:250px" src="./tmpl/default/flash/audio_file/audio_file.swf?FeedId='+activeFeedId+'" quality="high" bgcolor="#ffffff" width="380" height="250" name="intro" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />' +
									'</object>';
								}*/
						}
						ObjPlayer.Play();
					}
				}
				if(getBufferStatus() > 5)buffered=1;
				
				if(buffered==0){
					//document.getElementById('videoplaytime').innerHTML="Buffering: "+getBufferStatus()+"%";//changetoSecond(getTime())+" | "+changetoSecond(getDuration());
				}else{
					//document.getElementById('videoplaytime').innerHTML=changetoSecond(getTime())+" | "+changetoSecond(getDuration()) + " (" + getBufferStatus()+"%" + ")";
				}
					//document.getElementById('playertimebarbuffer').style.width=getBufferStatus()+"%";
					//document.getElementById('playertimebar').style.width=Math.round(((ObjPlayer.GetTime()/ObjPlayer.GetTimeScale())*100)/(ObjPlayer.GetDuration()/ObjPlayer.GetTimeScale()))+"%";
		
			}
		}catch(E){
			//alert(E);
		}
    if(stopped==0){
			setTimeout("displayPlayTime()",50);
		}
	}
	function loadMovie(ObjContainerInternal,Murl){
		ObjContainer = ObjContainerInternal;
		var IntTop=0;
		var IntLeft=0;
		var IntWidth=0;
		var IntHeight=0;
		var StrId="";
		var StrFireFoxId="";
		if(BrowserDetect.browser == 'Firefox'){
			if(activeExtension==".m4v" || activeExtension==".mp4" || activeExtension==".mov"){
				IntTop=12;
				IntLeft=12;
			}else{
				IntTop=0;
				IntLeft=0;
			}
			IntWidth=2;
		  IntHeight=2;
			StrId ="";
			StrFireFoxId='id="videoplayer" '
			ObjContainer.innerHTML = '<div style="font-size:1;height:1px;width:1px; overflow:hidden;"></div>';
		}else{
			IntTop=12;
			IntLeft=12;
			StrId ='id="videoplayer"';
			StrFireFoxId='' 
			ObjContainer.innerHTML="";
		}
	 	ObjContainer.innerHTML+= ''+
	    '<object  style="background-color:#000; width:0px; height:0px;overflow:hidden;margin-left:'+IntLeft+'px;margin-top:'+IntTop+'px" '+StrId +
	    'classid="CLSID:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ' +
	    'codebase="http://www.apple.com/qtactivex/qtplugin.cab" ' +
	    'width="0" height="0">' +
	    '<param name="type" value="video/quicktime">' +
	    '<param name="src" value="'+Murl+'" />' +
	    '<param name="cache" value="true" />' +
	    '<param name="loop" value="false" />' +
	    '<param name="autoplay" value="false" />' +
	    '<param name="controller" value="false" />' +
	    '<param name="scale" value="tofit" />' +
	    '<param name="SHOWLOGO" value="false" />' +
	    '<param name="BGCOLOR" value="#5FAFF7" />' +
	    '<param name="kioskmode" value="true" />' +
	    '<param name="HREF" value="javascript:return false;" />' +
	    '<embed ' +
	    'pluginspage="http://www.apple.com/quicktime/download/" ' +
	    'width="'+IntWidth+'" ' +
	    'height="'+IntHeight+'" ' +
	    StrFireFoxId +
	    'enablejavascript="true" ' +
	    'type="video/quicktime" ' +
	    'src="'+Murl+'" ' +
	    'scale="tofit" ' +
	    'kioskmode="true" '+
	    'cache="true" ' +
	    'BGCOLOR=#5FAFF7 ' +
	    'HREF="javascript:return false;" ' +
	    'SHOWLOGO="false" ' +
	    'loop="false" ' +
	    'autoplay="false" ' +
	    'controller="false" ' +
	    '/>' +
	    '<noembed>' +
	    '<a href="http://www.apple.com/quicktime/download/">' +
	    '<img SRC="keinQuicktime.gif" width=380 height=250 alt="[QuickTime]" title="QuickTime installieren ...">' +
	    '</a>' +
	    '</noembed>' +
	    '</object>';
	}
	
	function load_fullscreenVideo(IntFeedId,IntMessageId,StrFileExtension,IntCFeedId){
			buffered=0;
			stopped=1;
			videoplayerStatus=0;
		  if(activeExtension!=".m4v" && activeExtension!=".mp4" && activeExtension!=".mov"){
		  	document.getElementById('flashpic').innerHTML='<div  onclick="playFeed(document.getElementById(\'playerbutton\'),document.getElementById(\'playerdetail\'),'+IntFeedId+','+IntMessageId+',0)" style="width:380;height:250px;font-size:2px;margin-left:15px;margin-top:0px;_margin-top:18px;background-image:url(/tmpl/default/images/video_play.jpg);cursor:pointer"></div>';
			}
		  try{ObjPlayer.Stop()}catch(E){};
			if(StrPlayerURL==""){
				StrPlayerURL='http://www.test.yasssu.com/lib/quicktimefullscreen.php?FeedId='+IntFeedId+'&MessageId='+IntMessageId+'&Extension='+StrFileExtension;
			}
			 document.getElementById("videbig").innerHTML='<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"'+
															 'codebase="http://www.apple.com/qtactivex/qtplugin.cab"; height="2"'+
															 'width="2">'+
															 '<param name="target" value="quicktimeplayer">'+
															 '<param name="autohref" value="true">'+
															 '<param name="href"'+
															 'value="'+StrPlayerURL+'">'+
															 '<param name="src" value="sucess.mov">'+
															 '<param name="autoplay" value="true">'+
															 '<param name="controller" value="false">'+
															 '<param name="kioskmodus" value="true">'+
															 '<embed height="2" pluginspage="http://www.apple.com/quicktime/download/";'+
															 'src="sucess.mov" type="video/quicktime" width="2" controller="false"'+
															 'autoplay="true" '+
															 'href="'+StrPlayerURL+'"'+
															 'target="quicktimeplayer" autohref="true" kioskmodus="true">'+
															 '</object>';
	}
	
	function setLogo(){
		ObjContainer.innerHTML="&#160";
		if(BrowserDetect.browser == 'Firefox'){
						document.getElementById('flashpic').innerHTML=''+
								'' +
								'<object style="margin-left:2px;_margin-top:-6px;width:380;height:250px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="380" height="250" id="intro" align="middle">' +
								'<param name="allowScriptAccess" value="sameDomain" />' +
								'<param name="allowFullScreen" value="false" />' +
								'<param name="movie" value="./tmpl/default/flash/intro_spot.swf" /><param name="wmode" value="transparent" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed wmode="transparent" style="margin-left:2px;_margin-top:-6px;width:380;height:250px" src="./tmpl/default/flash/intro_spot.swf" quality="high" bgcolor="#ffffff" width="380" height="250" name="intro" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />' +
								'</object>';	
		}else{
	    	document.getElementById('flashpic').innerHTML=''+
										'<div style="font-size:1;height:12px;_height:3px"></div>' +
										'<object style="margin-left:12px;_margin-top:-6px;width:380;height:250px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="380" height="250" id="intro" align="middle">' +
										'<param name="allowScriptAccess" value="sameDomain" />' +
										'<param name="allowFullScreen" value="false" />' +
										'<param name="movie" value="./tmpl/default/flash/intro_spot.swf" /><param name="wmode" value="transparent" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed wmode="transparent" style="margin-left:12px;_margin-top:-6px;width:380;height:250px" src="./tmpl/default/flash/intro_spot.swf" quality="high" bgcolor="#ffffff" width="380" height="250" name="intro" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />' +
										'</object>';			
		}
	}
	function changetoSecond(IntSecond){
          i = 0;
          s = Math.floor(IntSecond);
          m = 0;
          h = 0;
          m1 = 0;
          s1 = 0;
             if (s > 59) {
                m = Math.floor(s/60);
                s = s-m*60;
                }
             if (m > 59) {
                h = Math.floor(m/60);
                m = m-h*60;
               }
             if (s < 10) {
                s = "0"+s;
                }
             if (m < 10) {
                m = "0"+m;
                }
             bx = h+":"+m+":"+s;
             return bx;
 }
 //Diese Funktion dient dazu COOKIE
//per namen auzulesen

function getcookie(name) {
  var cookiename = name + "="
  var cookielen = cookiename.length
  var cookiebegin = 0
  while (cookiebegin <= document.cookie.length) {
    var cookieval = (cookiebegin + cookielen);
    if (document.cookie.substring(cookiebegin, cookieval) == cookiename) {
      cookieend = document.cookie.indexOf(";",cookieval)
      if(cookieend == -1) cookieend = document.cookie.length
      return (unescape(document.cookie.substring(cookieval,cookieend)))
    }
    cookiebegin = document.cookie.indexOf(" ", cookiebegin) + 1;
    if (cookiebegin == 0) break;
  }
  return (null);
}