<!--

indexOld = "1";

function show(index) {
	
	//Text anzeigen
	var text = document.getElementById("video_txt_"+index).innerHTML;
	document.getElementById("stage_txt").innerHTML = text;
	
	//Tumbnail highlighten
	if (indexOld!="" && indexOld != index){
		setElement("tbn_"+indexOld, 1, "backgroundImage", "url(image/BG_video_gelb.png)");
	}
	setElement("tbn_"+index, 1, "backgroundImage", "url(image/BG_video_black.png)");
	indexOld = index;
	
	//Video / Bild einbinden
	if(index <= 3){
		if (index === 1 && plugin) {
			playSWF("flashplayer.swf?peterPath=http://a1767.g.akamai.net/v/1767/28260/7d/nexumstorage.download.akamai.com/28260/yello/yello_sparzaehler_online_google.flv&vidnum=1", "flashplayer", "", "640px", "360px", "opaque", "#fff100", "", "stage_inner");
		}
		if (index === 2 && plugin) {
			playSWF("flashplayer.swf?peterPath=http://a1767.g.akamai.net/v/1767/28260/7d/nexumstorage.download.akamai.com/28260/yello/yello_sparzaehler_online_familiehoffmann_dom.flv&vidnum=3", "flashplayer", "", "640px", "360px", "opaque", "#fff100", "", "stage_inner");
		}
		if (index === 3 && plugin) {
			playSWF("flashplayer.swf?peterPath=http://a1767.g.akamai.net/v/1767/28260/7d/nexumstorage.download.akamai.com/28260/yello/yello_sparzaehler_online_marktstart_de_v2.flv&vidnum=2", "flashplayer", "", "640px", "360px", "opaque", "#fff100", "", "stage_inner");
		}
	}
	else{
		setElement("stage_inner", 0, "innerHTML", "<img src=\"image/stage_bild_"+index+".jpg\" width=\"640\" height=\"360\" />");
	}
}

function show_en(index) {
	
	//Text anzeigen
	var text = document.getElementById("video_txt_"+index).innerHTML;
	document.getElementById("stage_txt").innerHTML = text;
	
	//Tumbnail highlighten
	if (indexOld!="" && indexOld != index){
		setElement("tbn_"+indexOld, 1, "backgroundImage", "url(image/BG_video_gelb.png)");
	}
	setElement("tbn_"+index, 1, "backgroundImage", "url(image/BG_video_black.png)");
	indexOld = index;
	
	//Video / Bild einbinden
	if(index <= 3){
		if (index === 1 && plugin) {
			playSWF("flashplayer.swf?peterPath=http://a1767.g.akamai.net/v/1767/28260/7d/nexumstorage.download.akamai.com/28260/yello/yello_sparzaehler_online_google.flv&vidnum=1", "flashplayer", "", "640px", "360px", "opaque", "#fff100", "", "stage_inner");
		}
		if (index === 2 && plugin) {
			playSWF("flashplayer.swf?peterPath=http://a1767.g.akamai.net/v/1767/28260/7d/nexumstorage.download.akamai.com/28260/yello/yello_sparzaehler_online_familiehoffmann_dom.flv&vidnum=3", "flashplayer", "", "640px", "360px", "opaque", "#fff100", "", "stage_inner");
		}
		if (index === 3 && plugin) {
			playSWF("flashplayer.swf?peterPath=http://a1767.g.akamai.net/v/1767/28260/7d/nexumstorage.download.akamai.com/28260/yello/yello_sparzaehler_online_marktstart_en_v2.flv&vidnum=2", "flashplayer", "", "640px", "360px", "opaque", "#fff100", "", "stage_inner");
		}
	}
	else{
		setElement("stage_inner", 0, "innerHTML", "<img src=\"image/stage_bild_"+index+".jpg\" width=\"640\" height=\"360\" />");
	}
}

function tooltipOn(index) {
	//setElement("tt_"+index, 1, "display", "block");
}

function tooltipOff(index) {
	//setElement("tt_"+index, 1, "display", "none");
}

function setElement(eID,ifStyle,funct,wert){
	if (document.getElementById){
		if (ifStyle == 1){
			var newElement = document.getElementById(eID).style;
		}
		else {
			var newElement = document.getElementById(eID);
		}
		newElement[funct] = wert;
	}
}

//check for flash
var flashversionMin = 8;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if (plugin) {
	for (f = 0; f < 20; f++) {
		var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
		if (plugin.description.indexOf(f+".")>=0){
			flashversion = f;
			
			if (flashversion >= flashversionMin){
				plugin = true;
				break;
			}
		}
	}
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+flashversionMin+'")))\n');
	document.write('</SCRIPT\> \n');
}

function playSWF(file,id,vars,width,height,wmode,bgcolor,baseurl,wLName) {
	fsource='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
	fsource+=' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ';
	fsource+=' ID='+id+' WIDTH="'+width+'"; HEIGHT="'+height+'">';
	fsource+=' <PARAM NAME="allowScriptAccess" VALUE="sameDomain" /> <PARAM NAME=movie VALUE="'+file+'"> <PARAM NAME=FlashVars VALUE="page_vars='+vars+'"> <PARAM NAME=menu VALUE=false>  <PARAM NAME="BASE" VALUE='+baseurl+'> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode value='+wmode+'> <PARAM NAME=bgcolor VALUE='+bgcolor+'>';
		if(navigator.userAgent.indexOf("Opera")==-1) {
			fsource+=' <EMBED src="'+file+'" FlashVars="page_vars='+vars+'" wmode='+wmode+' menu=false quality=high bgcolor='+bgcolor+'';
			fsource+=' swLiveConnect=FALSE allowScriptAccess="sameDomain" NAME='+id+' WIDTH="'+width+'" HEIGHT="'+height+'"';
			fsource+=' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>';
			fsource+=' </EMBED>';
		}
		else	{
			fsource+=' <EMBED src="'+file+'" FlashVars="page_vars='+vars+'" wmode='+wmode+' menu=false quality=high bgcolor='+bgcolor+'';
			fsource+=' swLiveConnect=FALSE allowScriptAccess="sameDomain" ID='+id+' WIDTH="'+width+'" HEIGHT="'+height+'"';
			fsource+=' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>';
			fsource+=' </EMBED>';
		}
	fsource+=' </OBJECT>';

	if (document.getElementById){
		document.getElementById(wLName).innerHTML=fsource;
	}
}

//-->