body, div, ul, table { 
	margin: 0px; 
	padding: 0px; 
	}
	
body {
	color: #444444;
	font-family: Arial;
	font-size: 12px;
	}

a { color: #594FBF; text-decoration: underline; }
a:hover { color: red; }

img { border: 0px; }

h1 	{ 
	font-size: 36px; 
	margin: 0;
	padding: 0;
	font-weight: normal;
	text-decoration: none;
	}
h1, h1 a, h1 a:hover { color: #FFAA00; }
h1 a { text-decoration: none; }

h2 	{ 
	font-weight: bold; 
	font-size: 17px;
	text-decoration: none;
	margin: 0 0 5px;
	padding: 0;
	}
h2, h2 a, h2 a:hover { color: #437FDB; }
h2 a { text-decoration: none; }
h2.big { font-size: 24px; }

table { border-collapse: collapse; margin: 0; }
td { padding: 0; }

/* сюда потом вставить стили из new_styles.css */
.orange-bar { 
	background-image: url('http://i.sunhome.ru/css/yellow-bar.png');
	background-position: center left;
	background-repeat: no-repeat;
}

.dashed-underline { 
	border-bottom-width: 1px; 
	border-bottom-style: dashed; 
	text-decoration: none;  
}

div.errors { margin: 10px 0; color: red; line-height: 150%; }

div.user_info_drop {
	display:inline;
	position: absolute;
	z-index: 1000;
}

div.user_info_drop div {
	display: none;
	top: 0px;
	left: 0px;
	width:130px;
	border:1px solid #CCCCCC;
	background:#FFF;
	white-space:nowrap;
	padding:0 3px 3px 3px;
	line-height:18px;
}
div.user_info_drop a {
	text-decoration:underline;
}

/* h1 a, h2 a { text-decoration: inherit; color: inherit;} */
/* В IE6 это не работает */


	#header img.logo { 
		float: left;
		height: 50px;
		width: 250px;
		}
	
	#header .authlinks,
	#header .search {
		margin-left: 255px; /* see #header img.logo */
		}
	
	#header div.authlinks {
		height:17px;
		padding:8px 2px 0 0;
		text-align:right;
		}
	#header div.authlinks,
	#header div.authlinks a {
		font: 11px Arial;
		color:#AAAAAA;
		text-decoration: none;
		}
	#header div.authlinks span.spacer {
		font-weight: bold;
		}
		
/* поиск вверху */
	#header .search {
		height: 25px;
		padding: 0 7px;
		color: white;
		background-color: red;
		font-weight: bold; /*для IE6 */
		}
	#header .search table {
		border-collapse: collapse;
		height: 25px;
		}
	#header .search td {
		padding: 0px;
		padding-top: 2px;
		white-space: nowrap;
		vertical-align: middle;
		}
	#header .search a {
		color: white;
		font-weight: bold;
		text-decoration: none;
		font-size: 12px;
		}	
		
	#header .search input,
	#header .search select {
		font: 8pt Arial;
		color: #444444;
		margin-bottom: 2px;
		}
	#header .search select {
		border:1px solid red;
		height:19px;
		padding-left:3px;
		width: auto;
		text-align: left;
		}
	#header .search td.query {
		padding-left: 7px;
		width: 100%;
		}
	#header .search td.query input {
		height: 15px;
		width: 100%;
		padding-left: 2px;
		border: 1px solid red;
		}
	#header .search input.button {
		font:12px Arial;
		height:20px;
		background-color: red;
		border: 1px solid white;
		color: white;
		font-weight: bold;
		padding-bottom: 1px;
		}
	#header .search input.button:hover {
		background-color: white;
		color: red;
		border-color: red;
		}
		
		
	#topmenu {
		position: relative; /* для "Все проекты" */
		border: 1px solid #CCCCCC;
		margin-bottom: 10px;
		padding: 6px;
		}
	#topmenu li {
		list-style-type: none;
		display: inline;
		background-image: url('http://i.sunhome.ru/css/redromb.gif');
		background-repeat: no-repeat;
		background-position: left center;
		padding: 0 15px; 
		}
	#topmenu li.last{
		/* дебильный IE не поддерживает псевдоклассы 
		Есть еще более дебильные версии IE
		в которых при таком стиле съезжает вправо
		
		float:right;
		padding-right: 9px;
		*/
		position:absolute;
		right: 0;
		}
		
	div.description{
		font-style: italic;
		margin: 10px 0;
		text-align: justify;
		}
	
	/* общие стили для форм */
	form table td{
		padding: 5px;
		vertical-align: top;
	}
	
	input[type=text], input[type=password], textarea {
		color: #444444;
		border: 1px solid #AAAAAA;
		padding: 1px;
		font-size: 10pt;
	}
	
	select{ 
  		width: 200px;
  		text-align: center;
	}
	optgroup { text-align: center; }
	
	input[type=text], textarea{
		width: 400px;	
	}
	
	input:focus, select:focus, textarea:focus{
		border-color: #444444;
	}
	textarea { font-family: Arial; font-size: 12px; }
	form .field-info{
		width: 300px;
		color: gray;
	}
	
	form .necessary-mark{
		color: red;
	}
	
	form .field-name{
		font-weight: bold;
		font-size:13px;
	}
	
	form .comment{
		margin:0;
		padding:0;
		font-size: 11px;
	}
	
	#new-potok, #new-sbornik{
		display:none;
	}
	
	/* главные страницы разделов */
		body.main div#new-compositions { margin: 12px 0 19px; }

	/* страницы произведений */
		div.moderation { margin: 10px 0; }
		div.moderation.notes { color: red; }
		div.moderation.awaiting { color: blue; }
		div.bbcode-icons a { 
			font-size: 10px;
			}
			
		div.composition-info { margin: 10px auto 20px; font-size: 11px;}
		div.composition-info a { text-decoration: underline; }
		div.composition-info a.username { text-decoration: none; font-weight: bold; }
		div.composition-info div.user_info_drop { font-size: 12px; }
		
		.zakladki img {
			width: 16px;
			height: 16px;
			border: 1px solid #EEEEEE;
			padding: 4px;
			vertical-align: middle;
			}
			
		.item-moderator{
			float: right;
			margin: 0 0 1em 1em; 
		}
		
		#begun-block{
			width: 100%;
		}
		
		#begun-block table{
			width: 100%;
			border: 1px solid black;	
		}
		
		.composition-item{
			margin: 15px 0 20px 0;
		}
		
		.description{
			text-align: left;
			margin: 20px auto;
		}
		
		.images{
			padding-top: 5px;
		}
		
		table.preview-compositions.big td{
			height: 210px;
			width: 210px;
		}
		
		table.preview-compositions.big div.link{
			/* float: left; */
			display: inline;
			margin-right: 5px;
		}
		
		.contest-thread{
			margin-bottom: 15px;
		}
		
		div.comments-info { margin-bottom: 25px; }
		
		.tags{
			margin: 20px 0;
		}
		
		.other-albums{
			margin: 20px 0;
		}
		
		.other-albums span{
			color: #437FDB;
			font-weight: bold;
		}
		/* пришлось пока отказаться от такого выравнивания
		т.к. IE6-7 и некоторые версии 8 съедают часть текста
		которая попадает в отрицательный margin
		div.on-images{
			width:75%;
		}
		div.on-images > div{
			margin-right:-150px; 
		}
		*/
		
	/* страница комментариев к произведению */
		body.comments div.composition-block { 
			margin: 20px 2% 30px 0; 
			}
		body.comments div.composition-block table { 
			border-collapse: collapse; 
			width: 100%;
			}
		body.comments div.composition-block > table > tbody > tr > td { 
			vertical-align: top;
			padding: 0;
			}
			
		body.comments div.composition-block td.preview { width: 150px; }
		
		body.comments div.composition-block td.title,
		body.comments div.composition-block td.info {
			padding-left: 20px; 
			}
		body.comments div.composition-block td.title {
			height:100%;
			padding-bottom: 25px; 
			}
		body.comments td.title h2 { 
			font-size: 30px; 
			font-weight: bold;
			}
		body.comments td.title h2 a { text-decoration: underline; }
		body.comments td.title h2 a:hover { color: #437FDB; color:inherit;}
		
		body.comments div.composition-block td.button { 
			vertical-align: bottom;
			text-align: right;
			}
		
	/* страница темы */
		div.potok-item { margin-bottom: 25px; }
		
		div.blank-text{
			margin: 15px 0;
		}
		
		div.potok-item .header{
			position: relative;
			zoom: 1; /* для IE 6-7 */
		}
		
		div.potok-item .header h2{
			/* margin-left: 3px; */
			color: #437FDB;
			clear: left;
		}
		
		div.potok-item .header div.for-button{
			position: absolute;
			top: 0;
			text-align:right;
			right: 25%;
			margin-right: -146px;
		}
		
		div.stupid-container{
			position: absolute;
			right:0;
			width:500px;
		}
		
		div.stupid-container a{
			float:right;
			margin-left:10px;
		}
		
		div.theme-stat-potoki { font-weight: bold; margin: 15px 0; }
		
		div.theme-stat-compositions { margin: 20px 0 30px; }
		
		.best-menu{
			float: right;
			margin: 0;
			padding: 0;
		}
		
		div.add-button{
			margin: 15px 0;
		}
		
	/* конкурсы */
		div.contest-block{
			margin-top: 25px;
		}
		
		body.contest h1.finished{
			margin-bottom: 15px;
		}
		
		body.contest div.winners-spacer { margin: 15px 0; }
		
		body.contest div.description{
			margin:
		}
		
		div.position-text span{
			text-transform: capitalize;
		}
		
		h2.contest-winner{
			color: red !important;
		}
		
		h2.last-contest-winners{
			margin:20px 0 0 0 !important;
		}
		
		span.place-in-contest{
			color:red;
			font-size: 15px;
			font-weight: bold;
		}
		
		span.place-contest-small{
			color:red;
			font-weight:bold;
			font-size:12px;
			font-family: Arial;
		}
		
		/* для страницы всех конкурсов */

		ul.all_contests{
			margin: 10px 10px 20px 5px;
		}
		
		ul.all_contests li{
			margin: 10px 0;
			text-align: justify;
			list-style: none;
		}
		
		ul.all_contests li > *{
			padding-left: 11px;
		}
		
		span.date-in-all{
			margin-right:7px;
			font-weight: bold;
		}
		
		a.title-in-all{
			font-weight: bold;
		}
	
		li.hide{
			display:none;
		}
		
		a.show_all{
			font-weight:bold;
			margin: 15px 5px;
		}
		
		img.contest-logo{
			float: left;
			padding: 0 15px 15px 0;
		}
	
	/* страницы добавления/редактирования */
		div.rules { margin: 20px 0; }
		div.rules div { margin: 20px 0; display: none; }
		
		ul.form-errors { 
			margin: 20px 0; 
		}	
		ul.form-errors li{
			color:red;
			list-style:none;
		}
		.link-add-sbornik{
			font-weight: bold;
			margin-left: 0.5em;
		}
		
		.hidden-fields{
			border: 1px dashed grey;
			margin: 0 -8px;
			padding: 0;
			display: block;
			background: #F7F7F7;
		}
		
		.hidden-fields > tbody > tr > td.close{
			text-align: right;
		}
		
		.head-new-sbornik{
			font-weight: bold;
			color: grey;
		}
		
		.title-errors{
			color:red;
		}
		.rightbutton{
			float: right;
		}
		
		.kill-sponsors{
			border-bottom:dashed;
		}
		
	/* страница со списком всех потоков */
		div.potoki { margin: 20px 0 20px 5px; }
		div.potoki ul#extended { display:none; }
		div.potoki ul li { list-style-type: none; }
		div.potoki ul li > * { padding-left: 11px; }
		div.potoki ul div.head, ul.all_contests div.head{
			margin: 4px 0; 
			background-image: url('http://i.sunhome.ru/css/dotred.gif');
			background-position: left center;
			background-repeat: no-repeat;
			}
		div.potoki ul div.head span.info { font-size: 11px; }
		div.potoki ul div.description { 
			font-size: 11px; 
			font-style:normal;
			margin: 0;
			}
		div.potoki div#switch { margin-top: 10px; }
		div.potoki div#switch a { font-weight: bold; }
		div.potoki div#switch a > span.hidden { display: none; }
		
		/* страница печати */
	
		div.print-info{
			text-align: center;
			padding-top: 20px;
			font: 11px Arial;
			margin-bottom: 10px;
		}
		
		div.print-crumbs{
			color: white;
		}
		
		div.print-crumbs a{
			text-decoration: none;
			color: white;
		}
		
/* Правая колонка */
	/* 
	В правой колонке все по правому краю 
	из-за IE6 не получается исползовать #right > * 
	поэтому придется прописывать явно
	*/
    #right, #right div, #right ul, #right h1, #right h2 {
		text-align: right;
	}
	
	#right h1 {
		margin: 3px 0;
		font-size: 16px;
		padding-left: 3px;
		font-weight: bold;
		}
	#right .orange-bar { 
		background-position: right; 
		padding-right: 7px;
	}

	#right .banner { margin-bottom: 14px; } 
	
	#right #add-composition-link{
		margin: 10px 0;
	}
	
	.themes{
		margin: 15px 0;
	}
	.themes .active { font-weight: bold; }
	.themes span.active { color: red; }
	
	.discussions-link{
		margin: 15px 0;
	}
	
	#right .bestmenu{
		margin: 10px 0;
	}
	
	#right .bestmenu li, #right .profile-menu li{
		list-style: none;
		margin-bottom: 4px;
		padding-right: 7px;
		background-image: url('http://i.sunhome.ru/css/yellow-bar.png');
		background-position: center right;
		background-repeat: no-repeat;
	}
	#right .bestmenu li.active {
		background-image: none;
		color: red;
		font-weight: bold;
		padding-right: 0;
	}
	
	/* избранное */
	#right div.favorite table.preview-container { margin: 5px 0 4px auto; }
	#right div.favorite table.preview-container td { 
		width: 110px; 
		height: 110px; 
		border: 1px solid #CCCCCC;
		}
	#right div.favorite a.title { color: #444444; font-style: italic; }
	#right div.favorite div.top a { color: red; font-size: 11px; }
	#right div.favorite div.top.go a { font-size: 12px; }
	
	/* всего, новых и за неделю */
	#right div.stat { margin: 15px 0; }
	
	
	#right ul.profile-menu{
		margin: 10px 0;
	}
	
	#right .profile-menu li.red-bar{
		background-image: url('http://i.sunhome.ru/css/red_bar.gif');
		margin: 15px 0;
	}
	
	#right .profile-menu li.none-bar{
		background-image: none;
		padding:0;
	}
	
	#right .profile-menu li a{
		margin: 0;
		padding: 0;
		text-decoration: underline;
	}
	
	#right .profile-menu li a.toplink{
		color: #444444;
		text-decoration: none;
		font-size: 11px;
	}
	
	#right .profile-menu li span.toplink{
		font-size: 11px;
		color: #444444;
	}
	
	#right .profile-menu li img{
		padding-left: 3px;
		margin: 0;
	}
	
	#right .right-title, #right .right-title a{
		color: #FFAA00;
		font-size: 14px;
		margin: 10px 0 5px 0;
		font-weight: bold;
	}
	
	#right .right-title a{
		text-decoration: none;
	}
	
	#right a.red-link{
		color: red;
	}
	
	#right div.small-link{
		font-size: 11px;
		margin: 5px 0;
	}
	
	#right div.site-news{
		margin: 10px 0;
	}	
	
	div.informers{
		margin: 10px 0;
	}

/* footer */
	
	div.bottommenu {
		margin-bottom: 15px; 
		padding: 10px 0;
		border-style: dotted;
		border-color: #AAAAAA;
		border-width: 1px 0;
		} 
	div.bottommenu table { width: 100%; }
	div.bottommenu td { 
		width: 16.66%;
		vertical-align: top;
		padding-right: 5px; 
		}
	div.bottommenu ul li {
		list-style-type: none;
		padding: 1px 0px 1px 15px;
		background-image: url("http://i.sunhome.ru/css/redromb.gif");
		background-position: left 0.4em;
		background-repeat: no-repeat;
		}
	div.bottommenu a { text-decoration: none; }

	/* меню администраторов; осталось еще со старой версткой */
	#footer div.admin a { text-decoration: none; }
	#footer div.admin table { width: 95%; margin: 0 auto; }
	#footer div.admin table font.toplink { color: #444444; font-size: 11px; }
	#footer div.admin table font.red { color: red; }

    /* блок - строка ссылок */
    .adsence_link {margin: 20px 0 23px 0; }    
    
     /* body.contest */ div.potok-stat-compositions { margin: 15px 0 10px; }
     body.contest div.date-text { margin: 10px 0; }
     
span.deleted-user{
	padding: 0 0.2em;
	display: inline-block;
	border: 1px solid #444444;
}

div.correction{
	border-width: 1px;
	border-style: dashed;
	border-color: #CCCCCC;
	background:none repeat scroll 0 0 #FDFDFD;
	font-size: 12px;
	padding: 5px;
    clear: both;
}
