html {
	height: 100%;
	margin-bottom: 0.1em;
}

/* Main Layout */
body {
	background: #F5F5F3;
	margin: 0px;
	padding: 0px;
	text-align: center;	
	font: normal 85%/200% Arial, Helvetica, sans-serif;
	color: #5A5A4B;
}
#main {
	text-align: left;
	margin: 2px auto;
	width: 600px;
	background: #fff url(../../images/bg.gif)  no-repeat left top;
	padding: 0px 30px 0px 30px;
	border-top: 1px solid #E6E6DF;
	border-right: 1px solid #E6E6DF;
	border-bottom: 2px solid #E6E6DF;
	border-left: 1px solid #E6E6DF;
	height:100%;
	line-height:110%;
	color:#333333;
}
#gallerytitle {
	border-bottom: 1px solid #E6E6DF;
	padding: 0px;
	margin-bottom: 10px;
	margin-top: 50px; /* IE Only */
	font: bold 110% Arial, Helvetica, sans-serif;
}
img {
	border: 0;
}
form {
	margin:0px;
}

/* Link Styles */
a:link { text-decoration: none; color: #17A;}
a:active { text-decoration: underline; color: #17A; }
a:visited { text-decoration: none; color: #035; }
a:hover, a:focus { text-decoration: underline; color: #6BD;}

/* AJAX */
#albumDesc,#albumDescEditable {
	margin-top:0px;
}
#imageDesc,#imageDescEditable {
	margin-top: 0px;
}

/* Image Thumbnails */
.imagethumb a {
	display: block;
	padding: 10px;
	margin: 6px 7px 6px 6px;
	border: 1px solid #92BED3;
	background: #DDEAF0;
	line-height: 0px;
}
.imagethumb a:visited {
	border: 1px solid #D3E4ED;
	background: #F2F7F9;
}
.imagethumb a:hover {
	border: 1px solid #62A0BF;
	background: #F4F9FB;
}
.imagethumb {
	float: left;
}
.imagethumb img {
	width:85px;
	height:85px;
}

/* Image Real size */
#image {
	border:1px solid #ababab;
	padding: 0px;
	margin:auto;
	width:600px;
	overflow:hidden;
}
#image img {
	visibility:hidden;
	max-width:600px;
	awidth:expression((this.clientWidth>this.clientHeight) ? "600px":"auto");
	padding:0px;
	display:block;
	margin:auto;
}

#albums,#images {
	padding:0px;
	width:100%;
	list-style-type: none;
	clear:left;
	margin:auto;
}

/* Album Thumbnails */
.album {
	float:left;
	display:block;
	overflow:hidden;
	height:104px;
	padding: 0px;
	margin: 6px;
	width:282px;
	border: 1px solid #E7F0F5;
	background: #FCFDFE;
}
.album .albumtitle {
	display:block;
	font: bold 120% Arial, Helvetica, sans-serif;
}
.album .albumtitle a:visited, .album .albumtitle a:link {
	text-decoration:underline;
}
.album .thumb {
	padding:0px;
	margin:8px;
	float: left;
	border:1px solid #555555;
}
.album .albumdesc {
	line-height:110%;
	font-size:12px;
}

.album .albumdesc div {
	margin-right: 4px;
	clear:right;
	float: right;
	color: #555555;/*#8DB8CF;*/
	text-align:left;
}

/* Individual Image */
.imgnav {
	display:block;
	width: 100%;
	text-align: center;
	border: 0px solid #D5E6EE;
	font-size:34px;
	margin-top: 0px;
	line-height:0px;
}
.imgnav img {
	height:34px;
}

/* Forms */
label {
	cursor: pointer;
}
label:hover {
	color: #000;
}
input:focus, textarea:focus, label:focus {
	background: #fff;
	border: 1px solid green;/*#686868;*/
}
textarea {
	width: 100%;
}
textarea, input{
	background: #f4f4f4;
	border: 1px solid #b2b2b2;
	font-size:1.5em;
}
.submit input, .submit input:focus, .button {
	border: 3px double #999;
	border-left-color: #ccc;
	border-top-color: #ccc;
	color: #333;
	padding: 0.25em;
	font-size:12px;
	background: #fafafa;
}
.submit input:active, .button:active {
	background: #f4f4f4;
	border: 3px double #ccc;
	border-left-color: #999;
	border-top-color: #999;
}

/* Login */
#login {
	text-align:left;
	border: 0px solid #a2a2a2;
	margin-top: 4em;
	margin-left:auto;
	margin-right:auto;	
	padding: 2.5em;
	width: 22em;
}
#login #login_error {
	color: #c00;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
}
#login input {
	padding: 3px;
}
#login #log, #pwd {
	font-size: 1.7em;
	width: 95%;
}
#login #submit {
	font-size: 1.7em;
}

/* Comment */
#commentdiv {
	margin:8px;
	display:none;
	position:absolute;
	top:200px;
	background:#fff;
	width:542px;
	padding:20px;
	border:1px solid green
}
#commentdiv .inputbox {
	margin-bottom:20px;
}
#comments fieldset {
	border: 1px solid #ccc; 
	padding: 0px 5px 3px 10px; 
	margin-bottom: 3px;
}
#comments legend {
	font-size: 11px; 
	font-weight: bold; 
	color: #000; 
	margin:0px;
	padding: 4px; 
	border: 1px solid #ccc; 
	background: #F4F4F4;
}
#comments fieldset img {
	width:50px;
}
#comments fieldset a {
	margin-left:10px;
	float:right;
}
#comments fieldset .cmtdate {
	clear:both;
	font-size:9px;
	vertical-align:bottom;
	margin:0;
	padding:0;
}
#comments fieldset .cmt {
	display:block;
	border:0px solid red;
	font-size:14px;
	margin-bottom:5px;
}

/* Slide Show */
#imgshow {
	max-width:500px;
	max-height:500px;
}
#slideshowblock {
	overflow:hidden;
	text-align:center;
	width:504px;
	height:504px;
	margin:auto;
	border:1px solid #eeeeee;
}
#slideshowblock td {
	font-size:40px;
	text-align:center;
	vertical-align:middle;
}
#slideshowblock table {
	width:504px;
	height:504px;
	padding:2px;
	border-collapse:collapse;
}
#slideshowdiv {
	margin:auto;
	width:572px;
	height:66px;
	border:1px #aaaaaa solid;
	position:relative;/*Only IE*/
	overflow:hidden;
	margin-top:5px;
}
#imgtable {
	overflow:hidden;
	visibility:hidden;
	position:relative;
	left:500px;
	cursor:pointer;
	border:0px;
	height:100%
}
#imgtable div img {
	margin:auto;
	border:1px solid #444444;
	width:48px;
	height:48px
}
#imgtable div {
	text-align:center;
	float:left;
	font-size:9px;
	line-height:12px;
	vertical-align:top;
	padding-top:4px;
	width:52px;
}
.imgbutton {
	padding-top:3px;
	width:100%;
	margin:auto;
	text-align:center;
}
.imgbutton img {
	cursor:pointer;
	width:34px;
}
.imgbutton div {
	float:left;
	width:33.3%;
}

#cbmessage {
	display:block;
	background:#FFFFFF;
	font-size:40px;
	position:absolute;
	width:90%;
	margin:auto;
	padding:13px;
	text-align:center;
}

/* Menu  */
#menu, #menu ul{
	float :right;
	text-align: right;
	display:block;
	margin:0;
	padding: 2px 0 0 0;
	list-style-type: none;
}
#menu a {
	display: block;
}
#menu li {
	margin: 0 0 0 5px;
	float: left;
}
#menu li a.submenu {
	min-width:30px;
	padding-right:12px;
	background: #fff url(../../images/arrow-down0.gif)  no-repeat right;
}
#menu li a.submenu:hover {
	padding-right:12px;
	background: #fff url(../../images/arrow-down0.gif)  no-repeat right;
} 
#menu li ul {
	width:90px;
	padding:1px;
	border:1px solid #aaaaaa;
	position: absolute;
	background: #fff;
	left: -999em; 
}
#menu li ul li{
	width:100%;
	margin:0px;
}
#menu li ul li a{
	text-decoration:none;
	margin:1px;
	line-height:130%;
	padding:2px 0 2px 6px;
	text-align:left;
	width:80px;
	border:1px solid #fff;
	background:transparent;
}
#menu li ul li a.selected,#menu li ul li a:hover {
	text-decoration:none;
	border:1px solid #aaaaaa;
	background:#eeeeee;
}
#menu li:hover ul, #menu li.sfhover ul {
	left: auto;
}

/* Page Navigation */
ul.pagelist {
	clear: both;
	padding: 0;
	margin: 0;
	list-style-type: none;
}
ul.pagelist li {
	float:left;/*good for the height of li*/
	font-size:130%;
	padding:3px 3px 4px 3px;
	display: inline;
}
ul.pagelist li.disabled {
	color: #ddd;
}
ul.pagelist li.current {
	padding:2px 2px 3px 2px;
	border:1px solid green;
	color: green;
}
/* Compliace */
.compliancelogos {
	border: 0;
	font-size: 9px;
	display:block;
	clear:both;
	text-align:right;
	padding:5px 0px 3px 0px;
}
.compliancelogos a {
	margin-left:3px;
	padding: 1px 5px 0px 5px;
	border:1px solid #D3E4ED;
}

