if (document.getElementById){ 
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); 
		if(el.style.display != "block"){ 
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") 
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

function OpenPicture(url, format)
{
	if (format == 0)
	{
		if (ie)
		{ 
			wWidth = 400;
			wHeight = 295;
		}
		else
		{
			wWidth = 417;
			wHeight = 313;		
		}
	}
	else
	{
		if (ie)
		{		
			wWidth = 274;
			wHeight = 400;	
		}
		else
		{
			wWidth = 291;
			wHeight = 418;				
		}
	}

	args = "width=" + wWidth + ",height=" + wHeight + ",left=10,top=10,dependent=yes,resizable=yes";
	picWindow = window.open("", "picWindow", args);
    picWindow.document.write('<html><head><title>China-Restaurant JUMBO</title></head><body bgcolor="000000" topmargin="0" leftmargin="0"><a href="javascript:parent.window.close()"><img src= "' + url + '"  alt="F e n s t e r   s c h l i e ß e n" border="0"></a></body></html>');
	
	if (ie)
		picWindow.resizeTo(wWidth + 10, wHeight + 30);
	else
		picWindow.resizeTo(wWidth, wHeight);
 	
 	
 	picWindow.document.close();
	picWindow.focus();
}

function programm(page) 
{
  popup = window.open(page,'programm','toolbar=1,location=1,menubar=0,directories=0,status=0,scrollbars=1,resizable=1,copyhistory=1,width=680,height=470');


}
function offen(s)
{       
  var d = s.options[s.selectedIndex].value; 
  if (d.charAt(0) == '#')
  {
    var str = d.substring( 1, d.length );
    programm( str );
  }
 else
    window.self.location.href = d;
  s.selectedIndex=0; 
} 
function openGRAFIK(url) 
{
GRAFIKwindow=window.open(url,'GRAFIKwindow','width=428,height=408,left=170,top=120,toolbar=0,location=0,directories=0,status=0,scrollbars=0,menubar=0,resizable=0');
GRAFIKwindow.focus();
GRAFIKwindow.document.write('<html><head><title>So finden Sie zu uns</title></head><body bgcolor="black" topmargin="13"><p align="center"><table border="0" width="100%" height="100%"><tr><td width="100%" valign="top" align="left" height="100%"><a href= "javascript:parent.window.close()"><img src= "' + url + '" alt="Fenster schließen" border=0></p> </a></td></tr></table></center></div></body></html>');
GRAFIKwindow.document.close();
}

