/* Normal, standard links. */
a, a:link, a:visited, a:active, a:hover
{
	color: black;
	background-color: inherit;
	text-decoration: none;
}

a:hover
{
	color: #b50000;
	background-color: inherit;
	text-decoration: underline;
}

/* Navigation links - for the link tree. */
.nav, .nav:link, .nav:visited
{
	color: black;
	background-color: inherit;
	text-decoration: none;
}
a.nav:hover
{
	color: #b50000;
	background-color: inherit;
	text-decoration: underline;
}

/* Tables should show empty cells. */
table
{
	empty-cells: show;
}

/* By default (td, body..) use verdana in black. */
td, th , tr
{
	color: black;
	background-color: inherit;
	margin: 0;
	padding: 0;
}

/* The main body of the entire forum. */
body
{
	font-size: 12pt;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-style: normal;
	background-color: #ebebeb;
	color: black;
	margin: 0;
	padding: 4px 4px 4px 4px;
}

/* Input boxes - just a bit smaller than normal so they align well. */
input, textarea, button
{
	color: black;
	font-family: inherit;
}

input, button
{
	font-size: 90%;
}

textarea
{
	font-size: 100%;
	color: black;
}

input, textarea, select
{
	margin: 3px 1px 2px 1px;
}

/* All input elements that are checkboxes or radio buttons. */
input.check
{
}

/* Selects are a bit smaller, because it makes them look even better 8). */
select
{
	font-size: 90%;
	font-weight: normal;
	color: black;
	font-family: inherit;
}

/* Standard horizontal rule.. ([hr], etc.) */
hr, .hrcolor
{
	height: 1px;
	border: 0;
	color: #339333;
	background-color: #339333;
}

/* No image should have a border when linked */
a img
{
	border: 0;
	margin: 0;
}

div.img
{
	overflow: auto;
	padding: 1em;
}

.img_caption
{
    font-style: italic;
    padding: 0 2px;
}

.img_border
{
    border: 1px solid black;
}

.img_left
{
    float: left;
    clear: left;
}

.img_right
{
    float: right;
    clear: right;
}

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

/* These are used primarily for titles, but also for headers (the row that says what everything in the table is.) */
.titlebg, tr.titlebg th, tr.titlebg td
{
	padding: 2px 10px;
}

.titlebg, tr.titlebg th, tr.titlebg td, td.titlebg td
{
	background-color: #339333;
	color: white;
}

.titlebg, .titlebg a:link, .titlebg a:visited, .titlebg a:hover
{
	font-weight: bold;
	color: white;
	font-style: normal;
}

.titlebg2, tr.titlebg2 th, tr.titlebg2 td
{
	background-color: #f7f7f7;
	color: black;
	padding: 2px 0px;
}

/* same as titlebg, but used where bold text is not needed */
.titlebg2 a:link, .titlebg2 a:visited
{
	color: black;
	background-color: inherit;
	font-style: normal;
	text-decoration: underline;
}

.titlebg2 a:hover
{
	text-decoration: underline;
	color: #b50000;
	background-color: inherit;
}

/* Alternating backgrounds for posts, and several other sections of the forum. */
.windowbg, .windowbg2, .windowbg3
{
	padding: 1px 4px 1px 4px;
}

.windowbg, #preview_body
{
	color: black;
	background-color: #fbfbfb;
}
.windowbg2
{
	color: black;
	background-color: #f7f7f7;
}
.windowbg3
{
	color: black;
	background-color: #fbfbf0;
}

.oddrow
{
	color: black;
	background-color: #e0f0e0;
}

/* the today container in calendar */
.calendar_today
{
	background-color: white;
}

/* This is used for categories, page indexes, and several other areas in the forum.
.catbg and .catbg2 is for boardindex, while .catbg3 is for messageindex and display headers*/
.catbg , tr.catbg td , .catbg3 , tr.catbg3 td, .catbg2 , tr.catbg2 td
{
	background-color: #338033;
	color: white;
	padding: 2px 10px;
	
}

.catbg, .catbg2, .catbg3
{
	border-bottom: 1px solid #339333;
}

.catbg, .catbg2
{
	font-weight: bold;
}

.catbg3, tr.catbg3 td, .catbg3 a:link, .catbg3 a:visited
{
	color: white;
}

.catbg a:link, .catbg a:visited , .catbg2 a:link, .catbg2 a:visited
{
	color: white;
}

.catbg a:hover, .catbg2 a:hover, .catbg3 a:hover
{
	text-decoration: underline;
}

/* This is used for tables that have a grid/border background color (such as the topic listing.) */
.bordercolor
{
	background-color: #339333;
	padding: 0px;
}

/* This is used on tables that should just have a border around them. */
.tborder
{
	padding: 1px;
	border: 1px solid #339333; /*696969;*/
	background-color: #F7F7F7;
}

/* Default font sizes: small (8pt), normal (10pt), and large (14pt). */
.smalltext
{
	font-size: 87%;
	font-family: Verdana, sans-serif;
}

.middletext
{
	font-size: 95%;
}

.normaltext
{
}

.largetext
{
	font-size: 115%;
}

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

.personalmessage a:link, .personalmessage a:visited, .personalmessage a:active,
.news a:link, .news a:visited, .news a:active,
.signature a:link, .signature a:visited, .signature a:active,
.post a:link, .post a:visited, .post a:active
{
	color: #1364C4;
	background-color: inherit;
	text-decoration: none;
}

.personalmessage a:hover,
.news a:hover,
.signature a:hover,
.post a:hover
{
	color: #1364C4;
	background-color: inherit;
	text-decoration: underline;
}


/* 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: 0 3px 3px 4px;
	line-height: 1.3em;
}

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


/* definitions for the main tab, active means the tab reflects which page is displayed */
.maintab_first, .maintab_back, .maintab_last, .maintab_active_first, .maintab_active_back, .maintab_active_last
{
	color: white;
	vertical-align: top;
}

.maintab_back, .maintab_active_back
{
	color: white;
	text-decoration: none;
	vertical-align: top;
	padding: 2px 6px 6px 6px;
	font-family: Tahoma, sans-serif;
}

.maintab_first
{
	background: url(images/maintab_first.gif) left bottom no-repeat;
	width: 10px;
}
.maintab_back
{
/*	background: url(images/maintab_back.gif) left bottom repeat-x;*/ /* FF32 bug ? */
	background: url(images/maintab_active_back.gif) left bottom repeat-x;
}
.maintab_last
{
	background: url(images/maintab_last.gif) left bottom no-repeat;
	width: 8px;
}
.maintab_active_first
{
	background: url(images/maintab_active_first.gif) left bottom no-repeat;
	width: 6px;
}
.maintab_active_back
{
	background: url(images/maintab_active_back.gif) left bottom repeat-x;
}
.maintab_active_last
{
	background: url(images/maintab_active_last.gif) left bottom no-repeat;
	width: 8px;
}

/* how links behave in main tab. */
.maintab_back a:link , .maintab_back a:visited, .maintab_active_back a:link , .maintab_active_back a:visited
{
	color: white;
	text-decoration: none;
}

.maintab_back a:hover, .maintab_active_back a:hover
{
	color: #f0f000;
	text-decoration: none;
}
/* definitions for the mirror tab */
.mirrortab_first, .mirrortab_back, .mirrortab_last, .mirrortab_active_first, .mirrortab_active_back, .mirrortab_active_last
{
	color: white;
	vertical-align: top;
}
.mirrortab_back, .mirrortab_active_back
{
	color: white;
	text-decoration: none;
	font-size: 12pt;
	vertical-align: bottom;
	padding: 6px 6px 2px 6px;
	font-family: Tahoma, sans-serif;
}

.mirrortab_first
{
	background: url(images/mirrortab_first.gif) no-repeat;
	width: 10px;
}
.mirrortab_back
{
	background: url(images/mirrortab_back.gif) repeat-x;
}
.mirrortab_last
{
	background: url(images/mirrortab_last.gif) no-repeat;
	width: 6px;
}
.mirrortab_active_first
{
	background: url(images/mirrortab_active_first.gif) no-repeat;
	width: 6px;
}
.mirrortab_active_back
{
	background: url(images/mirrortab_active_back.gif) repeat-x;
}
.mirrortab_active_last
{
	background: url(images/mirrortab_active_last.gif) no-repeat;
	width: 8px;
}

/* how links behave in mirror tab. */
.mirrortab_back a:link , .mirrortab_back a:visited, .mirrortab_active_back a:link , .mirrortab_active_back a:visited
{
	color: white;
	text-decoration: none;
}

.mirrortab_back a:hover, .mirrortab_active_back a:hover
{
	color: #f0f000;
	text-decoration: none;
}

/* The AJAX notifier */
#ajax_in_progress
{
	background: #32CD32;
	color: white;
	text-align: center;
	font-weight: bold;
	font-size: 18pt;
	padding: 3px;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
}

/* A quote, perhaps from another post. */
.quote
{
	color: black;
	background-color: #f7f7cb;
	border: 1px solid black;
	margin: 1px 1px 1px 2em;
	padding: 1px;
	font-size: 10pt;
	line-height: 1.4em;
}

pre
{
/*	overflow: auto;*/
}

.code, .code_pre, pre, .phpcode, tt, .console_box, .geshi
{
/*	font-family: "Consolas", "Lucida Console", "Courier New", monospace;*/
	font-family: monospace;
	font-size: 12pt;
}

.code, .phpcode, .console_box, .geshi
{
	margin: 1px 1px 1px 2em;
}

.code, .phpcode, .console_box, .geshi
{
	white-space: nowrap;
	overflow: auto;
	max-height: 24em;
}

.code, .phpcode, .geshi
{
	color: black;
	background-color: #ebebeb;
	border: 1px solid black;
	padding: 1px;
}

.geshi > ol
{
	margin-top: 0;
	margin-bottom: 0;
	background-color: #e0e0e0;
}

.geshi > ol > li
{
	background-color: #ebebeb;
}

/* The "Quote:" and "Code:" header parts... */
.quoteheader, .codeheader
{
	color: black;
	background-color: inherit;
	text-decoration: none;
	font-weight: bold;
	font-size: 85%;
	line-height: 1.2em;
	margin-left: 2.5em;
}

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

/* /me uses this a lot. (emote, try typing /me in a post.) */
.meaction
{
	color: red;
}

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

.gallery_thumb_box
{
	text-align: center;
	padding: 2px;
}

.gallery_thumb_img
{
	margin: 4px;
}

.gallery_thumb_des
{
	font-weight: bold;
}

.gallery_view_img
{
	padding: 8px;
	text-align: center;
}

.gallery_view_txt
{
	padding: 4px;
}

.textheader_h1
{
	margin: 12px 0 4px 1px;
	font-size: 19pt;
	font-weight: bold;
	line-height: 120%;
}

.textheader_h2
{
	margin: 12px 0 2px 1px;
	font-size: 17pt;
	font-weight: bold;
	line-height: 120%;
}

.textheader_h3
{
	margin: 10px 0 2px 1px;
	font-size: 15pt;
	font-weight: bold;
	line-height: 110%;
}

.textheader_h4
{
	margin: 8px 0 2px 1px;
	font-size: 14pt;
	font-weight: bold;
}

.textheader_h5
{
	margin: 6px 0 0 1px;
	font-size: 13pt;
	font-weight: bold;
}

.textheader_h6
{
	margin: 4px 0 0 1px;
	font-size: 12pt;
	font-weight: bold;
}

.para
{
	padding: 0;
	margin: 3px 0;
}

.para:first-letter
{
	padding-left: 2em;
}

table.tgrid, table.tgrid tr td, table.tgrid tr td table.tgrid tr td
{
    border: 1px solid black;
    border-collapse: collapse;
    margin: 2px;
    padding: 1px;
}

table.tgrid tr td table tr td
{
    border: 0 none;
    margin: 0;
}

.color_box
{
    border: 1px solid black;
    padding: 1px;
    margin: 0 0 0 2em;
}

/* затычка для незрячих */
.maintab_active_back a, .maintab_back a, .mirrortab_active_back a, .mirrortab_back a
{
	background-color: #3aa63a;
}

/* *** maintab sides *** */

.maintab_left
{
	background: url(images/maintab_left.gif) repeat-y;
	width: 8px;
}

.maintab_right
{
	background: url(images/maintab_right.gif) left repeat-y;
	width: 8px;
}

/* *** dropdown menu *** */

.ddmenu
{
	background-color: #3aa63a;
	color: white;
}

.ddmenu_opened
{
	background-color: #3aa63a;
	color: yellow;
}

.ddmenu_list a, .ddmenu_list a:link, .ddmenu_list a:visited, .ddmenu_list a:active
{
	display: block;
	text-decoration: none;
	color: white;
	padding: 3px 3px 3px 0;
	background-color: #3aa63a;
	text-align: center;
	border: 0 none transparent;
}

.ddmenu_list a:hover
{
	text-decoration: none;
	color: yellow;
}

.ddmenu_list td.maintab_back
{
	padding: 0 0 6px 0;
}

.ddmenu_list td.mirrortab_back
{
	padding: 6px 0 0 0;
}

.maintab_bottom td, .maintab_top td
{	
	line-height: 1px;
}

.ddmenu_list
{
	position: absolute;
	margin-left: -8px;
	padding: 0;
}

.ddmenu .ddmenu_list
{
	display: none;
}

.ddmenu_opened .ddmenu_list
{
	display: block;
}

/* *** sape.ru *** */

div.sape
{
	border: 1px solid #339333;
	padding: 0 1px 1px 1px;
	margin: 0;
	text-align: center;
	background-color: #f7f7f7;
	font-size: 7pt;
}

a.sape:link, a.sape:hover, a.sape:visited, a.sape:active
{
	margin: 0;
	padding: 0;
	color: #303030;
}

/* *** sitemap *** */

.sitemap_box
{
	border-collapse: collapse;
	margin: 1px;
	padding: 0;
	color: black;
	background-color: white;
}

.sitemap_box, .sitemap_box td, .sitemap_box th
{
	border: 1px solid #339333;
}

.sitemap_title
{
	padding: 6px;
	font-size: 16pt;
	font-weight: bold;
	background-color: transparent;
}

.sitemap_subtitle
{
	padding: 4px;
	font-size: 13pt;
	font-weight: bold;
	background-color: transparent;
}

.sitemap_name, .sitemap_pages
{
	padding: 1px 1px 2px 1px;
}

.sitemap_name
{
	width: 30%;
	text-align: center;
	background-color: #f0e000;
}

.sitemap_pages
{
	width: 70%;
	text-align: center;
	background-color: #ffc0c8;
}

th.sitemap_name, th.sitemap_pages
{
	background-color: transparent;
	font-weight: normal;
	text-align: center;
}

td.sitemap_pages a
{
	padding: 0 2px 0 2px;
}

.sitemap_statictics
{
	font-size: 10pt;
}

.sitemap_menu
{
	height: 300px;
	overflow: auto;
}

.ddmenu_list .sitemap_menu a, .ddmenu_list .sitemap_menu a:link,
.ddmenu_list .sitemap_menu a:visited, .ddmenu_list .sitemap_menu a:active
{
	text-align: left;
}

/* chat message */

.chatmsg
{
    border: 1px solid #c8d8c8;
    background-color: #e0e0e0;
    margin: 2px 0;
    padding: 1px 2px;
    font-size: 90%;
}

a.chatmsg_date:link, a.chatmsg_date:visited, a.chatmsg_date:active, a.chatmsg_date:hover
{
    font-size: 80%;
    color: black;
}

a.chatmsg_user:link, a.chatmsg_user:visited, a.chatmsg_user:active, a.chatmsg_user:hover
{
    font-weight: bold;
    color: black;
}

/* [console] */

.console_box
{
    background-color: black;
    color: #d0d0d0;
    padding: 0 1px;
}

/* [expand] */

.expand_closed > .expand_body
{
    display: none;
}

.expand_openned > .expand_body
{
    display: block;
}

.expand_closed > .expand_header
{
    background-image: url('images/expand.gif');
}

.expand_openned > .expand_header
{
    background-image: url('images/collapse.gif');
}

.expand_closed, .expand_openned
{
    border: 1px solid #339333;
    padding: 1px;
    margin: 0 0.5em 0 0.5em;
}

.expand_header
{
    padding: 2px 4px 2px 18px;
    color: white;
    background-color: #339333;
    font-weight: bold;
    cursor: pointer;
    background-position: 3px 3px;
    background-repeat: no-repeat;
}

.expand_body
{
    padding: 2px;
}

/* Message char counters. */

.message_char_cnt
{
    font-weight: normal;
}

.message_overflow
{
    color: red;
    font-weight: bold;
}

/* ***  *** */
