.nav {
    font-family: RSU;
    font-size: 18px;
}
.subnav {
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.3);
}

/** Content Nav **/
ul.midnav {
	float: left;
    list-style: none;
	width: 750px; 
	min-height: 20px;
	margin: 5px;
	border-style: dotted;
	border-width: 1px;
	border-color: #ccc;
	border-radius: 5px
}
ul.midnav > li {
	float: left;
    display: list-item;
    margin: 3px;
    padding: 0px 15px 0px 15px;
    height: auto;
    min-height: 30px;
    width: 207px; /* the width for the case that the sidebar is visible */
    min-width: 207px;;
    max-width: 273px;
    position: relative; /*--Declare X and Y axis base for sub navigation--*/
    border-radius: 5px;
    behavior: url(/modules/helper/PIE/PIE.htc);
}
ul.midnav > li:hover {
    z-index: 1 !important;
    box-shadow: none;
}
ul.midnav > li > a {
    color: inherit;
    line-height: 1em;
    padding: 5px 0px;   
    text-decoration: none;
    display: list-item; 
}
ul.midnav > li > a:hover {
    text-decoration: underline;
}
ul.midnav > li > ul.preload-subnav {
	display: none;
}

/** Top Nav **/
ul.topnav {
    float: left;
    list-style: none;
    margin: 0px;
    padding: 0px;
    width: auto;
    min-width: 120px;
    height: auto; /* We cannot fix the height here because the top menu can be wrapped to multiple lines. */
    min-height: 35px;
}
ul.topnav > li {
    /* START: This fixes a rendering bug with some Thai fonts in Firefox. */
	/*float: left;*/
    display: inline-block;
    vertical-align: top;
    *display: inline; /* for IE7 */
    zoom: 1; /* for IE7 */
    /* END: This fixes a rendering bug with some Thai fonts in Firefox. */
    margin: 3px;
    padding: 0px 15px 0px 15px;
    min-height: 35px;
    position: relative; /*--Declare X and Y axis base for sub navigation--*/
    background-color: #000;
    border-radius: 5px;
    z-index: auto;
    behavior: url(/modules/helper/PIE/PIE.htc);
}
ul.topnav > li:hover {
    background-color: #333;
    z-index: 1 !important;
    box-shadow: none;
}
ul.topnav > li.home {
    padding-left: 38px;
    background-image: url(/modules/main/images/home.png);
    background-repeat: no-repeat;
    background-position: 10px center;
}
ul.topnav > li.home:hover {
    background-image: url(/modules/main/images/home.png);
    background-repeat: no-repeat;
    background-position: 10px center;
}
ul.topnav > li.hidden {
    display: none;
}
ul.topnav > li.placeholder {
    background-color: #ffe45c;
    width: 100px;
    padding: 0;
}
ul.topnav > li > a {
	float: left;
	//float: none; /* IE7 hack to make the bullet visible */
    color: #fff;
    line-height: 1em;
    padding: 10px 0px;   
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
}
ul.topnav > li > a:hover {
    color: #fed22f;
    text-decoration: underline;
}
ul.topnav > li > span { /*--Drop down trigger styles--*/
    margin: 3px -5px 3px 5px;
    padding: 7px;
    display: inline-block;
    vertical-align: top;
    font-weight: normal;
    font-family: Arial;
    font-size: 0.5em !important;
    text-decoration: none !important;
    color: #fff;
    border-radius: 5px;
    behavior: url(/modules/helper/PIE/PIE.htc);
}
ul.topnav > li > span.subhover {
    background-color: #000;
    cursor: pointer;
}
ul.topnav > li > .context-menu {
    top: -20px;
    right: 5px;
    font-family: Tahoma, Arial, sans-serif;
}
ul.topnav > li > ul.subnav {
    list-style: none;
    position: absolute; /*--Important - Keeps subnav from affecting main navigation flow--*/
    left: 0;
    top: 35px;
    background-color: #333;
    margin: 0;
    padding: 3px;
    display: none;
    float: left;
    min-width: 185px;
    min-height: 20px;
    width: auto;
    border-radius: 0px 5px 5px 5px;
    z-index: 1; /* To make the subnav displays over the images-area */
}
ul.topnav > li > ul.subnav > li {
    float: left;
    margin: 3px 0px;
    padding: 0;
    background-color: #333;
    min-width: 185px;
    min-height: 35px;
    width: 100%;
    white-space: nowrap;
    border-radius: 5px;
    behavior: url(/modules/helper/PIE/PIE.htc);
}
ul.topnav > li > ul.subnav > li:hover {
    box-shadow: none;
}
ul.topnav > li > ul.subnav > li.hidden {
    display: none;
}
ul.topnav > li > ul.subnav > li > a {
    color: #fff;
    text-decoration: none;
    line-height: 1em;
    padding: 10px 15px;
    display: block;
}
ul.topnav > li > ul.subnav > li:hover > a { /*--Hover effect for subnav links--*/
    color: #fed22f;
    text-decoration: underline;
}
ul.topnav > li > ul.subnav > li > .context-menu {
    top: 2px;
    right: 2px;
}

div.hiddennav-container {
    position: absolute;
    left: -160px;
    top: -20px;
    border: solid 1px #fff;
    color: #fff;
    background-color: #000;
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
    min-width: 150px;
    width: 152px;
    z-index: 5; /* To make it float over the sidebar and content */
    behavior: url(/modules/helper/PIE/PIE.htc);
}
div.hiddennav-container > .header {
    padding: 5px 10px;
    border-radius: 5px;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-align: center;
    background-color: #000;
    cursor: pointer;
}
div.hiddennav-container > .header:hover {
    color: #fed22f;
    background-color: #333;
}
/** Side Nav & Hidden Nav **/
ul.sidenav,
ul.hiddennav {
    float: left;
    list-style: none;
    padding:0;
    margin:0;
    background-color: transparent;
    min-height: 35px; /* This style is required to make the slideToggle effect works properly in IE7. */
    min-width: 180px;
}

ul.hiddennav {
    padding: 10px 0;
    min-width: 150px;
    display: none;
}

ul.sidenav > li,
ul.hiddennav > li {
    clear: both;
    float: left; /* Instead of using overflow:hidden, float the main menu make its background color covers 
                    the long menu name with multiple lines, but also still allow the subnav to be displayed. */
    background-color: #333;
    margin: 2px 0px;
    padding: 0px 25px 0px 10px;
    width: 145px;
    height: auto;
    min-height: 15px;
    text-align: left;
    display: list-item;
    position: relative;
    border-radius: 5px;
    behavior: url(/modules/helper/PIE/PIE.htc);
    overflow: visible; /* If it's overflow:hidden, the subnav will not be seen. */
}

ul.hiddennav > li {
    width: 111px;
    margin: 2px 2px;
}

ul.sidenav > li:hover,
ul.hiddennav > li:hover {
    background-color: #444;
    z-index: 1 !important;
    box-shadow: none;
}
ul.sidenav > li.home {
    background-image: url(/modules/main/images/home.png);
    background-repeat: no-repeat;
    background-position: 135px center;
}
ul.sidenav > li.home:hover {
    background-image: url(/modules/main/images/home.png);
    background-repeat: no-repeat;
    background-position: 135px center;
}
ul.sidenav > li > a,
ul.hiddennav > li > a {
	display: list-item;
    line-height: 1em;
    padding: 2px 0px;
    color: #fff;
    text-decoration: none;
}
ul.sidenav > li > a:hover,
ul.hiddennav > li > a:hover {
    color: #fed22f;
    text-decoration: underline;
}
/*--Drop down trigger styles--*/
ul.sidenav > li > span,
ul.hiddennav > li > span {
    margin: 0px;
    padding: 2px 7px;
    float: right;
    font-weight: normal;
    font-family: Arial;
    font-size: 0.5em !important;
    line-height: 2em;
    text-decoration: none !important;
    color: #fff;
    position: absolute;
    top: 0px;
    right: 0px;
    border-radius: 5px;
    behavior: url(/modules/helper/PIE/PIE.htc);
}
ul.sidenav > li > span.subhover,
ul.hiddennav > li > span.subhover {
    background-color: #333;
    cursor: pointer;
} 
ul.sidenav > li > .context-menu,
ul.hiddennav > li > .context-menu {
    right: 32px;
    top: -5px;
}
ul.sidenav > li > ul.subnav,
ul.hiddennav > li > ul.subnav {
    position: absolute;
    float: left;
    display: none;
    left: 177px;
    top: 0;
    min-height: 35px;
    min-width: 205px;
    width: auto;
    margin: 0px 0px 5px 0px;
    padding: 0px;
    list-style: none;
    background-color: #333;
    border-radius: 0px 5px 5px 5px;
    z-index: 1; /* To make the subnav displays over the images-area */
}
ul.subnav > li > ul.subnav {
    display: none;
}
ul.hiddennav > li > ul.subnav {
    left: 150px;
}
ul.sidenav > li > ul.subnav > li,
ul.hiddennav > li > ul.subnav > li {
    border-top: 0 !important;
    min-width: 190px;
    min-height: 15px;
    width: auto;
    padding: 0px 5px 0px 10px;
    margin: 3px;
    background-color: #333;
    border-radius: 5px;
    display: list-item;
    text-align: left;
    z-index: 0;
    white-space: nowrap;
    behavior: url(/modules/helper/PIE/PIE.htc);
}
ul.sidenav > li > ul.subnav > li:hover,
ul.hiddennav > li > ul.subnav > li:hover {
    background-color: #444;
    box-shadow: none;
}
ul.sidenav > li > ul.subnav > li.hidden,
ul.hiddennav > li > ul.subnav > li.hidden {
    display: none;
}
ul.sidenav > li > ul.subnav > li > a,
ul.hiddennav > li > ul.subnav > li > a {
    line-height: 1em;
    padding: 5px 0px;
    color: #fff;
    text-decoration: none;
    display: list-item;
}
ul.sidenav > li > ul.subnav > li:hover > a,
ul.hiddennav > li > ul.subnav > li:hover > a {
    color: #fed22f;
    text-decoration: underline;
}
ul.sidenav > li > ul.subnav > li > .context-menu,
ul.hiddennav > li > ul.subnav > li > .context-menu {
    right: 5px;
    top: 0px;
}
ul.subnav > li > ul.preload-subnav {
	display: none;
}


