/* (c)1/2005 tremium, author Frank Bremer */
function showPage(menuItemTitle) {
	top.f_body.document.location.href = menuItemTitle + "/body.html";
}

function doNothing() { }

function showDocument(windowName, windowWidth, windowHeight) {
	if ((documentWindow != null)&&(typeof documentWindow.close != "undefined")&&(typeof documentWindow.close != "unknown")) {
		documentWindow.close();
	}
	var windowPosX = Math.round(screen.width / 2 - windowWidth / 2);
	var windowPosY = Math.round(screen.height / 2 - windowHeight / 2);
//	var documentWindow = window.open(winIE ? windowName : (filePath + windowName), "Information", "left=" + windowPosX + ",top=" + windowPosY + ",width=" + windowWidth + ",height=" + windowHeight + ",locationbar=no,menubar=no,status=no,resizable=no,scrollbars=yes");
	var documentWindow = window.open(windowName + ".html", "Information", "left=" + windowPosX + ",top=" + windowPosY + ",width=" + windowWidth + ",height=" + windowHeight + ",locationbar=no,menubar=no,status=no,resizable=no,scrollbars=yes");
}

function showExample(media, windowName, windowWidth, windowHeight, copyright) {
	if (windowWidth < 141) {
		windowWidth = 141;
	}
	if ((exampleWindow != null)&&(typeof exampleWindow.close != "undefined")&&(typeof exampleWindow.close != "unknown")) {
		exampleWindow.close();
	}
	var windowPosX = Math.round(screen.width / 2 - windowWidth / 2);
	var windowPosY = Math.round(screen.height / 2 - windowHeight / 2);
	var exampleWindow = window.open("", "Beispiel", "left=" + windowPosX + ",top=" + windowPosY + ",width=" + (windowWidth + 30) + ",height=" + (windowHeight + 50) + ",locationbar=no,menubar=no,status=no,resizable=no,scrollbars=no");
	exampleWindow.document.open("text/html");
	exampleWindow.document.writeln("<html><head><title>Beispiel</title><style tyle='text/css'>a{font-family: Lucida Grande,Lucida Sans,Helvetica,Arial; font-size:9pt;	line-height:11pt;} a:link{color:#2c6700; text-decoration:none;}	a:visited{color:#2c6700; text-decoration:none;}	a:hover{color:#2c6700; text-decoration:underline;} a:active{color:#2c6700; text-decoration:none;}</style>");
	exampleWindow.document.writeln("</head><body bgcolor='#ffffff' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>");
	exampleWindow.document.writeln("<table width='100%' height='100%' cellspacing='0' cellpadding='0'><tr><td align='center'>");
	if (media == "image") {
		exampleWindow.document.writeln("<img src='images/examples/" + windowName + "-big.jpg' width='" + windowWidth + "' height='" + windowHeight + "' border='1' align='center'/>");
	} else if (media == "qtmovie") {
		exampleWindow.document.writeln("<embed src='images/examples/" + windowName + ".mov' width='" + windowWidth + "' height='" + windowHeight + "' autostart='true' controller='false' loop='true' kioskmode='true' border='1' cache='false' pluginspage='http://www.apple.com/quicktime/download/indext.html'></embed><noembed>Sie ben&ouml;tigen das QuickTime<sup>&#174;</sup>-Plugin.</noembed>");
	} else if (media == "qtobject") {
		exampleWindow.document.writeln("<embed src='images/examples/" + windowName + ".mov' width='" + windowWidth + "' height='" + windowHeight + "' controller='false' border='1' pluginspage='http://www.apple.com/quicktime/download/indext.html'></embed><noembed>Sie ben&ouml;tigen das QuickTime<sup>&#174;</sup>-Plugin.</noembed>");
	} else if (media == "flash") {
		exampleWindow.document.writeln("<embed src='images/examples/" + windowName + ".swf' width='" + windowWidth + "' height='" + windowHeight + "' play='true' loop='false' quality='high' border='1'	pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed><noembed>Sie ben&ouml;tigen das QuickTime<sup>&#174;</sup>-Plugin.</noembed>");
	}
	exampleWindow.document.writeln("</td></tr><tr><td align='right' valign='top'><a href='javascript:window.close();' style='margin-right:17px;'>Fenster schlie&szlig;en</a></td></tr></table></body></html>");
	exampleWindow.document.close();
}

/* end */
