/* ================================================================
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-2008 Stu Nicholls. All rights reserved.
This stylesheet and the associated (x)html may be modified in any
way to fit your requirements.
=================================================================== */

.menu {
    position: relative;
    z-index: 100;
    height: 27px;
    margin: 7px 2px;
    float: left;
}

.menu .left {
    height: 27px;
    width: 4px;
    float: left;
    background: #285217 url(../img/menu_inner_sides.jpg) top right repeat-x;
}

.menu .right {
    height: 27px;
    width: 4px;
    float: left;
    background: #285217 url(../img/menu_inner_sides.jpg) top left repeat-x;
}

.menu ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
    float: left;
}

.menu ul ul {
    width: 210px;
    background: #2e5d1c url(../img/submenu_bg.jpg) top left repeat-x;
}

.menu li {
    float: left;
    position: relative;
    background: transparent url(../img/menu_inner_spacer.jpg) top right no-repeat;
    padding-right: 2px;
    z-index: 9999;
}

.menu li.last {
    background: transparent;
    padding-right: 0;
}

.menu ul ul li {
    float: none;
    background: transparent;
    padding-right: 0;
}

/* style the links for the top level */
.menu a,
.menu a:visited {
    float: left;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    line-height: 16px;
    display: block;
    padding: 5px 15px;
    height: 17px;
    text-decoration: none;
    background: #285217 url(../img/menu_inner_bg.jpg) top left repeat-x;
}

/* style the second level background */
.menu ul ul a,
.menu ul ul a:visited {
    background: transparent;
    text-shadow: none;
    float: none;
}

/* style the second level hover */
.menu ul ul a:hover {
    background: #2e5c1b url(../img/submenu_selected.jpg) top left repeat-x;
    color: #7de159;
}

/* style the third level background */
.menu ul ul ul {
    background-position: 0 -100px;
}

.menu ul ul ul a,
.menu ul ul ul a:visited {
    background: transparent;
}

/* hide the sub levels and give them a position absolute so that they take up no room */
.menu ul ul {
    visibility: hidden;
    position: absolute;
    top: 27px;
    left: 0;
    -moz-box-shadow: 1px 1px 5px #000;
    -webkit-box-shadow: 1px 1px 5px #000;
    box-shadow: 1px 1px 5px #000;
    z-index: 9999;
}

/* position the third level flyout menu */
.menu ul ul ul {
    left: 210px;
    top: 10px;
    width: 240px;
}

/* position the third level flyout menu for a left flyout */
.menu ul ul ul.left {
    top: 10px;
    left: -210px;
}

/* style the table so that it takes no part in the layout - required for IE to work */
.menu table {
    position: absolute;
    top: 0;
    left: 0;
    border-collapse: collapse;
    z-index: 9999;
}

/* style the second level links */
.menu ul ul a,
.menu ul ul a:visited {
    height: 18px;
}

/* style the top level hover */
.menu a:hover {
    color: #fff;
    background: #214413 url(../img/menu_inner_selected.jpg) top left repeat-x;
}

.menu ul ul a:hover {
    background: #214413 url(../img/submenu_selected.jpg) top left repeat-x;
}

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