
function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');
	if (imageType == "swf"){
	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}else{
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);}
  
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' - Bitte geben Sie eine gültige E-Mail Adresse ein.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' - Bitte geben Sie eine gültige Telefonnummer an.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' \n'; }
  } if (errors) alert('Folgende Felder müssen ausgefüllt werden:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MM_findObj(n, d) { //v4.01

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}

window.onclick=closeMenu;
var _lastmenuopen=null;
function openmenu(obj)
{
	closeMenu();
	try
{
	
	if (obj.getElementsByTagName("div")[0].id=="headermenupulldown")
	{
	 	_lastmenuopen=obj.getElementsByTagName("div")[0];
		obj.getElementsByTagName("div")[0].style.visibility="visible";
	}
	if (obj.getElementsByTagName("div")[0].id=="headermenupulldown1")
	{
	 	_lastmenuopen=obj.getElementsByTagName("div")[0];
		obj.getElementsByTagName("div")[0].style.visibility="visible";
	}
	if (obj.getElementsByTagName("div")[0].id=="headermenupulldown2")
	{
	 	_lastmenuopen=obj.getElementsByTagName("div")[0];
		obj.getElementsByTagName("div")[0].style.visibility="visible";
	}
		if (obj.getElementsByTagName("div")[0].id=="headermenupulldown3")
	{
	 	_lastmenuopen=obj.getElementsByTagName("div")[0];
		obj.getElementsByTagName("div")[0].style.visibility="visible";
	}
}
catch(e)
{
}
}
function closeMenu()
{
	if (_lastmenuopen!=null)
	{
		_lastmenuopen.style.visibility="hidden";
	}
}


function Hide(s){
	hideLayer(s);
}
function Show(s){
	
	showLayer(s);
}

function dHide(s){
	document.getElementById(s).style.display = "none";
}
function dShow(s){
	
	document.getElementById(s).style.display = "inline";
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  		window.open(theURL,winName,features);
}

function hideLayer(whichLayer) {

if (document.getElementById) {
document.getElementById(whichLayer).style.visibility = "hidden";
}

else if (document.all) {
	document.getElementById(whichLayer).style.visibility = "hidden";
//document.all[whichlayer].style.visibility = "hidden";
}

else if (document.layers) {
document.layers[whichLayer].visibility = "hidden";
}

}

function showLayer(whichLayer) {

if (document.getElementById) {
document.getElementById(whichLayer).style.visibility = "visible";
}

else if (document.all) {
	document.getElementById(whichLayer).style.visibility = "visible";
//document.all[whichlayer].style.visibility = "visible";
}

else if (document.layers) {
document.layers[whichLayer].visibility = "visible";
}

}

function handleClick(whichClick, name) {
var teile= name.split(",");
if (whichClick == "hide it") {
  for (i=0;i<teile.length;i++) hideLayer(teile[i]);
}
else if (whichClick == "show it") {
  for (i=0;i<teile.length;i++) showLayer(teile[i]);
}

}



function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
  }
  return null;
}

function getPreferredStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1
       && a.getAttribute("rel").indexOf("alt") == -1
       && a.getAttribute("title")
       ) return a.getAttribute("title");
  }
  return null;
}

