/*========================= TOP OF THE MENU CASCADE =========================*/

.menu {
	position:relative;        /* establish a menu-relative positioning context */
	float:left;                                     /* play nicely with others */
	margin:0;
	padding:0;
	border:0;
	z-index: 100;                             /* keep menu below cut off corner */
}

.menu, .menu ul li table {           /* globally set font style for menu items */
	font:10px Verdana, Arial, Helvetica, sans-serif; /* this sets the base font style for our entire menu */
}

.menu img {
	vertical-align: top;      /* prevent images from being pushed down by text */
}

.menu ul {
	padding:0;
	margin:0;
	border:0;
	list-style-type:none;          /* we don't want to view the list as a list */
	line-height:15px;                /* globally set the menu item line height */
}

.menu li {
	float:left;    /* this creates the side-by-side array of top-level buttons - LEAVE in for vertical menu - by Greg */
	position:relative;    /* create local positioning contexts for each button */
	margin:0;
}

.menu ul li table {
	margin:-1px 0;              /* IE5 needs -1px top and bottom table margins */
	m\argin:0;               /* re-zero the table margins for everyone but IE5 */
	border-collapse:collapse;      /* IE5 needs this for the sub-menus to work */
}

.drop {
	display:block;
	padding:0 3px;	       /* this sets the l/r margins for our menu item */
	margin:0;
	text-align:right;   /* this right alignment goes with the float:left below */
	cursor:pointer;      /* IE tries to switch back to an I-beam, don't let it */
	cursor:hand;           /* IE5 only knows about "hand", so set it both ways */
}
.drop span {        /* this simultaneously left and right aligns the text and */
	float:left;       /* the >> in the drop-down menus which link to sub-menus */
}


/*======================== TOP LEVEL MENU DEFINITIONS ========================*/

.menu ul li ul {
	display:none;                  /* initially hide the entire list hierarchy */
	padding:0px;                               /* this is our box border width */
}

.menu ul li a,
.menu ul li a:visited,
.menu ul li:hover a,
.menu ul li a:hover {          /* selected and unselected top-level menu items */
	height:22px;           /* set height of all top level menu images or items */
}

.menu ul li a,
.menu ul li a:visited {                     /* unselected top-level menu items */
	display:block;
/*	float:left; */
	text-decoration:none;
	margin: 0 0 2px 0;        /* puts white space underneath each image button */
}

.menu ul li:hover a,
.menu ul li a:hover {                        /* selected top-level menu items */
	background-color: #FFF; /* Internet Explorer NEEDS this to display submenu - by Greg */
}

/*======================== 2ND LEVEL MENU DEFINITIONS ========================*/

.menu ul li:hover ul,
.menu ul li a:hover ul,
.menu ul li:hover ul li a,
.menu ul li a:hover ul li a { /* set the width of the 2nd level drop-down box and unselected items */
	width:155px;
	text-decoration: none;
}

.menu ul li:hover ul,
.menu ul li a:hover ul {                           /* 2nd level drop-down box */
	display:block;
	position:absolute;
	margin:0; /* gap between main menu and drop-downs set as border instead of margin to avoid drop-down disappearing when moving over*/
	top:0;              /* place us just up underneath the top-level images - edited by Greg - was 18px */
	left:140px;       /* left-align our drop-down to the previous button border - edited by Greg - was -1px */
	height:auto;      /* the drop-down height will be determined by line count */
	color:#000;                        /* this sets the unselected-text color */
/*	background:#000;          this sets our menu's effective "border" color */
	border-left: 2px #FFF solid; /* maintains gap between main menu and drop-downs */
	filter: alpha(opacity=75);
	-moz-opacity: 0.75;
	opacity: 0.75;                      /* sets opacity in all modern browsers */
}

.menu ul li:hover ul li a,
.menu ul li a:hover ul li a {                   /* 2nd level unselected items */
	border:0;
	margin:0;
	padding:0 0 2px 3px;                  /* set the padding of 2nd level item */
	height:auto;
	color:#FFF;               /* this sets the unselected drop-down text color */
	background:#22140A;       /* this sets the drop-down menu background color */
}
html>body .menu ul li:hover ul li a,
html>body .menu ul li a:hover ul li a {
	padding: 0 0 1px 3px;                                 /* hack for Mozilla */
}

.menu ul li:hover ul li:hover a,
.menu ul li a:hover ul li a:hover {                /* 2nd level selected item */
	font-weight: bold;
}

.menu ul li:hover ul.skinny,
.menu ul li a:hover ul.skinny,
.menu ul li:hover ul.skinny li a,
.menu ul li a:hover ul.skinny li a,
.menu ul li:hover ul.skinny li a:hover,
.menu ul li a:hover ul.skinny li a:hover {             /* 2nd level skinny drop-down box */
	width:150px;   /* with a 12px default font, this is 97px width (97/12) */
}

/*======================== 3RD LEVEL MENU DEFINITIONS ========================*/

.menu ul li:hover ul li ul,
.menu ul li a:hover ul li a ul {             /* hide inactive 3rd-level menus */
	visibility:hidden;
}
     
.menu ul li:hover ul li:hover ul,
.menu ul li a:hover ul li a:hover ul {             /* 3rd level drop-down box */
	visibility:visible;
	position:absolute;
/*	margin-top:-1px;	       bring the top edge of the 3rd level menu up one */
	top:0;
	left:153px;  /* with of 2nd level item + padding on left of 2nd level item */
	width:150px;
}

.menu ul li:hover ul li:hover ul li a,
.menu ul li a:hover ul li a:hover ul li a,
.menu ul li:hover ul li:hover ul li a:hover,
.menu ul li a:hover ul li a:hover ul li a:hover { /* 3rd level selected and unselected items */
	width:150px;
}

.menu ul li:hover ul li:hover ul li a,
.menu ul li a:hover ul li a:hover ul li a {     /* 3rd level unselected items */
	background:#22140A;
	font-weight:normal;
}

.menu ul li:hover ul li:hover ul li a:hover,
.menu ul li a:hover ul li a:hover ul li a:hover {    /* level3 selected items */
	background:#22140A;
	font-weight:bold;
}


/*
================================================================================================
     button rollover styles
================================================================================================
*/

.homeButton,
.profileButton,
.servicesButton,
.projectsButton,
.contactButton,
.homeButtonOn,
.profileButtonOn,
.servicesButtonOn,
.projectsButtonOn,
.contactButtonOn {
	margin: 0;
	padding: 0;
}
.homeButton a span,
.profileButton a span,
.servicesButton a span,
.projectsButton a span,
.contactButton a span,
.homeButtonOn a span,
.profileButtonOn a span,
.servicesButtonOn a span,
.projectsButtonOn a span,
.contactButtonOn a span {
	display: none;
}
.homeButton a,
.profileButton a,
.servicesButton a,
.projectsButton a,
.contactButton a,
.homeButtonOn a,
.profileButtonOn a,
.servicesButtonOn a,
.projectsButtonOn a,
.contactButtonOn a {
/*	display: block; */
	width: 140px;
	height: 22px;
	margin: 0;
	padding: 0;
	text-decoration: none;
}
.homeButton a {
	background: url("../images/nav/home.gif") top left no-repeat;
}
.homeButtonOn a {
	background: url("../images/nav/home_on.gif") top left no-repeat;
}
.homeButton:hover a,
.homeButton a:hover,
.homeButtonOn:hover a,
.homeButtonOn a:hover {
	background-image: url("../images/nav/home_over.gif");
}
.profileButton a {
	background: url("../images/nav/profile.gif") top left no-repeat;
}
.profileButtonOn a {
	background: url("../images/nav/profile_on.gif") top left no-repeat;
}
.profileButton:hover a,
.profileButton a:hover,
.profileButtonOn:hover a,
.profileButtonOn a:hover {
	background-image: url("../images/nav/profile_over.gif");
}
.servicesButton a {
	background: url("../images/nav/services.gif") top left no-repeat;
}
.servicesButtonOn a {
	background: url("../images/nav/services_on.gif") top left no-repeat;
}
.servicesButton:hover a,
.servicesButton a:hover,
.servicesButtonOn:hover a,
.servicesButtonOn a:hover {
	background-image: url("../images/nav/services_over.gif");
}
.projectsButton a {
	background: url("../images/nav/projects.gif") top left no-repeat;
}
.projectsButtonOn a {
	background: url("../images/nav/projects_on.gif") top left no-repeat;
}
.projectsButton:hover a,
.projectsButton a:hover,
.projectsButtonOn:hover a,
.projectsButtonOn a:hover {
	background-image: url("../images/nav/projects_over.gif");
}
.contactButton a {
	background: url("../images/nav/contact.gif") top left no-repeat;
}
.contactButtonOn a {
	background: url("../images/nav/contact_on.gif") top left no-repeat;
}
.contactButton:hover a,
.contactButton a:hover,
.contactButtonOn:hover a,
.contactButtonOn a:hover {
	background-image: url("../images/nav/contact_over.gif");
}


/*
================================================================================================
     sub-menu button on styles
================================================================================================
*/

.buttonOn {
	font-weight: bold;
}