

function show_sub_menu(section){
	var sect=new Array('produkte','hersteller','aktuell','experimental');
	for(i=0; i<sect.length; i++){
		document.getElementById(sect[i]).style.visibility='hidden';
	}
	document.getElementById(section).style.visibility='visible';
	
}

wmtt = null;

function showWMTT(id) {
	wmtt = document.getElementById(id);
	wmtt.style.display = "block";
	

}

function hideWMTT() {
	wmtt.style.display = "none";
}


document.onmousemove = updateWMTT;

function updateWMTT(e) {
	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
	if (wmtt != null) {
		wmtt.style.left = (x + 20) + "px";
		
		// imagepreview
		if(wmtt.style.height != ""){ 
			wmtt.style.top 	= (y - wmtt.style.height.substring(0,wmtt.style.height.length-2)) + "px";
		}else{
			wmtt.style.top 	= (y + 20) + "px";
		}
	}
}

function show_contact(mElement){
	for(i=1; i<=3; i++){
		document.getElementById("l"+i).style.visibility = 'hidden';
	}
	
	document.getElementById("l"+mElement.value).style.visibility = 'visible';

}


