 /**
  * GALLERY CSS
  */

body {
	text-align: center;
	margin: 0;
	border: 0;
}

div { border: <?=($debug)?"1":"0";?>px solid #f30; }

/**** container definitions ****/
	
#msc_container {
	position: relative;
	text-align: left;
	background: #fff;
	margin: 0 auto 20px auto;
	color: <?=$theme_general_text?>;
	width: <?=$gallery_width?>px;
	border: 1px solid <?=$theme_menu_bg?>;
}

#msc_container a {
	color: <?=$theme_menu_link?>;
	font-style: normal;
	font-weight: bold;
	font-size: 10px;
	line-height: 12px;
	font-family: Verdana, Geneva, Arial;
	text-decoration: none;
}

#msc_container a:active, a:visited {
	color: <?=$theme_menu_active?>;
	text-decoration: none;
}

#msc_container a:hover {
	color: <?=$theme_menu_hover?>;
	text-decoration: none;
}


/**** menu definitions ****/
	
#msc_menu {
	position: relative;
	color: <?=$theme_menu_text?>;
	padding: 4px 0 6px 40px;
	height: 14px;
	font-size: 10px;
	line-height: 12px;
	font-family: Verdana, Helvetica, Arial;
	text-decoration: none;
	background: <?=$theme_menu_bg?>;
}

#msc_menu a {
	color: <?=$theme_menu_link?>;
	font-style: normal;
	font-weight: bold;
	font-size: 10px;
	line-height: 12px;
	font-family: Verdana, Geneva, Arial;
	text-decoration: none;
}

#msc_menu a:active, a:visited {
	color: <?=$theme_menu_active?>;
	text-decoration: none;
}

#msc_menu a:hover {
	color: <?=$theme_menu_hover?>;
	text-decoration: none;
}

#msc_menu ul {
	position: relative;
	margin: 0;
	padding: 0;
}

#msc_menu ul li {
	position: relative;
	float: left;
	width: <?=$menu_item_width?>px;
	height: 14px;
	padding: 0;
	margin: 0;
	white-space: nowrap;
}

#msc_menu ul li em {
	font-style: normal;
	font-weight: bold;
	font-size: smaller;
}

/**** thumbs definitions ****/

#msc_thumbs {
	position: relative;
	padding: 4px 0 6px 22px;
	background: <?=$theme_thumbnail_bg?>;
}

#gallery_title {
	display: inline;
	padding: 2px 0 2px 2px;
	color: <?=$theme_thumbnail_text?>;
	font-size: 10px;
	font-family: Verdana, Geneva, Arial;
	font-weight: normal;
}

#gallery_nav {
	display: inline;
	color: <?=$theme_thumbnail_text?>;
	font-size: 10px;
	line-height: 12px;
	font-family: Verdana, Geneva, Arial;
	font-weight: normal;
}
	
#thumbs_div {
	overflow: hidden;
	height: <?=($thumbnail_max_size+17)?>px;
	color: <?=$theme_menu_text?>;
	font-size: 10px;
	line-height: 12px;
	font-family: Verdana, Geneva, Arial;
	font-weight: bold;
	padding: 4px 0 4px 0;
}
	
#thumbs_cont {
	height: <?=($thumbnail_max_size+17)?>px;
	color: <?=$theme_menu_text?>;
	font-size: 10px;
	font-family: Verdana, Geneva, Arial;
}

#thumbs_cont ul {
	position: absolute;
	height: 80px;
	margin: 0 20px 0 20px;
	padding: 0;
}

#thumbs_cont ul li {
	display: block;
	float: left;
	width: <?=($thumbnail_max_size+17)?>px;
	height: <?=($thumbnail_max_size+12)?>px;
	margin-right: 4px;
	text-align: center;
	background: <?=$theme_menu_link?>;
	border: 0px solid <?=$theme_menu_link?>;
}

#thumbs_cont ul li img {
	padding: 1px;
	border: 1px solid <?=$theme_menu_link?>;
	background: <?=$theme_image_bg?>;
}
	
#thumbs_cont ul li img.selected {
	border: 1px solid <?=$theme_menu_active?>;
}
	
#thumbs_cont ul li img:hover {
	border: 1px solid <?=$theme_menu_hover?>;
}

#thumbs_cont ul li .thumb_name {
	display: block;
	bottom: 0;
	text-align: center;
	margin: 0 1px 0 1px;
	padding: 2px 0 2px 0;
	color: <?=$theme_menu_link?>;
	font-weight: normal;
}
	
#thumbs_div #prev {
	float: left;
	width: 14px;
	height: 50px;
	margin: 0 4px 0 0;
	text-align: left;
}

#thumbs_div #next {
	float: right;
	width: 14px;
	height: 50px;
	margin: 0 34px 0 0;
	text-align: right;
}

a#a_prev, a#a_next {
	display: none;
}


/**** image definitions ****/

#msc_image {
	position: relative;
	padding-left: 30px;
	padding-top: 16px;
	background: <?=$theme_image_bg?>;
}

#image_div {
	margin-left: 14px;
	display: none;
	color: <?=$theme_menu_text?>;
	font-size: 10px;
	line-height: 12px;
	font-family: Verdana, Geneva, Arial;
	font-weight: bold;
	background: <?=$theme_image_bg?>;
}

#image_container {
	background: <?=$theme_image_bg?>;
}

#image_nav {
	display: <?=($show_image_navigation)?"block":"none"?>;
	height: 20px;
	width: <?=($gallery_width-94)?>px;
}

#image_nav div.button {
	padding: 2px;
}

#image_nav div.button:hover {
	background: #eee;
}

#image_nav div.left {
	float: left;
}

#image_nav div.right {
	float: right;
}

#image_title {
	padding: 0 0 6px 0;
	color: <?=$theme_image_text?>;
	font-size: 12px;
	line-height: 14px;
	font-family: Verdana, Geneva, Arial;
	font-weight: normal;
}

#image_title a small {
	color: <?=$theme_menu_link?>; 
}

#image_title a:hover small {
	color: <?=$theme_menu_hover?>; 
}

#image_container #img img.imagen {
	padding: 1px;
	background: <?=$theme_image_bg?>;
}

#image_container #img a img {
	border: 1px solid <?=$theme_menu_link?>;
}

#image_container #img a:hover img {
	border: 1px solid <?=$theme_menu_hover?>;
}

table#image_table,
table#image_table tr,
table#image_table td {
	margin: 0px;
	padding: 0px;
	border: 0px;
	background: <?=$theme_image_color?>;
}

table#image_table td.tm {
	background: url(themes/<?=$theme?>/tm.gif) repeat-x;
}

table#image_table td.bm {
	background: url(themes/<?=$theme?>/bm.gif) repeat-x;
}

table#image_table td.ml {
	background: url(themes/<?=$theme?>/ml.gif) repeat-y;
}

table#image_table td.mr {
	background: url(themes/<?=$theme?>/mr.gif) repeat-y;
}

/**** info definitions ****/
	
#gallery_info {
	width: <?=$gallery_width/2?>px;
	padding: 12px 0 20px 16px;
	font-size: 10px;
	line-height: 12px;
	font-family: Verdana, Geneva, Arial;
}

/**** footer ****/
#msc_foot {
	position: relative;
	padding: 4px 6px 6px 40px;
	text-align: left;
	color: <?=$theme_menu_text?>;
	font-family: Verdana, Geneva, Arial;
	font-weight: normal;
	font-size: 9px;
	line-height: 12px;
	background: <?=$theme_image_bg?>;
}

#msc_foot a {
	font-size: 9px;
}