var selectat;
	function closeMenu(element)
	{
		var submenu = document.getElementsByClassName('lista_produse');
		for (var i = 0; i < submenu.length; i++)
		{
			submenu[i].style.display = 'none';
		}
		if(selectat != null)
			selectat.className = '';
		selectat = element;
	}



                function SearchString()
                {
                    document.forms[0].action = "/home/produse-cautate.aspx";
					document.forms[0].submit();
                }				


startList = function() {
if (document.all&&document.getElementById) {
cssdropdownRoot = document.getElementById("cssdropdown");
for (x=0; x<cssdropdownRoot.childNodes.length; x++) {
node = cssdropdownRoot.childNodes[x];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}

if (window.attachEvent)
window.attachEvent("onload", startList)
else
window.onload=startList;


function doSearchHitEnter(e)
{
 var keynum;

 if(window.event) // IE
 {
 keynum = e.keyCode;
 }
 else if(e.which) // Netscape/Firefox/Opera
 {
 keynum = e.which;
 }
 if (keynum == 13){
	SearchString();
 return false;
 }
 return true;
}