<!--
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('<SC'+'RIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+flashversionMin+'")))\n');
	document.write('</SC'+'RIPT\> \n'); 
}

function playSWF(file,id,vars,width,height,wmode,bgcolor,baseurl)	{
			document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
			document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
			document.write(' ID='+id+' WIDTH='+width+'px; HEIGHT='+height+'px>' );
			document.write(' <PARAM NAME="allowScriptAccess" VALUE="sameDomain" /> <PARAM NAME=movie VALUE="'+file+'"> <PARAM NAME=FlashVars VALUE="page_vars='+vars+'"> <PARAM NAME=menu VALUE=true>  <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)	{
					document.write(' <EMBED src="'+file+'" FlashVars="page_vars='+vars+'" wmode='+wmode+' menu=true quality=high bgcolor='+bgcolor+'');
					document.write(' swLiveConnect=FALSE allowScriptAccess="sameDomain" NAME='+id+' WIDTH='+width+'px HEIGHT='+height+'px');
					document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>');
					document.write(' </EMBED>');
				}
				else	{
					document.write(' <EMBED src="'+file+'" FlashVars="page_vars='+vars+'" wmode='+wmode+' menu=true quality=high bgcolor='+bgcolor+'');
					document.write(' swLiveConnect=FALSE allowScriptAccess="sameDomain" ID='+id+' WIDTH='+width+'px HEIGHT='+height+'px');
					document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>');
					document.write(' </EMBED>');
				}
			document.write(' </OBJECT>');
}

function playSWF2(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=8,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;
	}
}

function playSWF3(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=9,0,0,0" ';
	fsource+=' ID='+id+' WIDTH="'+width+'"; HEIGHT="'+height+'">';
	fsource+=' <PARAM NAME="allowScriptAccess" VALUE="always" /> <PARAM NAME=movie VALUE="'+file+'"> <PARAM NAME=FlashVars VALUE="'+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="'+vars+'" wmode='+wmode+' menu=false quality=high bgcolor='+bgcolor+'';
			fsource+=' swLiveConnect=FALSE allowScriptAccess="always" 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="'+vars+'" wmode='+wmode+' menu=false quality=high bgcolor='+bgcolor+'';
			fsource+=' swLiveConnect=FALSE allowScriptAccess="always" 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;
	}
}

function SetLayer2(LName,funct,wert){
	if (document.getElementById){
		var newLayer = document.getElementById(LName).style;
		newLayer[funct]=wert;
	}
}

function SetLayer3(LName,funct,wert){
	if (document.getElementById){
		var newLayer = document.getElementById(LName);
		newLayer[funct]=wert;
	}
}
function CheckFile(fid,fsrc,fwidth,fheight){
	if (fsrc.indexOf(".swf")>=0){
		playSWF(fsrc,fid,"",fwidth,fheight,"opaque","#fff","",fid)
	}
	else {
		SetLayer3(fid,'innerHTML','<image src="'+fsrc+'" />');
	}
}

function printthispage(){ 
	var sOption="toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,width=680,height=600,left=100,top=25"; 

	var sWinHTML = document.getElementById('content_left').innerHTML;
	var strBereich = document.title;
    var strBody = document.body.className;
	
	var winprint=window.open("","",sOption); 
       winprint.document.open(); 
       winprint.document.write('<html><title>' + document.title + '</title><link rel="stylesheet" href="style/promarkt.css" type="text/css"><link rel="stylesheet" href="style/promarkt_print.css" type="text/css"><body class="'+strBody+'" onload="window.print();">'); 
       winprint.document.write('<div style="position: relative; z-index: 10;"><img src="image/top_drucken.png" width="660" height="100" border="0"><br>');
       //winprint.document.write('<div id="infoDiv" style="position: absolute; left: 25px; top: 110px; width: 340px; height: 30px; z-index: 2; text-align: left;"><span style="font-size: 15px; color: #000; font-family: arial; text-decoration: none;"><strong>' + strBereich + '</strong></span></div></div>');
       winprint.document.write('<div id="content_left">');
       winprint.document.write('<div id="printable">'+sWinHTML+'</div>');
       winprint.document.write('</div></body></html>');
       winprint.document.close(); 
       winprint.focus(); 
}

function nx_send(){
        nx_win = window.open("/script/sendafriend.php?url="+escape(document.location)+"&title="+escape(document.title),"_danke", 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=400,height=700');
        nx_win.focus();
        return false;
}

function getobject(id) {
	var elmID;
                
	if(document.getElementById) {elmID = document.getElementById(id);}
    else if(document.all) {elmID = document.all[id];}
    else if(document.layers) {elmID = this._getLayer(id);}
    else if(document.forms) {
        if(document.forms[id]) {elmID = document.forms[id];}
        else {
            for(var i=0; i<document.forms.length; i++) {
                if(document.forms[i][id]) {
                    elmID = document.forms[i][id];
                    break;
                }
            }
        }
    }
    else {elmID = null;}

    return elmID;
}

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;
	}
}

var id_old = "ser_umtausch2";

function superService(nr) {

	if (nr != id_old){
		setElement(id_old,1,"display","none");
		setElement(nr,1,"display","block");
	}
	else {
		if(getobject(nr).style.display == "block") {
			setElement(nr,1,"display","none");
		}
		else {
			setElement(nr,1,"display","block");
		}
	}
	
	anker = (nr.substring(0, nr.length-1));
	anker_old = (id_old.substring(0, id_old.length-1));
	
	
	if (anker != anker_old){
		setElement(anker,1,"backgroundImage","url(image/icon_minus.png)");
		setElement(anker_old,1,"backgroundImage","url(image/icon_plus.png)");
	}
	else {
		if(getobject(anker).style.backgroundImage == "url(image/icon_minus.png)") {
			//alert("minus -> plus");
			setElement(anker,1,"backgroundImage","url(image/icon_plus.png)");
		}
		else {
			//alert("plus -> minus");
			//alert(getobject(anker).style.backgroundImage);
			setElement(anker,1,"backgroundImage","url(image/icon_minus.png)");
		}
	}
	
	//setElement(anker,1,"backgroundImage","url(image/icon_minus.png)");
	//setElement(anker_old,1,"backgroundImage","url(image/icon_plus.png)");
	
	id_old = nr;
}

function superService2() {
	
	var getVar = new Array();

	var params = unescape(location.search.substring(1,location.search.length)).split("&");
	
	for(i=0; i<params.length; i++) 
	{
		param = params[i].split("=");
		getVar[param[0]] = param[1];
	}

	v = getVar["v"];
		
	if(v != "")
	{
		//v = location.search[location.search.length-1];
		//alert(v);
		if(v == 1) { superService('ser_umtausch2'); }
		if(v == 2) { superService('ser_preisgarantie2'); }
		if(v == 3) { superService('ser_lieferservice2'); }
		if(v == 4) { superService('ser_installationsservice2'); }
		if(v == 5) { superService('ser_finanzierung2'); }
		if(v == 6) { superService('ser_sonderleistung2'); }
		if(v == 7) { superService('ser_garantiegold2'); }
		if(v == 8) { superService('ser_umweltservice2'); }
	}

}



//-->