/* navigation */
/* ================================================================ 
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.
=================================================================== */

.menu { width: 100%; height:30px; position:relative; z-index:100; }
.menu-admin { width: 100%; }
.menu a:hover { text-decoration: none; }

/* remove all the bullets, borders and padding from the default list styling */
.menu ul { padding:0; margin:0;list-style-type:none; }
.menu ul ul { width:149px; }
/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.menu li {float: left; position: relative; }
.menu li li { width: 149px; padding: 0; }
/* style the links for the top level */
.menu a { display:block; text-decoration:none; color:#1F356B; height:36px; padding:0 15px 0 15px; line-height:36px;
	background: url(../img/menu/overlay-grey.gif) repeat-x; }

/* a hack so that IE5.5 faulty box model is corrected */
* html .menu a { width:149px; w\idth:128px; }
* html .menu ul li a { width: 80px; }

/* borders */
.menu ul ul ul { border-top: 1px solid #4d4e53; }
.menu ul ul a { border-left: 1px solid #4d4e53; border-right: 1px solid #4d4e53; border-bottom: 1px solid #CACAC8; }

.menu li.last a, .menu li.last li.last a { border-bottom-color: #4d4e53; }
.menu li.last li a { border-bottom-color: #cacac8; }


/* style the second level background */
.menu ul ul a.drop {background:#fafafa url(../img/arrow.gif) no-repeat 135px 9px;
	padding-right: 20px; }
* html .menu ul ul a.drop { width: 117px; w\idth:118px; }
/* style the second level hover */
.menu ul ul a.drop:hover{background:#33434c url(../img/arrow-w.gif) no-repeat 135px 9px;}
.menu ul ul :hover > a.drop { color: #fff; background:#33434c url(../img/arrow-w.gif) no-repeat 135px 9px; }
/* style the third level background */
.menu ul ul ul a {background:#fafafa;}
/* style the third level hover */
.menu ul ul ul a:hover {background-color:#33434c; background-image: none; }


/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu ul ul {visibility:hidden;position:absolute;height:0;top:36px;left:0; width:151px; }
/* another hack for IE5.5 */
* html .menu ul ul {top:36px;}

/* position the third level flyout menu */
.menu ul ul ul{top:-1px; width:149px; left:148px; }

/* position the third level flyout menu for a left flyout */
.menu ul ul ul.left {left:-149px;}

/* style the table so that it takes no ppart in the layout - required for IE to work */
.menu table {position:absolute; top:0; left:0; border-collapse:collapse;}

/* style the second level links */
.menu ul ul a { background:#fafafa; color:#000; height:auto; line-height:15px; padding:5px 10px; 
	width:auto; border-width:0 1px 1px 1px;}

/* yet another hack for IE5.5 */
* html .menu ul ul a {width:150px;w\idth:128px;}

/* style the top level hover */
.menu a:hover, .menu ul ul a:hover{color:#fff; background:#33434c; }
.menu :hover > a {color:#fff; background:url(../img/menu/overlay-red.gif) repeat-x #33434c; }
.menu ul ul :hover > a { color: #fff; }
.menu ul ul ul :hover > a { background: #33434c; color: #fff; }

/* make the second level visible when hover on first level list OR link */

.menu ul :hover ul { visibility: visible; }
.menu ul :hover ul ul { visibility: hidden; }

.menu ul :hover ul :hover ul { visibility: visible; }
.menu ul :hover ul :hover ul ul { visibility: hidden; }

.menu ul :hover ul :hover ul :hover ul { visibility: visible; }
.menu ul :hover ul :hover ul :hover ul ul { visibility: hidden; }

.menu ul :hover ul :hover ul :hover ul :hover ul { visibility: visible; }
.menu ul :hover ul :hover ul :hover ul :hover ul ul { visibility: hidden; }

.menu ul :hover ul :hover ul :hover ul :hover ul :hover ul { visibility: visible; }
.menu ul :hover ul :hover ul :hover ul :hover ul :hover ul ul { visibility: hidden; }

.menu ul a.active { background: url(../img/menu/overlay-red-active.gif) repeat-x #33434c; color: #fff; }
