/* ================================================================
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_drop2.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.
=================================================================== */
/* style the outer div to give it width */
#MainMenu {
width:750px;
padding-bottom:30px;
}
/* remove all the bullets, borders and padding from the default list styling */
#MainMenu ul {
padding:0;
margin:0;
list-style-type:none;
}
#MainMenu ul ul {
width:auto;
}
/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
#MainMenu li {
float:left;
width:auto;
position:relative;
}
/* style the links for the top level */
#MainMenu a, #MainMenu a:visited {
display:inline-block;
text-decoration:none;
color:#fff;
width:auto;
height:26px;
bor der:1px solid #fff;
bor der-width:1px 1px 0 0;
background:transparent;
padding-right:10px;
line-height:25px;
}
/* a hack so that IE5.5 faulty box model is corrected */
* html #MainMenu a, * html #MainMenu a:visited {
wi dth:150px;
w\i dth:139px;
}

/* style the second level background */
#MainMenu ul ul a.drop, #MainMenu ul ul a.drop:visited {
background:transparent;
}
/* style the second level hover */
#MainMenu ul ul a.drop:hover{
background:transparent;
}
#MainMenu ul ul :hover > a.drop {
background:transparent;
}
/* style the third level background */
#MainMenu ul ul ul a, #MainMenu ul ul ul a:visited {
background:transparent;
}
/* style the third level hover */
#MainMenu ul ul ul a:hover {
background:transparent;
}
#MainMenu ul ul ul :hover > a {
background:transparent;
}

/* hide the sub levels and give them a positon absolute so that they take up no room */
#MainMenu ul ul {
visibility:hidden;
position:absolute;
height:0;
top:27px;
left:0;
width:150px;
}
/* another hack for IE5.5 */
* html #MainMenu ul ul {
top:30px;
t\op:31px;
}

/* position the third level flyout menu */
#MainMenu ul ul ul{
left:150px;
top:0;
width:150px;
}
/* position the third level flyout menu for a left flyout */
#MainMenu ul ul ul.left {
left:-150px;
}

/* style the table so that it takes no part in the layout - required for IE to work */
#MainMenu table {position:absolute; top:0; left:0;}

/* style the second level links */
#MainMenu ul ul a, #MainMenu ul ul a:visited {
background:transparent;
color:#fff;
height:auto;
line-height:1em;
padding:5px 10px;
wid th:129px
/* yet another hack for IE5.5 */
}
* html #MainMenu ul ul a{
wi dth:150px;
w\id th:129px;
}


/* style the top level hover */
#MainMenu a:hover, #MainMenu ul ul a:hover{
color:#fff;
text-decoration:underline;
background:transparent;
}
#MainMenu :hover > a, #MainMenu ul ul :hover > a {
color:#fff;
text-decoration:underline;
background:transparent;
}
#MainMenu a.current {
color:#fff;
background:transparent;
}

/* make the second level visible when hover on first level list OR link */
#MainMenu ul li:hover ul,
#MainMenu ul a:hover ul{
visibility:visible;
}
/* keep the third level hidden when you hover on first level list OR link */
#MainMenu ul :hover ul ul{
visibility:hidden;
}
/* keep the fourth level hidden when you hover on second level list OR link */
#MainMenu ul :hover ul :hover ul ul{
visibility:hidden;
}
/* make the third level visible when you hover over second level list OR link */
#MainMenu ul :hover ul :hover ul{
visibility:visible;
}
/* make the fourth level visible when you hover over third level list OR link */
#MainMenu ul :hover ul :hover ul :hover ul {
visibility:visible;
}
