/* set up the overall width of the menu div and the margins */
.photogallery {
width:470px;
height:31px;
background:#fff;
padding:0;
margin:10px auto 0 auto; 
position:relative;
z-index:1;
border-bottom:20px solid #264c8c;
font-family: Arial, Helvetica, sans-serif;
margin-bottom: 430px;
}
/* position the instructions using a dl */
.photogallery dl {
font-size:1em;
position:absolute;
width:340px;
top:60px;
left:30px;
}
.photogallery dl dt {font-size:1.2em; margin-bottom:5px; font-weight:bold;}
.photogallery dl dd { padding:0; margin:0 0 8px 5px; line-height:130%;}

/* remove the bullets and set the margin and padding to zero for the unordered list */
.photogallery ul {
padding:0; 
margin:0;
list-style-type: none;
border:0;
}
/* float the list so that the items are in a line */
.photogallery ul li {
display:block;
float:left;
height:31px;
}
/* style the links to be 50px wide by 31px high with a right border 1px solid white. Set the background color and the font size. */
.photogallery ul li a, .photogallery ul li a:visited {
display:block; 
float:left;
text-align:center; 
text-decoration:none; 
padding: 5px 6px;
color:#ddd;
border-right:1px solid #fff;
background:#264c8c; 
line-height: 20px;
font-size:10px;
font-weight: bold;
}

/* clear the float at the end of each line of four slides */
span.clr {display:block; clear:both; width:0; height:0; font-size:0; line-height:0;}

/* make the dropdown ul invisible */
.photogallery ul li ul {
display: none;
}

/* remove the table styling */
table {
border-collapse:collapse;
margin:0; 
padding:0;
}


/* specific to non IE browsers */
/* set the background and foreground color of the main menu li link on hover */
.photogallery ul li:hover a{
color:#fff; 
background:#1b3664;
cursor:default;
}

/* make the sub menu ul visible and position it beneath the first list item */
.photogallery ul li:hover ul {
text-align:left;
display:block; 
position:absolute; 
top:31px; 
left:0;
}

/* make the sub menu ul li the full width with padding and border. */
.photogallery ul li:hover ul li {
cursor:pointer;
width:400px;
height:380px;
border:20px solid #1b3664;
border-width:20px 5px;
background:#fff; 
color:#fff;
padding:10px 30px;
cursor:default;
}

/* style the background and foreground color of the submenu links */
.photogallery ul li:hover ul li a {
padding: 3px;
background:#EAE0C8;
width:92px;
height:92px;
border:1px solid #ddd;
border-color:#E3D5B5 #EAE0C8 #EAE0C8 #E3D5B5;
}

/* keep the large image hidden */
.photogallery ul li:hover ul li a em {
display:none;
}
/* add a border to the horizontal slide and position it centrally using a top margin */
.photogallery ul li:hover ul li a.horiz span img {
border:1px solid #888;
margin-top: 13px;
}
/* add a border to the vertical slide and position it centrally using a top margin */
.photogallery ul li:hover ul li a.vert span img {
border:1px solid #888;
}

.photogallery ul li:hover ul li a:hover {
background:#DCCBA3;
}


/* make the active links zero size so the active dotted border does not show through the large image */
.photogallery ul li:hover ul li a:active, .photogallery ul li:hover ul li a:focus {background:#aaa; height:0; width:0; border:0;outline: 0;}
.photogallery ul li:hover ul li a:active em, .photogallery ul li:hover ul li a:focus em {background:#bbb; height:0; width:0; padding:0; margin:0; border:0;outline: 0;}


/* make the large image visible and set the border, position them using position absolute centrally over the slides */
/* horizontal large image styling */
.photogallery ul li:hover ul li a.horiz:active em, .photogallery ul li:hover ul li a.horiz:focus em {display:block; background:#dedede; position:absolute; left:18px; top:25px; padding: 3px 0; width:431px; height:350px; z-index:200; z-index:500; cursor:default; border:1px solid #cfb67d;}
.photogallery ul li:hover ul li a.horiz:active em img, .photogallery ul li:hover ul li a.horiz:focus em img {border:0;}
/* vertical large image styling */
.photogallery ul li:hover ul li a.vert:active em, .photogallery ul li:hover ul li a.vert:focus em {display:block; background:#dedede; position:absolute; left:18px; top:25px; padding: 3px 0; width:431px; height:365px; z-index:200; z-index:500; cursor:default;  border:1px solid #cfb67d;}
.photogallery ul li:hover ul li a.vert:active em img, .photogallery ul li:hover ul li a.vert:focus em img {border:0;}