﻿#menu {
	margin: 17px auto 0px auto;
	padding: 0px;
	width: 852px;
	height: 47px;
	position: relative;
	overflow: visible;
	list-style-type: none;
}
/* Some stylesheet reset */
.nav, .nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1;
}

/* The main container */
.nav {
	/* Layout and positioning */
	display: block;
	position: relative;
	height: 47px;
	width: 852px; /* CHANGE this if you want another width or remove it if you want the width of the container */
}

.nav>li {
	background-position: center top;
	display: block;
	position: relative;
	float: left;
	margin: 0;
	padding: 0;
	background-image: url('../theme/hmenu-butn.png');
	background-repeat: no-repeat;
	top: 0px;
	left: 0px;
	width: 142px;
	height: 47px;
	color: #f2f2f2;
	text-align: center;
	line-height: 44px;
	font-size: 105%;
	font-weight: bold;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* The main navigation links */
.nav>li>a {
	/* Layout */
	display: block;
	padding: 0px;
}

/* The hover state of the navigation links */
.nav>li>a:hover, .nav>li:hover>a {
	background-position: center -47px;
	color: #000;
	background-image: url('../theme/hmenu-butn.png');
	background-repeat: no-repeat;
}
.nav>li>a:active {
	background-position: center -94px;
	color: #000;
	background-image: url('../theme/hmenu-butn.png');
	background-repeat: no-repeat;
}


.nav>li:first-child>a {
	border-top-left-radius: 3px;
	border-bottom-left-radius: 3px;
}

.nav>.dropdown>a {
	padding-right: 0px;
}

/* The arrow indicating a dropdown menu */
.nav>.dropdown>a::after {
	content: "";
	position: absolute;
	top: 30px;
	right: 68px;
	width: 4px;
	height: 4px;
	border-bottom: 1px solid #DBDBDB;
	border-right: 1px solid #DBDBDB;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
}

/* Changing the color of the arrow on hover */
.nav>.dropdown>a:hover::after, .nav>.dropdown:hover>a::after {
	border-color: #000;
}

.nav ul {
	position: relative;
	position: absolute;
	left: -9999px;
	display: block;
}

/* Level 1 submenus */
.nav>li>ul {
	padding-top: 0px;
	z-index: 99;
	border-top: 1px solid #727272;
	top: 46px;
	margin-left: 6px;
	background-color: #272727;
}

/* Making the level 1 submenu to appear on hover */
.nav>li:hover>ul {
	left: -1px;
}

/* Level 2+ submenus */
.nav ul ul {
	left: -9999px;
	top: 0px;
	z-index: 999;
}

/* Making the level 2+ submenu to appear on hover */
.nav ul>li:hover>ul {
	left: 126px;
	top: -1px;
}

/* The submenu link containers */
.nav ul li {
	position: relative;
	display: block;
	border-left: 1px solid #727272;
	border-right: 1px solid #727272;

	/* Creating the slide effect. The list elements which contain the links have 0 height. On hover, they will expand */
	height: 0px;
	-webkit-transition: height .3s;
	-moz-transition: height .3s;
	-o-transition: height .3s;
	-ms-transition: height .3s;
}

/* Expanding the list elements which contain the links */
.nav li:hover>ul>li {
	height: 25px;
}

.nav ul li:hover>ul>li:first-child {
	height: 26px;
}

/* The links of the submenus */
.nav ul li a {
	/* Layout */
	margin: 0px;
	display: block;
	width: 112px;
	padding: 6px 6px 6px 8px;
	border-bottom: 1px solid #272727;
/* Typography */font-size: 90%;
	color: #f2f2f2;
	text-decoration: none; /* Background & effects */;
	background: #272727;
	-webkit-transition: background .3s;
	-moz-transition: background .3s;
	-ms-transition: background .3s;
	-o-transition: background .3s;
	transition: background .3s;
	font-weight: normal;
}

/* The hover state of the links */
.nav ul li>a:hover, .nav ul li:hover>a {
	color: #FFCC00;
}

.nav ul ul>li:first-child>a {
	border-top: 1px solid #727272;
}

.nav ul>li:last-child>a {
	border-bottom: 1px solid #727272;
}


/* The arrow indicating a level 2+ submenu */
.nav ul>.dropdown>a::after {
	content: "";
	 position: absolute;
	 top: 10px;
	 right: 4px;
	 width: 4px;
	 height: 4px;
	 border-bottom: 1px solid #727272;
	 border-right: 1px solid #727272;
	 -webkit-transform: rotate(-45deg);
	 -ms-transform: rotate(-45deg);
	 -moz-transform: rotate(-45deg);
	 -o-transform: rotate(-45deg);
}

.nav ul>.dropdown:hover>a::after, .nav ul>.dropdown>a:hover::after {
	border-color: #f2f2f2;
}