$(document).ready(function(){
	$("ul ul").css("display", "none");//hides the child lists
	
	$("ul ul").css({background:"#FFF",position: "absolute"});
	$("ul ul li").css({color:"black", margin:"5px 5px 5px 5px", padding:"0px"});
	
	$("li").hover(function(e){
		$children = $("ul", this).css({display:"block", left:e.pageX + 10+"px", opacity: "0.95"});
		if($children.length > 0)
		{
			$(this).css({cursor: "pointer", "text-decoration":"underline"});
			$("li", this).css("text-decoration","none");			
		}
	}, function(){
		$children = $("ul", this).css("display", "none");		
		if($children.length > 0)
		{
			$(this).css({cursor: "none", "text-decoration":"none"});
		}
	});
})