html {
  height: 100%;
  margin-bottom: 1px;
}

body {
	margin: 0;
	padding: 0;
}

/** template layout stuff **/

#page_bg {
	height: 100%; 
	padding: 0;
	margin-bottom: 1px;
	background: #f3f3f3 url(images/bg.gif);
}

#wrapper {
	margin: 0 auto;
	position: relative;
	width: 90%;
}

#shadow-l {
	background: #fff url(images/shadow-l.gif) 0 0 repeat-y;
	padding-left: 8px;
	position: relative;
}

#shadow-r {
	background: #fff url(images/shadow-r.gif) 100% 0 repeat-y;
	padding-right: 8px;
	position: relative;
}

/* IE hack */
* html #shadow-l {
	float: left;
}

* html #shadow-r {
	float: right;
}
/* END IE hack */

#mainbody {
	margin: 0;
	padding: 0 5px 0 5px;
	background: #ffffff;
}

p {
  margin-top: 0;
  margin-bottom: 5px;
}

/* No image should have a border when linked */
a img{
border: 0;
}
/* A quote, perhaps from another post. */
.quote
{
	color: #333;
	background-color: #DDD;
	border: 1px solid #999;
	padding: 3px;
	margin: 3px;
	font-size: x-small;
	line-height: 1.4em;
}

.quote a{
	color: #762f00;
	font-size: x-small;
}

.quote a:hover{
	font-size: x-small;
}


/* A code block - maybe even PHP ;). */
.code
{
	color: #000000;
	background-color: #dddddd;
	font-family: "courier new", "times new roman", monospace;
	font-size: x-small;
	line-height: 1.3em;
	/* Put a nice border around it. */
	border: 1px solid #000000;
	margin: 1px auto 1px auto;
	padding: 1px;
	width: 99%;
	/* Don't wrap its contents, and show scrollbars. */
	white-space: nowrap;
	overflow: auto;
	/* Stop after about 24 lines, and just show a scrollbar. */
	max-height: 24em;
}

/* The "Quote:" and "Code:" header parts... */
.quoteheader, .codeheader
{
	color: #000000;
	text-decoration: none;
	font-style: normal;
	font-weight: bold;
	font-size: x-small;
	line-height: 1.2em;
}

/* Generally, those [?] icons.  This makes your cursor a help icon. */
.help
{
	cursor: help;
}

/* The main post box - this makes it as wide as possible. */
.editor {
	width: 99%;
}

/* Highlighted text - such as search results. */
.highlight
{
	background-color: yellow;
	font-weight: bold;
	color: black;
}

/* Alternating backgrounds for posts, and several other sections of the forum. */
.windowbgalt{
	padding: 5px;
	background: #fff;
	border-bottom: 1px solid #eee;
}

.windowbgalt1 {
	padding: 5px;
	background: #fff;
	font-weight: bold;
	border-bottom: 1px solid #eee;
}

.windowbgalt2 {
	padding: 5px;
	border-bottom: 1px solid #eee;
	font-weight: bold;
	background: #EEE;
}

.windowbgalt3 {
	padding: 5px;
	background: #f9f9f9;
	border-bottom: 1px solid #eee;
}

.windowbg, tr.windowbg td
{
	padding: 5px;
	background: #EEE;
	border-bottom: 1px solid #eee;
}
.windowbg2,tr.windowbg2 td
{
	padding: 5px;
	background: #fcfcfc;
	border-bottom: 1px solid #eee;
}
.windowbg3,tr.windowbg3 td
{
	padding: 5px;
	background: #f0f0f0;
}

/* the today container in calendar */
.calendar_today
{
}

/* These are used primarily for titles, but also for headers (the row that says what everything in the table is.) */
table.nopad .titlebg, tr.titlebg th, tr.titlebg td, .titlebg2, tr.titlebg2 th, tr.titlebg2 td, tr td.titlebg
{
	font-size: 100%;
	font-weight: bold;
	padding: 4px;
}
.titlebg, .titlebg a:link, .titlebg a:visited
{
}

.titlebg a:hover
{
}
/* same as titlebg, but used where bold text is not needed */
.titlebg2 a:link, .titlebg2 a:visited
{
}

.titlebg2 a:hover
{
}
.titlebg, .titlebg2{
	background: #DDD;
}
/* This is used for tables that have a grid/border background color (such as the topic listing.) */
.bordercolor
{
  border: 1px solid #CCC;
}

/* This is used on tables that should just have a border around them. */
.tborder
{
  border: 1px solid #CCC;
  padding: 1px;
}

.catbg, .catbg2, .catbg3{
	background: #903200 url(images/cat-bg.png) top repeat-x;
	height: 25px;
	color: #eee;
	font-size: 10px;
}

.catbg4 {
	background: #903200;
	}

.catbg a:link, .catbg a:visited, .catbg2 a:link, .catbg2 a:visited{
	font-family: Tahoma, verdana, sans-serif;
	font-size: 12px;
	font-weight: bold;
}

.catbg a:hover, .catbg2 a:hover{
	font-family: Tahoma, verdana, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #fff;
}

.catbg3 a{
	font-family: Tahoma, verdana, sans-serif;
	font-size: 10px;
	font-weight: bold;
}

.catbg3 a:hover{
	font-family: Tahoma, verdana, sans-serif;
	font-size: 10px;
	font-weight: bold;
	color: #fff;
}

.collapse_expand {
	margin-right: 3px;
	height: 12px;
	width: 16px;
	display: block;
	float: left;
}
/* Default font sizes: small (8pt), normal (10pt), and large (14pt). */
.smalltext
{
	font-size: x-small;
	font-family: verdana, sans-serif;
}

.middletext{
  line-height: 18px;
  text-indent: 10px;
}

.normaltext
{
	font-size: small;
}
.largetext
{
	font-size: large;
}


/* Posts and personal messages displayed throughout the forum. */
.post, .personalmessage
{
	width: 100%;
	overflow: auto;
	line-height: 1.3em;
}

/* All the signatures used in the forum.  If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */
.signature
{
	width: 100%;
	overflow: auto;
	padding-bottom: 3px;
	line-height: 1.3em;
}

/* Sometimes there will be an error when you post */
.error{
color: red;
}

/* header */
#header {
	position: relative;
	height: 111px;
	overflow: hidden;
	background: url(images/header-bg.png) right top repeat-x;
	width: 100%;
}

#header-l {
	height: 111px;
	background: #ff9110 url(images/header-l.png) 0 0 no-repeat;
	position: relative;
	padding-left: 8px;
}

#header-r {
	height: 111px;
	background: #ff9110 url(images/header-r.png) 100% 0 no-repeat;
	position: relative;
	padding-right: 8px;
}

#logo, #logo a {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width:662px;
	height: 111px;
	background: url(images/logotype.png) no-repeat;
	padding: 30px 0 0 0px;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 24px;
	line-height: 24px;
	font-weight: bold;
}

#news {
	overflow: hidden;
	height:60px;
	width:auto;
	margin-bottom: 10px;
	margin-right: 0px;
	color: #888;
	text-align: right;
	padding: 4px 4px 4px 4px;
}

.newstats {
	background: #fff;
	text-align: right;
	padding: 15px 20px 10px 5px;
}

.nickname a:link, .nickname a:hover, .nickname a:visited {
	font-weight: bold;
	font-size: 14px;
	font-family: Arial, Tahoma, Verdana, Sans-serif;
}

/* the usercenter (login / avatar "quick user links") */
#useropts
{
	margin: 0 50px 0 0;
	list-style: none;
	padding: 0;
}

.avatar_t {
	height: auto;
	width: auto;
	border: none;
}

div.profile_info {
  margin-left: 80px;
  border: 1px solid #fff;
}

td.smalltext {
	font-weight: normal;
}

#menue-l {
	height: 28px;
	background: url(images/menue-bgl.gif) 0 0 no-repeat;
	position: relative;
	padding-left: 8px;
}

#menue-r {
	height: 28px;
	background: url(images/menue-bgr.gif) 100% 0 no-repeat;
	position: relative;
	padding-right: 8px;
}

/* toolbar */

#toolbar {
	margin: 0;
	padding: 0;
	height: 28px;
	background: url(images/toolbar-bg.gif) bottom repeat-x;
	position: relative;
}

/* menu */
#nav {
	margin: 0;
	padding: 0;
	height: 28px;
}

#nav ul {
	padding: 0;
	margin: 0;
}

#nav li {
	margin: 0;
	padding: 0;
	float: left;
	display: block;
}

#nav a {
	text-decoration: none;
	cursor: pointer;
	font-weight: bold;
}

#nav li a {
	display: block;
	float: left;
	height: 28px;
	line-height: 26px;
	padding: 0px 15px 0 15px;
	color: #fd9528;
	font-family: Tahoma, Verdana, sans-serif;
	font-size: 11px;
	font-weight: bold;
	background: transparent url(images/hover-bg.gif) top repeat-x;
}

#nav li a:visited {
	color: #fd9528;
	font-family: Tahoma, Verdana, sans-serif;
	font-size: 11px;
	font-weight: bold;
}

#nav li a:hover {
	color: #fff;
	background: #fd9328 url(images/hover-bg.gif) bottom repeat-x;
	font-family: Tahoma, Verdana, sans-serif;
	font-size: 11px;
	font-weight: bold;
}

#nav a:active {
	color: #575757;
}

/* showcase */

#showcase {
	background: #fff;
	color: #444;
	padding: 0;
	margin: 0;
}

#showcase ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#showcase li {
		border-bottom: 1px dotted #b7bbc7;
		padding-bottom: 0;
		margin-bottom: 2px;
}

.userinfo {
	width: 350px;
	float: left;
	padding: 10px 0 10px 10px;
}

.searchfield {
	text-align: right;
	margin-top: 11px;
	height: 40px;
	width: 188px;
	float: right;
	overflow: hidden;
}

.searchfield a{
	color:#4c4c4c;
}

.searchtextinput {
	background: #ffad54 url(images/input_text.gif) top left repeat;
	border: 1px solid #e77800;
	font-family: Verdana, Tahoma, sans-serif;
	color: #fff;
	height: 17px;
	font-size: 11px;
	width: 135px;
	padding: 2px 0px 0px 3px;
}

.searchbtn{
	height: 22px;
	width: 27px;
	background: #fff url(images/searchbtn.png) top no-repeat;
}

.searchbtn:hover {
	height: 22px;
	width: 27px;
	background: #fff url(images/searchbtn.png) bottom no-repeat;
}

a.searchadvance:link, a.searchadvance:visited{
	color: #fff;
	font-size: 10px;
}

a.searchadvance:hover{
	color: #973400;
	font-size: 10px;
}

input, select, textarea {
	font-size: 11px;
	font-family: Verdana;
	font-weight: normal;
}
/* footer (smf copyright) */

#footer {
	background: #ff8f1c url(images/footer-bg.png) repeat-x;
	position: relative;
	height: 83px;
	color: #4c4c4c;
	overflow: hidden;
	width: 100%;
}

#footer-l {
	background: #ff8f1c url(images/footer-bgl.png) 0 0 no-repeat;
	height: 83px;
	padding-left: 8px;
	position: relative;
}

#footer-r {
	background: #ff8f1c url(images/footer-bgr.png) 100% 0 no-repeat;
	height: 83px;
	padding-right: 49px;
	position: relative;
}

#copyright {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 496px;
	height: 83px;
	color: #dcdcdc;
	background: url(images/footer_copyright.png) bottom no-repeat;
}

#copyright a {
	font-family: Tahoma, Verdana, sans-serif;
	color: #fff;
}

#copyright a:hover{
	font-family: Tahoma, Verdana, sans-serif;
	color: #fff;
}

#count {
	position: absolute;
	top: 38px;
	right: 0;
	height: 31px;
	width: 300px;
}

.copyrighttext {
	display: block;
	position: absolute;
	top: 33px;
	left: 10px;
	color: #fff;
}

/* footer2 */

#footer2 {
	height: 4px;
	width: 100%;
	text-align: center;
	font-size: 9px;
	color: #c0c0c0;
}

#footer2 a:link, #footer2 a:visited, #footer2 a:hover{
	font-size: 9px;
	color: #c0c0c0;
}

span.pathway {
	display: block;
	height: 16px;
	line-height: 16px;
	vertical-align: middle;
	margin-top: 5px;
	margin-bottom: 10px;
	font-weight: bold;
}

span.pathway img {
	margin: 0px 10px;
	vertical-align: middle;
}

div#pathway {
	margin-bottom: 10px;
	padding-left: 8px;
}

fieldset {
	border: 0;
	padding: 5px 0;
}

/*** fonts ***/
body {
		line-height: 125%;
		font-family: "Lucida Grande", Tahoma, Helvetica, sans-serif;
		color: #444;
		font-size: 11px;
}

.small,
.modifydate,
.createdate,
div.mosimage_caption {
	font-size: 100%;
}

#nav a,
#inset a {
	font-size: 110%;
}


/* font family */
#nav,
span.pathway,
.small,
.createdate,
.modifydate,
#inset {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
}

a:link			{ color: #fd9528; font-size: 11px; font-family: Verdana, Helvetica; text-decoration: none; }
a:visited		{ color: #fd9528; font-size: 11px; font-family: Verdana, Helvetica; text-decoration: none; }
a:hover			{ color: #932a00; font-size: 11px; font-family: Verdana, Helvetica; text-decoration: none; }

/* headings */
.profile_info h3 {
	font-size: 14px;
	font-family: Arial, Verdana, sans-serif;
	padding: 0px;
	margin: 14px 0px 10px 0px;
	}

h1 {
	padding-bottom: 5px;
}

h2 {
   padding-bottom: 5px;
}

h3 { 
   padding-bottom: 0px;
}

h4 {
	 padding-bottom: 5px;
}

.small {
	font-weight: bold;
	color: #999;
}

.modifydate {
	height: 20px;
	vertical-align: bottom;
	font-weight: bold;
	color: #999;
}

.createdate {
	height: 20px;
	vertical-align: top;
	font-weight: bold;
	vertical-align: top;
	padding-bottom: 5px;
	padding-top: 0px;
	color: #999;
}

.clr {
	clear: both;
}

form {
	border: 0;
	margin: 0;
	padding: 0;
}

/* The AJAX notifier */
#ajax_in_progress {
	background: #333;
	color: white;
	text-align: center;
	font-weight: bold;
	font-size: 22px;
	font-family: Arial, sans-serif;
	padding: 3px;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	line-height: 100px;
	height: 100px;
	filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50); /* IE 5.5+*/
	-moz-opacity: 0.5; /* Mozilla 1.6 и ниже */
	-khtml-opacity: 0.5; /* Konqueror 3.1, Safari 1.1 */
	opacity: 0.5; /* CSS3 - Mozilla 1.7b +, Firefox 0.9 +, Safari 1.2+, Opera 9 */
}
