﻿/* Based on http://htmldog.com/articles/suckerfish/dropdowns/ */
#TopMenuContainer{ /*create a styles for our navigationContainer div to hold our navigation */
    position:absolute;
	top:106px;
	right:17px;
	/*
	width:1000px;
	*/
    width:auto;
    z-index:100;
}

#TopMenu p {
    font-size:16px;
	font-weight:bold;
	font-style:italic;
	margin:0 5px 6px 0;
	padding:0;
	vertical-align:middle;
	line-height:23px;
    z-index:100;
}
#TopMenu p a {
	color:#707276;
	text-decoration:none;
}
#TopMenu p a:hover {
	color:#575a67;
}
#TopMenu p img {
	vertical-align:middle;
}

#TopMenu, #TopMenu ul {
	float:right;
	width:auto; /* floating elements need to have a width declared */
    padding: 0;
    margin: 0;
    list-style: none;
	font-size:12px;
	line-height: 1.5em;
}

#TopMenu li {
	float: left;
	position: relative;
	width: auto; /* width needed or else Opera goes nuts */
	margin: 0 2px 0 0;
	z-index:100;
}

#TopMenu li a {
	display: block;
	width: auto; /* width needed or else Opera goes nuts */
 	float: left;
	text-decoration:none;
	color:#747679;
 	height:29px;
	padding:4px 10px 0 0;
	margin:0;
	background: url(../images/TopMenuBG.jpg) no-repeat top right;
}

#TopMenu li a span {
	background: url(../images/TopMenuBG.jpg) no-repeat top left;
    float: left;  
	width:auto; /* floating elements need to have a width declared */
    padding-right: 5px;  
    display: block;  
    margin-top: -4px;  
 	height:29px;
}

#TopMenu li a:hover {
	background: url(../images/TopMenuBG_over.jpg) no-repeat top right;
}

#TopMenu li a:hover span {
	background: url(../images/TopMenuBG_over.jpg) no-repeat top left;
}

#TopMenu li a.selected {
	color:#FFF;
	background-color:#cccccc;
	background-image:url(../images/TopMenuBG_selected.png);
	background-repeat:no-repeat;
	background-position:top right;
	/*
	background: #6CA232 url(../images/page/TopMenuBG_selected.png) no-repeat top right;
	*/
 	height:25px;
}

#TopMenu li a.selected span {
	color:#FFF;
	background-color:#cccccc;
	background-image:url(../images/TopMenuBG_selected.png);
	background-repeat:no-repeat;
	background-position:top left;
	/*
	background: #6CA232 url(../images/page/TopMenuBG_selected.png) no-repeat top left;
	*/
}

#TopMenu li ul {
	position: absolute;
	clear:left; /* Needed for IE 6 */
	top:29px;
	left:-999em; /* using left instead of display to hide menus because display:none isn't read by screen readers */
	width: 170px;
	font-size:12px;
	margin:0;
	padding:0 0 10px 0;
	border-left:1px solid #e2e1dd;
	background-image:url(../images/DropDownBG.gif);
	background-position:bottom right;
}

#TopMenu li:hover ul, #TopMenu li.sfhover ul { /* lists nested under hovered list items */
	left:auto;
	background-color:#ffffff;
	z-index:100;
}

#TopMenu li ul li {
	margin: 0 10px 0 10px;
	padding: 0;
	background-color:#ffffff;
	border-bottom:1px solid #e2e1dd;
	width: 150px;
 	height:auto;
	z-index:100;
}

#TopMenu li ul li h1 {
	margin: 0;
	padding: 5px 10px;
	color:#3b5b95;
	font-size:12px;
	font-weight:bold;
}

#TopMenu li ul li a {
	margin: 0;
	padding: 5px 10px;
	background-image:none;
	background-color:#ffffff;
	width: 130px;
 	height:auto;
	font-weight:normal;
}

#TopMenu li ul li a:hover {
	background-color:#e2e1dd;
	background-image:none;
	z-index:100;
}
