.gallery { background: right top no-repeat; padding-left: 10px; padding-right: 10px; }
.gallery ul { margin:0; padding:0; background:#f3f3f3 left top ; border: 4px solid color:#CCCCFF; 
              list-style:none; position:relative; height:36px; }

.gallery ul li { display:block; width:auto; float:left; color:#003366; height:36px; }
.gallery ul li a { display:block; width:auto; color:#003366; text-decoration:none; 
	padding:8px 1.3em 8px 2em; font:1.1em Verdana, sans-serif; background: right 0 no-repeat; }
.gallery ul li a:hover { text-decoration:underline; background: right -36px no-repeat; }
.gallery ul li.first { background: left top no-repeat; }

.gallery ul li ul { display:none; position:absolute; top:34px; 
	background:#dedede  left -34px repeat-x; height:auto; 
	border-bottom:6px solid #9ad815; border-left:1px solid #9ad815; 
	border-right:1px solid #9ad815; width:95%; left:2%; padding:8px 5px 15px 5px; }
.gallery ul li:hover ul,
.gallery ul li.over ul { display:block; }
.gallery ul li ul li { display:inline; float:none; background-image:none; height:auto; }
.gallery ul li ul li a { background-image:none; margin:8px; padding:2px; position:relative; 
  border:1px solid #9ad815; float:left; display:block; width:75px; height:50px; background-color:#f3f3f3; }
.gallery ul li ul li a:hover { background-image:none; z-index:2; }
.gallery ul li ul li a img { position:absolute; top:2px; width:75px; height:50px; color:#000; border:0; margin:0; padding:0; }
.gallery ul li a:hover img,
.gallery ul li a:active img,
.gallery ul li a:focus img { width:100px; height:75px; left:-11px; top:-10px; z-index:1; border:1px solid #000; }
.gallery ul li.overview { display:block; clear:both; padding:5px 10px 0 10px; color:#000; }


#gallery1 ul { z-index:2; }
#gallery2 ul { z-index:1; }
