div.content {
	display: none;
	float:left;
}

div.content a, div.nav a {
	text-decoration: none;
}
div.content a:hover, div.content a:active {
	text-decoration: underline;
}

div.nav a.pageLink {
	height: 32px;
	
}

div.controls {
	 position:absolute; position:relative; width:100%; z-index:999;
}
.slideshow-container .slideshow{width:685px; height:548px; position:relative; overflow:hidden;}
div.controls a {
	position:absolute;
	top:140px;
}
div.ss-controls {
	/*float: left;*/
	position:absolute;
	width:100%;
}
div.nav-controls {
	/*float: right;*/
	width:100%;
	position:absolute;
}

div.slideshow-container,
div.loader,
div.slideshow a.advance-link {
	/*width: 472px;  This should be set to be at least the width of the largest image in the slideshow with padding */
}

div.loader {
	/* height: 311px; This should be set to be at least the height of the largest image in the slideshow with padding */	
}

div.slideshow-container {
	position: relative;
	clear: both;
	float: left;
	height:548px;
	width:685px;
	overflow:hidden;
}

div.loader {
	position: absolute;
	top: 0;
	left: 0;
	background-repeat: no-repeat;
	background-position: center;
}
div.slideshow span.image-wrapper {
	display:table-cell;
	/*line-height:311px;  This should be set to be at least the height of the largest image in the slideshow with padding */
	text-align: center;
	vertical-align:middle;
	width:678px;
	height:450px;
        position: absolute;
        left:0;
		border:solid 3px #fff;
        top:0;
}
div.slideshow span.image-wrapper *, ul.thumbs li a * {
    vertical-align: middle;
}
div.slideshow a.advance-link {
	display:table-cell;
	/*line-height:311px;  This should be set to be at least the height of the largest image in the slideshow with padding */
	text-align: center;
	vertical-align:middle;
	width:678px;
	height:450px;
}
div.slideshow img{ vertical-align:middle;}

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

div.slideshow img {
max-width:678px; max-height: 450px;
}
div.caption-container {
	position: relative; width:100%; z-index:9999;
}
span.image-caption {
	display: block;
	position: absolute;
	left:27px;
	bottom:110px;
	z-index:999;
	color:#fff;
	font-weight:bold;
	font-size:16px;	
}
div.caption-container, span.image-caption { bottom: 95px;    left: 3px;    /*padding: 14px; */   width: 99%;}
div.caption{   line-height: 20px;  margin: 5px 10px 10px;}



div.caption {
	
}

div.image-title {
	font-weight: bold;
	font-size: 1.4em;
}
div.image-desc {
	line-height: 1.3em;
	padding-top: 12px;
}
div.download a{
	
	display:block; text-indent:-9999px;
}
div.download a:hover{ background-position:-767px -689px;}
div.photo-index {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 0 12px;
}
div.nav-container {
	 background: none repeat scroll 0 0 #FFFFFF;
    bottom: 0;
    height: 81px;
    left:8px;
    margin: 0;
    position: absolute;
    width: 667px;
}
div.nav {
	position: relative;
	height:65px;
	width:634px;
	padding:8px 22px;
}
div.nav a.pageLink {
	display: block;
	position:absolute;
	width:22px;
	height:30px;
	z-index:9999;
}

ul.thumbs {
	position: relative;
	margin: 0;
	padding: 0;
	height:71px; overflow:hidden;
}
ul.thumbs li {
	padding: 0; 
	width:95px; height:63px;
	border:1px #585858 solid;
	margin:2px 3px 0 3px;
	list-style: none;
	text-align:center;
	vertical-align:middle; 
	float:left;
	
}
ul.thumbs li.selected{ background:url(../images/PhotoGalleryThumbbg.jpg) no-repeat; width:95px; height:65px; padding:4px; border:none; margin-top:-1px}
ul.thumbs li a{width:95px; height:63px;text-align:center;
	vertical-align:middle; display:table-cell;}
ul.thumbs li img{max-width:95px; max-height:63px;}
a.thumb {
	display: block;
}
a.thumb:focus {
	outline: none;
}
ul.thumbs img {
	border: none;
	/*display: block;*/
}
/*div.pagination {
	clear: both;
	position: relative;
	left: -50%;
}
div.pagination a, div.pagination span.current, div.pagination span.ellipsis {
	position: relative;
	display: block;
	float: left;
	margin-right: 2px;
	padding: 4px 7px 2px 7px;
	border: 1px solid #ccc;
}
div.pagination a:hover {
	text-decoration: none;
}
div.pagination span.current {
	font-weight: bold;
}
div.pagination span.ellipsis {
	border: none;
	padding: 5px 0 3px 2px;
}*/

div.gallery-gutter {
	clear: both;
	padding-bottom: 20px;
}

div.nav a.pageLink.prev{ background:url(../images/2ndHome_images.png) -81px -537px no-repeat; top:25px; left:-10px;}
div.nav a.pageLink.prev:hover{ background-position:-127px -537px;}
div.nav a.pageLink.next{ background:url(../images/2ndHome_images.png) -104px -537px no-repeat; top:25px; right:0;}
div.nav a.pageLink.next:hover{ background-position: -150px -537px;}


.overflow-width{ width:634px; height:71px; overflow:hidden; margin:auto;}