﻿/*
CssMenu - Horizontal Style
02/11/09 - Jared McGuire - Created.
*/

/* ########################## */
/* ## DESIGN STYLE         ## */
/* ## Edit your heart out. ## */
/* ########################## */

.CssMenu {
	display: block;
}

.CssMenu ul, .CssMenu li {
	line-height: normal;
}

.CssMenu > ul {
	background: url(images/MenuBack.gif) center repeat-x;
	color: #FFF;
	font-family: "Times New Roman", Times, serif;
	font-size: 18px;
	font-weight: bold;
}

.CssMenu > ul li {
	background: url(images/MenuDivider.gif) center right no-repeat;
}

.CssMenu ul ul li {
	background: #930;
	color: #FFF;
	font-weight: bold;
}

.CssMenu ul ul {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	width: 150px;
}

.CssMenu a {
	color: #FFF;
	display: block;
	font-weight: bold;
	padding: 3px 10px;
	position: relative;
	text-decoration: none;
}

.CssMenu a:hover, .CssMenu li:hover > a {
	background: #333;
	color: #FFF;
}

/* Create borders around each item. */
.CssMenu li li {
	border: 1px solid #000;
}

/* Remove the top border on all but first item in the list. */
.CssMenu ul ul > li + li {
	border-top: 0;
}

/* Inset 2nd+ submenus, to show off overlapping. */
.CssMenu li li:hover > ul {
	top: 5px;
	left: 90%;
}



/* #################### */
/* ## FUNCTION STYLE ## */
/* ## Do Not Edit.   ## */
/* #################### */

/* Remove all list stylings. */
.CssMenu ul {
	margin: 0;
	padding: 0;
	border: 0;
	list-style-type: none;
	display: block;
}

.CssMenu li {
	margin: 0;
	padding: 0;
	border: 0;
	display: block;
	/* Move all main list items into one row, by floating them. */
	float: left;
	/* Position each li, creating potential IE overlap problem. */
	position: relative;
	/* So we need to apply explicit z-index here... */
	z-index: 5;
}

.CssMenu li:hover {
	/* ...and here. This makes sure active item is always above anything else in the menu. */
	z-index: 10000;
	/* Required to resolve IE7 :hover bug (z-index above is ignored if this is not present) */
	white-space: normal;
}

.CssMenu li li {
	/* Items of the nested menus are kept on separate lines. */
	float: none;
}

.CssMenu ul ul {
	/* initially hide all submenus. */
	visibility: hidden;
	position: absolute;
	z-index: 10;
	/* While hidden, always keep them at the top left corner to avoid scrollbars. */
	left: 0;
	top: 0;
}

.CssMenu li:hover > ul {
	/* Display submenu them on hover. */
	visibility: visible;
	/* 1st level go below their parent item. */
	top: 100%;
}

.CssMenu li li:hover > ul {
	/* 2nd+ levels go on the right side of the parent item */
	top: 0;
	left: 100%;
}

/* Float clear - force containment of floated li inside of ul. */
.CssMenu ul:after {
	content: ".";
	height: 0;
	display: block;
	visibility: hidden;
	overflow: hidden;
	clear: both;
}

.CssMenu ul {
	/* IE7 float clear. */
	min-height: 0;
}

/* Sticky menus.
	Expand menu hit area so that menus will not disappear when your mouse moves a bit
	outside the submenu. YOU SHOULD NOT STYLE the background or this feature may not work properly! */
.CssMenu ul ul {
	/* Required for sticky to work in IE6 and IE7 - due to their (different) hover bugs. */
	background-image: url(empty.gif);
	padding: 10px 30px 30px 30px;
	margin: -10px 0 0 -30px;
	/* Uncomment this if you want to see the "safe" area. */
	/*background: #F00;*/
}

/* Inner sticky menus. */
.CssMenu ul ul ul {
	padding: 30px 30px 30px 10px;
	margin: -30px 0 0 -10px;
}