#mhead{
	height: 250px;
	margin: 0 auto;
	position: relative;
	width: 965px;
}

body.nolog #mhead{
	height: 112px;
}

#hdlg{
	height: 75px;
	left: 142px;
	position: absolute;
	top: 47px;
	width: 148px;
	background: url('../../img/gen/logo.png') no-repeat;
	background-size: 100% auto;
}

/* Top bar */
	/* User info */
		#tmnu > .uinf{
			display: inline-block;
			background: #77471b;
			border: 1px solid rgba(28,18,6,0.7);
			border-top: none;
			border-radius: 0 0 4px 4px;
			box-shadow: 0 0 1px rgba(0,0,0,0.4);
			position: relative;
			padding: 3px 5px 5px;
			direction: rtl;
			vertical-align: top;
		}

		#tmnu > .uinf:before{
			content: '';
			position: absolute;
			right: 1px;
			left: 1px;
			bottom: 1px;
			top: 0;
			background: #361c08;
			border-radius: 0 0 3px 3px;
			border: 1px solid #241507;
			border-top: 0;
			box-shadow: 0 0 1px rgba(0,0,0,0.2) inset;
		}

		#tmnu > .uinf > *{
			display: inline-block;
			position: relative;
			vertical-align: middle;
			font-size: 11px;
		}

		#tmnu > .uinf a{
			margin-left: 3px;
		}

		#tmnu > .uinf a[r]{
			width: 22px;
			height: 22px;
			border-radius: 2px;
			-moz-transition: background 150ms;
			-webkit-transition: background 150ms;
			transition: background 150ms;
			background: url('../../img/gen/tp_mnu_ico.png') no-repeat;
		}

		#tmnu > .uinf a[r='lg']{
			background-color: #b90000;
			background-position: -18px center;
		}
		
		#tmnu > .uinf a[r='lg']:hover{
			background-color: #720000;
		}
		
		#tmnu > .uinf a[r='st']{
			background-color: #006f12;
			background-position: 7px center;
		}
		
		#tmnu > .uinf a[r='st']:hover{
			background-color: #165d0a;
		}

		#tmnu > .uinf img{
			width: 20px;
			height: 20px;
			border: 1px solid #000;
			display: inline-block;
			vertical-align: middle;
			margin-left: 10px;
		}
		
		#tmnu > .uinf span[r]{
			padding-right: 12px;
			padding-left: 22px;
			height: 14px;
			line-height: 14px;
			background: url('../../img/gen/not_sep.png') no-repeat right center;
			margin-right: 7px;
		}
		
		#tmnu > .uinf span[r]:before{
			content: '';
			position: absolute;
			left: 0;
			top: -1px;
			width: 20px;
			height: 18px;
			background-repeat: no-repeat;
			background-position: right center;
		}

		#tmnu > .uinf span[r='c']:before{
			background-image: url('../../img/gen/ic/coin_20_18.png');
		}
		
		#tmnu > .uinf span[r='d']:before{
			background-image: url('../../img/gen/ic/dim_17_15.png');
		}
		
		#tmnu > .uinf span[r='l']:before{
			background-image: url('../../img/gen/ic/lvl_15_16.png');
		}
	/* --------- */

	/* Notifications */
		#tmnu > ul.not{
			list-style: none;
			padding: 0 1px;
			margin: 0;
			background: #747c7f;
			border: 1px solid rgba(6,21,28,0.7);
			border-top: none;
			position: absolute;
			right: 5px;
			top: 30px;
			border-radius: 0 0 4px 4px;
			box-shadow: 0 0 1px rgba(0,0,0,0.2);
			font-size: 0;
			line-height: 0;
			direction: rtl;
		}

		#tmnu > ul.not:before{
			content: '';
			position: absolute;
			right: 1px;
			left: 1px;
			top: 0;
			bottom: 1px;
			background: #3d3d45;
			border-radius: 0 0 3px 3px;
			border: 1px solid #162128;
			border-top: none;
			box-shadow: 0 0 1px rgba(0,0,0,0.2) inset;
		}

		#tmnu > ul.not li{
			display: inline-block;
			height: 23px;
			width: 22px;
			background: url('../../img/gen/not_ico.gif') no-repeat;
			position: relative;
			margin: 0 1px;
			cursor: url('../../img/war/hand.png'), pointer;
		}

		#tmnu > ul.not li[r='i']{
			background-position: -61px 6px;
		}
		
		#tmnu > ul.not li[r='o']{
			background-position: -37px 6px;
		}
		
		#tmnu > ul.not li[r='o']:after,
		#tmnu > ul.not li[r='o']:before{
			content: '';
			position: absolute;
			top: 4px;
			height: 14px;
			width: 2px;
			background: url('../../img/gen/not_sep.png') no-repeat center;
		}

		#tmnu > ul.not li[r='o']:before{
			right: 100%;
		}
		
		#tmnu > ul.not li[r='o']:after{
			left: 100%;
		}

		#tmnu > ul.not li[r='n']{
			background-position: -13px 6px;
		}

		#tmnu > ul.not li a{
			position: absolute;
			right: 0;
			left: 0;
			top: 0;
			bottom: 0;
		}

		#tmnu > ul.not li span{
			background: #9d0000;
			border: 2px solid #b90000;
			border-top: 0;
			border-radius: 0 0 4px 4px;
			position: absolute;
			right: 0;
			top: 100%;
			font-size: 10px;
			padding: 0 3px;
			height: 17px;
			min-width: 12px;
			text-align: center;
			color: #fff;
			line-height: 16px;
		}

		#tmnu > ul.not li span:after{
			content: '';
			position: absolute;
			right: -3px;
			left: -3px;
			bottom: -3px;
			top: 0;
			border: 1px solid rgba(0,0,0,0.2);
			border-top: none;
			border-radius: 0 0 7px 7px;
		}
		
		#tmnu > ul.not li span:before{
			content: '';
			position: absolute;
			right: -2px;
			left: -2px;
			top: 0;
			height: 1px;
			background: rgba(0,0,0,0.3);
			border-bottom: 1px solid rgba(0,0,0,0.1);
		}

		/* Notes */
			#tmnu > .nots{
				position: absolute;
				background: #f0e9cf;
				width: 360px;
				padding: 5px;
				border: 1px solid #a3906e;
				border-radius: 4px;
				box-shadow: 0 0 5px #000;
				top: 58px;
				right: 3px;
				font-size: 10px;
				display: none;
			}

			#tmnu > .nots[r='o']{
				right: -11px;
				width: 302px;
			}

			#tmnu > .nots.nrs{
				height: 80px;
				width: 270px;
			}

			#tmnu > .nots.vis{
				display: block;
			}

			#tmnu > .nots:before{
				content: '';
				position: absolute;
				background: url('../../img/gen/nots_arr.png') no-repeat center;
				width: 25px;
				height: 15px;
				bottom: 100%;
				right: 50px;
			}

			#tmnu > .nots[r='o']:before{
				right: 41px;
			}

			#tmnu > .nots > .scrl{
				max-height: 187px;
			}

			#tmnu > .nots > .scrl > .cont{
				right: 8px!important;
			}

			#tmnu > .nots > .scrl > .pane{
				width: 3px;
				background: #dbccb2;
				border-radius: 0;
			}
			
			#tmnu > .nots > .scrl > .pane .slider{
				background: #361c08;
			}
			
			#tmnu > .nots .item{
				min-height: 31px;
				color: #000;
				padding: 6px 50px 6px 6px;
				position: relative;
				line-height: 15px;
				direction: rtl;
				background: rgba(90,25,0,0.14);
				margin-bottom: 5px;
				text-align: right;
				white-space: normal;
			}

			#tmnu > .nots[r='o'] .item{
				padding-right: 59px;
				padding-bottom: 57px;
				min-height: 47px;
			}

			#tmnu > .nots[r='o'] .item.no_per{
				padding-bottom: 33px;
			}

			#tmnu > .nots .item:last-child{
				margin-bottom: 0;
			}

			#tmnu > .nots .item:nth-child(even){
				background-color: rgba(90,25,0,0.05);
			}

			#tmnu > .nots .item.pic{
				padding-right: 83px;
			}
			
			#tmnu > .nots .item.but{
				padding-left: 69px;
			}

			#tmnu > .nots .item > a{
				color: #79482a;
			}

			#tmnu > .nots .item .av{
				position: absolute;
				width: 31px;
				height: 31px;
				background: #77471b;
				border: 1px solid rgba(0,0,0,0.7);
				border-radius: 4px;
				top: 5px;
				right: 42px;
				box-shadow: 0 0 1px rgba(0,0,0,0.2);
			}

			#tmnu > .nots[r='o'] .item .av{
				right: 5px;
				width: 45px;
				height: 45px;
				background: url('../../img/gen/miss.png') no-repeat;
				border-color: rgba(0,0,0,0.4);
				box-shadow: none;
			}

			#tmnu > .nots .item .av img{
				width: 29px;
				height: 29px;
				position: absolute;
				border-radius: 3px;
				right: 1px;
				top: 1px;
			}

			#tmnu > .nots .item .av:after{
				content: '';
				position: absolute;
				border-radius: 3px;
				border: 1px solid rgba(0,0,0,0.7);
				box-shadow: 0 0 2px rgba(0,0,0,0.2) inset;
				right: 1px;
				top: 1px;
				left: 1px;
				bottom: 1px;
			}

			#tmnu > .nots[r='o'] .item .av:after{
				display: none;
			}

			#tmnu > .nots .item > p{
				margin: 0;
				min-height: 32px;
			}

			#tmnu > .nots .item .dte{
				color: #000;
				opacity: 0.4;
			}

			/* Bars */
				#tmnu > .nots .item .prz,
				#tmnu > .nots .item .prg{
					height: 23px;
					background: #361c08;
					border-radius: 3px;
					line-height: 20px;
					padding-right: 8px;
					position: absolute;
					bottom: 5px;
					right: 5px;
					left: 5px;
					color: #fff;
				}

				#tmnu > .nots .item .prg{
					top: 81px;
				}
				
				#tmnu > .nots .item .prg > span{
					position: absolute;
					left: 175px;
					top: 1px;
				}
				
				#tmnu > .nots .item .prg_bar{
					border: 2px solid #100802;
					width: 164px;
					position: absolute;
					left: 3px;
					top: 3px;
					border-radius: 3px;
					height: 13px;
					overflow: hidden;
				}
				
				#tmnu > .nots .item .prg_bar span{
					background: #ffd100;
					border-radius: 3px;
					position: absolute;
					left: 0;
					top: 0;
					bottom: 0;
				}
				
				#tmnu > .nots .item .prz p{
					margin: 0;
					position: absolute;
					left: 6px;
					top: 0;
					direction: ltr;
					line-height: 22px;
					white-space: nowrap;
				}
				
				#tmnu > .nots .item .prz p span{
					display: inline-block;
					width: 17px;
					height: 17px;
					vertical-align: middle;
					background: url('../../img/gen/ic/coin_16_15.png') no-repeat center;
				}
				
				#tmnu > .nots .item .prz p span[r='d']{
					background-image: url('../../img/gen/ic/dim_17_15.png');
				}
				
				#tmnu > .nots .item .prz p span[r='l']{
					background-image: url('../../img/gen/ic/lvl_11_12.png');
				}
			/* ----- */

			/* Buttons */
				#tmnu > .nots .item .buts{
					position: absolute;
					left: 10px;
					top: 10px;
					direction: ltr;
				}
				
				#tmnu .nots .item > .buts .gbtn{
					display: inline-block;
					height: 21px;
					width: 21px;
					margin: 0 5px 0 0;
				}

				#tmnu .nots .item > .buts .gbtn:last-child{
					margin-right: 0;
				}
				
				#tmnu .nots .item > .buts span[r='0']{
					background-image: url('../../img/gen/ic/cross_10.png');
				}
				
				#tmnu .nots .item > .buts span[r='1']{
					background-image: url('../../img/gen/ic/check_12_10.png');
				}
			/* ------- */

			/* Icons */
				#tmnu > .nots .item > .ico{
					position: absolute;
					width: 31px;
					height: 31px;
					background: rgba(255,255,255,0.5);
					right: 6px;
					top: 6px;
					border-radius: 4px;
				}

				#tmnu > .nots .item > .ico:after{
					content: '';
					position: absolute;
					left: 4px;
					top: 6px;
					width: 23px;
					height: 21px;
					background: url('../../img/gen/nots.png') no-repeat;
				}

				#tmnu > .nots .item[t='1'] > .ico:after{
					background-position: -46px 0;
					margin-left: 1px;
				}
				
				#tmnu > .nots .item[t='2'] > .ico:after,
				#tmnu > .nots .item[t='7'] > .ico:after{
					background-position: -23px 0;
					margin-left: 1px;
				}
			/* ----- */
		/* ----- */
	/* ------------- */

	/* Search */
		#tmnu > ul.not[r='s']{
			right: 84px;
			-moz-transition: right 300ms;
			-webkit-transition: right 300ms;
			transition: right 300ms;
			top: 26px;
		}

		#tmnu > ul.not[r='s'].open{
			right: 356px;
		}
		
		#tmnu > ul.not li[r='sr']{
			background-position: 6px 6px;
			margin-top: 4px;
		}

		#tmnu > ul.not.load li[r='sr']{
			background: url('../../img/gen/load.gif') no-repeat center;
		}
		
		#srcfrm{
			background: #737373;
			border-radius: 0 0 3px 3px;
			height: 25px;
			width: 0;
			position: absolute;
			right: 84px;
			top: 26px;
			-moz-transition: width 300ms;
			-webkit-transition: width 300ms;
			transition: width 300ms;
			border: 2px solid #3d3d45;
			border-top: 0;
		}

		#srcfrm.open{
			box-shadow: 0 0 3px #000;
			width: 293px;
		}

		#srcfrm > div{
			position: absolute;
			right: 0;
			left: 0;
			top: 0;
			bottom: -2px;
			overflow: hidden;
		}
		
		#srcfrm input{
			background: #fff;
			color: #ababab;
			position: absolute;
			right: 0;
			top: 0;
			padding: 4px 7px 0;
			height: 21px;
			width: 136px;
			border-radius: 0 0 3px 3px;
			font-size: 10px;
			direction: rtl;
		}
		
		#srcfrm input:focus{
			color: #000;
		}

		#srcfrm .gbtn{
			position: absolute;
			color: #fff;
			font: 10px/28px 'Tahoma';
			height: 26px;
			top: 0;
		}

		#srcfrm .gbtn,
		#srcfrm .gbtn:before,
		#srcfrm .gbtn:after{
			border-top: 0;
			border-top-right-radius: 0;
			border-top-left-radius: 0;
		}

		#srcfrm .gbtn[r='e']{
			width: 46px;
			right: 220px;
		}
		
		#srcfrm .gbtn[r='u']{
			width: 66px;
			right: 149px;
		}

		#srcfrm ul{
			padding: 5px 0;
			margin: 0;
			position: absolute;
			right: 0;
			top: 27px;
			width: 100%;
			background: #303030;
			list-style: none;
			font-size: 0;
			line-height: 0;
			border-radius: 0 0 5px 5px;
			white-space: normal;
			direction: rtl;
		}

		#srcfrm ul li{
			display: inline-block;
			width: 50%;
			height: 20px;
			line-height: 17px;
			font-size: 10px;
			vertical-align: middle;
		}

		#srcfrm ul li a{
			text-align: right;
			display: block;
			height: 100%;
			padding: 0 10px;
			border-right: 1px solid rgba(255,255,255,0.3);
		}
		
		#srcfrm ul li:nth-child(odd) a{
			border-right: none;
		}

		#srcfrm ul li.on a:before{
			content: '';
			display: inline-block;
			background: yellow;
			width: 5px;
			height: 5px;
			vertical-align: middle;
			margin-left: 5px;
		}
	/* ------ */
/*---------*/

/* Chains */
	#iwrp > .gch{
		top: 0;
	}

	#iwrp > .gch[r='1']{
		left: 83px;
		height: 277px;
	}
	
	#iwrp > .gch[r='2']{
		left: 117px;
		height: 490px;
	}
	
	#iwrp > .gch[r='3']{
		right: 86px;
		height: 250px;
	}
	
	#iwrp > .gch[r='4']{
		right: 57px;
		height: 466px;
	}

	#mhead > .gch[r='1']{
		left: 92px;
		height: 150px;
	}
	
	#mhead > .gch[r='2']{
		right: 100px;
		height: 150px;
	}
/* --------- */

/* Main menu */
	#mmnu{
		bottom: 48px;
		height: 104px;
		position: absolute;
		right: 35px;
		width: 901px;
		z-index: 1;
	}

	#mmnu:before{
		content: '';
		position: absolute;
		right: 0;
		left: 0;
		top: 0;
		bottom: 0;
		background: url('../../img/gen/main_menu.png') no-repeat;
		z-index: 1;
	}

	#mmnu > ul{
		padding: 0;
		margin: 38px 0 0;
		display: inline-block;
		list-style: none;
		line-height: 0;
		font-size: 0;
		position: relative;
		direction: rtl;
		z-index: 1;
	}

	#mmnu > ul > li{
		display: inline-block;
		list-style: none;
		position: relative;
	}

	#mmnu li > .itm{
		height: 33px;
		width: 130px;
		display: block;
		cursor: url('../../img/war/hand.png'), pointer;
		color: #efe1c3;
		font: 13px/33px 'yekan';
		text-shadow: 0 0 3px #000;
		-moz-transition: color 250ms;
		-webkit-transition: color 250ms;
		transition: color 250ms;
	}

	#mmnu li:hover > .itm{
		color: #fff;
	}

	#mmnu li > ul{
		margin: 0;
		padding: 0 10px;
		list-style: none;
		position: absolute;
		left: 50%;
		top: 100%;
		white-space: nowrap;
		-moz-transform: translate(-50%,0);
		-webkit-transform: translate(-50%,0);
		transform: translate(-50%,0);
		-moz-transition: height 250ms;
		-webkit-transition: height 250ms;
		transition: height 250ms;
		overflow-y: hidden;
		height: 0;
	}

	#mmnu li:hover > ul{
		height: 41px;
	}

	#mmnu li > ul li{
		list-style: none;
		display: inline-block;
	}

	#mmnu li > ul li a{
		font-size: 11px;
		color: #efe1c3;
		padding: 0 10px;
		-moz-transition: color 250ms;
		-webkit-transition: color 250ms;
		transition: color 250ms;
		height: 41px;
		display: block;
		line-height: 44px;
	}

	#mmnu li > ul li:hover a{
		color: #fff;
	}

	#mmnu > sub{
		position: absolute;
		top: 38px;
		height: 31px;
		background: #77471b;
		box-shadow: 0 0 1px rgba(0,0,0,0.5);
		border-radius: 5px;
		-moz-transform: translate(-50%,0);
		-webkit-transform: translate(-50%,0);
		transform: translate(-50%,0);
		width: 0;
		overflow: hidden;
		z-index: 1;
	}

	#mmnu > sub.brd{
		border: 1px solid #2b1a09;
	}

	#mmnu > sub.vis{
		-moz-transition: left 250ms;
		-webkit-transition: left 250ms;
		transition: left 250ms;
	}

	#mmnu > sub:after{
		background: #361c08;
		position: absolute;
		right: 1px;
		left: 1px;
		top: 1px;
		bottom: 1px;
		content: '';
		border: 1px solid #241507;
		box-shadow: 0 0 1px rgba(0,0,0,0.5) inset;
		border-radius: 4px;
	}

	#mmnu > sup{
		position: absolute;
		height: 0;
		background: #77471b;
		border: 1px solid #1d343a;
		border-top: 0;
		box-shadow: 0 0 1px rgba(0,0,0,0.5);
		top: 75px;
		left: 544px;
		border-radius: 0 0 5px 5px;
		-moz-transition: height 250ms;
		-webkit-transition: height 250ms;
		transition: height 250ms;
		overflow: hidden;
	}
	
	#mmnu > sup:after{
		content: '';
		position: absolute;
		background: #25292a;
		right: 1px;
		left: 1px;
		top: 0;
		bottom: 1px;
		border: 1px solid #1f1911;
		border-top: 0;
		box-shadow: 0 0 1px rgba(0,0,0,0.5) inset;
		border-radius: 0 0 4px 4px;
	}

	#mmnu > sup.vis{
		height: 38px;
	}

	#mhead > label{
		background:  url('../../img/gen/page_title.png') no-repeat center bottom;
		color: #efe1c3;
		font: 13px/25px 'yekan';
		height: 34px;
		padding-top: 40px;
		position: absolute;
		right: 100px;
		top: 171px;
		width: 138px;
		cursor: url('../../img/war/def.png'), default;
		direction: rtl;
	}

	body.nolog #mhead > label{
		right: 83px;
		top: 32px;
	}
/* --------- */

/* Go to war link */
	#gotowar{
		position: absolute;
		left: 136px;
		top: 202px;
		-moz-transition: top 300ms, opacity 300ms, background-color 100ms;
		-webkit-transition: top 300ms, opacity 300ms, background-color 100ms;
		transition: top 300ms, opacity 300ms, background-color 100ms;
		height: 37px;
		padding-left: 49px;
		line-height: 35px;
		font-size: 17px;
		width: 108px;
	}

	#gotowar[r='2']{
		top: 154px;
		opacity: 0;
	}

	#gotowar.load{
		background-position: 95px center;
	}

	#gotowar .ic{
		position: absolute;
		width: 72px;
		height: 58px;
		background: url('../../img/gen/gotowar.png') no-repeat;
		left: -12px;
		bottom: 1px;
		z-index: 1;
	}

	#gotowar .gch{
		height: 27px;
		top: auto;
		bottom: 100%;
		margin-bottom: 2px;
	}

	#gotowar .gch[r='l']{
		left: 19px;
	}
	
	#gotowar .gch[r='r']{
		right: 20px;
	}
/* -------------- */

/* Announces */
	#hann{
		position: absolute;
		height: 39px;
		width: 410px;
		background: #580000;
		bottom: 7px;
		right: 247px;
		border: 1px solid #ab0000;
		border-radius: 5px;
		box-shadow: 0 0 2px #000, 0 0 2px #000 inset;
	}

	#hann.big{
		width: 566px;
	}

	#hann .gch{
		height: 50px;
		bottom: 100%;
		margin-bottom: 1px;
	}

	#hann .gch[r='1']{
		right: 17px;
	}

	#hann .gch[r='2']{
		left: 16px;
	}

	#hann > p{
		margin: 0;
		position: absolute;
		top: 0;
		bottom: 0;
		right: 7px;
		left: 7px;
		direction: rtl;
		text-align: right;
		opacity: 0;
		overflow: hidden;
		-moz-transition: opacity 300ms;
		-webkit-transition: opacity 300ms;
		transition: opacity 300ms;
		font-size: 10px;
	}

	#hann > p.act{
		opacity: 1;
	}

	#hann > p span{
		position: absolute;
		right: 33px;
		left: 0;
		top: 50%;
		-webkit-transform: translate(0,-50%);
		-moz-transform: translate(0,-50%);
		transform: translate(0,-50%);
		margin-top: -15px;
		-webkit-transition: margin 500ms;
		-moz-transition: margin 500ms;
		transition: margin 500ms;
	}

	#hann > p.act span{
		margin-top: -1px;
	}

	#hann > p:before{
		content: '';
		position: absolute;
		right: 0;
		top: 0;
		bottom: 0;
		margin: auto 0;
		border-radius: 3px;
		background: #ab0000 url('../../img/gen/ic/exclam_12_21.png') no-repeat center bottom;
		height: 25px;
		width: 25px;
	}
/* --------- */