﻿/* VERTICAL MENU LAYOUT */


/* All <ul> tags in the menu including the first level */
.VerticalMenu, .VerticalMenu ul {
 padding: 1px;
 margin: 0;
 width: 198px;
 list-style: none;
 background: #FFF url(../../resources/images/bgs/listmenu_o.png) left repeat-y;
}

/* Submenus (<ul> tags) are hidden and absolutely positioned across from their parent */
.VerticalMenu ul {
 display: none;
 position: absolute;
 top: 0;
 left: 198px;
 border: 1px solid #46B;
}

/* All menu items (<li> tags) are relatively positioned (to correctly offset submenus). */
.VerticalMenu li {
 position: relative;
}

/* Links inside the menu */
.VerticalMenu li a
{
    display: block;
    padding: 3px 4px 3px 30px;
    color: #000;
    text-decoration: none;
    border: 1px solid transparent;
    margin: 0;
}

/* HACKS: MSIE6 doesn't support transparent borders, mimic with margins */
* html .VerticalMenu li a
{
    border-width: 0;
    margin: 1px;
}
* html .VerticalMenu li a:visited 
{
    color: #000;
    border-width: 0;
    margin: 1px;
}

/*
 Lit items: hover/focus = the current item. 'highlighted' = parent items to visible menus.
 Here, active items are given a border, and a padding tweak to 'elevate' the text within.
 Feel free to use background-image:url(file.gif) instead of background-color:#nnn here...
*/
.VerticalMenu a:hover, .VerticalMenu a.highlighted:hover, .VerticalMenu a:focus
{
    color: #FFF;
    text-decoration: none;
    background-color: #46B;
    padding: 3px 4px 3px 30px;
    border: 1px solid #FFF;
    margin: 0;
}
.VerticalMenu a.highlighted
{
    color: #FFF;
    background-color: #68C;
    border: 1px solid #CDE;
    margin: 0;
}

/*
 If you want per-item background images in your menu items, here's how to do it.
 1) Assign a unique ID tag to each link in your menu, like so: <a id="xyz" href="#">
 2) Copy and paste these next lines for each link you want to have an image:
    .VerticalMenu a#xyz {
      background-image: url(out.gif);
    }
    .VerticalMenu a#xyz:hover, .VerticalMenu a.highlighted#xyz, .VerticalMenu a:focus {
     background-image: url(over.gif);
    }
*/


/* 'subind' submenu indicators, which are automatically prepended to 'A' tag contents. */
.VerticalMenu a .subind {
 float: right;
}

/*
 HACKS: IE/Win:
 A small height on <li> and <a> tags and floating prevents gaps in menu.
 * html affects <=IE6 and *:first-child+html affects IE7.
 You may want to move these to browser-specific style sheets.
*/
*:first-child+html .VerticalMenu li {
 float: left;
 width: 100%;
}

* html .VerticalMenu li {
 float: left;
 height: 1%;
}
* html .VerticalMenu a {
 height: 1%;
}
/* End Hacks */


/* VERTICAL MENU HEADERS */
.VerticalMenuHeader
{
    cursor: pointer;
}
.VerticalMenuHeader a
{
    display: block;
    text-decoration: none;
    background: #68C url(../../resources/images/bgs/nav_drp.gif) left no-repeat;
    font-weight: bold;
    color: #FFF;
    padding: 6px 4px 6px 30px;
}
.VerticalMenuHeader a:visited
{
    color: #FFF;
    text-decoration: none;
}
.VerticalMenuHeader a:hover
{
    color: #FFF;
    text-decoration: none;
    background: #46B url(../../resources/images/bgs/nav_drp.gif) left no-repeat;
}
.VerticalMenuHeaderSelected
{
    cursor: pointer;
}
.VerticalMenuHeaderSelected a
{
    display: block;
    text-decoration: none;
    background-color: #C00;
    font-weight: bold;
    color: #FFF;
    padding: 6px 4px 6px 30px;
}
.VerticalMenuHeaderSelected a:visited
{
    color: #FFF;
    text-decoration: none;
}
.VerticalMenuHeaderSelected a:hover
{
    color: #FFF;
    text-decoration: none;
}


/* HORIZONTAL MENU LAYOUT */


/* All <ul> tags in the menu including the first level */
.HorizontalMenu
{
    padding-left: 10px;
    margin: 0;
    list-style: none;
}
/* Submenus (<ul> tags) are hidden and absolutely positioned downwards from their parent */
.HorizontalMenu ul 
{
    margin: 0;
    list-style: none;
    padding: 1px;
    display: none;
    position: absolute;
    top: 1.0em; margin-top: 13px; /* I'm using ems and px to allow people to zoom their font */
    left: -1px;
    width: 198px;
    background: #FFF url(../../resources/images/bgs/listmenu_o.png) left repeat-y;
    border: 1px solid #68C;
}

/* Second and third etc. level submenus - position across from parent instead */
.HorizontalMenu ul ul 
{
    padding: 1px;
    top: -1px;
    margin-top: 0;
    left: 198px;
}

/*
 All menu items (<li> tags). 'float: left' lines them up horizontally, and they are
 positioned relatively to correctly offset submenus. Also, they have overlapping borders.
*/
.HorizontalMenu li
{
    float: left;
    display: block;
    position: relative;
    margin-right: -1px;
    padding-right: 10px;
}

/* Items in submenus - override float/border/margin from above, restoring default vertical style */
.HorizontalMenu ul li 
{
    float: none;
    margin: 0;
    margin-bottom: -1px;
    padding-right: 0px;
}
.HorizontalMenu ul>li:last-child 
{
    margin-bottom: 1px; /* Mozilla fix */
}

/* Links inside the menu */
.HorizontalMenu a
{
    display: block;
    padding: 3px;
    text-decoration: none;
    border: 1px solid transparent;
    margin: 0px;
    /*margin: 1px;*/
}
.HorizontalMenu li a
{
    color: #FFF;
    text-decoration: none;
    font-weight: bold;
}
.HorizontalMenu li li a
{
    color: #000;
    padding: 3px 4px 3px 30px;
    font-weight: normal;
}

/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */
.HorizontalMenu a:hover, .HorizontalMenu a.highlighted:hover, .HorizontalMenu a:focus
{
    color: #FFF;
    text-decoration: none;
    background-color: #46B;
    border: 1px solid #FFF;
}
.HorizontalMenu a.highlighted
{
    color: #FFF;
    text-decoration: none;
    background-color: #68C;
    border: 1px solid #CDE;
}

/*
 If you want per-item background images in your menu items, here's how to do it.
 1) Assign a unique ID tag to each link in your menu, like so: <a id="xyz" href="#">
 2) Copy and paste these next lines for each link you want to have an image:
    .HorizontalMenu a#xyz {
      background-image: url(out.gif);
    }
    .HorizontalMenu a#xyz:hover, .HorizontalMenu a.highlighted#xyz, .HorizontalMenu a:focus {
     background-image: url(over.gif);
    }
*/

/* Only style submenu indicators within submenus. */
.HorizontalMenu a .subind 
{
    position: absolute;
    right: 0px;
}
.HorizontalMenu ul a .subind 
{
    display: block;
    float: right;
    position: relative;
    right: auto;
}


/* 'Escaped Comment' hack for horizontal menubar width in IE5/Mac */
.HorizontalMenu a
{
    float: left;
}
.HorizontalMenu ul a
{
    float: none;
}
/* \*/
.HorizontalMenu a
{
    float: none;
}
/* */


/*
 HACKS: IE/Win:
 A small height on <li> and <a> tags and floating prevents gaps in menu.
 * html affects <=IE6 and *:first-child+html affects IE7.
 You may want to move these to browser-specific style sheets.
*/
*:first-child+html .HorizontalMenu ul li
{
    float: left;
    width: 100%;
}
* html .HorizontalMenu ul li
{
    float: left;
    height: 1%;
}
* html .HorizontalMenu ul a
{
    height: 1%;
}
* html .HorizontalMenu ul a:visited
{
    color: #000;
    text-decoration: none;
}
* html .HorizontalMenu a
{
    border-width: 0;
    margin: 1px;
}
* html .HorizontalMenu a:visited
{
    color: #FFF;
    text-decoration: none;
    border-width: 0;
    margin: 1px;
}
/* End Hacks */