 /* =========================================================================
For any free or commercial usage please keep this credits text intact.
Author : Femi Hasani www.vision.to ,test idea and CSS code.
The original version of this stylesheet and the associated (x)html
is available at http://www.vision.to/simple-css-one-level-dropdown-menu.php
A link to www.vision.to would be apperciated but not mandatory.
=============================================================================== */
ul#menu {
	z-index: 5000;
/*	background: #555 ;	*/
}

ul#menu li {
    list-style:none;
	position: relative;
	float: left;
	text-align: center;
}

ul#menu li a {
	display: block;
	padding: 2px 5px;
/*	width:90px;
	padding: 12px 0;
	color: #fff;
	text-decoration: none;
	border-right: 1px solid #ccc;
	text-align: center;
	background:#000;	*/
}


ul#menu  li ul.submenu {
    display: block;
    position: absolute;
/* hidding submenus based on: http://css-class.com/articles/ursidae/  */
    left: -999em;/* this makes it more accessible than display:none; */
    width: 100px;
    padding: 3px 8px 3px 8px;
    background:#212121;
	font-size:11px;
}


ul#menu  li:hover ul.submenu {
    display: block;
    left: -5px;
    top: 100%;
    position: absolute;
    z-index: 4000;
    width: 100px;
	padding:5px;
}

/* This is for Internet Explorer 7 */
*:first-child+html ul#menu  li:hover ul.submenu {
    left: -50px;
}

/* This is for Internet Explorer 6  */
ul#menu  li.over ul.submenu 
{
    left: -50px;
}




ul#menu  li ul.submenu li {
	margin:0;
    height: auto;
    background: transparent;
    text-indent: 0;
    padding: 0;
}

a ul#menu:hover {
	color:#99CCCC;
}

ul#menu  li:hover ul.submenu li a,
ul#menu  li.over ul.submenu li a {
    display: block;
    width: 90px;/*this is to adjust if used some background image for dropdown */
    background: transparent;
    padding: 2px 5px;
    text-decoration: none;
    margin: 2px 0;
    color: #669999;
    text-indent: 0;
    text-align: left;
    border: 0;
    white-space: nowrap;
}

ul#menu li ul.submenu li a:hover {
    color: #fff;
    background: #415F5F;
}

ul#menu li.active a,
ul#menu li a:hover,
ul#menu li:hover a,
ul#menu li.over a {
    background: #212121;
}