/* HORIZONTAL MENU BAR EITH SUBMENUS
http://jsfiddle.net/m8Bcb/4/
*/

/* the menu is the list, you don't need a wrapping div */
#top-menu-container {
    margin: auto auto;
    margin-bottom: 18px;
    padding:0;
    width:920px;
    height: 25px;
    margin-top:-13px;
    background: #f1da36; /* Old browsers */
    background: -moz-linear-gradient(top,  #fefcea 0%, #f1da36 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefcea), color-stop(100%,#f1da36)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #fefcea 0%,#f1da36 100%); /* W3C */
    /* -pie-background: linear-gradient(to bottom, #fefcea, #f1da36); */ /* ie 6-9 via PIE - using prevents rounded corners */
    border: 1px solid #07305e;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px; /* future proofing */
    -khtml-border-radius: 6px; /* for old Konqueror browsers */
    /* round corners in IE */
    behavior: url(css/PIE.htc);
    border-radius: 6px;
}
#menu {
    width:920px;
    margin-top:0px;
    background:transparent;
    text-align:left;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    color: #004400;
    /* border: 1px solid #000; */
    /* border-top:1px solid #000; */
    /* border-bottom:1px solid #000; */
    text-align: center;
}

/* ONLY MAIN MENU LIST ITEMS */
#menu > li{
    font-weight:bold;
    display:inline-block;
    position:relative;
    line-height:25px;
    border-right: 1px solid #000;
}

/* TOP MENU LINKS ONLY */
#menu > li a:hover {
    display:inline-block;
    position:relative;
    /*
    padding:0px 7px;
    padding-right: 10px;
    */
}

/* LINKS IN MAIN MENU AND BOTH SUBMENUS */
#menu a {
    display:block;
    text-decoration:none;
    padding:0px 10px;
    color:#004400;
    text-align:left;
}

#menu a:hover {
    font-weight:bold;
    display:inline-block;
    position:relative;
}

/* SUBMENUS OF BOTH LEVELS */
#menu li ul{
    position: absolute;
    top: 25px;
    left:0;
    min-width:150px;
    background-color:rgba(0,0,0,0.5);
    background-color:#F9E139;
    color:#000;
    text-align:left;
    margin-left:-5px;
    border: 1px solid #000;
}

#menu li ul li {
    margin-left:-40px;
    border-top: 1px solid #000;
    background: #f1da36; /* Old browsers */
    background: -moz-linear-gradient(top,  #fefcea 0%, #f1da36 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefcea), color-stop(100%,#f1da36)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #fefcea 0%,#f1da36 100%); /* W3C */
    /* filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefcea', endColorstr='#f1da36',GradientType=0 ); */ /* IE6-9 */
}
#menu li ul li.first {
    border-top:none;
    background: #f1da36; /* Old browsers */
    background: -moz-linear-gradient(top,  #fefcea 0%, #f1da36 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefcea), color-stop(100%,#f1da36)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #fefcea 0%,#f1da36 100%); /* W3C */
    /* filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefcea', endColorstr='#f1da36',GradientType=0 ); */ /* IE6-9 */
}
#menu li ul li ul.second {
    top: 22px;
    border-top:none;
    background: #f1da36; /* Old browsers */
    background: -moz-linear-gradient(top,  #fefcea 0%, #f1da36 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefcea), color-stop(100%,#f1da36)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #fefcea 0%,#f1da36 100%); /* W3C */
    /* filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefcea', endColorstr='#f1da36',GradientType=0 ); */ /* IE6-9 */
}
/* MOVE THE SECOND LEVEL SUBMENU TO THE RIGHT TO DON'T OVERLAP THE PARENT SUBMENU */
#menu ul ul{
    top:-1px;
    left:195px;
    list-style-type:none;
    background: #f1da36; /* Old browsers */
    background: -moz-linear-gradient(top,  #fefcea 0%, #f1da36 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefcea), color-stop(100%,#f1da36)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #fefcea 0%,#f1da36 100%); /* W3C */
    /* filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefcea', endColorstr='#f1da36',GradientType=0 ); */ /* IE6-9 */
}

/* HOVER EFFECT FOR SUBMENU LINKS */
#menu li li a:hover{
    background:rgba(255,255,255,0.5);
    background-color:#F9E139;
    font-weight:bold;
    background: #f1da36; /* Old browsers */
    background: -moz-linear-gradient(top,  #fefcea 0%, #f1da36 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefcea), color-stop(100%,#f1da36)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #fefcea 0%,#f1da36 100%); /* W3C */
    /* filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefcea', endColorstr='#f1da36',GradientType=0 ); */ /* IE6-9 */
    /* border-bottom:1px solid #000; */
}

/* HIDE ALL SUBMENUS FOR DEFAULT */
#menu li ul{
    display: none;
}

/* SHOW A SUBMENU IF THE DIRECT PARENT LISTITEM IS HOVERED */
#menu li:hover > ul{
    list-style-type:none;
    display:block;
    background: #f1da36; /* Old browsers */
    background: -moz-linear-gradient(top,  #fefcea 0%, #f1da36 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefcea), color-stop(100%,#f1da36)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #fefcea 0%,#f1da36 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #fefcea 0%,#f1da36 100%); /* W3C */
    /* filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefcea', endColorstr='#f1da36',GradientType=0 ); */ /* IE6-9 */
}

/* Example HTML
<ul id="menu">
    <li><a href="#">Home</a></li>
    <li><a href="#">Executive Summary</a></li>
    <li><a href="#"> Visual Analytics</a></li>
    <li><a href="#">Settings</a>
        <ul>
            <li><a href="#">Manage Subject</a>
                <ul>
                    <li><a href="#">Add Subject</a></li>
                    <li><a href="#">Edit Subject</a></li>
                    <li><a href="#">Delete Subject</a></li>
                    <li><a href="#">Export Subject</a></li>
                </ul>
            </li>
            <li><a href="#">Manual Crawl</a></li>
            <li><a href="#">Crawl Interval</a></li>
            <li><a href="#">Archive List</a></li>
        </ul>
    </li>
</ul>
*/