﻿/*** this is a 4 level horizontal dropdown menu for use within a div tag ***/

div#dropmenu * {
	margin:0; padding:0;				/* removes margin and padding off all list elements */
}
										/* set your menu's font and colors here */
div#dropmenu {
	behavior:url("css/csshover.htc");	/* you must link to the hover.htc file for this menu to work in IE6 and earlier */
	font-family: arial, sans-serif;		/* font family for menu */
	font-size:.8em;						/* size of menu's type relative to parent element */
	font-weight:bold;					/* text in menus will be bold */
/*	margin:0px 0px 0px 10px;			/* sets margin around menu items to center in window */
	background-color:transparent;		/* colors the div - div fills the parent element for a horizontal menu - set to background-color:transparent; if not needed */
}
div#dropmenu ul {
 	border-left:0px solid #663300;		/* creates dividing line to left of level 1's first menu item, revealing div color to left of menu */
	display:inline;						/* fixes margin-doubling bug in IE6 */
}
div#dropmenu li {
	background-color:#00522B			/* background color of the level 1 menu items */
/*	border-right:0px solid #663300;		/* creates dividing lines to right of each horiz level 1 menu item *//* set to 0px to remove */
}                					    /* border-right is automatically removed from vert menu below  */
div#dropmenu li:hover {
	background-color:#FFBD37;			/* background color of hovered menu items */
}
div#dropmenu a {
	color:#BE0303;						/* sets the color of all menu type */
	padding:.2em 10px;           		/*creates space top/bottom and left/right respectively around each menu item's text - set vert height in ems   */
}
div#dropmenu a:hover {
	color:#663300;						/* type color of a hovered menu choice */
}
div#dropmenu ul li ul {
	width:12em;   						/* sets the width of menu levels 2 - 4 */
}
div#dropmenu li li { 
	background-color:#82450C;			/* background color of the level 2 menu */
	border-bottom:1px solid #663300;	/* lines between menu choices - set to 0px if not wanted */
}
div#dropmenu ul li ul li ul  {
	border-top:1px solid #663300;		/* set the border-top of levels 3 and 4 of a horizontal menu - set to 0px to remove - for a vertical menu, you will set this for levels 1 - 4 below */
	top:-1px;							/* set to negative value of border-top for perfect pop-out alignment -set to 0 if border is 0 - don't remove! */
} 
div#dropmenu li li li { 
	background-color:#82450C;			/* background color of the level 3 menu */
}
div#dropmenu li li li li { 
	background-color:#82450C;			/* background color of the level 4 menu */
}
	/* Want transparency on your menus? add the class 'transparent' to the dropmenu div */
div#dropmenu.transparent ul ul li {		/* note: the lower the value, the greater the transparency */
	opacity:0.9;						/* CSS3 - range 0 to 1 */     
	-moz-opacity:0.9;					/* Firefox- range 0 to 1  */
	filter:alpha(opacity=90);			/* IE- range 0 to 100  */
}

										/* ADDITIONAL PREFS FOR VERTICAL MENU - NO NEED TO TOUCH THESE IF LEVEL 1 IS HORIZONTAL */
div#dropmenu.vertical ul {
	border-top:1px solid #663300;		/* set the border-top of level 1 of the vertical menu - broken out separately so it can be different from top border of other levels */
}
div#dropmenu.vertical li {
	border-bottom:1px solid #663300;	/* adds horizontal lines between menu choices - overrides main setting above for this feature */
}
div#dropmenu.vertical ul ul  {
	border-top:1px solid #663300;		/* set the border-top of levels 2 - 4 of a vertical menu - set to 0 to remove */
	top:-1px;							/* set to negative value of border-top for perfect pop-out alignment - set to 0 if border is 0 - don't remove!*/
}

										/* YOU ARE STONGLY ADVISED NOT TO MODIFY THE CODE THAT FOLLOWS :) */
div#dropmenu {
	float:left;
 	width:100%;
	}
div#dropmenu ul {
	float:left;							/* makes ul wrap li */
	font-size:1em;						/* prevents inheritence from maiin text style sheet */
}
div#dropmenu li {
	float:left;							/*causes the list to align horizontally instead of stack */
	list-style-type:none;				/* removes the bullet off each list item */
	position:relative;					/* positioning context for the absolutely positioned drop-down */
}
div#dropmenu a {
	display:block;						/* makes link fill li so entire area is "hot" */
	text-decoration:none;				/* removes the underlining from the links */
}
										/* the drop-downs starts here */
div#dropmenu ul li ul { 
	position:absolute;					/* positions the drop-down ul in relation to its relatively positioned li parent */
	border:0;         			/* stops inheritance from level 1 ul */
	margin-left:0px;        /* stops inheritance from level 1 ul */
}
div#dropmenu ul li ul li {
	width:100%;
	padding:0; /* stops inheritance */
	border-left:0; /* stops inheritance */
	border-right:0; /* stops inheritance */
}
div#dropmenu ul li ul {display:none;} /* conceals the drop-down when menu not hovered */
div#dropmenu ul li:hover ul {
	display:block; /* shows the drop-down when the menu is hovered */
	z-index:1000; /* Safari needs this to display menu on top of other page elements */
} 
/* pop-outs starts here */
body div#dropmenu ul li ul li ul  {
	position:absolute; /* associated menu with parent li positioning context */
	visibility:hidden; /* ensures that level 3 menu is not reveal when level 2 is reveled */
	left:100%;
	top:-1px; /* aligns level 3 and 4 pop-out with previous level */
 }
div#dropmenu ul li ul li:hover ul {visibility:visible;} /* shows level 3 menu when associated level 2 li is hovered */
/* second and third level popouts here*/
div#dropmenu ul li ul li:hover ul li ul {visibility:hidden;} /* ensures that level 4 is not reveal when level 3 is reveled */
div#dropmenu ul li ul li ul li:hover ul {visibility:visible;}  /* shows level 4 menu when associated level 3 li is hovered */
/* the drop-downs end here */
 
/* extra styles for the vertical menu */
div#dropmenu.vertical ul {
	border-left:0px; /* removes the border of the level 1 ul that can be used in the horizontal menu */
	margin-left:0;         /* removes left margin that is available on horizontal menu */
 }
.vertical ul { /* took off the id so the ul ul width setting in prefs was more specific */
	width:100%; 
}
div#dropmenu.vertical li {
	position:relative; /* positioning context for the level 2 menu */
	width:100%;         /* set width of level 1 menu - MUST match left value in ul ul selector below */
	clear:left; /* makes the main menu stack - note: turning off floating (alternative way to create stacking) causes spacing problems in IE */
	border-right:0; /* removes right borders used by horiz level 1 */
}
div#dropmenu.vertical ul ul  {
	position:absolute; /* make ul position relative to parent li for all menu levels */
	left:100%;         /* align level 2 with level 1 - MUST match li width in selector above */
	top:-1px; /* aligns the level 2 pop-out */
 }
/* levels 2 -4 width */
div#dropmenu.vertical li li {
}
div#dropmenu.vertical ul ul ul {
	left:100%;          /* align level 2 with level 3 and 3 with 4 - MUST match li width in selector above */
}
 /* END MENU MECHANICS */
 
/* inevitable hacks for IE6  and < */
* html div#dropmenu {
	z-index:1; /* IE6 won't respect high z-index on abs-pos'd child (ul li ul) without this on its parent rel-pos'd element */
}				/* see http://www.last-child.com/conflicting-z-index-in-ie6/ */
* html div#dropmenu ul li ul {
	z-index:400; /*ensures menu is on top of other page elements */
}
* html div#dropmenu a {
/* cannot find a way to get the top level 'a' to fill the unwidthed menu choices without drop-down in IE : ( */
} 
* html div#dropmenu.vertical a {
/* now hasLayout in IE - works on the vert menu as container has width */
	zoom:100%;
} 
 * html div#dropmenu ul ul a { /* second level of horiz menu */
	zoom:100%;  /* now IE 'haslayout" - IE now makes background hot in horizontal menus */
} 








