/**
* (C) by Andreas Zeman 2007,
* Gally Websolutions, www.websolutions.gally.ch
* CSS only dropdown menu
**/

#menu ul {
	padding:0;
	margin:0;
	list-style-type:none;
	}


#menu li {
	position:relative;
	background-position:right;
	background-color:#adadaf;
	padding:0; /* ie needs padding here (not in a -> otherwise table needs place) */
	margin: 0 5px;
/*	height: 20px;*/
	display: inline-block;
}

/* top level links */
#menu a, #menu a:visited {
	display: block;
	line-height: 40px;
	text-align:center;
	font-weight:normal;
	font-size:14px;
	text-decoration:none;
	text-transform:uppercase;
	color:#fff;
/*	height:20px;*/
		transition-property: color, background;
	transition-duration: .25s, .25s;
	transition-timing-function: ease-in-out, ease-in-out;
	-webkit-transition-property: color, background;
	 -webkit-transition-duration: .25s, .25s;
	 -webkit-transition-timing-function: ease-in-out, ease-in-out;
	-moz-transition-property: color, background;
	 -moz-transition-duration: .25s, .25s;
	 -moz-transition-timing-function: ease-in-out, ease-in-out;
	}
	
/* top level hover */
#menu a:hover {
	background:none; /* necessary for ie6 */
	color:#000;
	}
#menu a.active, #menu li.active_sub a.active_sub{
	color:#000;
}

#menu li.active_sub a ul li a {
color:#fff;
}

#menu :hover > a, #menu ul ul :hover > a {
	background:none; /* necessary for ie6 */
	color:#000;
	}	

/* 2nd level ------------------------------------------------------------------------------ */
/* hide sublevels */
#menu ul li ul  {
	visibility:hidden;
	position:absolute;
	padding:1px 0px 10px 0px;
	}


/* 2nd level visible when top hover */
#menu ul li:hover ul,
#menu ul a:hover ul{
	visibility:visible;
	}


/* 2nd level list */
#menu ul ul li {
	clear:both;
	height:19px;
	padding:0px;
	margin:0px;
	left:-8px;
	}

/* 2nd level links */
#menu ul ul a, #menu ul ul a:visited {
	text-align:left;
	display:block;
	height:19px;
	line-height:18px;
	padding:0px 11px 0px 9px;
	width:129px;
	}

	
/* 2nd level hover (heed the order) */
#menu ul ul a:hover {
	}	

/* 2nd level links with 3rd level (place here a optional different bg for 2nd level drop links - do not forget to adapt this optional bg in the related hovers)*/
/*#menu ul ul a.drop, #menu ul ul a.drop:visited {
	}*/

#menu ul ul a.drop:hover {
	}

#menu ul ul :hover > a.drop {
	}	

/* 3rd level ------------------------------------------------------------------------------ */
/* position 3rd level flyout */
#menu ul ul ul{
	position:absolute;
	left:149px;
	top:-20px;
	padding:20px 0px 10px 0px;
	width:149px;
	}
	
/* 3rd level hidden */
#menu ul :hover ul ul{
	visibility:hidden;
	}

/* 3rd level visible when 2nd hover  */
#menu ul :hover ul :hover ul{
	visibility:visible;
	}	

/* position 3rd level flyout left -> damit links nicht über den rand hinausfliegen */
#menu ul ul ul.left {
	left:-149px;
	}

/* 3rd level links */
#menu ul ul ul a, #menu ul ul ul a:visited {
	}

/* 3rd level hover (heed the order) */
#menu ul ul ul a:hover {
	}

/* IE hack ------------------------------------------------------------------------------ */
#menu table {
	position:absolute;
	top:0px;
	left:0px;
	border-collapse:collapse;
	z-index:100;
	}
#menu table td ul li {
		font-size:14px;

}