.gallery_box .content {
	padding: 15px 0 13px;
	overflow: hidden;
	font-size: 14px;
	position: relative;
}

.gallery_box .next img {
	max-height: 387px;
	text-align: left;
}

.gallery_box .content .head {
	height: 45px;
}

.gallery_box .content .foto_content {
	position: relative;
	width: 100%;
	height: 387px;
}

.gallery_box .content .foto_content ul {
	width: 99999px;
	list-style-type: none;
}

.gallery_box .content .foto_content ul li {
	float: left;
	margin: 0 5px 0 0;
}

.gallery_box .content .foto_content ul li img {
	height: 387px;
	width: auto;
	/*max-width: 500px;*/
}

.gallery_box .content .foto_content:hover .arrow {
	display: block;
}

.gallery_box .content .head form {
	float: left;
	margin: 0 10px 0 15px;
}

.gallery_box .content .head form label {
	margin: 0 10px 0 0;
}

.gallery_box .content .head form select {
	padding: 5px;
	width: 160px;
	font-size: 14px;
}

.gallery_box .content .head .count {
	position: relative;
	top: 5px;
	float:right;
	margin:0 20px 0 0;
}

.gallery_box .foto_content .arrow {
	width: 47px;
	height: 32px;
	position: absolute;
	top: 172px;
	display: none;
	z-index: 20;
	cursor: pointer;
}

.gallery_box .foto_content .arrow.left {
	left: 15px;
	background: url(/design/colorbox/controls.png) no-repeat left -19px;
}

.gallery_box .foto_content .arrow.left:hover {
	background: url(/design/colorbox/controls.png) no-repeat left -75px;
}

.gallery_box .foto_content .arrow.right {
	right: 15px;
	background: url(/design/colorbox/controls.png) no-repeat right -19px;
}

.gallery_box .foto_content .arrow.right:hover {
	background: url(/design/colorbox/controls.png) no-repeat right -75px;
}

.gallery_box .content ul.gallery_list {
	height: 65px;
	margin: 10px 0 0 0;
	width: 9999px;
	padding: 0 0 2px 15px;
	list-style-type: none;
}

.gallery_box .content ul.gallery_list li {
	float: left;
	height: 65px;
	margin: 0 5px 0 0;
	cursor: pointer;
	position: relative;
}

.gallery_box li img {
	vertical-align: bottom;
}

.foto_content ul li {
	position: relative;
	cursor: pointer;
}/*
.loader {
	position: absolute;
	height: 100%;
	width: 100%;
	background: url(/design/img/gallery/gray_pixel.png);
	top: 0;
	left: 0;
}*/
.gallery_box .content ul li span.bg {
	position: absolute;
	height: 100%;
	width: 100%;
	background: url(/design/img/gallery/pixel_active.png);
	top: 0;
	left: 0;
	display: none;
}
.gallery_box ul li span.bg_hover {
	position: absolute;
	height: 100%;
	width: 100%;
	background: url(/design/img/gallery/pixel_hover.png);
	top: 0;
	left: 0;
	display: none;
}

.gallery_box .content .foto_content ul li .bg,
.gallery_box .content .foto_content ul li .bg_hover,
.gallery_box .content ul.gallery_list li:hover  .bg_hover,
.gallery_box .content ul.gallery_list li.active .bg
{
	display: block;
}

.gallery_box .content .foto_content ul li.current .bg,
.gallery_box .content .foto_content ul li.current .bg_hover
{
	display: none;
}

.gallery_box .content ul.gallery_list li img {
	height: 65px;
	float: left;
}

.gallery_box .gal_border {
	height: 100%;
	width: 15px;
	position: absolute;
	top: 0;
}

.gallery_box .gal_border.left {
	left: 0;
}

.gallery_box .gal_border.right {
	right: 0;
}





