/* All <ul> tags in the menu including the first level */
.nav, .nav  ul { margin: 0px; padding: 0px; list-style: none; }
/* Submenus (<ul> tags) are hidden and absolutely positioned downwards from their parent */
.nav ul { display: none; position: absolute; top: 35px; left: -1px; width: 180px; }
/* Second and third etc. level submenus - position across from parent instead */
.nav ul ul { top: -1px; margin-top: 0px; left: 178px; }

/*
 All menu items (<li> tags). 'float: left' lines them up horizontally, and they are
 positioned relatively to correctly offset submenus. Also, they have overlapping borders.
*/
.nav li { float: left; display: block; position: relative; margin-right: -1px; padding: 2px 30px 2px 37px; background-image: url("../images/mainnav-separator.gif"); background-repeat: no-repeat; background-position: center left; }
.nav li.first { background-image: none; }
.nav li.last { padding-right: 0px; }
/* Items in submenus - override float/border/margin from above, restoring default vertical style */
.nav ul li { float: none; margin: 0px; margin-bottom: -1px; padding: 0px; background-image: none; background-color: #000000; border: 1px solid #cccccc; }
.nav ul>li:last-child { margin-bottom: 1px; /* Mozilla fix */ }

/* Links inside the menu */
.nav a { display: block; color: #cccccc; font-size: 18px; font-weight: bold; text-decoration: none; }
.nav ul a { font-size: 12px; padding: 5px 10px; text-transform: none; }
/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */
.nav a:hover, .nav a:focus { color: #ffffff; }
.nav ul a { /*color: #666666;*/ }
.nav ul a:hover { color: #ffffff; }
/* selected */
.nav a.selected { color: #ffffff; }

/* Only style submenu indicators within submenus. */
.nav a .arrow { display: none; }
.nav ul a .arrow { display: block; float: right; }


/* 'Escaped Comment' hack for horizontal menubar width in IE5/Mac */
.nav a { float: left; }
.nav ul a { float: none; }
/* \*/
.nav a { float: none; }
/* */

/*
 HACKS: IE/Win:
 A small height on <li> and <a> tags and floating prevents gaps in menu.
 * html affects <=IE6 and *:first-child+html affects IE7.
 You may want to move these to browser-specific style sheets.
\*/
*:first-child+html .nav ul li { float: left; width: 100%; }
* html .nav ul li { float: left; height: 1%; }
* html .nav ul a { height: 1%; }
/* End Hacks */
