* {
	margin: 0; padding: 0;
}

html, body {
	height: 100%;
}

body {
	background: #ffffff url('img/background.png') repeat-x;


	font-family: Verdana, sans-serif;
	font-size: 12px;
	
	color: #2d2d2d;
}

a {
	color: #c1085b;
}

a img {
	border-width: 0;
}

h1, h2, h3, h4, h5 {
	margin: 15px 0;
}

h1 { font-size: 1.5em; }
h2 { font-size: 1.4em; }
h3 { font-size: 1.3em; }
h4 { font-size: 1.2em; }
h5 { font-size: 1.1em; }


/* common things */

.template {
	display: none;
}

.js-link {
	border-bottom-style: dotted;
	border-bottom-width: 1px;
	cursor: pointer;
	cursor: hand;
	
	color: #000000;
}

h1 .normal, h2 .normal, h3 .normal, h4 .normal, h5 .normal {
	font-weight: normal;
}

.menu-h a {
	margin-right: 15px;
	color: #000000;
}

.menu-h a.last { /* steel supporting that browser */
	margin-right: 0;
}

.menu-js {
	height: 22px;
/* 	margin-left: -12px; */
}

.menu-js .item {
	float: left;
	line-height: 22px;
}

.menu-js .item .l, .menu-js .item .r {
	float: left;
	width: 12px; height: 22px;
}

.menu-js .item .m {
	float: left;
	height: 22px;
}

.menu-js .item-selected .l { background: url('img/blue-left.png') no-repeat; }
.menu-js .item-selected .r { background: url('img/blue-right.png') no-repeat; }
.menu-js .item-selected .m { background: url('img/blue-middle.png') repeat-x; }

.menu-js .item-selected .m span {
	color: #ffffff;
	border-bottom-width: 0;
	cursor: auto;
}

/* layout */

#layout, #footer {
	width: 654px;
	margin: 0 auto;
}

#layout { /* see ie6 */
	min-height: 100%;
}

#placeholder-footer {
	height: 92px;
	margin-top: 75px;
}

#footer {
	height: 76px;
	margin-top: -92px;
	padding-top: 15px;
	border-top: solid 1px #bfbfbf;
}

a#logo {
	position: absolute;
	margin: 29px 0 0 1px;
}

a#logo, a#logo img {
	display: block;
	width: 249px; height: 78px;
}

#menu-auth {
	float: right;
	margin-top: 15px;
}

#menu-bottom {
	float: right;
}

/* main area */

#main {
	padding-top: 46px;
}

#main .margin {
	height: 1px;
}

#main .main {
 	margin: 8px 0 15px 0;
	padding: 0 20px;
}

#main .bg { background: #ffffff url('img/main-bg.png') bottom repeat-x; }
#main .top { background: url('img/main-top.png') no-repeat; }
#main .bottom { background: url('img/main-bottom.png') bottom no-repeat; }
#main .brd-left { background: url('img/main-brd-top.png') left 13px no-repeat; }
#main .brd-right { background: url('img/main-brd-top.png') right 13px no-repeat; }
#main .brd { background: url('img/main-brd.gif') 0 404px repeat-y; }

.auth #main .bottom { background: url('img/main-bottom-auth.png') bottom no-repeat; }

#footer .rules {
	color: #878787;
	line-height: 2em;
}

/* more site related things */

.categories {
	padding: 0;
	margin-left: -12px;
}

.categories td {
	width: 185px;
	height: 25px;
	line-height: 22px;
	padding-left: 12px;
}

.categories .selected {
	width: 197px;
	padding-left: 0;
}

.categories .selected .l, .categories .selected .r {
	float: left;
	width: 12px; height: 22px;
}

.categories .selected .r {
	margin-right: 5px;
}

.categories .selected .m {
	float: left;
	height: 22px;
	color: #ffffff;
}

.categories .selected .l { background: url('img/blue-left.png') no-repeat; }
.categories .selected .r { background: url('img/blue-right.png') no-repeat; }
.categories .selected .m { background: url('img/blue-middle.png') repeat-x; }

/* index */

.form-upload {
	padding-top: 10px;
	margin-bottom: 20px;
	border-top: dotted 1px #acacac;
}

.form-upload-first {
	border-top-width: 0;
}

.form-upload h5 {
	margin-bottom: 10px;
}

.form-upload h5.first {
	margin-top: 0;
}

.form-upload .menu-js {
	margin-top: 10px;
	margin-bottom: 10px;
}

.form-upload .local {
	width: 100%;
}

.form-upload .remote {
	display: none;
	width: 100%;
}

.form-upload .description {
	width: 100%; height: 50px;
}

.form-upload .size {
	width: 70px;
	vertical-align: middle;
	margin-left: 5px;
}

.controls {
	height: 60px;
	margin: -60px 20px 0 20px;
	border-top: dotted 1px #adadad;
}

.index .controls .more {
	float: right;
	margin-top: 15px;
}

.index .controls .more img {
	vertical-align: middle;
	margin-right: 5px;
}

.index .controls .submit {
	margin-top: 12px;
}

#placeholder-controls {
	height: 60px;
	margin-top: 20px;
}

.index .categories {
	width: 614px;
	margin: 10px 20px;
}

/* gallery */ 

.gallery .categories-container {
	border-bottom: dotted 1px #acacac;
	padding-bottom: 15px;
}

.gallery .sort {
	float: right;
	margin-top: 15px;
}

.gallery .sort select {
	vertical-align: middle;
}

.gallery .grid {
	width: 100%;
	table-layout: fixed;
	margin-bottom: 30px;
}

.gallery .grid .images td {
	vertical-align: bottom;
}

.gallery .grid .info {
	font-size: 0.9em;
	color: #787878;
	height: 25px;
}

.gallery .grid .images td {
	height: 150px;
}

.pager {
	text-align: center;
	line-height: 22px;
}

.pager a {
	display: inline-block;
	width: 37px; height: 22px;
	color: #000000;
}

.pager a.selected {
	background: url('img/pager-selected.png') no-repeat;
	color: #ffffff;
	text-decoration: none;
}

/* gallery admin */

.switch-admin {
	position: absolute;
	width: 95px; height: 28px;
	margin: 157px 0 0 650px;
	line-height: 25px;
	cursor: pointer;
	cursor: hand;
}

.switch-admin .js-link {
	color: #ffffff;
	margin-left: 10px;
}

#switch-admin-on {
	background: url('img/admin-on.png') no-repeat;
} .gallery-personal-admin #switch-admin-on {
	display: none;
}

#switch-admin-off {
	background: url('img/admin-off.png') no-repeat;
	display: none;
} .gallery-personal-admin #switch-admin-off {
	display: block;
}

.gallery-personal-admin #main .top { background: url('img/main-admin-top.png') no-repeat; }

.gallery-personal .categories-admin { display: none; }
.gallery-personal-admin .categories-admin { display: block; }
.gallery-personal-admin .categories-normal { display: none; }

.gallery-personal-admin .categories-container {
	margin: 0 -18px;
	padding: 0 18px 16px 18px;
	border-width: 0;
	background: #fffabc;
}

.categories-admin td {
 	width: 197px;
 	padding-left: 0;
}

.categories-admin input {
	width: 160px;
 	border-width: 0;
	background: #fffabc;
	font-size: 1em;
	font-family: Verdana, sans-serif;
}

.categories-admin td img {
	vertical-align: middle;
	margin: 0 3px 0 0;
}

.grid input {
	vertical-align: middle;
}

.gallery-personal .grid input {
	display: none;
} .gallery-personal-admin .grid input {
	display: inline-block;
}

.admin-categories {
	border-bottom: dotted 1px #acacac;
	padding-bottom: 15px;
	display: none;
} .gallery-personal-admin .admin-categories {
	display: block;
}

.admin-categories h5 {
	margin-bottom: 5px;
}

.admin-categories .category-name {
	margin-right: 5px;
}

.admin-photos {
	height: 33px;
	background: #ebebeb url('img/admin-photos-left.png') no-repeat;
	display: none;
	padding-left: 5px;
} .gallery-personal-admin .admin-photos {
	display: block;
}

.admin-photos .r {
	padding-top: 5px;
	height: 28px;
	background: url('img/admin-photos-right.png') right top no-repeat;
}

.admin-photos * {
	font-size: 1em;
	vertical-align: middle;
}

.admin-photos .submit {
	width: 35px;
}

.auth .forgot {
	margin-top: 15px;
	float: right;
	width: 200px;
	text-align: right;
}

.auth .controls {
	text-align: center;
}

.auth .submit {
	position: relative;
	left: 100px;
	margin-top: 10px;
	padding: 3px 5px;
	font-size: 1em;
}

.auth label {
	display: block;
	text-align: center;
	margin-top: 20px;
	margin-bottom: 20px;
}

.auth .text {
	margin-top: 10px;
	display: block;
	font-size: 2em;
	width: 100%;
}

.links h5 {
	margin-top: 30px;
}

.links .image {
	margin-top: 20px;
}

.links .info {
	font-size: 0.9em;
	margin: 5px 0 20px 0;
}

.links .info, .links .info * {
	color: #787878;
}

.links label {
	display: block;
	text-align: left;
	height: 35px;
}

.links .text {
	float: right;
	width: 450px;
	font-size: 1em;
}

.links .delete {
	color: #ff0000;
}

.links .controls {
	height: 90px;
	margin: -90px 20px 0 20px;
}

.links #placeholder-controls {
	height: 90px;
}

.links .controls .public, .links .controls .private {
	margin-top: 15px;
	line-height: 2em;
	width: 300px;
	float: left;
}

.links .controls select, .links .controls .submit {
	font-size: 1em;
}


.roundedcornr_box_894842 {
   background: #cccccc url(http://pixshock.net/images/roundedcornr_894842_grad.gif) repeat-x top left;
}
.roundedcornr_top_894842 div {
   background: url(http://pixshock.net/images/roundedcornr_894842_tl.gif) no-repeat top left;
}
.roundedcornr_top_894842 {
   background: transparent url(http://pixshock.net/images/roundedcornr_894842_tr.gif) no-repeat top right;
}
.roundedcornr_bottom_894842 div {
   background: url(http://pixshock.net/images/roundedcornr_894842_bl.gif) no-repeat bottom left;
}
.roundedcornr_bottom_894842 {
   background: transparent url(http://pixshock.net/images/roundedcornr_894842_br.gif) no-repeat bottom right;
}

.roundedcornr_top_894842 div, .roundedcornr_top_894842,
.roundedcornr_bottom_894842 div, .roundedcornr_bottom_894842 {
   width: 100%;
   height: 10px;
   font-size: 1px;
}
.roundedcornr_content_894842 { margin: 0 10px; }



.roundedcornr_box_793157 {
   background: #dddddd url(http://pixshock.net/images/roundedcornr_793157_grad.gif) repeat-x top left;
}
.roundedcornr_top_793157 div {
   background: url(http://pixshock.net/images/roundedcornr_793157_tl.gif) no-repeat top left;
}
.roundedcornr_top_793157 {
   background: transparent url(http://pixshock.net/images/roundedcornr_793157_tr.gif) no-repeat top right;
}
.roundedcornr_bottom_793157 div {
   background: url(http://pixshock.net/images/roundedcornr_793157_bl.gif) no-repeat bottom left;
}
.roundedcornr_bottom_793157 {
   background: transparent url(http://pixshock.net/images/roundedcornr_793157_br.gif) no-repeat bottom right;
}

.roundedcornr_top_793157 div, .roundedcornr_top_793157,
.roundedcornr_bottom_793157 div, .roundedcornr_bottom_793157 {
   width: 100%;
   height: 10px;
   font-size: 1px;
}
.roundedcornr_content_793157 { margin: 0 10px; }
