function highL(i,h,path)
{
	var elem = document.getElementById ("m" + i);
	if (h) {
		elem.src=path + i + "_h.png";
	} else {
		elem.src=path + i + ".png";
	}
}

function writeMail (m) {
	var t = m + '@' + 'papier-garten.de';
	document.write ("<a href=\"mailto:" + t + "\">" + t + "</a>");
}

function writeMenu(i) {
	var ipath="img/m/";
	var path = "";
	if (i == "Suche" || i == "project.pl" || i=="Blog-Hop") {
		ipath = "../img/m/";
		path="../";
	}
	if (i != "Index")
		document.write ('<a href="' + path + 'index.html" onmouseover="highL(\'home\', 1, \'' + ipath+'\')" onmouseout="highL(\'home\', 0, \'' + ipath+'\')"><img id="mhome" src="' + ipath + 'home.png" width="104" height="32" border="0"/></a>');
	else
		document.write ('<img id="mhome" src="' + ipath + 'home.png" width="104" height="32" border="0"/>');
	if (i != "Aktuell")
		document.write ('<a href="' + path + 'aktuell.html" onmouseover="highL(\'aktuell\', 1, \'' + ipath+'\')" onmouseout="highL(\'aktuell\', 0, \'' + ipath+'\')"><img id="maktuell" src="' + ipath + 'aktuell.png" width="104" height="32" border="0"/></a>');
	else
		document.write ('<img id="maktuell" src="' + ipath + 'aktuell.png" width="104" height="32" border="0"/>');
	if (i != "Katalog")
		document.write ('<a href="' + path + 'katalog.html" onmouseover="highL(\'katalog\', 1, \'' + ipath+'\')" onmouseout="highL(\'katalog\', 0, \'' + ipath+'\')"><img id="mkatalog" src="' + ipath + 'katalog.png" width="104" height="32" border="0"/></a>');
	else
		document.write ('<img id="mkatalog" src="' + ipath + 'katalog.png" width="104" height="32" border="0"/>');
	if (i != "projekte")
		document.write ('<a href="' + path + 'cgi-bin/project.pl" onmouseover="highL(\'projekte\', 1, \'' + ipath+'\')" onmouseout="highL(\'projekte\', 0, \'' + ipath+'\')"><img id="mprojekte" src="' + ipath + 'projekte.png" width="110" height="32" border="0"/></a>');
	else
		document.write ('<img id="mprojekte" src="' + ipath + 'projekte.png" width="110" height="32" border="0"/>');
	if (i != "Team")
		document.write ('<a href="' + path + 'team.html" onmouseover="highL(\'team\', 1, \'' + ipath+'\')" onmouseout="highL(\'team\', 0, \'' + ipath+'\')"><img id="mteam" src="' + ipath + 'team.png" width="104" height="32" border="0"/></a>');
	else
		document.write ('<img id="mteam" src="' + ipath + 'team.png" width="104" height="32" border="0"/>');
	if (i != "Termine")
		document.write ('<a href="' + path + 'kalender.html" onmouseover="highL(\'termine\', 1, \'' + ipath+'\')" onmouseout="highL(\'termine\', 0, \'' + ipath+'\')"><img id="mtermine" src="' + ipath + 'termine.png" width="110" height="32" border="0"/></a>');
	else
		document.write ('<img id="mtermine" src="' + ipath + 'termine.png" width="110" height="32" border="0"/>');
	if (i != "Suche")
		document.write ('<a href="' + path + 'cgi-bin/project.pl?s=-" onmouseover="highL(\'suche\', 1, \'' + ipath+'\')" onmouseout="highL(\'suche\', 0, \'' + ipath+'\')"><img id="msuche" src="' + ipath + 'suche.png" width="104" height="32" border="0"/></a>');
	else
		document.write ('<img id="msuche" src="' + ipath + 'suche.png" width="104" height="32" border="0"/>');
//	document.write ("<form action=\"" + path + "cgi-bin/project.pl\" method=\"get\"><input autocomplete=\"off\" maxlength=\"40\" name=\"s\" size=\"10\" title=\"Suche\" value=\"\"><input type=\"submit\" value=\"Suche\"></form>");
}

function home() {
	document.src = "index.html";
}

