div.controls {
	margin: 0;
	float: left;
	width: 525px;
	height: 35px;
}

div.controls a {
	padding: 5px;
	font-weight: bold;
}

div.ss-controls {
	float: right;
	font-weight: bold;
	margin: 0 5px 0 0;
}

div.nav-controls {
	float: left;
}

div.slideshow-container {
	position: relative;
	clear: both;
	height: 402px;
	/* This should be set to be at least the height of the largest image in the slideshow */
}

div.loader {
	background-image: url('/images/loading.gif');
	background-repeat: no-repeat;
	background-position: center;
	float: left;
	width: 525px;
	height: 340px;
}

div.slideshow {
	float: left;
	width: 505px;
	height: 330px;
	overflow: hidden;
	position: relative;
	z-index: 10;
    margin: 10px;

}

div.slideshow span.image-wrapper {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}

div.slideshow a.advance-link {
	display: block;
	white-space: nowrap;
	height: 340px;
	line-height: 340px;
	/*width: 550px;
	height: 502px; /* This should be set to be at least the height of the largest image in the slideshow */
	/*line-height: 502px; /* This should be set to be at least the height of the largest image in the slideshow */
	text-align: center;
}

div.slideshow a.advance-link:hover,div.slideshow a.advance-link:active,div.slideshow a.advance-link:visited
	{
	text-decoration: none;
}

div.slideshow img {
	vertical-align: middle;
    border: 1px solid #fff;
}

div.download {
	float: right;
}

div.caption-container {
	position: relative;
	clear: left;
	height: 75px;
}

span.image-caption {
	display: block;
	position: absolute;
	width: 550px;
	top: 0;
	left: 0;
}

div.caption {
	padding: 12px;
}

div.image-title {
	font-weight: bold;
	font-size: 1.4em;
}

div.image-desc {
	line-height: 1.3em;
	padding-top: 12px;
}

div.navigation {
	/* The navigation style is set using jQuery so that the javascript specific styles won't be applied unless javascript is enabled. */
	overflow: hidden;
    /*margin: 5px 20px 0 0;*/
}

ul.thumbs {
	clear: both;
	margin: 0 0 0 10px;
	padding: 0;
	width: 530px;
	float: left;
}

ul.thumbs li {
	float: left;
	padding: 0;
	margin: 4px 11px 0 0;
	list-style: none;
    width: 90px;
    height: 66px;
    text-align: center;
    background: #E9E9E9;
	border: 1px solid #9EB895;
	overflow: hidden;
}

a.thumb {
	padding: 0;
	display: block;
	width: 90px;
	height: 66px;
	margin: 0;
    vertical-align: middle;
}

ul.thumbs li.selected a.thumb {
	background: #000;
}

ul.thumbs li.selected {
	border: 1px solid #E9E9E9;
	
}

a.thumb:focus {
	outline: none;
}

ul.thumbs img {
	border: none;
	display: block;
}

div.pagination {

}

div.navigation div.top {
	margin-bottom: 12px;
	height: 11px;
}

div.navigation div.bottom {
	width: 525px;
	text-align: center;
	float: left;
	padding: 13px 0 0;
	margin: 0 0 0 0;
}

div.pagination a,div.pagination span.current,div.pagination span.ellipsis
	{
	margin: 20px 2px 0 0;
	width: 17px;
	height: 17px;
	padding: 2px 7px;
	background: #E9E9E9;
	text-align: center;
	line-height: 17px;
}

div.pagination a.nextPageLink{

}

div.pagination a.prevPageLink{

}

div.pagination a:hover {
	background-color: #eee;
	text-decoration: none;
}

div.pagination span.current {
	background-color: #538c41;
	color: #fff;
}

div.pagination span.ellipsis {
	padding: 2px 5px;
}

div.navigation a.prev {
	background: url("/images/prev-arrow.jpg") no-repeat top left;
	height: 45px;
	width: 45px;
	display: block;
	float: left;
	display: inline;
    margin: 13px 0 0 0;
}

#prev-next-pages{
	width: 525px;
	margin-top: 13px;
	float: left;
	display: inline;
}

div.navigation a.next {
	background: url("/images/next-arrow.jpg") no-repeat top left;
	height: 45px;
	width: 45px;
	display: block;
	float: right;
	display: inline;
   margin: 13px 3px 0 0;
}
