/*============================================================================*/
/*
	CSS DROPDOWN
	
	This is a modification of
	http://www.positioniseverything.net/css-dropdowns.html
	
	All customized CSS can be found at the end of this style sheet (~ line 206)
*/
/*============================================================================*/


/*XXXXXXXXXXXX Primary top nav rules XXXXXXXXXXX*/

.nav {
	position: relative;
	background: #def;
	border: 1px solid #888; /* borders the bottom of the top nav */
	border-width: 1px 0;
	width: 100%;
	}

.button {
	width: 190px;
	float: left;
	}

.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: -3px;}
/* this fixes the IE 3px bug that is common in this type of float arrangement */ 

/*XXXXXXXXXXXX Primary dropdown/flyout rules XXXXXXXXXXX*/
.toplayer
{
	z-index: 1000;
	background-color: Navy;
}

.bottomlayer
{
	z-index: 10;
	background-color: Navy;
}

.dropdown { /* rules for dropdown div */
	width: 250px;
	position: absolute;		
	left: -3000px;
	top: auto; /* puts dropdowns directly under top nav */
	text-align: left; /* needed because IE misapplies text centering to boxes */	
	background: url(/grafik/images/dropdown/bgfix.gif);
	}
	
.dropdown div {
	width: 220px;
	position: absolute;		
	left: -3000px;
	top: 0;  
	background: url(/grafik/images/dropdown/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: 189px; /* 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 */
	
.four .dropdown ul {width: 190px;} /* modifies width for rightmost "visible" dropdown (tweak) */
		
.four .dropdown div ul {margin: 30px 0 30px 30px; position: relative;} /* rule reversal for "visible" right drop flyouts */

.nav li {text-align: center;}

.nav a {
  display: block;
  color: #800;
	font-weight: bold;
	font-size: .9em;
	text-decoration: none;
	padding: 6px 0 5px; 
	border-right: 1px solid #888;  /* makes the dividers between the top nav links */
	}

.four a {border-right: 0;} /* kills right border on last top link */
	
.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 */
  }
				
.parent:hover {background-image: url(/grafik/images/dropdown/bgfix.gif);} 
/* this hover calls a transparent GIF only to defeat the IE failed hover bug. Any 
background change on hovering div.parent will make IE obey and display the dropdown.
While the call itself will fix the bug, make sure you actually call a real image 
file so that your site error logs will not fill with failed image calls. */
				
.parent:hover div.dropdown {left: -31px;} /* 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 */
	}
	
.four li:hover div { /* reversed flyout rules for rightmost drop flyouts */
	left: -210px; 
	top: -26px;
	}

.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(/grafik/images/dropdown/bgfix.gif);
	}

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

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

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

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


/*XXXXXXXXXXX Primary dropdown backgrounds XXXXXXXXXX*/
	
.one ul {background: #fff;}
.two ul {background: #fff;} 
.three ul {background: #4a3;}
.four ul {background: #790000;}
.dropdown div ul {background: #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: 10;}
.two {z-index: 20;}
.three {z-index: 30;}
.four {z-index: 40;}
.four:hover {z-index: 20;}
/* 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;
margin-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;
}

/*\*/ /*/
.nav .dropdown, .nav .dropdown div {width: 189px;}
.nav .button .dropdown ul {margin: 0px;}
.nav .dropdown, .nav .dropdown div {position: static;}
.nav .dropdown ul {border: 0;}
.mini-zone {display: none;}
/* this rule block "dumbs down" the nav for IEmac */





/*============================================================================*/
/*                           Customization for KU                             */
/*============================================================================*/
.nav ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.nav,
.dropdown,
.dropdown ul {
	width: 235px;
	width: 233px;
}

.nav {
	border: 1px solid #999;
	background-color: #fff;
	background-image: url(grafik/images/dropdown/dropdown_arrow.gif);
	background-position: 218px 0px;
	background-repeat: no-repeat;
	margin-bottom: 10px;
	padding-bottom: 0px;
	font-size: 10px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}

head:first-child+body .nav {
	background-position: right top;
}

/* ---------------------------------------------------------------------------- */
#nav-wrapper .nav {
	margin-top: 3px;
	margin-right: 5px;
	margin-bottom: 0;
	background-color: #f2f2f2;
	z-index: 5000;
	background-image: url(grafik/images/dropdown/dropdown_arrow_bright.gif);
	background-position: 90px -1px;
	float: right;
}

head:first-child+body #nav-wrapper .nav {
	background-position: right -1px;
}


#nav-wrapper .nav,
#nav-wrapper .dropdown,
#nav-wrapper .dropdown ul {
	width: 108px;
	width: 106px;
}

#nav-wrapper .parent a {
	padding-bottom: 1px;
}

#nav-wrapper .button {
	width: 91px;
}

#nav-wrapper .dropdown div {
	width: 96px;
}

#nav-wrapper .nav li {
	z-index: 5000;
}

#nav-wrapper .nav,
#nav-wrapper .dropdown ul {
	border: 1px solid #bdbcbc;
}

#nav-wrapper .dropdown ul {
	border-bottom: none;
}

#nav-wrapper .nav ul ul a {
	border-bottom: 1px solid #bdbcbc;
}

/* ---------------------------------------------------------------------------- */
.nav .narrow {
	margin-bottom: 0px;
	background-position: 124px 0px;
	background-position: 128px 0px;
}

head:first-child+body .nav .narrow {
/* Reset background position for modern browsers */
	background-position: right top;
}

.nav .narrow,
.nav .narrow .dropdown,
.nav .narrow .dropdown ul {
	width: 141px;
	width: 143px;
}

head:first-child+body .nav .narrow,
head:first-child+body .nav .narrow .dropdown,
head:first-child+body .nav .narrow .dropdown ul {
	width: 141px;
}

.nav .narrow .button {
	width: 134px;
}

head:first-child+body .nav .narrow .button {
	width: 132px;
}

.nav .narrow .parent img {
	margin: 0px 0 -1px 0;
}

/* ---------------------------------------------------------------------------- */
.button {
	text-align: left;
	width: 224px; /* Containing box (.nav) width + padding (left+right) */
	padding: 2px 0px 2px 9px;
}

head:first-child+body .nav .button {
	float: none;
}

*:first-child+html .nav .button { /* IE7 only */
	float: left !important;
}

/* ---------------------------------------------------------------------------- */
.dropdown {
	background: none;
}

.dropdown ul { 
	margin: 0px 30px 30px 21px;
}

.nav .narrow .dropdown img {
	margin: 0;
	padding: 0;
}

/* ---------------------------------------------------------------------------- */
.nav li {
	text-align: left;
	padding-bottom: 0px;
	margin-bottom: 0px;
}

.nav a {
	display: block;
	color: #666;
	font-weight: normal;
	font-size: 1em;
	text-decoration: none;
	padding: 0 0 2px 0;
	border-right: none;
}

.nav a:link,
.nav a:visited,
.nav a:hover,
.nav a:active {
	text-decoration: none;
	color: #666;
}

.nav ul ul a {
	color: #000;
	border-right: 0;
	border-bottom: 1px solid #999; 
	padding: 2px 15px 2px 9px;
}

/* ------------------------------- Mouseover baggrundsfarve <- Underpunkt --- */
.dropdown li:hover {
	background-color: #eee;
}

.dropdown div li:hover {
	background: #ff7;
}


/*============================================================================*/