
* {
 margin: 0;
 padding: 0;
}

html, body {
 height:100%;
}

body { 
 text-align:center; /* horizontal centering for IE Win quirks */
 background-color: #FFF; 
 font: 100.01%/1.4; 
 font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; 
}

#distance { 
 width:1px;
 height: 50%;
 background-color:#FFF;
 margin-bottom:-274px; /* half of wrappage's height */
 float:left;
}

#wrappage, #wrappagewide { 
 margin: 0 auto;
 position: relative; /* puts container in front of distance */
 clear: left;
 background: #FFF url(images/page-bg.gif) no-repeat; 
 text-align: left; 
 width: 868px; 
 height: 548px;
 font-size: .8em;
}
#wrappagewide { 
 background: #FFF url(images/page-bg-wide.gif) no-repeat; 
}

#logo {
 position: absolute;
 display: inline;
 top: 20px; 
 left: 10px;
}
#teaserprint {
 visibility: hidden;
 display: none;
}

#mainmenu {
 position: absolute;
 top: 196px;
 left: 3px;
 width: 200px;
 background: url(images/menu-bg.gif);
 
}
#mainmenu img {
 margin-bottom: 9px;
}
#mainmenuoverlay {
 position: absolute;
 top: 196px;
 left: 162px;
 width: 54px;
 height: 348px;
 background: url(images/menu-overlay.gif);
}

#secondmenu {
 position: absolute;
 top: 118px;
 left: 285px;
 width: 400px;
 height: 25px;
}
#contentnormal, #contentwide {
 position: absolute;
 left: 285px;
 top: 150px;
 width: 405px;
 height: 360px;
 overflow: auto; 
}

#contentwide {
 width: 545px;
}
#content {
 position: relative;
}

p {
 line-height: 1.3em;
 padding: 4 4px 4px 0;
}

h1 {
 font-size: 1.3em;
 padding: 4px 4px 4px 0;
}
h2 {
 font-size: 1.1em;
 padding: 4px 4px 4px 0;
 clear: left;
}
h3 {
 font-size: 1.05em;
 padding: 4px 4px 4px 0;
 margin-top: 4px;
 border-top: 1px solid red;
 width: 90%;
}

a {
 color: #000000;
}
a:hover {
 color: #FF0000;
}

ul, ol {
 margin-left: 20px;
}

#content .tx-bahagphotogallery-pi1 {
   width: 300px;
   height: 320px;
   margin-left: 0px;
}

#content .tx-bahagphotogallery-pi1 img {
 border: 1px solid #000000; 
}

#content .tx-bahagphotogallery-pi1 a, #content .tx-bahagphotogallery-pi1 a:visited {
 display: block;
 float: left;
 width: 53px;
 height: 53px;
 border: 1px solid #333;
 text-align:center; 
 text-decoration: none;
 margin: 4px;
 margin-right: 8px;
 color: #CCC;
}
#content .tx-bahagphotogallery-pi1 a.horiz {
}
#content .tx-bahagphotogallery-pi1 a.horiz img {
 margin-top: 8px; 
}
#content .tx-bahagphotogallery-pi1 a.vert img {
 margin-top: 3px; 
}

#content .tx-bahagphotogallery-pi1 a span {
 display: none;
}
#content .tx-bahagphotogallery-pi1 a span img {
 margin: 0;
 border: 1px solid #8f0100;
}

#content .tx-bahagphotogallery-pi1 a:hover {
 border: 1px solid #8f0100; 
}

#content .tx-bahagphotogallery-pi1 a:hover span  {
 position: absolute;
 display: block;
 z-index: 2;
 left: 280px;
 top: 40px;
 width: 240px;
 text-align: center;
}
#content .tx-bahagphotogallery-pi1 a.horiz:hover span  {
 top: 45px;
}
#content .tx-bahagphotogallery-pi1 a.vert:hover span  {
}

#content .tx-bahagphotogallery-pi1 a:focus span, .tx-bahagphotogallery-pi1 a:active span  {
 z-index: 1;
}


#content .tx-bahagphotogallery-pi1 .gallerymenu {
 display: block;
 float: left;
 width: 60px;
 height: 60px;
 border: 0;
 text-decoration: none;
 margin: 4px;
 color: #CCC;
 text-align:center; 
}
#content .tx-bahagphotogallery-pi1 .gallerymenu a#top {
}
#content .tx-bahagphotogallery-pi1 .gallerymenu a#top {
 width: 20px;
 height: 15px;
 margin-top: 10px;
 margin-left: 18px;
 background: url(images/top.gif) no-repeat;
}
#content .tx-bahagphotogallery-pi1 .gallerymenu a#top:hover {
 background: url(images/top-hi.gif) no-repeat;
}
#content .tx-bahagphotogallery-pi1 .gallerymenu a#left {
 width: 20px;
 height: 15px;
 margin-top: 30px;
 margin-left: 0px;
 display: inline;
 background: url(images/left.gif) no-repeat;
}
#content .tx-bahagphotogallery-pi1 .gallerymenu a#left:hover {
 background: url(images/left-hi.gif) no-repeat;
}
#content .tx-bahagphotogallery-pi1 .gallerymenu a#right {
 width: 20px;
 height: 15px;
 margin-top: 30px;
 margin-left: 0px;
/* left: 30px; */
 background: url(images/right.gif) no-repeat;
}
#content .tx-bahagphotogallery-pi1 .gallerymenu a#right:hover {
 background: url(images/right-hi.gif) no-repeat;
}

.tx-ajcsimplegallery-pi1 {
 height: 320px; overflow: auto; 
}
.tx-ajcsimplegallery-pi1 ul {
 list-style-type: none;
 display: table-row;
 white-space: nowrap; 
 margin: 0; padding: 0;
}
.tx-ajcsimplegallery-pi1 ul li {
 display:table-cell; /* vertical-align:top; */
 margin: 0; padding: 0;
}
.tx-ajcsimplegallery-pi1 ul li img {border:1px solid #555; margin: 0 10px 0 10px;}

.tx-ajcsimplegallery-pi1 ul li {display:inline; zoom:1; height:310px;}
* html .tx-ajcsimplegallery-pi1 {height:315px; he\ight:315px;}
