/* set up the overall width of the menu div, the font and the margins with a relative position*/

#menu {
font-family: verdana, arial, sans-serif; 
width:600px; 
margin:-50 0 50px 0; 
position:relative;
z-index:100;
height:250px;
_height:300px;
}
/* remove the bullets and set the margin and padding to zero for the unordered list */
#menu ul {
padding:0; 
margin:0;
list-style: none;
border:0;
}
#menu ul table {border-collapse:collapse; margin:-1px -10px; font-size:1em;}

/* float the list so that the items are in a line */
#menu ul li {
float:left; 
}
/* style the links to be 100px wide by 30px high with a top and right border 1px solid white. Set the background color and the font size. */
#menu ul li a, #menu ul li a:visited {
display:block; 
text-align:center; 
text-decoration:none; 
width:100px; 
height:30px; 
color:#000; 
border:1px solid #fff;
border-width:1px 1px 0 0;
/*background:#65b9e1; */
line-height:30px; 
font-size:13px;

background-image:url(CSS/board-b.gif) ;

}
/* make the dropdown ul invisible */
#menu ul ul {
position:absolute; left:-9999px; height:0; z-index:10;
}

/* set the background and foreground color of the main menu items on hover */
#menu ul li#selected a{
color:#000; 
 /* background:#5fb776; */
 background-image:url(CSS/board-b.gif) ;
}
#menu ul li a:hover,
#menu ul li:hover a {
color:#999; 
 background:transparent;
 background-image:url(CSS/board-b.gif) ;
 
}
/* make the sub menu ul visible and position it beneath the first list item */
#menu ul li#selected ul {
top:30px; 
height:auto;
left:0; 
text-align:left;
}
#menu ul :hover ul {
top:30px; 
height:auto;
left:0; 
text-align:left;
z-index:100;
}
/* make the sub menu ul li the full width with padding and border. Add an auto scroll bar */
#menu ul li#selected ul li,
#menu ul :hover ul li {
background:#fff; 
color:#000;
padding:10px 20px;
width:775px;
height:350px;
overflow:auto;
border:1px dotted #157677;
}
#menu ul li#selected ul li {border:1px dotted #157677}

/*float the image left with padding and no border */
#menu ul li#selected ul li img,
#menu ul :hover ul li img {
float:left; 
padding:10px 10px 10px 0; 
border:0;
}
/* style the paragraph font height */
#menu ul li#selected ul li p,
#menu ul :hover ul li p {
font-size:13px;
line-height:15px;
}
/* style the background and foreground color of the submenu links */
#menu ul li#selected ul li a,
#menu ul :hover ul li a {
display:inline;
background:transparent;
color:#157677;
text-decoration:none;
border:0;
line-height:18px;
}
/* style the background and forground colors of the links on hover */
#menu ul li#selected ul li a:hover,
#menu ul :hover ul li a:hover {
text-decoration:underline; 
color:#c00;

}

