#gallery_header{margin-bottom:10px; height: 37px; padding-top: 5px;}
#gallery_header img {margin:0; padding: 0;}
#gallery_header img.callout { padding: 7px 0 0 13px; float: left;}
#gallery_header .calloutbox { float: right;  padding: 5px; background-color: #997f49; max-width: 565px; width:expression(document.body.clientWidth > 550? "550px": "auto" );} 
#gallery_header .calloutbox .innerbox{ border: #7b4f36 solid 1px; height: 25px; background-color: #997f49;}
#gallery_header .calloutbox .innerbox p { margin:0; padding: 3px 12px 0 12px; color: #ffffff; font-family: Times, "Times New Roman", serif; font-size: 13px; font-style:italic;} 
#gallery_header .calloutbox .innerbox p span { color: #65001e; font-family: Arial, sans-serif; color: #65001e; font-size:10px; font-style: normal; font-weight: bold;}
#gallery_header .calloutbox .innerbox p span a { color: #65001e; text-decoration:none;}
#gallery_header .calloutbox .innerbox p span a:hover { color: #65001e; text-decoration:underline;}
#gallery { padding: 1px 0px 27px 11px; margin:0;} /* padding: 13px 0px 27px 11px; */
#gallery #thumbnails { float: left;}
#ctl00_ContentPlaceHolder1_thumbnails { float: left;}
#ctl00_ContentPlaceHolder1_ListView1_Table1 { float: left;}
#gallery .thumbrow{ float: left; padding-right: 12px; margin: 0 0 5px 0; clear:both;}
#gallery .thumbrow .thumb { width: 99px; height: 72px; border: #beba9c solid 1px; margin-right:4px; float:left;}
#gallery .thumbrow .thumb img { border: #997f49 solid 1px; text-align:center; margin: 3px 0 0 3px;}
#gallery .thumbrow .thumb .thumbImage { border: #997f49 solid 1px; text-align:center; margin: 3px 0 0 3px;}
#gallery ul.page_numbers { text-align:left; font-family: Times,"Times New Roman", serif; font-size:13px;  padding: 16px 0 0 0; margin:0; height: 31px; width: 150px; font-style: normal; color: #303030;}
#gallery ul.page_numbers li{ display: inline; list-style:none; margin:0; padding:0 4px 0 0;} 
#gallery ul.page_numbers li a { text-decoration:none; color: #303030; font-style: italic;}
#gallery ul.page_numbers li a:hover { text-decoration:none; color: #303030; font-weight: bold;}
#gallery .page_numbers a#current, #gallery .page_numbers a#current:hover  {font-style:normal; font-weight: bold; color: #65001e;}
#gallery #main_img { float: left; margin:0; padding:0; width: 635px;}

#gallery #main_img img { margin:0; padding:0; display: block; }
#gallery #main_img .caption { width: 569px; float: left; text-align:center; font-family: Times,"Times New Roman", serif; font-size:13px; font-style:italic; padding: 21px 0 0 2px; margin:0; color: #000000; }
#gallery #main_img .buttons { float: right; padding-top: 16px;} 
#gallery #main_img .buttons img {float: left; margin: 0 0 0 9px; border: none;}
#gallery #side_img { float: right; margin:0; padding-left:0; width: 310px;}
.clear {clear:both;}
