.menu {
height: 31px;
display: block;
width: 837px;
}

.menu ul {
	list-style: none;
	padding: 0;
	margin:auto;
}

.menu ul li {
	/* width and height of the menu items */  
	float: left;
	overflow: hidden;
	position: relative;
	text-align: center;
	line-height: 31px;
	font-weight: bold;
}

.menu ul li a {
	/* must be postioned relative  */ 
	position: relative;
	display: block;
	width: 118px;
	height: 31px;
	font-family:Arial, Helvetica, sans-serif;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	color: #FFFFFF;
	border-right-width: 1px;
	border-right-style: solid;
	border-right-color: #252525;
}

.menu ul li a span {
	/* all layers will be absolute positioned */
	position: absolute;
	left: 0;
	width: 118px;
}

.menu ul li a span.out {
	top: 0px;
}

.menu ul li a span.over,
.menu ul li a span.bg {
	/* hide */  
	top: -31px;
}
/** 2nd example **/

#menu2 {
background-image: url(../images/mbg.jpg);
background-repeat: repeat-x;
}

#menu2 ul li a {
color: #FFF;
height: 31px;
}

#menu2 ul li a span.over {
	color: #FFFFFF;
	height: 31px;
	background-image: url(../images/mbg1.jpg);
	background-repeat: repeat-x;
}
