function flyout(obj)
{
	obj.style.backgroundImage = 'url(fileadmin/css/template_images/hauptmenue-hover.jpg)';	
	hideElementsByClassName('ulnavsub');
	//hoverTopnav('ulnavtop');
	//obj.style.backgroundColor = '#4B626B';
	
	for(i = 0; i < obj.childNodes.length; i++)
	{
		if(obj.childNodes[i].tagName == "UL")
		{
			obj.childNodes[i].style.display = "block";
			return;
		}
	}
}
function flyin(obj)
{
	obj.style.backgroundImage = 'none';
	showElementsByClassName('ulnavsub');
	for(i = 0; i < obj.childNodes.length; i++)
	{
		if(obj.childNodes[i].tagName == "UL")
		{
			obj.childNodes[i].style.display = "none";
			return;
		}
	}
}

function flyout2(obj)
{
	
	for(i = 0; i < obj.childNodes.length; i++)
	{
		if(obj.childNodes[i].tagName == "UL")
		{
			//alert("hallo"+i);
			obj.childNodes[i].style.display = "block";
			return;
		}
	}
}

function hideElementsByClassName(findClass) {
var aElm=document.body.getElementsByTagName('UL');
	for(var i=0; i<aElm.length; i++) {
		if(aElm[i].className==findClass) {
		 aElm[i].style.display = "none";
		}
	} 
}
function showElementsByClassName(findClass) {
var aElm=document.body.getElementsByTagName('UL');
	for(var i=0; i<aElm.length; i++) {
		if(aElm[i].className==findClass) {
		 aElm[i].style.display = "block";
		}
	} 
}
function hoverTopnav(findClass) {
var aElm=document.body.getElementsByTagName('UL');
	for(var i=0; i<aElm.length; i++) {
		if(aElm[i].className==findClass) {
			for(j = 0; j < aElm[i].childNodes.length; j++)
			{
				aElm[i].childNodes[j].style.backgroundColor = "transparent";
			}
		}
	} 
}


function flyout3(obj)
{
	obj.style.backgroundImage = 'url(fileadmin/css/template_images/hauptmenue-hover.jpg)';	
}
function flyin3(obj)
{
	obj.style.backgroundImage = 'none';

}