
/*XXXXXXXXXX Generic page styling rules XXXXXXXXXX*/
		
html, body, ul, li { padding: 0; margin: 0; }

div#nav {
  width: 100%;
  margin: 0px 0;
  text-align: center;
  font-family: verdana, arial, sans-serif;
  font-size: 100.01%;
  }


div#nav .textbox {
padding: 1px 1em;
font-size: .9em;
}

div#nav .textbox a {color: #000;}

div#nav .back {text-align: right; padding: 10px 10px 0 0;}

div#nav .alignright {margin: 0 30px 20px 0; text-align: right;}

div#nav .small {font-size: .8em;}

div#nav h1  {position: absolute; left: -3000px;}

div#nav h2 {font-size: 1em;}

div#nav p {margin-left: 30px;}


/*XXXXXXXXXXXX Primary top nav rules XXXXXXXXXXX*/

div#navBox div#nav {
	background-color:#330099; /* Unhovered color of nav buttons */
	}

div#nav .button {
	background-color:#330099; /* Unhovered color of nav buttons */
	width: 148px;
	float: left;
	}
div#nav .button a {
	width:100%;
}
div#nav .button .last {
	width: 158px;
	}
div#nav .button .last a {
	width:100%;
}

.parent {position: relative;}
/* this parent div does not provide "sticky hovering", but instead fixes a 
strange bug in Op7. When an element serves as a hovered popup "parent" element, 
that element must not also be floated or all heck breaks loose in Opera 7. 
To prevent this, we have floated the top level list items, while nesting 
hoverable parent divs inside that are then hovered to generate the dropdowns. 
Thus the ugly (but interesting) Op7 bug is defeated. */
	
.floatfix {margin-right: 0px;}
* html div#nav .floatfix {margin-right: -1px;}
/* this fixes the IE 3px bug that is common in this type of float arrangement */ 


/*XXXXXXXXXXXX Primary dropdown/flyout rules XXXXXXXXXXX*/

.dropdown { /* rules for dropdown div */
	width: 210px;
	position: absolute;
	left: -3000px;
	top: auto; /* puts dropdowns directly under top nav */
	text-align: left; /* needed because IE misapplies text centering to boxes */
	/*border: 1px solid red;*/
	background: url("../images/bgfix.gif");
	}
	
.dropdown div {
	width: 180px;
	position: absolute;		
	left: -3000px;
	top: 0;  
	/*border: 1px solid red;*/
	background:  url("../images/bgfix.gif");
	text-align: left; /* needed because IE misapplies text centering to boxes */
	}
	
/* The margins on the UL's replace the div paddings to create "sticky hovering"
zones,  and the margins should "fill" the divs, making the IE BG fix unnecessary.
Unfortunately the BG fix is still needed, altho this method does eliminate
possible box model problems */
	
.dropdown ul { 
  width: 147px; /* tweaked so that dropdowns appear to "line up" with top links */
  margin: 0 30px 30px 30px; /* creates "sticky hovering" zones for dropdowns */
  border: 1px solid #888; 
  border-width: 1px 1px 0; 
  } /* borders sides and top of the dropdowns and flyouts; links provide the bottom border */
	
.dropdown div ul {margin: 30px 30px 30px 0;} /* creates "sticky hovering" zones for flyouts */
	
.last .dropdown ul {width: 156px;} /* modifies width for rightmost "visible" dropdown (tweak) */
		
.last .dropdown div ul {margin: 30px 0 30px 30px; position: relative;} /* rule reversal for "visible" right drop flyouts */

div#nav li {text-align: center;}

div#nav a {
	width:100%;
  	display: block;
  	color: white;
	font-weight: bold;
	font-size: 80%;
	text-align:center;
	text-decoration: none;
	padding: 6px 0 5px 0; 
	border-right: 1px solid #888;  /* makes the dividers between the top nav links */
	}

div#nav .last a {border-right: 0;} /* kills right border on last top link */
	
div#nav ul ul a {
  color: #fff;
  border-right: 0; /* negates right border for dropdowns and flyouts */
  border-bottom: 1px solid #888;  /* borders the bottoms of the dropdown and flyout links */
  }
	
.dropdown li {
  position: relative; 
  vertical-align: bottom; /* IE5/win bugfix */
  }
  
/* hover rules for button */ 				
/*div#nav .button:hover {background-color:#459} 
div#nav .button:hover a {color: white;}*/
.button:hover {background-color:#459} 
.button:hover a {color: white;}

div#nav .button:hover div.dropdown {left: -30px;} /* hover rule for dropdowns */ 
* html div#nav .button:hover .last div.dropdown {left: -30px;} /* hover rule for dropdowns */ 
/* extra pixel makes dropdowns "line up" with top links */ 

.dropdown li:hover div { /* hover rule for flyouts */
	left: 180px; /* this value controls the amount of flyout "overlap" */
	top: -26px; /* this value controls the amount of flyout vertical offset */
	}
	
.last li:hover div { /* reversed flyout rules for rightmost drop flyouts */
	left: -210px; 
	top: -26px;
	}

div#nav div.mini-zone { /* special hover zone that covers the "danger corner" */
  padding: 0;
  width: 15px;
	height: 15px;  
	font-size: 1px;
	left: -3000px;
	bottom: -15px;
	top: auto;	
	background: url("../images/bgfix.gif");
	}

div#nav .dropdown li:hover div.mini-zone { /* hover rule for mini-zones */
	left: auto;
	right: 8px;
	top: auto;
	}

div#nav .last li:hover div.mini-zone { /* reversed hover rule for rightmost drop mini-zones */
	left: 8px;
	}

.dropdown li:hover {background-color: #459;} /* hover color effect on dropdown links */

.dropdown div li:hover {background-color: #ff7;} /* hover color effect on flyout links */


/*XXXXXXXXXXX Primary dropdown backgrounds XXXXXXXXXX*/
	
.one ul {background-color: #330099;}
.two ul {background-color: #330099;}
.three ul {background-color: #330099;}
.four ul {background-color: #330099;}
.last ul {background-color: #330099;}
.dropdown div ul {background-color: #eda;} /* colors BG of flyouts */ 
.dropdown div ul a {color: #400;} /* colors text of  flyouts */ 


/*XXXXXXXXXX z-index rules for top nav XXXXXXXXXXX*/

.one {z-index: 100;}
.two {z-index: 200;}
.three {z-index: 300;}
.four {z-index: 400;}
.last {z-index: 500;}
.last:hover {z-index: 200;}
/* this last is a special trick that reverses the stacking order of the rightmost
top link when it or its children are hovered. This, and the previous rules work
together so that when a user is on the top link of any flyout, they can move 
vertically to the top link directly above and not have the sticky hoivering zone
on the flyout get in the way of hovering that top link. */
 

/*XXXXXXXXXXX Special fixes XXXXXXXXXXX*/

/* This is to hide the following from IE/Mac. \*/
* html .button .dropdown li {
height: 1%;
margin-left: -16px;
mar\gin-left: 0;
}
/* */

* html .nav a
 {height: 1%;}

/* The first 2 rules above fix "bullet region" problems in IE5.x/win, 
and the 2nd is to make all links fully clickable. */    

.brclear { /* Use a break with this class to clear float containers */
clear:both;
height:0;
margin:0;
font-size: 1px;
line-height: 0;
}
