#gallery {
    position: relative;
    margin: 40px auto;
    padding: 10px;
    background: #AAA;
}

#images {
    border: 2px solid #9ac1c9;
    height: 225px;
    background: #faf7ea; /* #eef5f6; */
    margin-bottom: 20px;
}

#image {
    position: relative;
    width: 587px;
    height: 325px;
    padding: 5px;
    /*border: 2px solid #666; */
    background: #faf7ea; /* url(../i/loading.gif) center center no-repeat; */
}

#image img {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 587px;
    height: 325px;
}

#thumbwrapper {
    margin-top: 10px;
    padding: 5px 0;
    width: 595px;
    height: 100px;
    background: #faf7ea;
    border-top: 1px dashed #582e0f;
}

#thumbarea {
    position: relative;
    overflow: hidden;
    height: 100px;
    width: 595px;
}

#thumbs {
    position: absolute;
    list-style: none;
    margin-left: 5px;
    height: 100px;
    width: 10000px;
    border-right: 5px solid #FFF;
}

#thumbarea ul {
	list-style: none;
	list-style-type: none;
}

#thumbarea li {
    float: left;
    margin-right: 5px;
    cursor: pointer;
    list-style: none ! important;
	list-style-type: none;
}

#thumbarea li img {
	width: 126px;
	height: 70px;
}

#thumbarea li img.selected {
	border-bottom: 2px solid #cb7228;
}

.imgnav {
    position: absolute;
    height: 375px;
    width: 20% ;
    z-index: 100;
    outline: none;
    cursor: pointer;
}

.gallery_tooltip {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200;
    border: solid 1px;
    background-color: #ddd;
}

#previmg {
    left: 0;
    background: url(../i/prev.gif) left center no-repeat;
    border-left: 5px solid #faf7ea;
}

#previmg:hover {
    opacity: 1;
    filter: alpha(opacity = 100);
}

#nextimg {
    right: 0;
    background: url(../i/next.gif) right center no-repeat;
    border-right: 5px solid #faf7ea;
}

#nextimg:hover {
    opacity: 1;
    filter: alpha(opacity = 100);
}

.tooltip {
    position: absolute;
    z-index: 999;
    left: -9999px;
    background-color: #887;
    padding: 3px;
    border: 1px solid #fff;
    width: 250px;
}

.tooltip p {
    margin: 0;
    padding: 0;
    color: #fff;
    background-color: #887; /*#faf7ea; */
    padding: 2px 7px;
}