// javascript DHMTL - funktionen
// author: alexander stier, comfacts - cuti & stier gbr
// datum: 28.05.2001

function rollover(Bild)
{
	with (document.images[Bild])
	src = (src.indexOf("off") != -1) ? src.replace(/off/, "on") : src.replace(/on/, "off");
}

function switchDiv(divID)
{
   if (document.layers){
      //Netscape 4 specific code
      myLayer = document.layers[divID];
	  myLayer.moveTo(115,106)
	  status_1 = "hide"
	  status_2 = "show"
   }
   if (document.getElementById){
      //Netscape 6 specific code
      myLayer = eval('document.getElementById("' + divID +'").style');
	  status_1 = "hidden"
	  status_2 = "visible"
   }
   if (document.all){
      //IE4+ specific code
      myLayer = eval('document.all.' + divID +'.style');
	  status_1 = "hidden"
	  status_2 = "visible"
   }
  with (myLayer)
  visibility = (visibility.indexOf(status_1) != -1) ? visibility.replace(status_1, status_2) : visibility.replace(status_2, status_1);
   
}

function writeImage(bild,height,rest)
{
	if (isNav6 == true)
	{
		document.write("<img src='" + bild + "' border='0' height='" + height + "' width='" + (getWidth() - rest - 16) + "'>");
	}
	else
	{
		document.write("<img src='" + bild + "' border='0' height='" + height + "' width='" + (getWidth() - rest) + "'>");
	}
}

function roller(Bild)
{
	with (document.images[Bild])
	src = (src.indexOf("off") != -1) ? src.replace(/off/, "on") : src.replace(/on/, "off");
}

function getHeight()
{
	var height;
	(isGood) ? height = document.all.tags("body")[0].offsetHeight : height = window.innerHeight;
	return height;
}

function getWidth()
{
	var width;
	(isGood) ? width = document.all.tags("body")[0].offsetWidth : width = window.innerWidth;
	return width;
}

function openpUp(url,name,width,height,scrollbars,toolbar,status,location)
{
	thirdParameter = 'width=' + width + ',height=' + height + ',scrollbars=' + scrollbars + ',toolbar=' + toolbar + ',status=' + status + ',location=' + location + ',menubar=no';
	openpUpObj = window.open(url,name,thirdParameter);
	openpUpObj.focus();
}

function changeHeader(newOne)
{
	if (parent.header04)
	{
		parent.header04.location.href = "/global/header_" + newOne + ".htm"
	}
}

function startbanner() {
	var x = document.getElementById("popupDiv");
	setTimeout('document.getElementById("werbung").style.visibility = "visible";',1500);
}

function endebanner() {
	var x = document.getElementById("popupDiv");
	x.style.visibility = "hidden";
}

function genericPopup(url,w,h)  {
	popStr = '\'toolbar=yes,scrollbars=yes,resizable=no,width=' +w+ ',height=' + h + '\'';
	popup = window.open(url,'Popup',popStr);
}


