.menu {
    font-size: 12px;
    position: relative;
    margin-left: 10px;
    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;
}

/* 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;
}

/* style the links */
.menu a,
.menu a:visited {
    display:block;
    font-size:12px;
    text-decoration:none; 
    color:#fff; 
    height:30px; 
    background: black;
    border-bottom: 1px solid black;
    border-left: 2px solid black;
    border-right: 2px solid black;
    border-top: none;
    padding: 0px 20px 0px 0px;
    line-height:29px;
}

/* a hack so that IE5.5 will show the links */
* html .menu a,
* html .menu a:visited {
    width: 1%;
}

/* style the third level background */
.menu ul ul ul a,
.menu ul ul ul a:visited {
    font-size: 10px;
    background:#f2efb8;
    width:199px;
    border-bottom: none;
    padding-top: 2px;
    padding-bottom: 2px;
}
/* style the third level hover */
.menu ul ul ul a:hover {
    color: white;
    background: #700;
}
* html .menu ul ul ul a{
width:220px;
w\idth:199px;
}
.menu ul ul ul a.drop_last,
.menu ul ul ul a.drop_last:visited {
    border-bottom: 2px solid black;
}

/* 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:31px;
left:0; 
width:170px;
}
/* another hack for IE5.5 */
* html .menu ul ul {
top:30px;
t\op:31px;
}

/* position the third level flyout menu */
.menu ul ul ul{
left:171px; 
top:0px;
width:220px;
}
/* position the third level flyout menu for a left flyout */
.menu ul ul ul.left {
left:-170px;
}

/* 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:#fff;
color:#000; 
height:auto; 
line-height:1.4em; 
padding:5px 10px; 
width:149px;
border-bottom: 1px solid #ddd;
/* yet another hack for IE5.5 */
}
* html .menu ul ul a{
width:170px;
w\idth:149px;
}
.menu ul ul a.drop_last,
.menu ul ul a.drop_last:visited {
    border-bottom: 2px solid black;
}


/* style the top level hover */
.menu a:hover {
    color:#fff;
    background:#000;
    text-decoration: none;
}
.menu :hover > a {
    color:#fff;
    background:#000;
    text-decoration: none;
}

/* style the second level hover */
.menu ul ul a:hover {
    color: white;
    background-color: #700;
}
.menu ul ul :hover > a {
    color: white;
    background-color: #700;
}

/* 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;
}
