﻿ul.AspNet-Menu {
    position: relative;
    z-index:100;
}


ul.AspNet-Menu, ul.AspNet-Menu ul {
    margin: 0;
    padding: 0;
    display: block;
}

ul.AspNet-Menu li {
    position: relative;
    list-style: none;
}

ul.AspNet-Menu li a, ul.AspNet-Menu li span {
    display: block;
    text-decoration: none;
}

ul.AspNet-Menu ul {
    position: absolute;
    display: none;    
}

/* Add more rules here if your menus have more than three (3) tiers */
    ul.AspNet-Menu li:hover ul ul,
    ul.AspNet-Menu li:hover ul ul ul,
    ul.AspNet-Menu li.AspNet-Menu-Hover ul ul,
    ul.AspNet-Menu li.AspNet-Menu-Hover ul ul ul {
        display: none;
    }

/* Add more rules here if your menus have more than three (3) tiers */
    ul.AspNet-Menu li:hover ul,
    ul.AspNet-Menu li li:hover ul,
    ul.AspNet-Menu li li li:hover ul,
    ul.AspNet-Menu li.AspNet-Menu-Hover ul,
    ul.AspNet-Menu li li.AspNet-Menu-Hover ul,
    ul.AspNet-Menu li li li.AspNet-Menu-Hover ul {
        display: block;
    }


/* -------------------------------------------------------------------------- */
/* When the Menu control's Orientation property is Horizontal the adapter wraps the menu with DIV */
/* whose class is AspNet-Menu-Horizontal. This allows us to force the top tier of the menu to layout */
/* horizontally, whereas all subsequent tiers of the menu lay out vertically. */

.AspNet-Menu-Horizontal ul.AspNet-Menu li {
    float: left;
}

.AspNet-Menu-Horizontal ul.AspNet-Menu li li {
    float: none;
}
        

/* === DROP-DOWN MENU (TOPNAV) - DO NOT MODIFY ================================== */

    /* layout controlled in menu.css */

    .topnav {
        position:absolute;
        top:20px;
        right:162px;
        width:auto;
    }

    /* All tiers in the menu... */
    .topnav ul.AspNet-Menu, 
    .topnav ul.AspNet-Menu ul {
        width:auto;
        font-size:10px;
    }

    /* All tiers EXCEPT THE TOP TIER in the menu... */
    .topnav ul.AspNet-Menu ul {
        left: 128px;
        top: 3px;
    }

    /* Each menu item. */
    .topnav ul.AspNet-Menu li {
        font-weight:bold;        
    }

    /* Link area of each item */
    .topnav ul.AspNet-Menu li a,
    .topnav ul.AspNet-Menu li span {
        font:bold 10px verdana;
        text-transform:uppercase;
        text-decoration:none;
        color:black;
        line-height:14px;
        padding:8px 10px 7px 10px;     
        background:transparent url(../img/template/bg-topnav-li.gif) 0 10px no-repeat;   
    }

    /* menu item that contains no submenu items (a "leaf") */
    .topnav ul.AspNet-Menu li.AspNet-Menu-Leaf a,
    .topnav ul.AspNet-Menu li.AspNet-Menu-Leaf span {
    }

    /* menu item icons. */
    .topnav ul.AspNet-Menu li a img {
        display:none;
        border-style: none;
        vertical-align: middle;
        margin:0 5px 0 0;
    }

    /* menu item hover state. */
    .topnav ul.AspNet-Menu li:hover, 
    .topnav ul.AspNet-Menu li.AspNet-Menu-Hover {
        background-color:#CCCCCC;           
    }

    /* menu item link/span hover state. */
    .topnav ul.AspNet-Menu li a:hover,
    .topnav ul.AspNet-Menu li span.Asp-Menu-Hover {
        color:black;
        background:transparent url(../img/template/bg-topnav-li.gif) 0 10px no-repeat;   
        background-color:#E7E7E7;
    }

    .topnav ul.AspNet-Menu li.AspNet-Menu-Leaf a:hover {
    }

    /* === HORIZONTAL MENU RULES ======================================= */

        /* horizontal type menu */
        .topnav .AspNet-Menu-Horizontal {
            margin:0;
            width:auto;
            z-index: 300;
        }

        /* top tier of the horizontal menu. MAKE SURE IT'S WIDE ENOUGH to accomodate all of the top tier menu items */
        .topnav .AspNet-Menu-Horizontal ul.AspNet-Menu {
            width:auto;
        }

        /* style all tiers EXCEPT THE TOP TIER in the menu this way... */
        .topnav .AspNet-Menu-Horizontal ul.AspNet-Menu ul {
            left:0;
            top:25px;
            margin:4px 0 0 0;
        }

        /* all menu items. */
        .topnav .AspNet-Menu-Horizontal ul.AspNet-Menu li {
            text-align:left;            
        }

        /* menu items in the second tier (and lower) in the menu. */
        .topnav .AspNet-Menu-Horizontal ul.AspNet-Menu li li {
            text-align:left;
        }

        /* width of menu items below the top tier. */
        .topnav .AspNet-Menu-Horizontal ul.AspNet-Menu ul li {
            width:auto;
            white-space:nowrap;
        }

    /* === SECOND LEVEL (and up) ======================================== */

        .topnav ul.AspNet-Menu ul {
            border-left:3px solid white;
            border-right:3px solid white;
            border-bottom:3px solid white;
            width:auto;
        }
        
        .topnav ul.AspNet-Menu ul li {
            background-color:#CCCCCC;
            font-weight:normal;
            width:auto;
            min-width:82px;
        }

        /* Link area of each item */
        .topnav ul.AspNet-Menu ul li a,
        .topnav ul.AspNet-Menu ul span {
            width:auto;
            border:0;
            background-image:none !important;
        }
        
        /* menu item hover state. */
        .topnav ul.AspNet-Menu ul li:hover, 
        .topnav ul.AspNet-Menu ul li.AspNet-Menu-Hover {
            background:#E7E7E7;
            border-left:0;
        }
        

    /* === THIRD LEVEL (and up) ========================================= */

        /* Third tier menus have to be positioned differently than second (or top) tier menu items because */
        /* they drop to the side, not below, their parent menu item. This is done by setting the last margin */
        /* value (which is equal to margin-left) to a value that is slightly smaller than the WIDTH of the */
        /* menu item. So, if you modify the rule above, then you should modify this (below) rule, too. */
        .topnav .AspNet-Menu-Horizontal ul.AspNet-Menu li ul li ul {
            margin:-10px 0 0 130px;
        }
        
/* --- END: MENUS ------------------------------------------------------- */
