function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i]; } 

if (document.getElementById('waitt')) document.getElementById('waitt').style.visibility = "hidden";
}
}


function show (vari,xpos,ypos,image) 
{
	if ((xpos>0) && (ypos>0))
	{
		document.getElementById(vari).style.left=xpos;
		document.getElementById(vari).style.top=ypos;
	}

 	if ((image!=" ") && (document.getElementById('im')))
	{
		document.getElementById('im').src= image + ".gif";
	}
	if (vari!="")
	{
  	document.getElementById(vari).style.visibility = "visible";
	}
}

function show_off () 
{
	var i, a=show_off.arguments;
	for(i=0; i<a.length; i++)
	{

	  if (document.getElementById) document.getElementById(a[i]).style.visibility = "hidden";

	}
}


function show_disp_off () 
{
	var i, a=show_disp_off.arguments;
	for(i=0; i<a.length; i++)
	{

	  if (document.getElementById) document.getElementById(a[i]).style.display = "none";

	}
}


function show_disp (vari)
{
document.getElementById(vari).style.display = "inline";
}


function vin(id)
{
document.getElementById(id).style.backgroundColor = '#ffffff'; 
document.getElementById(id).style.color = '#000000';
}

function vout(id)
{
document.getElementById(id).style.backgroundColor = ''; 
document.getElementById(id).style.color = '#B8BEC0';
}

function statistik(vari)
{
// var info = window.open("../scripts/download_stat.php?dl_name=" + vari,"z","width=10,height=10");
}


var end=0;
var bz=2;
function anzeige_n (vari,ende) {

end=ende;
document.getElementById('bild1').src= vari + bz + ".gif";
bz++;
if (bz>ende) { bz=1; }
window.setTimeout("anzeige_n('" + vari + "',end)", 5000);
}

function writecode (htmlcode) {
      document.write(htmlcode);
}

function writeflash () {

var a=writeflash.arguments;

if (a.length==0) {
document.write('<object id=\"flashobj\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"750\" height=\"402\">');
document.write('<param name=\"movie\" value=\"flash/edisionflash.swf\">');
document.write('<param name=\"quality\" value=\"high\">');
document.write('<embed src=\"flash/edisionflash.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"750\" height=\"402\"></embed></object>');
}


if (a.length>0) {
var flname = writeflash.arguments[0];
var flwidth = writeflash.arguments[1];

	if (flwidth=="750") {
	 document.write('<object id=\"flashobj\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"750\" height=\"402\">');
	 document.write('<param name=\"movie\" value=\"flash/' + flname + '.swf\">');
	 document.write('<param name=\"quality\" value=\"high\">');
	 document.write('<embed src=\"flash/' + flname + '.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"750\" height=\"402\"></embed></object>');
	}

	if (flname=="sosehensieger1") {
document.write('<object id=\"flashobj\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"297\" height=\"53\">');
document.write('<param name=\"movie\" value=\"flash/sosehensiegeraus1.swf\">');
document.write('<param name=\"quality\" value=\"high\">');
document.write('<embed src=\"flash/sosehensiegeraus1.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"297\" height=\"53\"></embed></object>');
	}

}


}

function dwalert() {
alert('Bitte beachten Sie unbedingt:\n\rSoftware- und Settings-Updates geschehen auf eigene Gefahr!!')
}

function mapareaoff (mapname,areanr,areaart) {
if (areaart=="circle") document.getElementsByName(mapname)[0].areas[areanr].coords="0,0,0";
if (areaart=="rect") document.getElementsByName(mapname)[0].areas[areanr].coords="0,0,0,0";
}
