﻿/* ADxMenu - v4
 * (c) Copyright 2003, 2008, Aleksandar Vacic, http://aplus.rs
 * This work is licensed under the CC Attribution 3.0 Unported license
 * To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/
 * or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA
 * ADxMenu Examples	http://aplus.rs/adxmenu/examples/
 * These are 4 (+2) most basic examples.
 *  1. HTB: horizontal, top to bottom, submenus stack left to right
 *  2. VLR: vertical, left to right, submenus stack top to bottom
 *  3. VRL: vertical, right to left, submenus stack top to bottom
 *  4. HBT: horizontal, bottom to top, submenus stack left to right
 *  (+2) HTBX, HBTX: submenus stack right to left
 */
/* --- page styling, unimportant for the menu. only makes the page looks nicer --- */
.menuhtb, .menuhbt, .menuhtbx, .menuhbtx {
 position: relative;
 background: #369;
 color: #FFF;
 margin: 0;
 padding: 0;
}
.menuvlr, .menuvrl {
 position: relative;
 background: #369;
 color: #FFF;
 width: 222px;
 margin: 0;
 padding: 0;
}
.menuhtb, .menuhbt { float: left; text-align: left; }
.menuvlr { float: left; text-align: left; }
.menuvrl { float: right; text-align: right; }
.menuhtbx, .menuhbtx { float: right; text-align: right; }
/* --- ADxMenu: BASIC styles [ MANDATORY ] --- */
/* --- VERY IMPORTANT! Set this to appropriate value, either here on down in the design section --- */
.menuvlr, .menuvrl { width: 222px; }
/* --- remove all list stylings --- */
.menuhtb, .menuhtb ul, .menuhtbx, .menuhtbx ul, 
.menuvlr, .menuvlr ul, .menuvrl, .menuvrl ul, 
.menuhbt, .menuhbt ul, .menuhbtx, .menuhbtx ul {
 margin: 0;
 padding: 0;
 border: 0;
 list-style-type: none;
 text-decoration: none;
 display: block;
 white-space: nowrap;	/* !!! */
}
/* --- move all list items into one row, by floating them --- */
.menuhtb li, .menuhtbx li, .menuvlr li, .menuvrl li, .menuhbt li, .menuhbtx li {
 margin: 0;
 padding: 0;
 border: 0;
 display: block;
 position: relative;	/* !!! */
 white-space: nowrap;	/* !!! */
}
/* --- position each LI, thus creating potential IE.win overlap problem --- */
/* --- thus we need to apply explicit z-index here... --- */
/* --- move all main list items into one row, by floating them --- */
.menuhtb li, .menuhbt li { z-index: 59; float: left; }
.menuvlr li, .menuvrl li  { z-index: 55; }
.menuhtbx li, .menuhbtx li { z-index: 58; float: right; }
/* --- force the 2nd-level submenu items into separate rows, --- */
/* --- while still keeping float:left (which resolves IE6 white-gap problem) --- */
/* --- define new starting point for the nested UL, thus making its positioning a piece of cake --- */
.menuhtb li:hover, .menuhtbx li:hover { z-index: 99; }
.menuvlr li:hover, .menuvrl li:hover { z-index: 95; }
.menuhbt li:hover, .menuhbtx li:hover { z-index: 98; }
/* --- items of the nested menus are kept on separate lines --- */
.menuhtb li li, .menuhtbx li li, .menuhbt li li, .menuhbtx li li { float: none; }
/* --- initially hide all submenus. --- */
.menuhtb ul, .menuhtbx ul, .menuvlr ul, .menuvrl ul, .menuhbt ul, .menuhbtx ul {
 visibility: hidden; position: absolute;	/* !!! */
}
.menuhtb ul, .menuhtbx ul { z-index: 79; }
.menuvlr ul, .menuvrl ul  { z-index: 75; }
.menuhbt ul, .menuhbtx ul { z-index: 78; }
/* --- while hidden, always keep them at the top left/right corner --- */
.menuhtb ul, .menuvlr ul, .menuhbt ul { left: 0; }
.menuhbtx ul, .menuvrl ul { right: 0; }
/* --- to avoid scrollbars as much as possible --- */
.menuhtb ul, .menuhbt ul, .menuhbt ul, .menuhbtx ul { bottom: 0; }
.menuvlr ul, .menuvrl ul  { top: 0; }
/* --- display submenu them on hover --- */
/* --- 1st level go below their parent item --- */
/* --- and move them to the left/right of the item --- */
.menuhtb li:hover>ul, .menuhtbx li:hover>ul, 
.menuvlr li:hover>ul, .menuvrl li:hover>ul, 
.menuhbt li:hover>ul, .menuhbtx li:hover>ul { visibility: visible; }
.menuhtb li:hover>ul { top: 100%; left: 5%; }
.menuhtbx li:hover>ul { top: 100%; right: 5%; }
.menuvlr li:hover>ul { top: 100%; }
.menuvrl li:hover>ul { right: 100%; }
.menuhbt li:hover>ul { bottom: 100%; left: 5%; }
.menuhbtx li:hover>ul { bottom: 100%; right: 5%; }
/* --- 2nd+ levels go on the right side of the parent item --- */
.menuhtb li li:hover>ul { top: 5px; left: 95%; }
.menuhtbx li li:hover>ul { top: 5px; right: 95%; }
.menuhbt li li:hover>ul { bottom: 5px; left: 95%; }
.menuhbtx li li:hover>ul { bottom: 5px;  right: 95%; }
/* --- float.clear ---	force containment of floated LIs inside of UL --- */
.menuhtb:after, .menuhtb ul:after, .menuhtbx:after, .menuhtbx ul:after, 
.menuvlr:after, .menuvlr ul:after, .menuvrl:after, .menuvrl ul:after, 
.menuhbt:after, .menuhbt ul:after, .menuhbtx:after, .menuhbtx ul:after {
 content: ".";
 height: 0;
 display: block;
 visibility: hidden;
 overflow: hidden;
 clear: both;
}
/* --- float.clear.END ---  */
/* --- sticky.submenu --- */
/* ---	it should not disappear when your mouse moves a bit outside the submenu
	YOU SHOULD NOT STYLE the background of the ".menu UL" or this feature may not work properly!
	if you do it, make sure you 110% know what you do --- */
.menuhtb ul, .menuhtbx ul, .menuhbt ul, .menuhbtx ul, .menuvlr ul, .menuvrl ul {
 background-image: url(../pic/empty.gif);
 padding: 0;
 margin: 0;
 background: #369;
 color: #FFF;
}
/* --- sticky.submenu.END --- */
/* --- ADxMenu: DESIGN styles [ OPTIONAL, design your heart out :) ] --- */
.menuhtb, .menuhtb ul li, .menuhtbx, .menuhtbx ul li, 
.menuvlr, .menuvlr ul li, .menuvrl, .menuvrl ul li, 
.menuhbt, .menuhbt ul li, .menuhbtx, .menuhbtx ul li {
 background: #369;
 color: #FFF;
}
.menuhbt li li { text-align: left; }
.menuhtbx li li, .menuhbtx li li { text-align: right; }
.menuhtb ul, .menuhtbx ul, .menuhbt ul, .menuhbtx ul { width: auto; }
.menuvlr { width: 222px; float: left; }
.menuvrl { width: 222px; float: right; }
.menuvlr ul, .menuvrl ul { width: auto;	}
.menuhtb a, .menuhtbx a, .menuhbt a, .menuhbtx a {
 background: #369;
 color: #FFF;
 padding: 5px;
 display: block;
 text-decoration: none;
}
.menuvlr a, .menuvrl a {
 background: #369;
 color: #FFF;
 padding: 5px;
 display: block;
 text-decoration: none;
}
.menuhtb a:hover, .menuhtb li:hover>a, .menuhtbx a:hover, .menuhtbx li:hover>a, 
.menuvlr a:hover, .menuvlr li:hover>a, .menuvrl a:hover, .menuvrl li:hover>a, 
.menuhbt a:hover, .menuhbt li:hover>a, .menuhbtx a:hover, .menuhbtx li:hover>a {
 color: #000;
 background: #CCC;
}
/* --- create borders around each item --- */
.menuhtb li, .menuhtb li li, .menuhtbx li, .menuhtbx li li, 
.menuvlr li, .menuvrl li, 
.menuhbt li, .menuhbt li li, .menuhbtx li, .menuhbtx li li {
 border: 1px solid #FFF;
 padding: 0;
}
.menuhtb li, .menuhtb li li, .menuhbt li, .menuhbt li li {
 margin-right: 1px;	/***  ***/
}
/***.menuvlr li, .menuvrl li {
 margin-top: 1px;
}***/
.menuhtbx li, .menuhtbx li li, .menuhbtx li, .menuhbtx li li {
 margin-left: 1px;	/***  ***/
}
/* --- and remove the top border on all but first item in the list --- */
.menuhtb ul>li + li, .menuhtbx ul>li + li, 
.menuvlr>li + li, .menuvlr ul>li + li, .menuvrl>li + li, .menuvrl ul>li + li,
.menuhbt ul>li + li, .menuhbtx ul>li + li { border-top: 0; }
/*** --- and remove the left/right border on all but first item in the list --- ***/
/***.menuhtb>li + li, .menuhbt>li + li { border-left: 0; }***/
/***.menuhtbx>li + li, .menuhbtx>li + li { border-right: 0; }***/
/* --- inset 2nd+ submenus, to show off overlapping --- */
.menuhtb li li:hover>ul { top: 5px; left: 95%; }
.menuhtbx li li:hover>ul { top: 5px; right: 95%; }
.menuvlr li:hover>ul { top: 5px; left: 95%; }
.menuvrl li:hover>ul { top: 5px; right: 95%; }
.menuhbt li li:hover>ul { bottom: 5px; left: 95%; }
.menuhbtx li li:hover>ul { bottom: 5px; right: 95%; }
