<!--

var clickstat = "";
if(document.layers) {
        layerRef = document.layers;
        layerStyleRef = "document.";
        styleSwitch = "";
        n = true;
} else if(document.all){
        layerRef = document.all;
        layerStyleRef = "document.all.";
        styleSwitch = ".style";
        isIE = true;
} else if(document.documentElement){
        layerRef = document.documentElement;
        layerStyleRef = "document.getElementById('";
        styleSwitch = "').style";
        w3c = true;
}


function openZoom(url, width, height, winname)
	{
		var trails="width="+ width +",height="+ height +",top=5,left=5,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no";
		newWindow=window.open(url,winname,trails);              
	}
	
function openPopup(url, width, height, winname)
	{
		var trails="width="+ width +",height="+ height +",toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no";
		newWindow=window.open(url,winname,trails);              
	}
	

function over(on)
{
eval(layerStyleRef + on + styleSwitch + '.visibility="visible"')
}

function out(off)
{
if(clickstat != off) {
eval(layerStyleRef + off + styleSwitch + '.visibility="hidden"')
}

}	

function show(obj)
{
document.getElementById(obj).style.visibility="visible";
}

function hide(obj)
{
if(clickstat != obj) {
document.getElementById(obj).style.visibility="hidden";
}
}


function send()
 {
 	if(document.faq.frage.value == "")
	{
		alert ("Bitte geben Sie Ihre Frage ein.")
		document.faq.frage.focus();
	}
	 else if(document.faq.mail.value == "")
	{
		alert ("Bitte geben Sie Ihre E-Mail-Adresse ein.")
		document.faq.mail.focus();
	}
	else
	{
		document.faq.submit();
	}
 }

 function openImage(img, width, height, winname, left, top, res)
{
		url = "show-image.php?img=" + img;
	    var trails="width="+ width +",height="+ height +",left="+ left +",top="+ top +",toolbar=no,directories=no,status=no,scrollbars=no,resizable="+res+",menubar=no";
        newWindow=window.open(url,winname,trails);

}

 function openGalerie(id, width, height, winname, left, top, res)
{
		url = "galerie.php?id=" + id;
	    var trails="width="+ width +",height="+ height +",left="+ left +",top="+ top +",toolbar=no,directories=no,status=no,scrollbars=no,resizable="+res+",menubar=no";
        newWindow=window.open(url,winname,trails);

}

function centerWin(url, name, width, height, otherfeatures)
{
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;

    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;

    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  newwin = window.open(url, name, str + ',' + otherfeatures);
  if(parseInt(navigator.appVersion) >= 4)
  {
    //delay a bit here because IE4 encounters errors
    //when trying to focus a recently opened window
     setTimeout('newwin.focus();',250);
  }
}

function showElement(id)
{
if(document.getElementById(id))
{
if(document.getElementById(id).style.display == 'none')
document.getElementById(id).style.display = 'block';
else
document.getElementById(id).style.display = 'none';
}
}

function checkBoxes(which, stat)
{
for (var i = 0;i < document.actionForm.elements.length;i++)
{
if(document.actionForm.elements[i].type == "checkbox" && document.actionForm.elements[i].name == which)
{
if(stat == true)
	document.actionForm.elements[i].checked = true;
else
	document.actionForm.elements[i].checked = false;
}
}
}

function popup(shckp,shckti,shckte)
{ var undefined;

  if (shckte==undefined)
  {shckte='';}

  if (shckti==undefined)
  {shckti='www.wilmes-gabelstapler.de';}

  shcknw = window.open('', '','resizable=1');

  with (shcknw)
  {
    document.open();
    document.writeln('<title>'+shckti+'</title>');
    document.writeln('<meta http-equiv=\"imagetoolbar\" content=\"no\">');
    document.writeln('<link rel="stylesheet" type="text/css" href="css/main.css">');	
    document.writeln('<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\"  style=\"background:none;\"   scroll=\"no\" onload=\"opener.shckrez(document.images[0].width+42,document.images[0].height+67)\">')
    document.writeln('<div align=center><div class=\"popup\"><a href=\"javascript:self.close()\">');
    document.writeln('<img src=\"'+shckp+'\" border=\"0\" alt=\"'+shckte+'\"></a></div></div>')
    document.close();
  }
}

function shckrez(x,y)
{
if (navigator.appName == 'Microsoft Internet Explorer')
{shcknw.resizeTo(x+10,y+29);}

else
{
	if(navigator.appVersion.substring(0,1) < "5")
		{shcknw.resizeTo(x,y);}
	else
		{shcknw.resizeTo(x+8,y+28);}
}

shckx=(screen.availWidth/2)-(x/2);
shcky=(screen.availHeight/2)-(y/2);
shcknw.moveTo(shckx,shcky);
}
//-->
