#navbar {
	background-color: #4a4f28;
	background-image: url(../imgs/bordertexture.gif);
	padding: 4px;
	margin: 0;
	text-align: center;
	font-size: 13px;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 40px;
}

/* All list items in navbar have common styling */
#navbar li {
	background-color: #d1d99b;
	border-color: #333333;
	border-style: solid;
	border-width: 1px;
	list-style: none;
	text-align: left;
	width: 145px;
	height: 30px;
}

/* Home button is especially narrow */
#navbar li#home_btn {
	width: 76px;
}

#navbar li#home_btn a {
	width: 48px;
	color: #22c;
}

#navbar a {
	color: black;
	font-weight: bold;
	text-decoration: none;
	/* Make sure they fill their parents */
	display: block;
	padding: 4px 0 4px 28px;
	/* Size of parent - padding */
	width: 117px;
	height: 22px;
}

/* Cancel out bold on 2nd level menu items and make them a brighter colour */
#navbar li li a {
	font-weight: normal;
	background-color: #f9ffb0
}

#navbar a:visited {
	color: #333333;
}

#navbar a:hover {
	color: black;
	background-color: #f9ffe3;
}

#navbar li ul {
	/* Only show 2nd level menus when hovering over parent */
	visibility: hidden;
	/* Absolute positioning of 2nd level menus is relative to top-level <li>s
	 * because they're out of flow */
	position: absolute;
	top: 31px;
	/* I guess it needs to be -1 instead of 0 because of left border */
	left: -1px;
	margin: 0;
	padding: 0;
}

/* Make menus appear when hovering */
#navbar li:hover > ul, #navbar li > ul:hover {
	visibility: visible;
}

#navbar li li {
	/* Don't want top border on 2nd level menu items because they abut with
	 * previous item's bottom border */
	border-top: 0 none;
}
#navbar li li ul {
	/* But we do want border on 3rd level menu */
	border-top: 1px solid;
}
#navbar li li ul li {
	/* But only on menu, not items */
	border-top: 0 none;
}

/* Positions and label images */
#home_btn {
	position: absolute;
	top: 8px;
	left: 39px;
}

#home_btn a {
	background: url(../imgs/home.gif) no-repeat 4px 4px;
}

#software_btn {
	position: absolute;
	top: 8px;
	left: 123px;
}

#software_btn a {
	background: url(../imgs/software.gif) no-repeat 4px 4px;
}

#howtos_btn {
	position: absolute;
	top: 8px;
	left: 274px;
}

#howtos_btn a {
	background: url(../imgs/howtos.gif) no-repeat 4px 4px;
}

#personal_btn {
	position: absolute;
	top: 8px;
	left: 425px;
}

#personal_btn a {
	background: url(../imgs/personal.gif) no-repeat 4px 4px;
}

#holidays_btn {
	position: absolute;
	top: 8px;
	left: 576px;
}

#holidays_btn a {
	background: url(../imgs/holidays.gif) no-repeat 4px 4px;
}

#links_btn {
	position: absolute;
	top: 8px;
	left: 727px;
}

#links_btn a {
	background: url(../imgs/links.gif) no-repeat 4px 4px;
}

/* Make sure these images don't appear on 2nd-level menus */
#navbar li li a {
	background-image: none;
}

/* Add arrow to software menu items */
li#software_btn li a {
	background: #f9ffb0 url(../imgs/m_arrow.gif) no-repeat center right;
}
/* Cancel out arrow in its submenu items */
li#software_btn li li a {
	background: #f9ffb0;
}
/* And ROX item */
li#software_btn li.no_submenu a {
	background: #f9ffb0;
}

/* Make sure submenus don't get shown when hovering over top-level */
li#software_btn ul li a ul {
	/* Only show 2nd level menus when hovering over parent */
	visibility: hidden;
}

/* These are already hidden by previous clause */
li#software_btn ul li ul {
	position: relative;
	left: 145px;
	top: -31px;
}

/* Make menus appear when hovering over immediate parent */
li#software_btn a:hover + ul, li#software_btn li:hover + ul {
	visibility: visible;
}


