html{height:100%;}
body{min-height:100%; margin: 0; padding: 0;}
.mask{position:fixed;top:0;left:0;width:100%;height:100%;opacity:.6;background:#000;z-index:998;filter: alpha(opacity=60);}
.modal{position:fixed;top:50%;left:50%;visibility:hidden;z-index:999;width:400px;background:#fff;border:4px solid #525252;}
.modal div.titlebar{height:30px;background:#E5E7E9;padding:0 10px;}
.modal div.titlebar a{display:block;float:right;}
.modal div.titlebar p{display:block;float:left;}
.modal div.titlebar a{width:16px;height:16px;margin-top:6px;text-indent:-999em;background:url(../img/close.gif);}
.modal div.titlebar p{line-height:30px;margin:0;padding:0;}
.modal div.content{overflow:auto;text-align:left;padding:20px;}
.modal * {zoom: 1;}

/* eventPage modal */

.eventPage {  width: 400px; }
.eventPage form { font-size: 12px; width: 350px !important; padding: 0 !important;}
.eventPage form input.wide { width: 350px; }

.eventPage label, .hGallery label {
	display: block;
	margin: 0 0 1em 0;
	font-weight: bold;
}
.eventPage table {
	margin: 0 0 1em 0;	
}
.eventPage td {
	font-weight: bold;
	color: #000;
	padding: 0 1em 0 0;
	vertical-align: middle;	
}
.eventPage td input {
	width: 100px;	
}
.eventPage input, .hGallery input, .hGallery textarea {
	display: block;
	margin: .5em 0 0 0;
	font-weight: normal;
}

/* gallery modal */

.hGallery {
	width: 500px;	
}
.hGallery table {
	width: 460px;
	margin: .5em 0 0 0;
	border-collapse: collapse;	
}
.hGallery input, .hGallery textarea { 
	width: 460px; 
}
.hGallery h1 {
	color: #000;
	text-transform: none;
}
.hGallery td {
	padding: 10px 10px 10px 0;
	border-bottom: 4px solid #fff;
	vertical-align: top;
	background: #E5E7E9;
}
.hGallery p {
	padding: 0;
	margin: 0;
}
.hGallery * {
	font: 12px/16px Arial, sans-serif;
}
.hGallery a {
	color: #4997ab;	
}
.hGallery label {
	font-weight: bold;
}
.hGallery span#newTitle {
	display: none;
}
.hGallery td.galleryDescription {
	width: 320px;
}
.hGallery a.galleryEdit {
	display: block;
	float: right;
}
.hGallery a.galleryTitle {
	display: block;
	float: left;
}
.hGallery td.galleryDescription p {
	clear: both;
}
.hGallery td img {
	margin-left: 10px;	
}
.hGallery a#addToGallery {
	display: block;
	float: right;	
}
.hGallery a#backToGalleries {
	display: block;
	float: left;	
}
.hGallery div#galleryImageList {
	clear: both;
	height: 285px;
	overflow-x: hidden;
	overflow-y: scroll;
}
.modal label.radio input, .modal .buttons input {
	margin: 0;
	width: auto;
	display: inline;
}
.hGallery td.galleryThumb div {
	width: 120px;
	height: 70px;
	overflow: hidden;
}

/* public gallery */

.gallery {
	width: 519px;
	height: 390px;
	border-color: #35365c;
}
.gallery a {
	display: block;
	position: absolute;
	z-index: 99999;
	width: 509px;
	margin: -30px 0 0 0;
	padding: 0 15px 0 0;
	background: url(/ui/img/close-gallery.gif) right no-repeat;
	text-align: right;
	color: #fff;
}
.gallery div.content {
	padding: 0;
	background: #000;
}