<!--
// Hauptmenu
// =========
home = new Image(); home.src = root + "home.gif";
homeOn = new Image(); homeOn.src = root + "home_on.gif";
company = new Image(); company.src = root + "company.gif";
companyOn = new Image(); companyOn.src = root + "company_on.gif";
news = new Image(); news.src = root + "news.gif";
newsOn = new Image(); newsOn.src = root + "news_on.gif";
articles = new Image(); articles.src = root + "articles.gif";
articlesOn = new Image(); articlesOn.src = root + "articles_on.gif";
products = new Image(); products.src = root + "products.gif";
productsOn = new Image(); productsOn.src = root + "products_on.gif";
services = new Image(); services.src = root + "services.gif";
servicesOn = new Image(); servicesOn.src = root + "services_on.gif";
part = new Image(); part.src = root + "part.gif";
partOn = new Image(); partOn.src = root + "part_on.gif";
contact = new Image(); contact.src = root + "contact.gif";
contactOn = new Image(); contactOn.src = root + "contact_on.gif";
drupa = new Image(); drupa.src = root + "drupa.gif";
drupaOn = new Image(); drupaOn.src = root + "drupa_on.gif";

// OnMouseOver, OnMouseOut
// =======================
function menuOn(img)
{
	obj = img + "On";
	window.document.images[img].src = eval(''+obj+'.src');
}

function menuOff(img)
{
	obj = img;
	window.document.images[img].src = eval(''+obj+'.src');
}

function f_init()
{
	document.getElementById("p1").onmouseover = new Function('funktion', "showM('1')");
	document.getElementById("p1").onmouseout = new Function('funktion', "hiddenM('1')");
	document.getElementById("p2").onmouseover = new Function('funktion', "showM('2')");
	document.getElementById("p2").onmouseout = new Function('funktion', "hiddenM('2')");
	document.getElementById("p3").onmouseover = new Function('funktion', "showM('3')");
	document.getElementById("p3").onmouseout = new Function('funktion', "hiddenM('3')");
	document.getElementById("p4").onmouseover = new Function('funktion', "showM('4')");
	document.getElementById("p4").onmouseout = new Function('funktion', "hiddenM('4')");
}

function showM(part)
{
	window.document.getElementById('m'+ part).style.display = part ? 'block' : 'none';
}

function hiddenM(part)
{
	this.document.getElementById('m'+ part).style.display = "none";
}


function f_init_p()
{
	document.getElementById("pp1").onmouseover = new Function('funktion', "showM2('1')");
	document.getElementById("pp1").onmouseout = new Function('funktion', "hiddenM2('1')");
	document.getElementById("pr1").onmouseover = new Function('funktion', "showM2('1')");
	document.getElementById("pr1").onmouseout = new Function('funktion', "hiddenM2('1')");

	document.getElementById("pp2").onmouseover = new Function('funktion', "showM2('2')");
	document.getElementById("pp2").onmouseout = new Function('funktion', "hiddenM2('2')");
	document.getElementById("pr2").onmouseover = new Function('funktion', "showM2('2')");
	document.getElementById("pr2").onmouseout = new Function('funktion', "hiddenM2('2')");
	
	document.getElementById("pp3").onmouseover = new Function('funktion', "showM2('3')");
	document.getElementById("pp3").onmouseout = new Function('funktion', "hiddenM2('3')");
	document.getElementById("pr3").onmouseover = new Function('funktion', "showM2('3')");
	document.getElementById("pr3").onmouseout = new Function('funktion', "hiddenM2('3')");
	
	document.getElementById("pp4").onmouseover = new Function('funktion', "showM2('4')");
	document.getElementById("pp4").onmouseout = new Function('funktion', "hiddenM2('4')");
	document.getElementById("pr4").onmouseover = new Function('funktion', "showM2('4')");
	document.getElementById("pr4").onmouseout = new Function('funktion', "hiddenM2('4')");
}

function showM2(part)
{
	window.document.getElementById('pr'+ part).style.display = part ? 'block' : 'none';
}

function hiddenM2(part)
{
	this.document.getElementById('pr'+ part).style.display = "none";
}