/* ================================================================
This copyright notice must be untouched at all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.cssplay.co.uk/menus/final_drop.html
Copyright (c) 2005-2008 Stu Nicholls. All rights reserved.
This stylesheet and the associated (x)html may be modified in any
way to fit your requirements.
=================================================================== */

#topnav {width:770px; height:38px; position:relative; z-index:1000; font-family:arial, sans-serif; float: left;}

/* hack to correct IE5.5 faulty box model */
* html #topnav {width:770px; w\idth:770px;}

/* remove all the bullets, borders and padding from the default list styling */
#topnav ul {padding:0;margin:0;list-style-type:none;}
#topnav ul ul {width:149px;}

/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
#topnav li {
	float:left;
	position:relative;
}

/* style the links for the top level */
#topnav a, #topnav a:visited {
	display:block;
	font-size:12px;
	text-decoration:none;
	color:#fff;
	height:38px;
	background:#ffffff;
	line-height:38px;
}

/* a hack so that IE5.5 faulty box model is corrected */
* html #topnav a, * html #topnav a:visited {width:149px; w\idth:138px;}

* html #topnav a#nav-About, * html #topnav a#nav-About:visited {
	width:101px;
}
* html #topnav a#nav-Departments, * html #topnav a#nav-Departments:visited {
	width:114px;
}
* html #topnav a#nav-Staff, * html #topnav a#nav-Staff:visited {
	width:145px;
}
* html #topnav a#nav-Programs, * html #topnav a#nav-Programs:visited {
	width:96px;
}
* html #topnav a#nav-Contact, * html #topnav a#nav-Contact:visited {
	width:83px;
}
* html #topnav a#nav-Directions, * html #topnav a#nav-Directions:visited {
	width:99px;
}
* html #topnav a#nav-Links, * html #topnav a#nav-Links:visited {
	width:65px;
}
* html #topnav a#nav-Home, * html #topnav a#nav-Home:visited {
	width:67px;
}

/* style the second level background */
#topnav ul ul a.drop, #topnav ul ul a.drop:visited {background:#d4d8bd;}

/* style the second level hover */
#topnav ul ul a.drop:hover{background:#c9ba65;}
#topnav ul ul :hover > a.drop {background:#c9ba65;}

/* style the third level background */
#topnav ul ul ul a, #topnav ul ul ul a:visited {background:#e2dfa8;}

/* style the third level hover */
#topnav ul ul ul a:hover {background:#b2ab9b;}


/* hide the sub levels and give them a positon absolute so that they take up no room */
#topnav ul ul {
	visibility:hidden;
	position:absolute;
	height:0;
	top:38px;
	left:0;
	width:149px;
}

/* another hack for IE5.5 */
* html #topnav ul ul {top:38px;t\op:38px;}

/* position the third level flyout menu */
#topnav ul ul ul{left:148px; top:-1px; width:149px;}

/* position the third level flyout menu for a left flyout */
#topnav ul ul ul.left {left:-149px;}

/* style the table so that it takes no ppart in the layout - required for IE to work */
#topnav table {position:absolute; top:0; left:0; border-collapse:collapse;;}

/* style the second level links */
#topnav ul ul a, #topnav ul ul a:visited {
	background:#d4d8bd;
	color:#000;
	height:auto;
	line-height:1em;
	padding:5px 10px;
	width:128px;
	border-width:0 1px 1px 1px;
}

/* yet another hack for IE5.5 */
* html #topnav ul ul a, * html #topnav ul ul a:visited {width:150px;w\idth:128px;}

/* style the top level hover */
#topnav a:hover, #topnav ul ul a:hover{color:#000; background:#b7d186;}
#topnav :hover > a, #topnav ul ul :hover > a {color:#000; background:#b7d186;}

/* make the second level visible when hover on first level list OR link */
#topnav ul li:hover ul,
#topnav ul a:hover ul{visibility:visible; }

/* keep the third level hidden when you hover on first level list OR link */
#topnav ul :hover ul ul{visibility:hidden;}

/* make the third level visible when you hover over second level list OR link */
#topnav ul :hover ul :hover ul{ visibility:visible;}
