#cssdropdown, #cssdropdown ul{
padding: 0;
margin: 0;
margin-top:4px;
list-style: none;
float:right;
text-align:left;

}

#cssdropdown li {

position: relative;

}

.mainitems{
padding-top:5px;
padding-bottom:5px;
margin-left: 6px;
margin-right: 8px;
display:block;
float:left;
}

.mainitems a{
text-decoration: none;
color:#FFFF99;
display:block;
}
.mainitems a:hover{
text-decoration: none;
color:#999999;
display:block;
}

.subuls {
display: none;
position: absolute;
top: 1.5em;
left: 0;
background:#336600;
}

.subuls li{
margin:0px;
width: 180px;
display:block;
border:1px #009933 solid;  
}

.subuls li a{

padding:5px;
text-decoration:none;
display:block;

}
.subuls li a:hover{

padding:5px;
text-decoration:none;
display:block;
background:#8a052e;
}

#cssdropdown li>ul { /* to override top and left in browsers other than IE, which will position to the top right of the containing li, rather than bottom left */
top: auto;

}

#cssdropdown li:hover ul, li.over ul { /* lists nested under hovered list items */
display: block;
}

#restofcontent { /*wrap rest of content of the page inside a div with id=content*/
clear: left;
}


/* menu bottom */

#cssdropdownbottom, #cssdropdownbottom ul{
padding: 0;
margin: 0;
margin-top:1px;
list-style: none;
float:right;
text-align:left;
color:#FFFF99;
 font-family:Verdana;
 font-size:11px;
 font-weight:bold;

}

#cssdropdownbottom li {

position: relative;

}

.mainitemsbottom{
padding-top:5px;
padding-bottom:5px;
margin-left: 5px;
margin-right: 5px;
display:block;
float:left;
}

.mainitemsbottom a{
text-decoration: none;
color:#FFFF99;
display:block;
}
.mainitemsbottom a:hover{
text-decoration: none;
color:#999999;
display:block;
}

.subulsbottom {
display: none;
position: absolute;
/*top: 2.5em;*/
bottom: 1.7em;
left: 0;
background:#336600;
}

.subulsbottom li{
margin:0px;
width: 180px;
display:block;
border:1px #009933 solid;  
}

.subulsbottom li a{

padding:5px;
text-decoration:none;
display:block;

}
.subulsbottom li a:hover{

padding:5px;
text-decoration:none;
display:block;
background:#8a052e;
}

#cssdropdownbottom li>ul { /* to override top and left in browsers other than IE, which will position to the top right of the containing li, rather than bottom left */
top: auto;

}

#cssdropdownbottom li:hover ul, li.over ul { /* lists nested under hovered list items */
display: block;
}

#restofcontentbottom { /*wrap rest of content of the page inside a div with id=content*/
clear: left;
}