//
// Verhinderung von Flashrahmen
//
function FlashMovie(src, movie, width, height, version, quality, menu, bgcolor, flashvars)
{
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+",0,0,0' width='" +width+ "' height='" +height+ "' id='" +movie+ "'>");
	document.write("<param name='movie' value='" +src+ "' />");
	document.write("<param name='FlashVars' value='" +flashvars+ "'>");
	document.write("<param name='quality' value='" +quality+ "' />");
	document.write("<param name='menu' value='" +menu+ "' />");
	document.write("<param name='bgcolor' value='" +bgcolor+ "' />");
	document.write("<embed src='" +src+ "' swLiveConnect='true' menu='" +menu+ "' FlashVars='" +flashvars+ "' quality='" +quality+ "' bgcolor='" +bgcolor+ "' width='" +width+ "' height='" +height+ "' name='" +movie+ "' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}

function OpenImpressum()
{
	var width = 500;
	var height = 580;
	var win = window.open("win.impressum.php?ID="+16, "_blank", "width="+width+",height="+height+",scrollbars=yes");
	win.moveTo((screen.width-width)/2, (screen.height-height)/2);
}

function OpenAGB()
{
	var width = 500;
	var height = 580;
	var win = window.open("win.agb.php?ID="+17, "_blank", "width="+width+",height="+height+",scrollbars=yes");
	win.moveTo((screen.width-width)/2, (screen.height-height)/2);
}

function MenueChange(ID, over)
{					
	if (over)
		document.getElementById("menue"+ID).src = "upload/menue"+ID+"over.gif";
	else
		document.getElementById("menue"+ID).src = "upload/menue"+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>");
}

