/* ================================================================
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/flyout_4level.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This stylesheet and the associated (x)html may be modified in any
way to fit your requirements.
=================================================================== */
#MainMenu {
height:140px;
margin:0 -10px;padding:0;
}

/* remove all the bullets, borders and padding from the default list styling */
#MainMenu ul {
position:relative;
z-index:11;
margin:0;padding:0;
list-style-type:none;
width:140px;
}
/* style the list items */
#MainMenu li {
background:#c96 /*url(shade.gif)*/;
height:26px;
/* for IE7 */
float:left;
}
#MainMenu li.sub {background:#c96 /*url(sub.gif)*/ no-repeat right center;}

/* get rid of the table */
#MainMenu table {position:absolute; border-collapse:collapse; top:0; left:0; z-index:10; font-size:1em; }

/* style the links */
#MainMenu a, #MainMenu a:visited {
display:block;
text-decoration:none;
height:25px;
line-height:25px;
width:139px;
color:#fff;
text-indent:5px;
border:1px solid #fff;
border-width:0 1px 1px 1px;
}
#MainMenu a.current {
color:#000;
background:#fda;
}
/* hack for IE5.5 */
* html #MainMenu a, * html #MainMenu a:visited {width:140px; w\idth:139px;}
/* style the link hover */
* html #MainMenu a:hover {color:#000; background:#fda; position:relative;}

#MainMenu li:hover {position:relative;}

/* For accessibility of the top level menu when tabbing */
#MainMenu a:active, #MainMenu a:focus {color:#000; background:#fda;}

/* retain the hover colors for each sublevel IE7 and Firefox etc */
#MainMenu li:hover > a {color:#000; background:#fda;}

/* hide the sub levels and give them a positon absolute so that they take up no room */
#MainMenu li ul {
visibility:hidden;
position:absolute;
top:-30px;
/* set up the overlap (minus the overrun) */
left:100px;
/* set up the overrun area */
padding:30px;
/* this is for IE to make it interpret the overrrun padding */
background:transparent url(pub/images/dot.gif);
}

/* for browsers that understand this is all you need for the flyouts */
#MainMenu li:hover > ul {visibility:visible;}


/* for IE5.5 and IE6 you need to style each level hover */

/* keep the third level+ hidden when you hover on first level link */
#MainMenu ul a:hover ul ul{
visibility:hidden;
}
/* keep the fourth level+ hidden when you hover on second level link */
#MainMenu ul a:hover ul a:hover ul ul{
visibility:hidden;
}
/* keep the fifth level hidden when you hover on third level link */
#MainMenu ul a:hover ul a:hover ul a:hover ul ul{
visibility:hidden;
}

/* make the second level visible when hover on first level link */
#MainMenu ul a:hover ul {
visibility:visible;
}
/* make the third level visible when you hover over second level link */
#MainMenu ul a:hover ul a:hover ul{
visibility:visible;
}
/* make the fourth level visible when you hover over third level link */
#MainMenu ul a:hover ul a:hover ul a:hover ul {
visibility:visible;
}
/* make the fifth level visible when you hover over fourth level link */
#MainMenu ul a:hover ul a:hover ul a:hover ul a:hover ul {
visibility:visible;
}


