function Activate(ID)
{
	if (ID < 10) ID = "0" + ID;
	if (document.getElementById("menue0"+ID))
		document.getElementById("menue0"+ID).src = "upload/menue2"+ID+".gif";
}

function Change(ID, over)
{
	if (ID < 10) ID = "0" + ID;

	if (document.getElementById("menue0"+ID).src.indexOf("upload/menue2"+ID+".gif") == -1)
	{
		if (over)
		{
			document.getElementById("menue0"+ID).src = "upload/menue1"+ID+".gif";
		}
		else
		{
			document.getElementById("menue0"+ID).src = "upload/menue0"+ID+".gif";
		}
	}
}


///////////////////////////////////////////////////////////////////////////
// void comaOpenImage(char *image, int breite, int hoehe, char *title, char *text)
// Bild in externem Fenster öffnen
///////////////////////////////////////////////////////////////////////////
function comaOpenImage(image, breite, hoehe, title, text)
{
	var left = (screen.width - breite) / 2;
	var top	 = (screen.height - hoehe) / 2;
	
	if (text != "")
		hoehe += 100;
	
	var win;
	if (text.length > 340)
	{
		breite += 20;
		win = window.open(image,"_blank","width="+breite+",height="+hoehe+",left="+left+",top="+top+",location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no");
	}
	else
		win = window.open(image,"_blank","width="+breite+",height="+hoehe+",left="+left+",top="+top+",location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no");

	win.document.writeln("<html><head><title>Bildergalerie</title>");
	win.document.writeln("<link rel='stylesheet' type='text/css' href='styles.css'></head>");
	win.document.writeln("<body>");
	win.document.writeln("<table border='0' cellpadding='0' cellspacing='0'><tr><td align='center' valign='top' bgcolor='#96A5A8'>");
	win.document.writeln("<a href='javascript:window.close()'><img src='" + image + "' border='0'></a></td></tr>");
	win.document.writeln("<tr><td align='left' bgcolor='#96A5A8' height='18'><div style='padding-left:10px;padding-right:10px'><font class='bildtitel'>" + title + "</font></div></td></tr>");
	win.document.writeln("<tr><td align='left' valign='top'><div style='padding-top:5px;padding-left:10px;padding-right:10px'><font class='bild'>" + text + "</font></div></td></tr>");
	win.document.writeln("</table>");
	win.document.writeln("</body></html>");
}

