//var totalwidth = framewidth(this);
//var totalheight = frameheight(this);
function background()
	{
	var nMenuWidth = framewidth(this) - 280;
	var nMenuHeight = frameheight(this) - 316;
	nMenuHeight = (Math.floor(nMenuHeight/2)*2);
	
	document.writeln("\t<div class=\"welle\">\n");
	document.writeln("\t\t<table cellspacing=0 cellpadding=0 border=0>\n");
	document.writeln("\t\t\t<tr>\n");
	document.writeln("\t\t\t\t<td colspan=2><img src=\"tutti/pix/welletitel.gif\" width=\"240\" height=\"83\" border=\"0\"></td>\n");
	document.writeln("\t\t\t\t<td rowspan=2 colspan=2>&nbsp;</td>\n");
	document.writeln("\t\t\t</tr>\n");
	document.writeln("\t\t\t<tr>\n");
	document.writeln("\t\t\t\t<td valign=\"top\" height=\"" + nMenuHeight + "\"><img src=\"tutti/pix/lalaa.gif\" width=\"171\" height=\"" + nMenuHeight + "\" border=\"0\"></td>\n");
	document.writeln("\t\t\t\t<td class=\"wellemenu\" height=\"" + nMenuHeight + "\"><img src=\"tutti/pix/lalaa.gif\" width=\"69\" height=\"" + nMenuHeight + "\" border=\"0\"></td>\n");
	document.writeln("\t\t\t</tr>\n");
	document.writeln("\t\t\t<tr>\n");
	document.writeln("\t\t\t\t<td><img src=\"tutti/pix/lalaa.gif\" width=\"171\" height=\"198\" border=\"0\"></td>\n");
	document.writeln("\t\t\t\t<td valign=\"top\"><img src=\"tutti/pix/wellelinksunten.gif\" width=\"69\" height=\"198\" border=\"0\"></td>\n");
	document.writeln("\t\t\t\t<td class=\"wellemenu\" width=\"" + nMenuWidth + "\"><img src=\"tutti/pix/lalaa.gif\" width=\"" + nMenuWidth + "\" height=\"198\" border=\"0\"></td>\n");
	document.writeln("\t\t\t\t<td valign=\"top\"><img src=\"tutti/pix/wellerechtsunten.gif\" width=\"24\" height=\"199\" border=\"0\"></td>\n");
	document.writeln("\t\t\t</tr>\n");
	document.writeln("\t\t</table>\n");
	document.writeln("\t</div>\n");
	}

function textCSS()
	{
	var nTextWidth = framewidth(this) - 495;
	var nTextHeight = frameheight(this) - 260;
	document.writeln("<style type=\"text/css\">\n");
	document.writeln("\t .text{position:absolute\; left:250\; top:40\; width:" + nTextWidth + "\; height:" + nTextHeight + "\; overflow:scroll}\n");
	document.writeln("</style>\n");
	}

function loadIfFrame(strSource)
	{
	var nTextWidth = framewidth(this) - 560;
	var nTextHeight = frameheight(this) - 275;
	document.writeln("<iframe src=\"" + strSource+ ".htm\" width=\"" + nTextWidth+ "\" height=\"" + nTextHeight+ "\" name=\"textlayer\" scrolling=\"auto\" marginheight=\"2\" marginwidth=\"2\" frameborder=\"0\">\n");
	document.writeln("<p>Ihr Browser kann leider keine eingebetteten Frames anzeigen:\n");
	document.writeln("Sie k&ouml;nnen die eingebettete Seite &uuml;ber den folgenden Verweis\n");
	document.writeln("aufrufen: <a href=\"" + strSource+ ".htm\">" + strSource+ "</a></p>\n");
	document.writeln("</iframe>\n");

	//--- Logo korrekt positionieren ---
	var nLogoTop = frameheight(this) - 344;
	nLogoTop = (Math.floor(nLogoTop/2)*2)+1;
	document.getElementById("logo").style.left = (framewidth(this) - 305);
	document.getElementById("logo").style.top = nLogoTop;
	}