/* style the outer div to give it width */
.pmenu {
width:150px;
height:30px;
font-size:11px;
}

/* remove all the bullets, borders and padding from the default list styling */
.pmenu ul 
{
padding:0;
margin:0;
list-style-type:none;
}

.pmenu ul ul
{
width:150px;
}

/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.pmenu li
{
float:left;
width:150px;
position:relative;
}

/* style the links for the top level */
.pmenu a, .pmenu a:visited
{
display:block;
font-size: 11px;
font-family: Tahoma;
text-decoration:none; 
color:#000; 
width:139px; 
height:30px; 
border:1px solid #fff; 
background:#fff; 
padding-left:10px; 
line-height:29px;
}

/* a hack so that IE5.5 faulty box model is corrected */
* html .pmenu a, * html .pmenu a:visited
{
width:150px;
w\idth:139px;
}

/* style the second level background */
.pmenu ul ul a.drop, .pmenu ul ul a.drop:visited
{
background:#A5B2B5;
}

/* style the second level hover */
.pmenu ul ul a.drop:hover
{
background:#5A757B;
}

.pmenu ul ul :hover > a.drop
{
background:#5A757B;
}

/* style the third level background */
.pmenu ul ul ul a, .pmenu ul ul ul a:visited
{
background:#A5B2B5;
}

/* style the third level hover */
.pmenu ul ul ul a:hover
{
background:#5A757B;
}

.pmenu ul ul ul :hover > a
{
background:#5A757B;
}

/* style the table so that it takes no part in the layout - required for IE to work */
.pmenu table {border-collapse:collapse; border:0; position:absolute; left:0; bottom:-1px;}

/* hide the sub levels and give them a positon absolute so that they take up no room */
.pmenu ul ul
{
visibility:hidden;
position:absolute;
bottom:31px;
left:0; 
width:150px;
}

* html .pmenu ul ul
{
bottom:30px;
}

/* position the third level flyout menu */
.pmenu ul ul ul
{
left:150px; 
bottom:0;
width:150px;
}

/* position the third level flyout menu for a left flyout */
.pmenu ul ul ul.left
{
left:-150px;
}


/* style the second level links */
.pmenu ul ul a, .pmenu ul ul a:visited
{
background:#A5B2B5; 
color:#000; 
height:auto; 
line-height:1em; 
padding:5px 10px; 
width:129px
/* yet another hack for IE5.5 */
}

* html .pmenu ul ul a
{
font-size: 11px;
width:150px;
w\idth:129px;
}


/* style the top level hover */
.pmenu a:hover, .pmenu ul ul a:hover
{
color:#000;
font-size: 11px;
background:#5A757B;
}

.pmenu :hover > a, .pmenu ul ul :hover > a
{
color:#000;
font-size: 11px;
background:#5A757B;
}

/* make the second level visible when hover on first level list OR link */
.pmenu ul :hover ul
{
visibility:visible;
height:auto;
}

/* keep the third level hidden when you hover on first level list OR link */
.pmenu ul :hover ul ul
{
display:none;
}

/* keep the fourth level hidden when you hover on second level list OR link */
.pmenu ul :hover ul :hover ul ul
{
display:none;
}

/* make the third level visible when you hover over second level list OR link */
.pmenu ul :hover ul :hover ul
{ 
display:block;
bottom:0;
}

/* make the fourth level visible when you hover over third level list OR link */
.pmenu ul :hover ul :hover ul :hover ul
{ 
display:block;
bottom:0;
}