$('.title2').click(function() {
	
	var urlid=this.id;
	var tmpaa=eval("document.getElementById('"+urlid+"_hidden')");
	
	document.location.href=tmpaa.value;
	
});


$('.title').mouseover(function() {
	
	deselectmenu()
	
	var urlid=this.id;
	if(urlid!="selectedmenu")
	{
		var urlid_arr=urlid.split("_def");
		
		document.getElementById(urlid).style.display="none";
		
		var tmpsel=eval("document.getElementById('"+urlid_arr[0]+"_sel')");
		tmpsel.style.display="inline";
	}
});


$('.title2').mouseout(function() {
	
	deselectmenu()
});

function deselectmenu()
{
		
	for(var i=1;i<=document.getElementById("Lefttotcat").value;i++)
	{
		
		var tmpsel=eval("document.getElementById('"+i+"_sel')");
		tmpsel.style.display="none";
		
		var tmpsel=eval("document.getElementById('"+i+"_def')");
		tmpsel.style.display="inline";
	}
}
