/* 
Projekt: 
Website Hotel Lindner

Datei:
mainnav.css

Author:
SoftCon GmbH, www.softcon.at

Inhalt:

Gestaltung der Hauptnavigation mit Drop-Down

*/


#mainnav {
	position:relative;
	z-index:100;
}

#mainnav ul {
	float: left;
	list-style: none;
	line-height: 1em;
	color:white;
	padding: 0;
	margin: 0 0 0 0;
	font-family:Verdana, Arial, Helvetica, sans-serif;
	text-transform:uppercase;
	font-size:13px;
	font-weight:normal;
}

#mainnav li {
	float: left;
	position:relative;
}
 
#mainnav a {
	display: block;
	/*width: 10em;*/
	color:white;
	text-decoration: none;
	padding: 14px 12px 14px 12px;
}

#mainnav a:hover {
	color:white; /*dunkelgrün*/
	background-image:url(images/background_mainnav_hover.gif);
	background-repeat:no-repeat;
	background-position:center top;
}
 
 
/* Ebene 2 */ 
#mainnav ul ul {
	width:150px;
}

#mainnav ul ul a.drop {
background-color:#460005; /* dunkelrot */
}
 
/* style the second level hover */
#mainnav ul ul a.drop:hover {
background-color:#460005; /* dunkelrot */
}

#mainnav ul ul :hover > a.drop {
background-color:#460005; /* dunkelrot */
}

/* Ebene 3 */

/* style the third level background */
/*#mainnav ul ul ul a, .demo .menu ul ul ul a:visited {
	background:#e2dfa8;
}*/

/* style the third level hover */
/*#mainnav ul ul ul a:hover {
	background:#b2ab9b;
}*/

/* hide the sub levels and give them a positon absolute so that they take up no room */
#mainnav ul ul {
	visibility:hidden;
	position:absolute;
	height:0;
	top:40px;
	left:0;
	width:170px;
}
/* another hack for IE5.5 */
* html #mainnav ul ul {
	top:39px;
	t\op:40px;
}

/* position the third level flyout menu */
/*#mainnav ul ul ul {
	left:150px;
	top:0;
	width:150px;
}*/

/* position the third level flyout menu for a left flyout */
/*#mainnav ul ul ul.left {
	left:-150px;
}*/

/* style the table so that it takes no ppart in the layout - required for IE to work */
#mainnav table {position:absolute; top:0; left:0;}



/* style the second level links */
#mainnav ul ul a {
	background:#460005; /* dunkelrot */
	color:white;
	height:auto;
	line-height:1em;
	padding:5px 10px;
	width:149px
}
/* yet another hack for IE5.5 */
* html #mainnav ul ul a {
width:170px;
w\idth:149px;
}

#mainnav ul ul a:hover {
	background:silver; 
	color:white;
	height:auto;
	line-height:1em;
	padding:5px 10px;
	width:149px;
	background-image:none;
}

#mainnav ul ul *:hover > a.drop {
	background-color:silver;
}

/* yet another hack for IE5.5 */
* html #mainnav ul ul a:hover {
width:170px;
w\idth:149px;
}


/* make the second level visible when hover on first level list OR link */
#mainnav ul li:hover ul,
#mainnav ul a:hover ul {
visibility:visible;
}
/* keep the third level hidden when you hover on first level list OR link */
#mainnav ul :hover ul ul {
visibility:hidden;
}

/* make the third level visible when you hover over second level list OR link */
#mainnav ul :hover ul :hover ul {
visibility:visible;
}
