function popWindow (pWidth,pHeight,linkPage) {
	var xWidth = 200;
	var yHeight = 200;
	xWidth = ((screen.width - pWidth)/2);
	yHeight = (screen.height - pHeight)/2;
	popupWindow = window.open(linkPage,'webmasterform','width=' + pWidth + ',height=' + pHeight + ',left=' + xWidth + ',top=' + yHeight + ',scrollbars=yes,resizable=no,toolbar=no,status=no,directories=no,menubar=no,location=no');
	popupWindow.focus();
}



function click (e) {
  if (!e)
    e = window.event;
  if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3)) {
    if (window.opera)
      window.alert("Sorry: Diese Funktion ist deaktiviert.");
    return false;
  }
}
if (document.layers)
  document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = click;
document.oncontextmenu = click;



var dom = document.getElementById?1:0;
var ns4 = document.layers?1:0;

function showMenu(name,number) {
	var groups = 1;			/*  NICHT VERGESSEN  */
	for (count = 1; count <= groups; count++) {
		var content = name + count;
		var active = name + number;

		if(dom) {
			if(content == active) {
    			document.getElementById(active).style.visibility = 'visible';
	    		document.getElementById(active).onmouseover = clearShut;
    			document.getElementById(active).onmouseout = setShut;
			} else {
				document.getElementById(content).style.visibility = 'hidden';
	   		}
		}
		else if(ns4) {
			if(content == active) {
    			document[active].visibility = 'show';
    			document[active].onmouseover = clearShut;
	    		document[active].onmouseout = setShut;
 			} else {
			    document[content].visibility = 'hide';
	   		}
	  	}
	}
	first = name, sec = number;
	clearShut();
}
function setShut() { 
	timer = setTimeout("shut(first,sec)", 300);
}
function clearShut() {
	if(window.timer)
	clearTimeout(timer);
}
function shut(first,sec) {
	var active = first + sec;
	if(dom)
 		document.getElementById(active).style.visibility = 'hidden';
 	else if(ns4)
 		document[active].visibility = 'hide';
}

