/* 
 *		Horizontal, top-2-bottom menu
 *		Copyright Aleksandar Vacic, www.aplus.co.yu, some rights reserved http://creativecommons.org/licenses/by/2.0/
 */


/* - - - Nested tabs, two-level navigation - - - */



#nav {
	position: absolute;
	top:-41px;
	margin-left: 2px;
	width: 762px;
}

.navig {
	line-height: 1;
	margin: 0 0 1.2em 0;
	display: block;
	position: relative;
}

/* remove all list stylings */
.navig, .navig ul {
	margin: 0;
	padding: 0;
	border: 0;
	list-style-type: none;
}

/* move all list items into one row, by floating them */
.navig li {
	margin: 0;
	padding: 0;
	border: 0;
	display: block;
	float: left;
}

/* initialy hide all sub menus */
.navig ul {
	width: 100%;
	display: block;
	visibility: hidden;
	position: absolute;
	clear: both;
	top: 1.2em;/* watch for this value! you must make sure that this value and value of line-height for the parent items are such that it is possible to move the mouse over to submenu */
	left: 0;
}

/* -- float.clear -- force containment of floated LIs inside of main UL */
.navig:after {
	content: ".";
	height: 0;
	display: block;
	visibility: hidden;
	overflow: hidden;
	clear: both;
}
/* -- float.clear.END --  */

.navig li.selected ul, .navig li.selected2 ul, .navig li:hover ul {
	visibility: visible;
}

.navig li.selected, .navig li.selected2 ul {
	z-index: 10;
}

.navig li:hover ul {
	z-index: 100;
}

/*		Navigation make-up 	*/

.navig {
	font-size: .9em;
	font-weight: bold;
	color: #fff;
	background:url(../images/nav-bg.gif);
	margin: 3em auto 5em;
	border: 1px solid #ccc;
	width: 760px;	/* this value should be close to what is needed for elements to stay on one line */

}


.navig a {
	color: #333;
	text-decoration: none;
	padding: 6px;
	display: block;
}

.navig li {
	margin: 0;
	border-right: 1px solid #fff;
}

/* if the following selector was ".navig li:hover a" IE7 will NOT render nested UL! the reason is the background-color rule. */
.navig li:hover {
	color: #000;
	background-color: #eee;
}
/* which is why the link is styled separatelly */
.navig li:hover a {
	color: #000;
}

.navig li:hover ul {
	background-color: #eee;
}

.navig li:hover li {
	background-color: #eee;
}

/* always pay attention that the value for top is such that it is possible to move the mouse over to submenu */
.navig ul {
	top: 24px;
	margin-left: -1px;
	padding: 0 4px;/* should be identical to .navig, for best results */
	color: #000;
	background-color: #ccc;
	width: 754px;
}

.navig li li {
	border-right: 1px solid #999;
}

.navig li li a {
	color: #000;
}

.navig li li a:hover {
	text-decoration: underline;
}

/* fix the colors for selected item and submenu, for better usability */

.navig li.selected a, .navig li.selected, .navig li.selected a:hover {
	color: #000;
	background-color: #ccc;
	font-weight: normal;
}

.navig li.selected, .navig li.selected:hover a, .navig li.selected ul {
	background-color: #ccc;
}

.navig li.selected2 a, .navig li.selected, .navig li.selected2 a:hover {
	color: #000;
	background-color: #ccc;
	font-weight: bold;
}

/* IE5/Mac: \*//*/

.navig {
	display: inline-block;
}

.navig a {
	float: left;
}

.navig li ul {
	top: 1.8em;
	height: 2em;
}

.navig li li, .navig li li a {
	display: inline;
	float: none;
}

/*  */