/****	
		Erläuterung: creates a e-mail from parts of a email - Spam protection - Robots can't or do not validate javascript
		Verknüpfungen von: index.php
		Verknüpfungen zu: -
		Objekte: -
		Variablen: -
****/

function generateEmail(account, domain, dotwhat) {
	
	html = '<a href="mailto:'+account+'&#64;'+domain+'&#46;'+dotwhat+'">';
	html += account+'&#64;'+domain+'&#46;'+dotwhat;
	html += '</a>'
	
	document.write(html);
}

/****	
		Description: Additional function for IE6 support - Switchs category picture and text
		Verknüpfungen von: -
		Verknüpfungen zu: -
		Objekte: -
		Variablen: -
****/

function showCatPic(divElement) {
	divElement.style.backgroundPosition = "-20px -20px";
}

function showCatTxt(divElement) {
	divElement.style.backgroundPosition = "-20px -220px";
}


/****	
		Erläuterung: Additional function for IE6 menu support - CSS menu doesn't work on IE6
		Verknüpfungen von: 
		Verknüpfungen zu: -
		Objekte: -
		Variablen: -
****/

function showSubmenu(liElement) {
	aElement = liElement.getElementsByTagName("a");
	aElement[0].style.backgroundColor = "#a5d694";
	aElement[0].style.borderRight = "1px solid #ffffff";
	aElement[0].style.borderLeft = "1px solid #ffffff";
	
	// ul-Element
	liElement.lastChild.style.display = "block";
}

function hideSubmenu(liElement) {
	aElement = liElement.getElementsByTagName("a");
	aElement[0].style.backgroundColor = "";
	aElement[0].style.borderRight = "1px solid #46b034";
	aElement[0].style.borderLeft = "1px solid #46b034";
	// ul-Element
	liElement.lastChild.style.display = "none";
}