.gallerycontainer{
position: relative;
width = 549;
height = 300; /*Add a height attribute and set to largest image's height to prevent overlaying*/
}

.thumbnail img{
border: 1px solid purple;
}

.thumbnail:hover{
	background-color: purple;	
	margin: 0px 4px 0px 4px;
}

.thumbnail:hover img{
border: 0px solid purple;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
padding: 6px;
left: -1000px;
border: 1px gray;
visibility: hidden;
float:right;
font-family: Arial,Verdana,Sans-serif;
font-size: 9pt;
font-weight: normal;
text-decoration: none;
}

.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}

.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
left: 2px; top: -328px; /*position where enlarged image should offset horizontally */
z-index: 50;
}
