#cssdropdown, #cssdropdown ul {
padding: 0;
margin: 0;
list-style: none;
}

#cssdropdown li {
float: left;
position: relative;
margin-bottom: 0px;
padding-bottom: 0px;
}

.mainitems, .mainitemsH{
padding-left: 0px;
padding-right: 7px;
border-right: 1px solid #ffffff;
position: relative;
top: 2px;
background-image: none; 
height: 15px;
}

.mainitems a:link, .mainitems a:visited, .mainitems a:active{
padding-right: 0px;
padding-left: 7px;
text-decoration: none;
font-weight:bold;
color: #ffffff;
}

.mainitems a:hover{
padding-right: 0px;
padding-left: 7px;
text-decoration: none;
font-weight:bold;
color: #ffff99;
}

.mainitemsH a:link, .mainitemsH a:visited, .mainitemsH a:hover, .mainitemsH a:active{
padding-right: 0px;
padding-left: 7px;
text-decoration: none;
font-weight:bold;
color: #ffff99;
}

.second{
display: none;
width: 17em;
position: absolute;
top: 15px;
left: 0;
background-color: #a8d784;
border-left: solid 0px #ffffff;
border-right: solid 0px #ffffff;
border-top: solid 0px #ffffff;
text-align: left;
direction: ltr;
}

.second li{
width: 19em;
width: 100%;
color: #ffffff;
border-bottom: #82bc56 solid 1px;
border-top: solid 0px 0px 0px 1px #ffffff;
top: 0px;
padding-top: 2px;
padding-bottom: 2px;
padding-left: 0px;
background-image: none; 

}

.second li a:link, .second li a:visited, .second li a:active {
text-decoration: none;
color: #ffffff;
width: 100%;
}

.second li a:hover{
text-decoration: none;
color: #254606;
width: 100%;
}

.third{
display: none;
width: 17em;
position: absolute;
top: -15px;
right: 17em;
background-color: #EE970D;
border-left: solid 1px #000000;
border-right: solid 1px #000000;
border-bottom: solid 1px #000000;
text-align: right;
}

.third li{
width: 100%;
color: #ffffff;
border-top: solid 0px 0px 0px 1px #000000;
top: 0px;
padding-bottom: 3px;
}

.third li a{
text-decoration: none;
}

.third li a:hover{
color: #000000;
width: 100%;
}

#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 */

left: auto;
}

#cssdropdown li>ul>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: -1px;
left: auto;
}


#cssdropdown li:hover ul.second, li.over ul.second { /* lists nested under hovered list items */
	display: block;
}

#cssdropdown li>ul>li:hover ul.third, li.over ul.third { /* lists nested under hovered list items */
	display: block;
}

#restofcontent { /*wrap rest of content of the page inside this div*/
	clear: left;
}
