<style type="text/css"> 
/* Just a few basic page styles */
body {
	font-size: 76%;
	font-family: Arial, Helvetica, sans-serif;
}
#mainnav {
	width: 500px;
	height: 35px;
	color: #666;
	clear:both;
	margin:0px;
	background:#BCCDDB url(http://www.ecosmarte.com.au/dimage/sprites-t1.gif) repeat-x 0px -280px;
}
/* -------------------------- */
/* We begin by styling the main navigation on the page... */
/* -------------------------- */
/* Overall main navigation styles */
#nav, #nav ul {
	float: left;
	list-style: none;
	line-height: 1em;
	color: #999;
	background-color: transparent;
	font-weight: bold;
	padding: 0;
	margin: 0;
}
/* -------------------------- */
/* The top main navigation links */
#nav a {
	display: block;
	padding: 5px 20px;
	color: #242424;	
	background-color:#ccc;
	background: url(line.jpg) no-repeat top right; /* puts a "bar" on right of the main nav links */
	text-decoration: none;
}
/* I'm targeting the last main navigation link to have no "bar" on the right side */
#nav a.last {
	background-image: none;
}
#nav a.one, #nav a.two, #nav a.three {
	text-align: left;
	font-size: 1em;
}
#nav li {
	float: left;
	padding: 0;
}

/* -------------------------- */
/* The dropdown links lists */
#nav li ul {
	position: absolute;
	left: -999em;
	height: auto;
	width: 140px; 
	font-weight: normal;
	border: 1px solid #999;
	background-color: #ccc;
	margin: 0; 
      z-index:1;
}
#nav li li {
	padding: 0;
	width: 140px; 
}
#nav li ul a {
	padding: 5px 10px;
	width: 120px;
	* html width: 100px;
}
/* This controls the flyout location of the second level dropdowns */
#nav li ul ul {
	margin: -2em 0 0 140px;
}
#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li.sfhover ul ul, #nav li.sfhover ul ul ul {
	left: -999em;
}
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul {
	left: auto;
}
/* -------------------------- */
/* Here is the background of the main nav link while looking at the dropdown */
#nav li:hover, #nav li.sfhover {
	background-color: #ccc;
        position: static;
}


/* -------------------------- */
/* The dropdown links list colors */
#nav li ul.under a {
	color: #000;
	background-image: none;
}
#nav li ul.under a:hover {
	background: #f00;
	color: #fff;
}
/* -------------------------- */
/* The background of the second level links while looking at the dropdown under it... */
#nav li ul.under li:hover a.daddy, #nav li ul.under li.sfhover a.daddy {
	color: #fff;
}
#nav li ul.under li:hover, #nav li ul.under li.sfhover {
	color: #fff;
	background-color: #f00;
}
/* -------------------------- */
</style> 
 
<!-- 
	A slightly modified version of the Suckerfish script. I folded in a check
	for whether the browser supports "getElementByTagName" and then added an additional variable
	for the second menu. I then added the second "for" loop. I'm sure there is a more elegant
	way to write this but that's for another day...
 --> 
<script type="text/javascript"> 
<!--
sfHover = function() {
	if (!document.getElementsByTagName) return false;
	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);
//--> 
</script>	
