// JavaScript by Smart Graphics
// not for commercial use

	var ns = document.getElementById && !document.all;
	var ie4 = document.all;

	function byid(eingabe){
		if (ie4){
			return document.all[eingabe];
		}else if (ns) {
			return document.getElementById(eingabe);
		}else{
			alert('Ihr Browser unterstützt nicht die notwendigen Funktionen?'); 
		}
	}

	function flash_objekt(div_id,film_id,datei,wmode,width,height,scale){
		var objekt = '<ob' +  'ject i'   + 'd="'+film_id+'" clas' +  'sid="cl' +  'sid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'">'+
						'<par' +  'am name="movie" value="'+datei+'" />'+
						'<pa' +  'ram name="quality" value="high" />'+
						'<pa' +  'ram name="SCALE" value="'+scale+'">'+
						'<pa' +  'ram name="WMODE" value="'+wmode+'">'+
						'<e' +  'mbe' +  'd i'   + 'd="'+film_id+'" src="'+datei+'" wmode="'+wmode+'" SCALE="'+scale+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="appl' +  'ication/x-shoc' +  'kwave-fl' +  'ash" width="'+width+'" height="'+height+'"></emb' +  'ed>'+
					'</ob' +  'ject>';
		byid(div_id).innerHTML = objekt;
	}
	
	
	function findeFlash (flash) {
		if (document.all) {
			if (document.all[flash]) return document.all[flash];
			if (window.opera) {
				var movie = eval(window.document + flash);
				if (movie.SetVariable) return movie;
			}
			return;
		}
		if(document.layers) {
			if(document.embeds[flash]) {
				var movie = document.embeds[flash];
				if (movie.SetVariable) return movie;
			}
			return;
		}
		if (!document.getElementById) return;
		var movie = document.getElementById(flash);
		if (movie.SetVariable) return movie;
		var movies = movie.getElementsByTagName('embed');
		if (!movies || !movies.length) return;
		movie = movies[0];
		if (movie.SetVariable) return movie;
		return;
	}

	function flash_setzten(){
		var film = findeFlash('mitte');
		if(film) {
			film.SetVariable("sprung_film", byid('sprung_film').value);
		}
	}
	function flash_auslesen(wert){
		byid('sprung_film').value = wert;
		flash_setzten();
	}