function DoLayout(Ebene)
{
	backstep = GetBackStep(Ebene)
	var txt = "";

	txt = txt + "<link rel='stylesheet' href='" + backstep + "styles/stylesheet.css'>";

	document.write(txt);
}


function DoKopf(Ebene, Hirachie, homepage)
{
	backstep = GetBackStep(Ebene)
	var txt = "";

		txt = txt + "<a name='TopOfPage'></a>";
		txt = txt + "<table border='0' cellspacing='0' cellpadding='0' width='100%' height='100%'>";
			txt = txt + "<tr>";
				txt = txt + "<td valign='top'>";
					txt = txt + GetTrennstrich(3)
					txt = txt + "<table border='0' cellspacing='0' cellpadding='2' width='100%'>";
						txt = txt + "<tr>";
							txt = txt + "<td class='location'>";
								if (homepage != "no")
								{
									txt = txt + "&nbsp;<a href='" + backstep + "index.htm'><span class='locationLink'>index</span></a> " + Hirachie;
								}
								else
								{
									txt = txt + "&nbsp;index " + Hirachie;
								}
							txt = txt + "</td>";
						txt = txt + "</tr>";
					txt = txt + "</table>";
					txt = txt + GetTrennstrich(1)
					txt = txt + "<div class='margin'>";

	document.write(txt);
}

function DoFuss(Ebene, index)
{
	backstep = GetBackStep(Ebene)
	var txt = "";
	
				txt = txt + "</div>";
			txt = txt + "</td>";
		txt = txt + "</tr>";
		txt = txt + "<tr>";
			txt = txt + "<td valign='bottom' height='1%'>";
				txt = txt + GetTrennstrich(1)
				txt = txt + "<table border='0' cellspacing='0' cellpadding='0' width='100%'>";
					txt = txt + "<tr>";
						txt = txt + "<td valign='middle' class='FussZeile'>";
							txt = txt + "<div class='MarginFussZeile'>";
								txt = txt + "&copy; Copyright 2000 by Paraguay Reisen<br>";
							txt = txt + "</div>";
						txt = txt + "</td>";
						txt = txt + "<td align='right' valign='middle' class='FussZeile'>";
							txt = txt + "<div class='MarginFussZeile'>";
								txt = txt + "<a href='mailto:paraguayreisen@aol.com'><img src='" + backstep + "images/mail.gif' alt='' border='0' width='15' height='15' align='absmiddle' hspace='2'>eMail</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
								txt = txt + "<a href='javascript:print()'><img src='" + backstep + "images/print.gif' alt='' border='0' width='15' height='15' align='absmiddle' hspace='2'>Drucken</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
								if (index != "no")
								{
									txt = txt + "<a href='javascript:history.back(-1)'><img src='" + backstep + "images/left.gif' alt='' border='0' width='16' height='17' align='absmiddle' hspace='2'>Zurück</a>&nbsp;";
								}
								txt = txt + "<a href='#TopOfPage'><img src='" + backstep + "images/top.gif' alt='' border='0' width='17' height='16' align='absmiddle' hspace='2'>Seitenanfang</a>";
							txt = txt + "</div>";
							txt = txt + "<a name='BottomOfPage'></a>"
						txt = txt + "</td>";
					txt = txt + "</tr>";
				txt = txt + "</table>";
			txt = txt + "</td>";
		txt = txt + "</tr>";
	txt = txt + "</table>";

	document.write(txt);
}


//=======================================================================================//


function DoTicker(Ebene, Size)
{
	backstep = GetBackStep(Ebene)
	var txt = "";
	
	txt = txt + "<form name='marqueeform' action='' method='POST'>";
		txt = txt + "<table border='0' cellspacing='0' cellpadding='1'>";
			txt = txt + "<tr>";
				txt = txt + "<td align='center' valign='middle' class='BorderRed'>";
					txt = txt + "<table border='0' cellspacing='0' cellpadding='0'>";
						txt = txt + "<tr>";
							txt = txt + "<td align='center' valign='middle' class='Ticker'>";
								txt = txt + "<input type='text' name='marquee' size='" + Size + "' value='' class='TickerInput'>";
							txt = txt + "</td>";
						txt = txt + "</tr>";
					txt = txt + "</table>";
				txt = txt + "</td>";
			txt = txt + "</tr>";
		txt = txt + "</table>";
	txt = txt + "</form>";

	document.write(txt);
}


function DoButton(Ebene, Link, Text)
{
	backstep = GetBackStep(Ebene)
	var txt = "";
	
	txt = txt + "<table border='0' cellspacing='0' cellpadding='0'>";
		txt = txt + "<tr>";
			txt = txt + "<td class='ButtonTD'><img src='" + backstep + "images/button_l_grey.gif' alt='' border='0' width='8' height='20'></td>";
			txt = txt + "<td class='ButtonTD' align='center' valign='middle' width='' height='20' background='" + backstep + "images/button_m_grey.gif' nowrap><a href='" + Link + "' onclick='parent.focus()'><span class='ButtonGrey'>" + Text + "</span></a></td>";
			txt = txt + "<td class='ButtonTD'><img src='" + backstep + "images/button_r_grey.gif' alt='' border='0' width='8' height='20'></td>";
		txt = txt + "</tr>";
	txt = txt + "</table>";

	document.write(txt);
}


function DoDownload(Ebene, Link, Size, Text)
{
	backstep = GetBackStep(Ebene)
	var txt = "";

	txt = txt + "<table border='0' cellspacing='0' cellpadding='1'>";
		txt = txt + "<tr>";
			txt = txt + "<td align='center' valign='middle' class='BorderRed'>";
				txt = txt + "<table border='0' cellspacing='0' cellpadding='4' width='100%' height='100%'>";
					txt = txt + "<tr>";
						txt = txt + "<td class='DownloadIcon' align='center'><img src='" + backstep + "images/download.gif' alt='' border='0' align='absmiddle' vspace='0' hspace='0' width='16' height='16'><br></td>";
						txt = txt + "<td class='DownloadText' align='left'  >" + Text + "</td>";
						txt = txt + "<td class='DownloadSize' align='center'>" + Size + "</td>";
						txt = txt + "<td class='DownloadLink' align='center'><a href='" + Link + "'>download</a><br></td>";
					txt = txt + "</tr>";
				txt = txt + "</table>";
			txt = txt + "</td>";
		txt = txt + "</tr>";
	txt = txt + "</table>";

	document.write(txt);
}


function DoBereichLogo(Text, Position, LogoBuchstabe)
{
	var txt = "";

	txt = txt + "<table border='0' cellspacing='0' cellpadding='0' width='95%'>";
		txt = txt + "<tr>";
			txt = txt + "<td align='" + Position + "'><h1>" + Text + "</h1></td>";
			txt = txt + "<td align='right' valign='top' width='1%'>";
				txt = txt + "<table border='0' cellspacing='0' cellpadding='0'>";
					txt = txt + "<tr>";
						txt = txt + "<td align='center'>";
							txt = txt + "<table border='0' cellspacing='0' cellpadding='1'>";
								txt = txt + "<tr>";
									txt = txt + "<td align='center' class='BereichLogoBorder'>";
										txt = txt + "<table border='0' cellspacing='0' cellpadding='1' width='100%' height='100%'>";
											txt = txt + "<tr>";
												txt = txt + "<td align='center' class='BereichLogo'>&nbsp;" + LogoBuchstabe + "&nbsp;</td>";
											txt = txt + "</tr>";
										txt = txt + "</table>";
									txt = txt + "</td>";
								txt = txt + "</tr>";
							txt = txt + "</table>";
						txt = txt + "</td>";
					txt = txt + "</tr>";
					txt = txt + "<tr>";
						switch (LogoBuchstabe)
						{
							case "P" :
								txt = txt + "<td align='center' class='BereichLogoText'>Produkte</td>";
								break;
							case "K" :
								txt = txt + "<td align='center' class='BereichLogoText'>Komplett-<br>lösungen</td>";
								break;
							case "S" :
								txt = txt + "<td align='center' class='BereichLogoText'>Service</td>";
								break;
							case "W" :
								txt = txt + "<td align='center' class='BereichLogoText'>Workshops</td>";
								break;
							case "A" :
								txt = txt + "<td align='center' class='BereichLogoText'>Aktuelles</td>";
								break;
							case "D" :
								txt = txt + "<td align='center' class='BereichLogoText'>DeltaCom</td>";
								break;
							default :
								txt = txt + "<td align='center' class='BereichLogoText'>?</td>";
						}
					txt = txt + "</tr>";
				txt = txt + "</table>";
			txt = txt + "</td>";
		txt = txt + "</tr>";
	txt = txt + "</table>";
	txt = txt + "<br>";

	document.write(txt);
}


//=======================================================================================//


function GetTrennstrich(Height)
{
	var txt = "";
	
	txt = txt + "<table border='0' cellspacing='0' cellpadding='0' width='100%' height='" + Height + "'>";
		txt = txt + "<tr>";
			txt = txt + "<td class='trennstrich'></td>";
		txt = txt + "</tr>";
	txt = txt + "</table>";

	return(txt);
}


function GetBackStep(Ebene)
{
	var i;
	var backstep = "";
	
	for (i = 0; i < Ebene - 1; i++)
	{
		backstep = backstep + "../";
	}

	return(backstep);
}

