﻿/* ================================================================ 
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-2007 Stu Nicholls. All rights reserved.
This stylesheet and the assocaited (x)html may be modified in any 
way to fit your requirements.
=================================================================== */

/* 
clear fix 
This solves the problem of the navigation area 
taking up zero space due to the embedded display:inline menus.
No additional HTML markup required.
*/
/* Modern browsers */
#nav:after
{
	clear: both;
	content: ".";
	display: block;
	height: 0;
	visibility: hidden;
}
/* Unmodern Browsers: */
/* IE6 */
* html #nav
{
	height: 1%;
}
/* IE7 */
*+html #nav
{
	height: 1%;
}
/* /clear fix */

#nav
{
	display: block;
	z-index: 500;
}
#nav img
{
	
}


.menu li
{
	margin: 0;
	padding: 0;
}
.menu {
/* width:750px;  */
color: #fff;
background-color: inherit;
display: inline;
font-size:0.85em;
position:relative;
z-index:100;
}
/* 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:150px; */
}
.menu ul ul li
{
	border-left: 1px solid #fff;

}
/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.menu li {
float:left;
/* width:150px; */
position:relative;
}
/* ---------------------------- */
/* style the links for the top level */
/* ---------------------------- */
.menu a, .menu a:visited {
display:block;
font-size:11px;
text-decoration:none; 
color:#fff; 
/* width:139px; */
height:22px; 
border-color:#fff; 
border-style: solid;
border-width:0px 0px 1px 0;
background:#000; 
/* padding-left:10px;  */
line-height:22px;
}
/* a hack so that IE5.5 faulty box model is corrected */
/* IE6 requires a width, but we don't want a specific width. 1% suffices. */
 * html .menu a, * html .menu a:visited {
width:1%;
/* w\idth:139px; */
}

/* ---------------------------- */
/* style the second level background */
/* ---------------------------- */
.menu ul ul a.drop, .menu ul ul a.drop:visited {
background:#000 url(../images/drop.gif) bottom right no-repeat;
color: #fff;
}
/* ---------------------------- */
/* style the second drop menu level hover */
/* ---------------------------- */
.menu ul ul a.drop:hover{
background:#666 url(../images/drop.gif) bottom right no-repeat;
}
.menu ul ul :hover > a.drop {
background:#666 url(../images/drop.gif) bottom right no-repeat;
}
/* ---------------------------- */
/* style the third level background */
/* ---------------------------- */
.menu ul ul ul a, .menu ul ul ul a:visited {
background:#000;
color: #fff;
}
/* ---------------------------- */
/* style the third level hover */
/* ---------------------------- */
.menu ul ul ul a:hover {
background:#666;
}


/* 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:23px;
left:0; 
width:150px;
z-index:100;
}

/* another hack for IE5.5 */
* html .menu ul ul {
top:22px;
t\op:23px;
}

/* position the third level flyout menu */
.menu ul ul ul{
left:150px; /* overlap */
position:absolute;
top:0;
width:150px;
z-index:200; /* on top of other menus */
}
/* position the third level flyout menu for a left flyout */
.menu ul ul ul.left {
left:-150px;
}

/* 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;}

/* ---------------------------- */
/* style the second level links */
/* ---------------------------- */
.menu ul ul a, .menu ul ul a:visited {
background:#000; 
color:#fff; 
height:auto; 
line-height:1em; 
padding:5px 10px; 
width:130px
/* yet another hack for IE5.5 */
}
* html .menu ul ul a{
width:150px;
w\idth:129px;
}

/* -------------------------------- */
/* style the top (root) level hover */
/* ---------------------------- */
.menu a:hover, .menu ul ul a:hover{
color:#fff; 
background:#666;
}
.menu :hover > a, .menu ul ul :hover > a {
color:#fff;
background:#666;
}

/* make the second level visible when hover on first level list OR link */
.menu ul li:hover ul,
.menu ul a:hover ul{
visibility:visible; 
}
/* keep the third level hidden when you hover on first level list OR link */
.menu ul :hover ul ul{
visibility:hidden;
}

/* make the third level visible when you hover over second level list OR link */
.menu ul :hover ul :hover ul{ 
visibility:visible;
}
/* make the 4th level hidden when you hover over second level list OR link */
.menu ul :hover ul :hover ul ul{ 
visibility:hidden;
}

/* keep the third level hidden when you hover on first level list OR link */
.menu ul :hover ul ul{
visibility:hidden;
}
/* fourth*/
/* hide by default so that fourth level doesn't make nasty scroll nonsense */
.menu ul ul ul ul
{
	display: none;
}
/* hide on hover of the first level so the whole menu doesn't explode out without hovering out */
.menu ul ul :hover ul ul
{
	visibility: hidden;
	display:none;
}
/* make the fourth level visible when you hover over second level list OR link */
.menu ul :hover ul :hover ul :hover ul{ 
visibility:visible;
display:block;
}