* { margin: 0; padding: 0; }

img { border: 0; }

body {
	padding: 0 20px;
	background: #eee;
	font-family: Arial, Verdana, Helvetica, sans-serif;
	font-size: 1em;
	background-color: #eeeeee;
	background-image: url('/images/eref/background.png');
	background-repeat: repeat-x;
}

div#page {
	width: 800px;
	margin: auto;
	padding: 0 30px;
	background-image: url('/images/eref/page-background.png');
	background-repeat: repeat-y;
}

div#header {
	width: 760px;
	height: 110px;
	position: relative;
	padding: 20px;
	background: #1f2770;
}

div#header-logo {
}

div#header-links {
	position: absolute;
	right: 20px;
	top: 20px;
	font-size: 0.75em;
	color: #fff;
}

div#header-links a, div#header-links a:link, div#header-links a:visited { 
	color: #fff;
	text-decoration: none; 
}

div#header-links a:hover {
	text-decoration: underline;
}

div#header-links a:active {  }

div#header-search {
	position: absolute;
	right: 20px;
	bottom: 20px;
	font-size: 0.75em;
}

input.search-input {
	width: 130px;
	height:15px;
	border: 0;
	padding: 3px 10px 2px 10px;
	font-family: inherit;
	font-size: inherit;
	background: url('/images/eref/search-bg.png') no-repeat;
}

input.search-button {
	width: 50px;
	height: 20px;
	margin-left: 10px;
	font-family: inherit;
	font-size: inherit;
	background: url('/images/eref/search-btn.png') repeat-x;
	border: 1px solid #000;
}

div#header-2 {
	width: 800px;
	height: 310px;
}

div#slideshow {
	height: 250px;
	width: 800px;
}

/* MENU */

div#menu {
	width: 800px;
	height: 60px;
	z-index: 10000;
	background: url('/images/eref/menu-bg.png') no-repeat;
}

div#menu ul {
	list-style: none;
}

div#menu ul.main-nav li {
	width: 133px;
	height: 50px;
	text-align: center;
	line-height: 50px;
	font-size: 1.125em;
	font-weight: bold;
	float: left;
}

div#menu ul li a, div#menu ul li a:link, div#menu ul li a:visited {
	color: #1f2770;
	text-decoration: none;
	margin: 0 5px;
}


div#menu ul.main-nav > li.menuactive {
	background: url('/images/eref/main-active.png') no-repeat;
	background-position: 50% 0;
	color: #fff;
}

/*div#menu ul.main-nav li ul.sub-nav li.menuactive {
	background-image: none;
}*/

div#menu ul.main-nav li.menuactive a {
	color: #fff;
}

div#menu ul.main-nav li:hover, div#menu ul.main-nav li.hover {
	background-image: url('/images/eref/menu-hover.jpg');
	background-repeat: repeat-x;
	color: #fff;
}

div#menu ul.main-nav li:hover a, div#menu ul.main-nav li a:hover, div#menu ul.main-nav li.hover a.hover {
	color: #fff;
}

div#menu ul.main-nav > li.last {
	width: 135px;
}

div#menu ul.main-nav ul.sub-nav {
	display: none;
	width: 200px;
	padding: 0px 20px 30px 20px;
	background-image: url('/images/eref/submenu-bg.png');
	background-position: 50% 100%;
	position: relative;
	left: -20px;
}

div#menu ul.main-nav ul.sub-nav li {
	float: none;
	text-align: left;
	color: #fff;
	font-size: 0.7777em;
	font-weight: normal;
	border-bottom: 1px dashed #fff;
	line-height: 28px;
	height: 28px;
	width: 200px;
}

div#menu ul.main-nav ul.sub-nav li a {
	padding: 0 20px;
}

div#menu ul.main-nav ul.sub-nav li.last, div#menu ul.sub-nav ul.sub-nav li.last  {
	border-bottom: 0;
}

div#menu ul ul li a, div#menu ul ul li a:link, div#menu ul ul li a:visited {
	color: #fff;
}

div#menu ul.main-nav li.njs:hover ul.sub-nav {
	display: block;
}

div#menu ul.main-nav li.njs:hover ul.sub-nav li ul.sub-nav {
	display: none;
}

div#menu ul.main-nav li ul.sub-nav li.njs:hover ul.sub-nav {
	display: block;
}

div#menu ul.main-nav ul.sub-nav li.menuactive > a, div#menu ul.main-nav ul.sub-nav li.menuactive ul.sub-nav li.menuactive > a {
	background: url('/images/eref/sub-active.png') no-repeat;
	background-position: 0 50%;
}

div#menu ul.main-nav li ul.sub-nav li:hover, div#menu ul.main-nav li ul.sub-nav li.hover {
	background: #fff url('/images/eref/submenu-h.png') repeat-x;
}

div#menu ul.main-nav ul.sub-nav li.menuactive:hover a, div#menu ul.main-nav ul.sub-nav li.menuactive ul.sub-nav li.menuactive:hover a {
	background: none;
}


div#menu ul.main-nav ul.sub-nav li.menuparent {
	background: url('/images/eref/sub.png');
}

div#menu ul.main-nav ul.sub-nav li.menuparent:hover {
	background: url('/images/eref/sub-h.png');
}

div#menu ul.main-nav ul.sub-nav li:hover a, div#menu ul.main-nav li ul.sub-nav li ul.sub-nav li:hover a, div#menu ul.main-nav li ul.sub-nav li ul.sub-nav li a:hover {
	color: #1f2770;
}

div#menu ul.main-nav ul.sub-nav li:hover ul li a {
	color: #fff;
}

div#menu ul.main-nav ul.sub-nav ul.sub-nav {
	position: relative;
	top: -28px;
	left: 180px;
}

div#menu ul.main-nav ul.sub-nav ul.sub-nav li {
	font-size: 1em;
}

/* Make the last drop-down menu open to the left, instead of to the right */
div#menu ul.main-nav > li.last > ul.sub-nav {
	left: -85px;
}

div#menu ul.main-nav li.last ul.sub-nav li ul.sub-nav {
	left: -220px;
}





/* MAIN */

div#main {
	width: 800px;
/*	padding-bottom: 30px;*/
}

div#main a, div#main a:link, div#main a:visited {
	color: #253e8b;
	border-bottom: 1px dashed #253e8b;
	text-decoration: none;
}

div#main a:hover {
	border-bottom: 1px solid #253e8b;
}

div#main div#breadcrumbs {
	padding: 10px 15px 10px 20px;
}

/* Sidebar */

div#sidebar {
	float: left;
}

div#sidebar div.sidebar-header {
	background: url('/images/eref/sidebar-header-bg.png');
	width: 210px;
	height: 30px;
	padding: 14px;
	margin: 0 5px;
	padding-bottom: 0;
}

div#sidebar div.sidebar-header h4 {
	font-size: 1em;
	line-height: 30px;
	margin-left: 10px;
	color: #fff;
	font-weight: bold;
}

div#sidebar div.sidebar-body {
	padding: 10px 15px;
/*	padding-top: 0;*/
	margin: 0 5px;
	background: url('/images/eref/sidebar-bg.png');
	width: 210px;
}

div#sidebar div.sidebar-footer {
	background: url('/images/eref/sidebar-footer-bg.png') no-repeat;
	width: 239px;
	height: 15px;
	margin: 0 5px;
}

div#sidebar div.sidebar-body {
	font-size: 0.75em;
}

div#sidebar div.sidebar-body p {
	margin: 0 10px;
	line-height: 1.5em;
}

div#sidebar div.sidebar-body p.important {
	font-size: 1.33333em;
}

div#sidebar div.sidebar-body ul {
	margin: 0 10px;
	line-height: 1.5em;
	list-style-position: inside;
	list-style-type: disc;
}

div#sidebar div.social-media {
	width: 160px;
	margin-left: 40px;
	margin-top: 20px;
}

div#sidebar div.social-media a {
	border-bottom: none;
	text-decoration: none;
}



/* CONTENT */

div#content {
	font-size: 0.75em;
	width: 525px;
	margin-left: 255px;
	padding-top: 10px;
}

div#content h1, div#content h2, div#content h3 {
	color: #1f2770;
}

div#content h2, div#content h3 {
	margin-top: 1.5em;
}

div#content a.noprint {
	float: right;
	margin-top: 5px;
}

div#content p {
	line-height: 1.5em;
	margin-top: 1em;
	text-align: justify;
}

div#content ul, div#content ol, div#content dl {
	list-style-position: inside;
	line-height: 1.5em;
/*	margin-top: 1em;*/
}

/* FOOTER */

div#footer {
	width: 800px;
	margin: auto;
	background: url('/images/eref/footer-top.png') repeat-x;
	padding-top: 30px;
	margin-top: 30px;
}

div#footer table {
	width: 760px;
	margin: 30px 20px;
	border-bottom: 1px dashed #ccc;
}

div#footer table td {
	padding-bottom: 20px;
}

div#footer a#link-to-simplicity {
	font-size: 0.5em;
	color: #ccc;
	margin-left: 20px;
}

.bold { font-weight: bold; }
.italic { font-style: italic; }
.center { text-align: center; }
.mt1 { margin-top: 1em; }
.mt2 { margin-top: 2em; }
.ml1 { margin-left: 1em; }
.mb1 { margin-bottom: 1em; }
.mr1 { margin-right: 1em; }
.m1 { margin: 1em; }
.p1 { padding: 1em; }
.nowrap { white-space: nowrap; }

/* SLIDESHOW */
ul#rotator {
	display: none;
}

div#slideshow {
	position: relative;
}

div#slideshow div.rotator-caption {
	background: #333;
	position: absolute;
	right: 0;
	top: 0;
	width: 260px;
	height: 210px;
	padding: 20px;
	color: #fff;
	font-size: 1em;
}

div#slideshow div.rotator-caption h5 {
	font-size: 1.16666em;
	font-weight: bold;
	margin-bottom: 1em;
}

div#slideshow div.rotator-caption h6 {
	font-weight: bold;
	font-size: 1em;
	margin-bottom: 1em;
}

div#slideshow div.rotator-caption p {
	margin-bottom: 0.5em;
}

div#slideshow div.rotator-thumbs {
	position: absolute;
	bottom: 10px;
	right: 10px;
} 

div#slideshow div.rotator-thumbs a {
	display: block;
	height: 20px;
	width: 20px;
	margin-left: 10px;
	background-color: #f8ed37;
	float: left;
}

div#slideshow div.rotator-caption a, div#slideshow div.rotator-caption a:link {
	color: #f8ed37;
	text-decoration: none;
	border-bottom: 1px dashed #f8ed37;
}

div#slideshow div.rotator-caption a:hover {
	border-bottom: 1px solid #f8ed37;
}

div#slideshow div.rotator-caption a:active {
	font-weight: bold;
}

/* Galleries */

div#content table.gallery-thumbnails tr td a, div#content table.gallery-thumbnails tr td a:link, div#content table.gallery-thumbnails tr td a:visited, div#content table.gallery-thumbnails tr td a:hover, div#content table.gallery-thumbnails tr td a:active { border-bottom: none; }

div#content table.gallery-thumbnails a:hover img { background: #1f2770; }

table.gallery-thumbnails img { 
	padding: 5px;
	border: 1px solid #1f2770;
	background: #ccc;
}

table.gallery-thumbnails td {
	padding: 5px;
}

/* Registration form */
form#md2e2cmoduleform_2 { margin-top: 1em; }
select#fbrp__41 {
	font-size: 12px;
}

div.registration-form div {
	margin-bottom: 0.5em;
}


div.registration-form label {
	width: 100px;
	display: block;
	float: left;
}

div.registration-form input[type=text] {
	clear: right;
}

div.registration-form div.submit input {
	margin-left: 150px;
}

table.programme-table thead td {
	text-align: center;
	vertical-align: middle;
	font-weight: bold;
}

table.programme-table td {
	padding: 5px;
}
