html, body, td, th, form, h6 {margin: 0; padding: 0;}
table {border: none; border-collapse: collapse;}
html, body {height: 100%;}
img	{border: none;}
h6 {font-size: 100%;}
h1, h2, h3, h4, h5, h6, p {margin-top: 0;}

.clear {width: 100%; overflow: hidden;}
.w100 {width: 100%;}
.rel {position: relative;}

#page-all {min-height: 100%;}
#page-half {min-height: 50%;}

* html #page-all {height: 100%;}
* html #page-half {height: 50%;}

body {
    background: #F6F6F6;
	font: 80%/1.6  Arial, Helvetica, sans-serif;
}
a {
	color: #06C;
}

/* Page layout */
#page-all {
	margin-bottom: -100px;
	min-width: 980px;
}
#page-empty {
	clear: both;
	height: 100px;
}
#page-footer {
	padding-top: 20px;
	background: url(dots-cut.png) repeat-x;
}
.frame {
	width: 880px;
	margin: 0 auto;
	zoom: 1;
}

/* Header */
#page-header {
	height: 116px;
}
#page-header,
.page-cut {
	background: url(page-cut.png) repeat-x 0 100%;	
	margin-bottom: -21px;
}
.page-cut {
	height: 21px;
}

.yakr,
.yakrevedko {
	position: absolute;
	left: 0; top: 27px;
	height: 48px;
	overflow: hidden;
	margin: 0;
}
.yakr img,
.yakrevedko img {
	position: absolute;
	left: 0; top: 0;
}
.yakr {
	width: 110px;
}
.yakrevedko {
	width: 330px;
}

#search {
	float: right;
	padding-top: 40px;
}
#search input {
	margin: 0 0 0 4px;
	vertical-align: middle;
}

/* Hollow */
h2.hollow,
h2.hollow span,
.hollow td,
.hollow th {
	background: url(hollow.png) no-repeat;
}
table.hollow,
h2.hollow,
h2.hollow span {
	height: 40px;
}

.hollow {
	margin: 0 0 35px;
	background-color: #a1aab3;
	color: #FFF;
}
h2.hollow {
	font: 185%/40px Arial, Helvetica, sans-serif;
	text-align: center;
}
h2.hollow span {
	display: block;
	margin-left: 15px;
	padding-right: 15px;
	background-position: 100% 0;
}
.hollow a {
	color: #FFF;
	text-decoration: none;
}

table.hollow {
	width: 100%;
}
h2.hollow,
.hollow td,
.hollow th {
	background-color: #a1aab3;
}
table.hollow th {
	background-position: 50% 0;
}
table.hollow td {
	width: 50px;
	vertical-align: top;
	padding-top: 12px;
}
table.hollow h2 {
	font: 185%/40px Arial, Helvetica, sans-serif;
	margin: 0;
}
table.hollow .earlier {
	background-position: 100% 0;
	padding-right: 15px;
	text-align: right;
}
table.hollow .later {
	padding-left: 15px;
}

.image-page .hollow {
	margin-bottom: 15px;
}

/* Corners */
.corners-1,
.corners-2 {
	background: url(corners.png) no-repeat;
}
.corners-1 {
	padding-bottom: 10px;
	background-position: 0 100%;
	background-color: #FFF;
}

p.shift {
	margin-left: 5px;
}

/* Positive */
#positive {
	float: right;
	width: 325px;
}

#positive .gallery {
	height: 550px;
	overflow: hidden;
}
#refresh {
	margin: 0 2px;
	cursor: pointer;
	visibility: hidden;
}



/* Gallery */
.gallery {
	float: left;
	margin: -40px 0 0 -45px;
	padding: 0 0 40px;
	list-style: none;
	cursor: default;
}
.gallery li {
	display: inline;
	float: left;
	width: 140px; height: 140px;
	margin: 40px 0 0 45px;
	background: url(image-default.png) no-repeat #FFF;
	text-align: center;
}
.gallery .positive {
	background: url(image-positive.png) no-repeat #FFF;
}
.gallery li a {
	display: table-cell;
	width: 140px; height: 140px;
	vertical-align: middle;	
	font-size: 126px;
	line-height: 0;
}
.gallery img {
	vertical-align: middle;
	font-size: 13px;
}

#girls-list li {
	height: 170px;
	background: url(image-girls.png) no-repeat #FFF;
}
#girls-list li a {
	height: 170px;
	font-size: 153px;
} 

/* About */
#about {
	float: left;
	width: 470px;
}
#about blockquote {
	margin: 0 0 20px;
	color: #333;
}
#about blockquote .corners-2 {
	padding: 14px 20px 4px;
}

/* Upload */
#upload-page {
	width: 470px;
	margin: -160px auto 0;
}

#upload {
	position: relative;
}
#upload-button {
	position: relative; left: -2px;
	width: 178px;
	background: url(upload-hover.png) no-repeat;
}
#upload-button.hover img {
	visibility: hidden;
}

#upload h5 {
	margin: 0;
	padding: 12px 20px 8px;
	font-size: 140%;
	font-weight: normal;
}

#upload form {
	padding-bottom: 20px;
	zoom: 1;
}
#upload table {
	margin: 0 5px;
}
#upload th {
	width: 105px;
	text-align: left;
	line-height: 20px;
}
#upload tbody th {
	padding-top: 14px;
	vertical-align: top;
	font-weight: normal;
}
#upload thead th {
	height: 38px;
	background: #42a64b;
	color: #FFF;
}
#upload td {
	 padding-top: 14px;
	 vertical-align: top;
}
#upload thead td {
	padding-top: 8px;
	background: #42a64b;
}
#upload td p {
	margin: 4px 60px 0 0;
	color: #7f7f7f;
	font-size: 90%;
	line-height: 1.3;
}
#upload label {
	margin-left: 16px;
}

.upload-closed {
	margin: 16px 0 8px;
}
.upload-closed form {
	position: absolute; top: 3px; left: 0;
	width: 170px; height: 30px;
	overflow: hidden;
	opacity: 0; filter: alpha(opacity=0);
}
.upload-closed table {
	position: absolute; top: -10px; right: -5px;
}
.upload-closed h5,
.upload-closed tbody {
	display: none;
}
.upload-closed #f-photo {
	font-size: 45px;
}
.upload-open {
	margin: 20px 0;
}
.upload-open #upload-button {
	display: none;
}

#upload-error {
	margin: 10px 20px -5px 110px;
	font-weight: bold;
	color: #C00;
}

/* Projects */
#projects {
	margin: 20px 0 35px;
}
#projects .corners-2 {
	padding: 12px 20px 2px;
}
#projects p {
	margin: 3px 0 0;
}
#projects a {
	padding-left: 20px;
	padding-bottom: 2px;
}
.metromap {
	background: url(metromap.png) no-repeat 0 1px;
}
.lines {
	background: url(lines.png) no-repeat 0 1px;;
}

/* Archive */
#monthes td {
	width: 220px;
	cursor: default;
	padding-top: 11px;
}

#archive {
	margin: 0 0 40px;
	cursor: default;
}
#archive strong {
	margin-right: 10px;
	font-weight: normal;
}
#archive a.bar,
#archive a.bar-last,
#archive a.bar-first {
	background: url(monthes.png) no-repeat;
	text-decoration: none;
}
#monthes a.bar {
	background: url(monthes-white.png) no-repeat;
	padding: 1px 0;
	text-decoration: none;
}
a.bar span {
	display: -moz-inline-box;
	display: inline-block;
	vertical-align: middle;
	width: 8px; height: 15px;
	overflow: hidden;
	visibility: hidden;
}
#monthes a.bar span {
	width: 6px; height: 16px;
}
#archive a.bar-first {
	padding-right: 14px;
}
#archive a.bar-last {
	padding-left: 14px;
}


/* Menu */
#page-header ul {
	list-style: none;
	margin: 0 0 0 165px;
	padding: 36px 0 0;
}
#page-header li {
	float: left;
	margin-left: 20px;
	font-size: 150%;
	line-height: 32px;
	display: inline;
}
#page-header li,
#page-header li span,
#page-header li.current a {
	float: left;
	height: 32px;
	padding: 0 16px 0 18px;
}
#page-header li span,
#page-header li.current,
#page-header li.current a {
	background: url(menu-item.png) no-repeat 0 50%;
}
#page-header li.current {
	padding: 0;
	background-color: #FFF;
	cursor: default;
}
#page-header li span, 
#page-header li.current a {
	display: block;
	color: #333;
	background-position: 100% 50%;
	text-decoration: none;
}

/* View image */
.image-ad {
	height: 100px;
	border-bottom: 1px dashed #CCC;
	margin: 0 2px 25px;
}
#oyyad {
	width: 468px;
	margin: 0 auto;
	padding-top: 20px;
}

.view-image-top,
.view-image-bottom {
	background: url(view-bgr.png) no-repeat;
	position: relative;
}
.view-image-top {
	margin-bottom: -20px;
	text-align: center;
	overflow: hidden;
	line-height: 0;
}
* html .view-image-top {
	zoom: 1;
}
.view-image-bottom {
	height: 25px;
	margin-bottom: 40px;
	background-position: 0 100%;
}
.image-canvas {
	position: relative;
	overflow: hidden;
}
#overlay {
	position: absolute;
	left: 0; top: -200px;
	width: 900px; height: 900px;
}

#photo-info {
	float: left;
	width: 220px;
}
#photo-info h4 {
	font-size: 138%;
	font-weight: normal;
	margin: 0;
}
#photo-info h6 {
	font-weight: normal;
}

/* Voting */
#rate,
#rate div,
#voting td,
#voting th {
	background: url(voting.png) no-repeat;
}
#rate,
#voting {
	position: relative;
	left: -5px; top: -3px;
	height: 33px;
	margin-bottom: 10px;
}
#voting th,
#voting td {
	width: 60px;
	padding-bottom: 1px;
	color: #FFF;
}
#voting th {
	font-size: 18px;
	font-weight: normal;
}
#voting th span {
	margin-right: 2px;
}

#voting td {
	text-align: center;
}
#voting th.rate {
	background-position: 0 0;
	cursor: default;
}
#voting td.rate-neg {
	background-position: 0 -100px;
	padding-left: 5px;
}
#voting th.rate-neg {
	background-position: 100% -100px;
}
#voting td.rate-pos {
	background-position: 100% -50px;
	padding-right: 5px;
}
#voting th.rate-pos {
	background-position: 0 -50px;
}
#voting .rate-pos,
#voting .rate-neg {
	cursor: pointer;
}
#rate {
	width: 190px;
	background-position: 100% -200px;
}
#rate div {
	height: 33px;
	background-position: 0 -150px;
	font-size: 18px;
	font-weight: bold;
	line-height: 31px;
	text-align: center;
}
#rate div span {
	margin-right: 2px;
	font-weight: normal;
}
#rate .rate {
	color: #666;
}
#rate .rate-pos {
	color: #2a9a20;
}
#rate .rate-neg {
	color: #bc372b;
}

/* Code */
#image-code {
	position: relative;
	margin-top: 15px;
}
#image-code span {
	border-bottom: 1px dashed #06C;
	color: #06C;
	cursor: pointer;
}
#code-html,
#code-bbcode {
	position: absolute;
	left: 0; top: -5px; z-index: 5;
	width: 800px; height: 40px;
	padding: 3px 5px;
	background: #FFF;
	border: 2px solid #a1aab3;
	visibility: hidden;
}

/* Comments */
#new-comments {
	margin-bottom: 40px;
	font-size: 90%;
	line-height: 28px;
}
#new-comments a {
	margin-right: 10px;
	white-space: nowrap;
}



#comments {
	margin: 0 0 30px 230px;
}
#comments dt {
	float: right;
	width: 83px; height: 16px;
	margin-top: 3px;
	padding-left: 7px;
	line-height: 15px;
	font-size: 12px;
}
#comments .date {
	background: url(date.png) no-repeat;
	font-weight: bold;
}
#comments .today {
	background-position: 0 -30px;
}
#comments dt a {
	text-decoration: none;
}
#comments .time a {
	color: #cbd0d4;
}
#comments .today a {
	color: #a1aab3;
}
#comments .date a {
	color: #FFF;
}

#comments dd {
	margin: 0 150px 10px 0;
}
#comments .author {
	cursor: pointer;
}
#comments .author:hover {
	color: #06C;
	border-bottom: 1px dashed #06C;
}


/* Add comment */
#add-comment {
	position: relative;
	margin: 0 140px 30px 230px;
}
#add-comment h6 {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.2;
	font-weight: normal;
}
#add-comment h6.left {
	position: absolute;
	left: -230px; top: 0;
	width: 180px;
}

#add-comment textarea {
	width: 500px;
	margin-bottom: 10px;
}
#add-comment p {
	margin: 0 8px 0 12px;
	white-space: nowrap;
}
#add-comment span {
	color: #06C;
	border-bottom: 1px dashed #06C;
	cursor: pointer;
}

#author-value,
#anonymous {
	display: none;
}

/* Footer */
#page-footer p {
	margin: 0;
	color: #666;
}

.copyright {
	float: left;
}
.copyright img {
	margin-bottom: -6px;
}

.top100 {
	float: right;
	opacity: 0.4;
}
.adds {
	margin: 0 120px 0 240px;
	font-size: 90%;
}

/* Advertisements */
#nasbesit {
	position: relative;
	height: 48px;
	margin-bottom: -4px;
	padding-top: 16px;
	background: url(http://dev.nasbesit.ru/promo/header60.png) repeat-x 50% 0;
	color: #FFF;
	font: 20px/22px Arial, sans-serif;
	text-align: center;   
}
#nasbesit .overlay {
	position: absolute;
	left: 0; top: 0;
	width: 100%; height: 53px;
	text-decoration: none;
	outline: none;
}
