body {
 -moz-opacity: .999; //to defeat firefox redraw problem with fade effect
}

/* link styles */
.nav a {
    text-decoration: none;
    display: block;
    padding: 4px;
    color: black;
    width: 13em;
    font-size: xx-small;
    background-color: #FFDB4C;
    margin: 0;
}

.nav li li a {
  /* style for links on pop-up menus */
    background-color: #0;
    text-decoration: none;
}

.nav li li a:hover {
  /* style for links on pop-up menus */
    background-color: #0;
    text-decoration: none;
}

.nav li li li a {
    /* style for second level menu links */
    text-decoration: none;
}

.nav a:hover{
    background-color: #FFDB4C;
    color: black;
    text-decoration: none;
}

/* main nav bar */
.nav {
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* all list items */
.nav  li {
    margin:0 !important;
    padding:0 !important;
    list-style: none; /* remove bullets */
    position: relative;

}


/* pop-up subnav */
.nav ul {
    margin: 0;
    padding: 0;
    position: absolute;
    left: 0;
    top: 1.5em; /* change when you change height of links */
    display: none;

}


/* list items in pop-up subnav */
.nav ul li {
    float: none; /* so links line up one above the other for drop-downs */
    position: relative;
    left: 6em;  /* change when you change width of links */
    top: -1.5em;}
}

/*3rd level menu position*/
.nav ul ul {
    position: absolute;
    left: 10em; /* change when you change width of links */
    top: -1px;
    z-index: 99;
    border-top: 1px solid #FFF;
    border-right: 1px solid #FFF;
}

.nav ul ul li {
    z-index: 100;
}



/* look for buttons that have menus */
.nav .sub {
  background-repeat:no-repeat;
  background-position: 2px 3px;
}

.nav .subsub {
  background-repeat: no-repeat;
  background-position: 4px 7px;
}

