body {
	margin: 0;
}

div.preview {
	width: 150px;
	padding: .2em .8em;
	background-color: rgb(230,230,230);
	border-right: 2px solid rgb(180,180,180);
}
/* -------------------- SHARED CODE -----------------------*/

li>ul { /* to override top and left in browsers other than IE, which will position to the top right of the containing li, rather than bottom left */
	top: auto;
	right: auto;
}


.nav {
	font-family: Georgia, Verdana, sans-serif;
	font-size: 80%;
	padding: 0;
	margin:0;
}

.nav img {
	border: 0;
}

.nav a {
	text-decoration: none;
	color: black;
}

.nav a:visited {
	color: black;
}

.nav a:active {
	color: black;
}

.nav a:hover {
	text-decoration: none;

}


/* -------------------- NAV MENU CODE -----------------------*/


.nav ul { /* all menu parts */
	z-index: 200;
	padding: 0;
	margin: 0;
	spacing: 0;
	list-style: none;
}

.nav li { /* menu head container */
	text-align: right;
	list-style: none;
	float: right;
	position: relative;
	width: 12em;
	padding: 0;
	margin: 0 0 0 .5em;
}

.nav li a { /* menu head links */
	display: block;
	padding: .3em 0 0 0;
	border: 1px black;
	margin: 0 .3em;
}

.nav li ul { /* menu items */
	z-index: 200;
	text-align: right;
	display: none;
	position: absolute;
	top: 1.5em;
	right: 0em;
	width: 13.3em;
	padding: 0;
	margin: 0;
	background-color: rgb(74,121,175);
}

.nav li ul a { /* menu item links*/
	display: block;
	width: 12em;
	padding: .2em .3em;
	margin: 0;
	text-align: left;
	position: relative;
	left: -.75em;
}
.nav li ul a:hover { /* menu item links hover*/
	background-color: rgb(107,154,208);
}


.nav li>ul { /* to override top and left in browsers other than IE, which will position to the top right of the containing li, rather than bottom left */
	top: auto;
}

.nav li:hover ul, .nav li.over ul { /* lists nested under hovered list items */
	display: block;
}
