

/*var kunden_win = null;
function kunden_open(url,width,height,scrolling,navigation,status) 
{
kunden_win=open(url,"PopupWindow","scrollbars="+scrolling+",toolbar="+navigation+",location=0,directories=0,status="+status+",resizable=0,width="+width+",height="+height+"");
        kunden_win.focus();
}*/

// patch for replacing FLASH <BR> with nothing or blank
function replaceBR_null(text)
	{
	text = text + " ";
	text = text.replace(/(Bugatti-&lt;br&gt;Community)/g,"Bugatti-Community");
	text = text.replace(/(Bugatti-&lt;BR&gt;Community)/g,"Bugatti-Community");
	text = text.replace(/(-&lt;br&gt;)/g,"");
	text = text.replace(/(-&lt;BR&gt;)/g,"");
	text = text.replace(/(&lt;br&gt;)/g," ");
	text = text.replace(/(&lt;BR&gt;)/g," ");
	//alert(text +  "\n" + text)
	return text;
	}
	
// patch for replcing FLASH <BR> with HTML <BR>
function replaceBR_html(text)
	{
	text = text + " ";
	text = text.replace(/(-&lt;br&gt;)/g,"-<BR>");
	text = text.replace(/(-&lt;BR&gt;)/g,"-<BR>");
	text = text.replace(/(&lt;br&gt;)/g,"<BR>");
	text = text.replace(/(&lt;BR&gt;)/g,"<BR>");
	text = text.replace(/(&lt;FONT FACE="scala_b"&gt;)/g,"<B CLASS='teaserhd'>");
	text = text.replace(/(&lt;\/FONT&gt;)/g,"</B>");
	//alert(text +  "\n" + text)
	return text;
	}


function showLay(divId) // schaltet Layer und ggf. darin enthaltene Bilder an
{
	if (document.getElementById)
		eval ("document.getElementById('"+divId+"').style.visibility='visible';");
	else if (document.all)
		eval ("document.all['"+divId+"'].style.visibility='visible';");
	else
		eval ("document.layers['"+divId+"'].visibility='show';");
}

function hideLay(divId,imgId)  // schaltet Layer und ggf. darin enthaltene Bilder aus
{
	if (divId!=activeLay)
	{
		if (document.getElementById)
		eval ("document.getElementById('"+divId+"').style.visibility='hidden';");
		else if (document.all)
		eval ("document.all['"+divId+"'].style.visibility='hidden';");
		else
		eval ("document.layers['"+divId+"'].visibility='hide';");
	}
}

function hideMultiLay(divId,zaehler) // schaltet mehrere Layer aus
{
	for (i=1;i<zaehler+1;i++)
	{
		if (document.getElementById)
		eval ("document.getElementById('"+divId+i+"').style.visibility='hidden';");
		else if (document.all)
		eval ("document.all['"+divId+i+"'].style.visibility='hidden';");
		else
		eval ("document.layers['"+divId+i+"'].visibility='hide';");
	}
}

function showMultiLay(divId,zaehler) // schaltet mehrere Layer an
{
	for (i=1;i<zaehler+1;i++)
	{
		if (document.getElementById)
		eval ("document.getElementById('"+divId+i+"').style.visibility='visible';");
		else if (document.all)
		eval ("document.all['"+divId+i+"'].style.visibility='visible';");
		else
		eval ("document.layers['"+divId+i+"'].visibility='show';");
	}
}




var active = "";
var activeLay = "";

function changeImg(divId,bildId,bildObj) // Bilderwechsel in Layern
{
	if (active!=bildId)
	{
		if ((document.getElementById)||(document.all))
		eval ("document.images['"+bildId+"'].src = "+bildObj+".src;");
		else
		eval ("document."+divId+".document.images['"+bildId+"'].src = "+bildObj+".src;");
	}
}

function activeImg(divId,bildId,bildObj) // Bilderwechsel in Layern
{
	if ((document.getElementById)||(document.all))
	{
	for (i=1;i<document.images.length-19;i++)
		{
		eval ("document.images['detailnavi"+i+"'].src = detailzahl"+i+".src;");
		}
	eval ("document.images['"+bildId+"'].src = "+bildObj+".src;");
	}
	else
	{
	for (k=1;k<document.Layer2.document.images.length-5;k++)
		{
		eval ("document."+divId+".document.images['detailnavi"+k+"'].src = detailzahl"+k+".src;");
		}	
	eval ("document."+divId+".document.images['"+bildId+"'].src = "+bildObj+".src;");
	}
	active=bildId;
}

function openWindow(url)
	{
	window.open(url,'xxx','scrollbars=1,status=0,toolbar=0,location=0,directories=0,resizable=1,left=0,top=0,width=400,height=500');
return;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


