
#nav, #nav ul {
    list-style:none;
    padding:0;
    width:256px;
}
#nav ul {
    position:relative;
    z-index:-1;
}
#nav li {
    position:relative;
    
}
#nav ul li {
    margin-top:-23px;

    -moz-transition:  0.4s linear 0.4s;
    -ms-transition: 0.4s linear 0.4s;
    -o-transition: 0.4s linear 0.4s;
    -webkit-transition: 0.4s linear 0.4s;
    transition: 0.4s linear 0.4s;
}
#nav li a {
	background: rgba(242,239,239,1);
	background: -moz-linear-gradient(left, rgba(242,239,239,1) 0%, rgba(232,233,236,1) 100%);
	background: -webkit-gradient(left top, right top, color-stop(0%, rgba(242,239,239,1)), color-stop(100%, rgba(232,233,236,1)));
	background: -webkit-linear-gradient(left, rgba(242,239,239,1) 0%, rgba(232,233,236,1) 100%);
	background: -o-linear-gradient(left, rgba(242,239,239,1) 0%, rgba(232,233,236,1) 100%);
	background: -ms-linear-gradient(left, rgba(242,239,239,1) 0%, rgba(232,233,236,1) 100%);
	background: linear-gradient(to bottom, rgba(242,239,239,1) 0%, rgba(232,233,236,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2efef', endColorstr='#e8e9ec', GradientType=1 );
	color:#7e7e7e;
	display:block;
	font-size:14px;
	font-weight:bold;
	line-height:40px;
	outline:0;
	text-decoration:none;
	border:#cecccc 1px solid;
	margin-top: 1px;
}
#nav li a.sub {
    background:#d4d5d8 url("../images/down.gif") no-repeat;
}
#nav li a + img {
    cursor:pointer;
    display:none;
    height:28px;
    left:0;
    position:absolute;
    top:0;
    width:200px;
}
#nav li a img {
    border-width:0px;
    height:40px;
    line-height:40px;
    margin-right:8px;
    vertical-align:middle;
    width:38px;
}
#nav li a:hover {    
	color:#000;
}
#nav ul li a {
    background-color:#eee;
    border-bottom:1px solid #ccc;
    color:#000;
    font-size:11px;
    line-height:22px;
}
#nav ul li a:hover {
    background-color:#ddd;
    color:#00FF99;
}
#nav ul li a img {
    background: url("../images/bulb.png") no-repeat;
    border-width:0px;
    height:16px;
    line-height:22px;
    margin-right:5px;
    vertical-align:middle;
    width:16px;
}
#nav ul li:nth-child(odd) a img {
    background:url("../images/bulb2.png") no-repeat;
}
#nav a.sub:focus {
    background:#bcbdc1;
    outline:0;
}
#nav a:focus ~ ul li {
    margin-top:0;

    -moz-transition:  0.4s linear;
    -ms-transition: 0.4s linear;
    -o-transition: 0.4s linears;
    -webkit-transition: 0.4s linears;
    transition: 0.4s linear;
}
#nav a:focus + img, #nav a:active + img {
    display:block;
}
#nav a.sub:active {
    background:#bcbdc1;
    outline:0;
}
#nav a:active ~ ul li {
    margin-top:0;
}
#nav ul:hover li {
    margin-top:0;
}