/* style the outer div to give it width */
div#nav {
	background: url(../images/logo.png) left top no-repeat transparent;
	height: 101px;
}

/* remove all the bullets, borders and padding from the default list styling */
div#nav ul {    
    padding:0 0 0 0;
    margin: 0 0 0 100px;
    list-style-type:none; 
    background: url(../images/menu_bg.png) right center no-repeat transparent;
    height: 41px;
}

/* style the sub-level lists */
div#nav ul ul {
    width:16em;
    padding: 0;
    margin: 0 0 0 -1px;
    background-color: #FFFFFF;
}

/* float the top list items to make it horizontal and a relative positon so that you can control the dropdown menu positon */
div#nav ul li {
    float:left;
    display: inline;
    padding-right:10px;
}

div#nav ul li a{
    font-size: 12px !important;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;    
    padding: 15px 10px 15px 10px;
}

/* style the sub level list items */
div#nav ul ul li {
    display:block;
    width:200px;
    height:auto;
    position:relative;
    line-height:1em;
    border: none;
}

/* style the links for the top level */
div#nav a, div#nav a:visited {
    display:block;
    float:left;
    height:100%;
    font-size:1em;
    text-decoration:none;
}

/* style the sub level links */
div#nav ul ul a, div#nav ul ul a:visited, div#nav ul ul a:hover {
    display:block;
    width:200px;
    height:100%;
    line-height:1em; 
    padding:7px 10px 7px 11px;
    font-size: 11px !important;
    background: url(../images/menu_item_bg.png) 1px top repeat-y transparent;
}

div#nav ul ul li.last a, div#nav ul ul li.last a:visited {
	background: url(../images/menu_item_last_bg.png) 1px bottom no-repeat transparent;
	padding:7px 10px 10px 11px;
}

div#nav ul table ul a, div#nav ul table ul a:visited  {
    width:200px; 
    w\idth:14em;
}


/* style the table so that it takes no part in the layout - required for IE to work */
div#nav table {
    position:absolute; 
    left:0; 
    top:0; 
    font-size:1em; 
    z-index:-1;
}

div#nav ul ul table {
    lef\t:-1px;
}

div#nav ul ul table ul.left {
    margin-lef\t:2px;
}

div#nav li:hover {
    position:relative;
}

* html div#nav a:hover {
    position:relative;
}

/* style the third level background */
div#nav ul ul ul a, div#nav ul ul ul a:visited {
}

/* style the fourth level background */
div#nav ul ul ul ul a, div#nav ul ul ul ul a:visited {
}
/* style the sub level 1 background */
div#nav ul :hover a.sub1 {
}
/* style the sub level 2 background */
div#nav ul ul :hover a.sub2 {
}

/* style the level hovers */
/* first */
div#nav a:hover {
    color:#000;
    background: url(../images/menu_hover_bg.png) center left repeat-x transparent;
}

div#nav :hover > a {
    color:#000;
    background: url(../images/menu_hover_bg.png) center left repeat-x transparent;
}

/* second */
div#nav ul ul a:hover{
    color:#000; 
}

div#nav ul ul :hover > a {
    color:#000;
}

/* third */
div#nav ul ul ul a:hover {
    background:#79C120;
}

div#nav ul ul ul :hover > a {
    background:#ddd;
}

/* fourth */
div#nav ul ul ul ul a:hover {
    background:#eee;
}


/* hide the sub levels and give them a positon absolute so that they take up no room */
div#nav ul ul {
    visibility:hidden;
    position:absolute;
    height:0;
    top:2.65em;
    left:0;
    width:14em;
    margin: -1px 0 0 -1px !important;
    }

/* position the third level flyout menu */
div#nav ul ul ul{
    left:14em;
    top:0;
    width:14em;
}

/* position the third level flyout menu for a left flyout */
div#nav ul ul ul.left {
    left:-14em;
}


/* make the second level visible when hover on first level list OR link */
div#nav ul li:hover ul, div#nav ul a:hover ul {
    visibility:visible; 
    height:auto; 
    background:transparent;
    }

/* keep the third level hidden when you hover on first level list OR link */
div#nav ul :hover ul ul{
    visibility:hidden;
}

/* keep the fourth level hidden when you hover on second level list OR link */
div#nav ul :hover ul :hover ul ul{
    visibility:hidden;
}

/* make the third level visible when you hover over second level list OR link */
div#nav ul :hover ul :hover ul{
    visibility:visible;
}

/* make the fourth level visible when you hover over third level list OR link */
div#nav ul :hover ul :hover ul :hover ul {
    visibility:visible;
}