menuDOM = (document.getElementById) ? true : false;
menuNS4 = (document.layers) ? true : false;
menuIE = (document.all) ? true : false;
menuIE4 = menuIE && !menuDOM;
menuMac = (navigator.appVersion.indexOf("Mac") != -1);
menuIE4M = menuIE4 && menuMac;
menuOpera = (navigator.userAgent.indexOf("Opera")!=-1);
menuKonqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);
menuIsMenu = !menuOpera && !menuKonqueror && !menuIE4M && (menuDOM || menuNS4 || menuIE4);
menuBrowserString = menuNS4 ? "NS4" : menuDOM ? "DOM" : "IE4";

function popImg()
	{
	var w=600; var h=600;
	mySRC=popImg.arguments[0];
	if(popImg.arguments[0]) mySRC=popImg.arguments[0];
	if(popImg.arguments[1]) w=popImg.arguments[1];
	if(popImg.arguments[2]) h=popImg.arguments[2];
	h=parseInt(h)+20;
	popper=window.open(popImg.arguments[0],'popy','left=100,top=50,screenX=100,screenY=50,width='+w+',height='+h+',fullscreen=no,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=0,directories=no,status=0');
	popper.focus();
	}



topNorm = new Image(); topNorm.src="imgs/top.gif";
topOver = new Image(); topOver.src="imgs/top_x.gif";
function changeImg(name, bildobj)
	{
	window.document.images[name].src = bildobj.src;
	}
function navRow()
  {
  var rowId=navRow.arguments[0];
  var colorToSet=navRow.arguments[1];
	document.getElementById(rowId).style.backgroundColor=colorToSet;
  }
function goTo()
  {
  var goToUrl=goTo.arguments[0];
	document.location.href=goToUrl;
  }

function overRow()
  {
  var overId=overRow.arguments[0];
  var colorToSet=overRow.arguments[1];
  var typeColorToSet=overRow.arguments[2];
	document.getElementById(overId).style.backgroundColor=colorToSet;
	//document.getElementById(overId).style.color=typeColorToSet;
  }
function clickRow()
  {
  var goToUrl=clickRow.arguments[0];
	document.location.href=goToUrl;
  }
function confDialog()
	{
	var confDialogMSG=confDelete.arguments[0];
	var confDialogURI=confDelete.arguments[1];
	//"Tilo!\n\nwillst du diese bestellung wirklich l&ouml;schen?"
	if (confirm(confDialogMSG))
		{
		self.location.href=confDialogURI;
		}
	}
function navPopUp()
  {
	if(document.getElementById('secLev1').style.visibility=='hidden')
		{
		document.getElementById('secLev1').style.visibility='visible';
  	}
	}
function navPopDown()
  {
	if(document.getElementById('secLev1').style.visibility=='visible')
		{
		document.getElementById('secLev1').style.visibility='hidden';
  	}
	}
