window.addEvent('domready', function(){
	
		// Please upgrade your browser
	
	
	if (Browser.ie7) $('search').setStyle( 'height','42px' );
});



var startMenu = function() {
if (document.all && document.getElementById) 
{
	cssmenu = document.getElementById("csstopmenu");
	for (i=0; i<cssmenu.childNodes.length; i++) 
	{
		node = cssmenu.childNodes[i];
		if (node.nodeName=="LI") 
		{
			node.onmouseover=function() 
			{
				this.className+=" over";
			}
			node.onmouseout=function()
			{                  
				this.className=this.className.replace(" over", "")
			}
		}
	}
}
}


function hvr0 (a) {
	$(a).getElement('a').setStyle('background-position', '0px -56px');
}

function dvt0 (a) {
	$(a).getElement('a').setStyle('background-position', '0px 0px');
}

function hvr(a) {
	$(a).getParent('li').getElement('a').setStyle('background-position', '0px -56px');
}

function dvt(a) {
	$(a).getParent('li').getElement('a').setStyle('background-position', '0px 0px');
}




/*function menutopselezione(target,dove) {
	//target.style.background="url(../img/sfondomenutop_03.gif);";
	
	if (dove=='in')
	{
		$$(target).setStyle('background-image', 'url("fileadmin/templates/img/sfondomenutopb.gif")');
	}
	else
	{
		$$(target).setStyle('background-image', 'url("fileadmin/templates/img/sfondomenutopr.gif")');
	}
	//$$(target).setStyle('border', '1px solid #000000 !important');
	//alert("kl"+target);
	/*if(target.parentNode) 
	{
		var p = target.parentNode;
		if(p.parentNode) 
		{
			var p = p.parentNode;
			
			p.style.borderStyle="2px solid #000";
			
			alert("kl"+p);
			//var formId = p.id;
			//currentForm = document.getElementById(formId);
			
		}
	}
target.style.paddingLeft="20px";
//	parent=lipadre.parentNode;
//	parent.style.borderStyle="dotted double";
//	$$('#dropdownMenu div.pre').setStyle('visibility', 'hidden'); onmouseout="
	*/
//}


if (window.attachEvent)
window.attachEvent("onload", startMenu)
else
window.onload=startMenu;


