/*
	Note: 
	Unless you want to mess the whole gallery up, leave the sizes as they are!
	I am looking into ways of automating the sizes and positions to ensure that it can be modified, but until then...
*/

#autoGallery {
	background: #EEE;
	width: 660px;
	margin: 20px auto;
	text-align: center;
}

#autoGallery div {
	overflow: hidden;
	width: 640px;
	height: 480px;
	border: 10px solid #CCC;
	position: relative;
}
#autoGallery div img { width: 640px; height: 480px; }

#autoGallery div span {
	display: block;
	background: #000;
	height: 40px;
	width: 640px;
	padding: 0px 14px;
	color: #FFF;
	opacity: 0.80;
	filter: alpha(opacity=80);
	text-transform: uppercase;
	position: absolute;
	left: 0px;
	font: 14px "Verdana", sans-serif;
	bottom: 0px;
	line-height: 40px;
}

#autoGallery div a.main {
	display: block;
}

#autoGallery div a.main img {
	display: block;
	border: none;
}

#autoGallery a.prev,
#autoGallery a.next {
	display: inline-block;
	width: 110px;
	height: 30px;
	text-align: center;
	background: #999;
	color: #FFF;
	font: 12px "Verdana", sans-serif;
	text-decoration: none;
	outline: none;
	line-height: 30px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;	
	margin: 0px 0px 10px 10px;
}

#autoGallery a.prev:hover,
#autoGallery a.next:hover {
	background: #AAA;
	color: #333;
}

#autoGallery a.disabled {
	background: #DDD;
}

#autoGallery a.disabled:hover {
	background: #DDD;
	color: #FFF;
}

#autoGallery ul {
	list-style: none;
	text-align: center;
	padding: 0px;
	line-height: 0px;
	height: 260px;
	overflow: hidden;
	position: relative;
	clear: both;
	margin: 10px 0px 0px 0px;
}

#autoGallery ul li {
	display: inline-block;
	*display: inline;
	margin: 4px;
	width: 114px;
	height: 114px;
	overflow: hidden;
	zoom: 1;
	position: relative;
	border: 4px solid #CCC;
}

#autoGallery ul li.end {
	visibility: hidden;
}

#autoGallery ul li.active {
	border: 4px solid #AAA;
}

#autoGallery ul li a {
	display: block;
}

#autoGallery ul li.active a img {
	opacity: 1 !important;
	filter: alpha(opacity=100) !important;
}

#autoGallery ul li a img {
	border: none;
	width: 200px;
	display: block;
	position: absolute;
	left: -43px;
	top: -18px;
	opacity: 0.60;
	filter: alpha(opacity=60);	
}
