.nav {
	font-size:12px;
}

/* remove bullets, borders and padding from the list */
.nav ul {
	padding:0;
	margin:0;
	list-style-type:none;
	height:25px;
}

.nav ul ul {
	width:162px;
	z-index:100;	/* fix for ff */
}

.nav ul li {
	float:left;
	height:30px; /* connects nav with its sub */
}

.nav ul ul li {
	display:block;
	width:162px; /* width of the sub nav */
	height:auto;
	line-height:29px;
	padding:0px;
	margin:0px;		
}

.nav a, .nav a:visited {
	display:block;
	float:left;
	height:100%;
	font-size:12px;
	text-decoration:none;
	color:#fff;
	padding:0px;
	margin:0px;
}

.nav ul ul a, .nav ul ul a:visited {
	display:block;
	width:162px;
	line-height:10px;
	padding:0px;
	margin:0px;
}

* html .nav ul ul a, * html .nav ul ul a:visited  {
	width:162px;
	w\idth:162px;
}


/* IE fix */
.nav table {
	position:absolute;
	left:1px;
	top:0;
	width:0;
	height:0;
	font-size:1em;
	z-index:-1;
}

* html .nav a:hover {
	color:#000;
	position:relative;
	z-index:100;
}

.nav li:hover {
	position:relative;
}

.nav :hover > a {
	color:#000;
}

* html .nav ul ul a:hover {
	color:#000;
	position:relative;
	z-index:110;
}

.nav ul ul li:hover {
	position:relative;
}

.nav ul ul :hover > a {
	color:#000;
}

.nav ul ul {
	visibility:hidden;	/* invisible */
	position:absolute;
	height:0;
	top:25px;
	left:0;
	width:162px;
}

.nav ul :hover ul {
	visibility:visible; /* to show the second level when hover on first level */
	height:auto;
}
