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();
	}


function popPress()
	{
	var w=450; var h=600;
	mySRC=popPress.arguments[0];
	if(popPress.arguments[0]) mySRC=popPress.arguments[0];
	if(popPress.arguments[1]) w=popPress.arguments[1]+16;
	if(popPress.arguments[2]) h=popPress.arguments[2];
	if(w<450) { w=450; }
	h=parseInt(h)+20;
	popper=window.open(popPress.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();
	}

function changeImg(name, bildobj)
	{
	window.document.images[name].src = bildobj.src;
	}




function navRow()
  {
  var rowId="row"+navRow.arguments[0];
  var lnkId="lnk"+navRow.arguments[0];
  var bubId="bub"+navRow.arguments[0];
  var colorToSet=navRow.arguments[1]; 
  lnkChange = (navRow.arguments[2]) ? true : false;
  bubChange = (navRow.arguments[3]) ? true : false;
  document.getElementById(rowId).style.backgroundColor=colorToSet;
  //document.getElementById(rowId).style=styleToSet;
//alert(lnkChange);
  if(lnkChange)
  	{
	var lnkColorToSet=navRow.arguments[2];
	document.getElementById(lnkId).style.color=lnkColorToSet;
	}
  if(bubChange)
  	{
	var bubSrc=navRow.arguments[3];
	document.images[bubId].src=bubSrc;
	}
  }
  
  
  
  
  
function goTo()
  {
  var goToUrl=goTo.arguments[0];
  //alert(goToUrl);
  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 FOR HIGHLIGHTING MOUSEOVER FOR STANDARD BUTTONS
// ARGUMENT 0: BUTTON ID
function overOTKBut()
	{
	
	var overId=overOTKBut.arguments[0];
	overId.style.borderStyle='solid';
	overId.style.borderWidth='1px';
	//overId.style.backgroundColor='#333333';
	overId.style.borderTopColor='#cc0000';
	overId.style.borderLeftColor='#cc0000';
	overId.style.borderRightColor='#cc0000';
	overId.style.borderBottomColor='#cc0000';
	//overId.style.color='#dddddd';
	//overId.style.paddingBottom='3px';
	}
////////////////////////////////////////////////////////////////////////////////
// FUNCTION FOR HIGHLIGHTING MOUSEOUT FOR STANDARD BUTTONS
// ARGUMENT 0: BUTTON ID
function outOTKBut()
	{
	var overId=outOTKBut.arguments[0];
	overId.style.borderStyle='solid';
	overId.style.backgroundColor='';
	overId.style.borderWidth='1px';
	overId.style.borderTopColor='';
	overId.style.borderLeftColor='';
	overId.style.borderRightColor='';
	overId.style.borderBottomColor='';
	overId.style.color='#cccccc';
	overId.style.paddingBottom='3px';
	}
  
  
  
  
 
////////////////////////////////////////////////////////////////////////////////
// FUNCTION FOR HIGHLIGHTING MOUSEOVER FOR STANDARD BUTTONS
// ARGUMENT 0: BUTTON ID
function overBut()
	{
	var overId=overBut.arguments[0];
	overId.style.borderStyle='solid';
	overId.style.borderWidth='1px';
	overId.style.backgroundColor='#333333';
	overId.style.borderTopColor='#999999';
	overId.style.borderLeftColor='#999999';
	overId.style.borderRightColor='#999999';
	overId.style.borderBottomColor='#999999';
	overId.style.color='#dddddd';
	overId.style.paddingBottom='3px';
	}
////////////////////////////////////////////////////////////////////////////////
// FUNCTION FOR HIGHLIGHTING MOUSEOUT FOR STANDARD BUTTONS
// ARGUMENT 0: BUTTON ID
function outBut()
	{
	var overId=outBut.arguments[0];
	overId.style.borderStyle='solid';
	overId.style.backgroundColor='#744040';
	overId.style.borderWidth='1px';
	overId.style.borderTopColor='#797979';
	overId.style.borderLeftColor='#797979';
	overId.style.borderRightColor='#797979';
	overId.style.borderBottomColor='#797979';
	overId.style.color='#cccccc';
	overId.style.paddingBottom='3px';
	}
	////////////////////////////////////////////////////////////////////////////////
// ARGUMENT 0: BUTTON ID
function clickBut()
	{
	var overId=clickBut.arguments[0];
	overId.style.borderStyle='solid';
	overId.style.borderWidth='1px';
	overId.style.backgroundColor='#4a4a4a';
	overId.style.borderTopColor='#797979';
	overId.style.borderLeftColor='#797979';
	overId.style.borderRightColor='#797979';
	overId.style.borderBottomColor='#999999';
	overId.style.color='#ff0000';
	overId.style.paddingBottom='3px';
	}


	  
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;
		}
	}
 
 
 ////////////////////////////////////////////////////////////////////////////////
// BEGIN FUNCTION POP UP A WINDOW (FOR GENERIC USE)
function openw()
	{
	var a=openw.arguments;
	var myUrl=(a[0]) ? a[0]:"";
	var myName=(a[1]) ? a[1]:"windowName";
	var myTop=(a[2]) ? a[2]:"50";
	var myLeft=(a[3]) ? a[3]:"50";
	var myWidth=(a[4]) ? a[4]:"800";
	var myHeight=(a[5]) ? a[5]:"800";
	var myResize=(a[6]) ? a[6]:"yes";
	var myScroll=(a[7]) ? a[7]:"yes";
	var myTool=(a[8]) ? a[8]:"yes";
	var myMenu=(a[9]) ? a[9]:"yes";
	var myLoc=(a[10]) ? a[10]:"yes";
	var myStat=(a[11]) ? a[11]:"yes";
	var aStr="";
	aStr+="width="+myWidth;
	aStr+=",height="+myHeight;
	aStr+=",left="+myLeft;
	aStr+=",top="+myTop;
	aStr+=",resizable="+myResize;
	aStr+=",scrollbars="+myScroll;
	aStr+=",toolbar="+myTool;
	aStr+=",menubar="+myMenu;
	aStr+=",location="+myLoc;
	aStr+=",status="+myStat;
	zoom=window.open(myUrl,myName,aStr);
	zoom.focus();
	zoom=null;
	}
// END FUNCTION
////////////////////////////////////////////////////////////////////////////////

function rec()
	{
	var a=rec.arguments;
	if(a[0]==1)
		{
		var tmpwidth="600";
		var tmpheight="900";
		}
	else if(a[0]==3)
		{
		var tmpwidth="800";
		var tmpheight="800";
		}
	else
		{
		var tmpwidth="800";
		var tmpheight="620";
		}
	var tmpAdress="/pop.php?loadImg=Meta/Galerie/OsterTango10Recuerdos/imgs/"+a[1]+"&articleTitle=OsterTango 2010";
	openw(tmpAdress,'','','',tmpwidth,tmpheight,'yes','yes','no','no','no','no');
	}

function rec11()
	{
	var a=rec11.arguments;
	if(a[0]==1)
		{
		var tmpwidth="580";
		var tmpheight="820";
		}
	else if(a[0]==3)
		{
		var tmpwidth="660";
		var tmpheight="760";
		}
	else
		{
		var tmpwidth="660";
		var tmpheight="600";
		}
	var tmpAdress="/pop.php?loadImg=Meta/Galerie/OsterTango11Recuerdos/imgs/"+a[1]+"&articleTitle=OsterTango 2011";
	openw(tmpAdress,'','','',tmpwidth,tmpheight,'yes','yes','no','no','no','no');
	}
function rec12()
	{
	var a=rec12.arguments;
	if(a[0]==1)
		{
		var tmpwidth="580";
		var tmpheight="820";
		}
	else if(a[0]==3)
		{
		var tmpwidth="660";
		var tmpheight="760";
		}
	else
		{
		var tmpwidth="660";
		var tmpheight="600";
		}
	var tmpAdress="/pop.php?loadImg=Meta/Galerie/OsterTango12Recuerdos/imgs/"+a[1]+"&articleTitle=OsterTango 2012";
	openw(tmpAdress,'','','',tmpwidth,tmpheight,'yes','yes','no','no','no','no');
	}
