.gallerycontainer{
position: relative;
/*Add a height attribute and set to largest image's height to prevent overlaying*/
}

.thumbnail img{
border: 0px solid white;
margin: 0px 0px 0px 0px;
}

.thumbnail:hover{
background-color: transparent;
}

.thumbnail:hover img{
border: 0px solid blue;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: transparent;
padding: 5px;
left: -1000px;
border: 0px
visibility: hidden;
color: black;
text-decoration: none;
}

.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}

.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: 40px;
left: 0px; /*position where enlarged image should offset horizontally */
z-index: 50;
}

a.thumbnail{font-family: Arial,verdana;Color: black;font-size:12px;font-weight:bold;text-decoration:none;}
a.thumbnail:visited {font-family: Arial,verdana;Color: black;font-size:12px;font-weight:bold;text-decoration:none;}
a.thumbnail:hover {font-family: Arial,verdana;Color: black;font-size:12px;font-weight:bold;text-decoration:none;}

.case img{
border: 0px solid white;
margin: 0px 0px 0px 0px;
}

.case:hover{
background-color: transparent;
}

.case:hover img{
border: 0px solid blue;
}

.case span{ /*CSS for enlarged image*/
position: absolute;
background-color: transparent;
padding: 5px;
left: -1000px;
border: 0px
visibility: hidden;
color: black;
text-decoration: none;
}

.case span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}

.case:hover span{ /*CSS for enlarged image*/
visibility: visible;
position:relative
top: 20px;
left: 0px; /*position where enlarged image should offset horizontally */
z-index: 50;
}

a.case{font-family: arial,verdana; font-size:12px; color:black;text-decoration:none;}
a.case:visited {font-family: arial,verdana; font-size:12px; color:black;text-decoration:none;}
a.case:hover {font-family: arial,verdana; font-size:12px; color:black;text-decoration:none;}

.case img{
border: 0px solid white;
margin: 0px 0px 0px 0px;
}