/* CSS Document */
#nav li ul {
	position: absolute;
	width: 10em;
	left: -999em;
}

#nav li:hover ul {
	left: auto;
}
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

#nav li:hover ul, #nav li.sfhover ul {
	left: auto;
}
/* CSS Document */

ul {
	margin: 0;
	padding: 3;
	list-style: none;
	width: 175px;
	border-bottom: 1px solid #ccc;
	background-color: #FFFFFF;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	}

ul li {
	position: relative;
	}
li ul {
	position: absolute;
	left: 175px;
	top: 0;
	display: none;
	}
ul li a {
	display: block;
	text-decoration: none;
	color: #777;
	padding: 5px;
	border: 1px solid #ccc;
	border-bottom: 0;
	background-color: #F8F8F1;
	}
li:hover ul, li.over ul {
	display: block;
	border: 1px dashed #666666;
	padding: 3px;
}
	
<ul id="nav">
	
	/* Fix IE. Hide from IE Mac \*/
* html ul li { float: left; }
* html ul li a { height: 1%; }
/* End */

/* Fix IE. Hide from IE Mac \*/
* html ul li { float: left; height: 1%; }
* html ul li a { height: 1%; }
/* End */
