html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	font-family: arial, sans-serif;
	font-size: 16px;
}


div, ul, li, td, img, table {
	border: solid #f0f 0px;
	margin: 0; padding: 0;
}
li {
	margin-left: 2.5em;
}

#layout {
	border-collapse: collapse;
	table-layout: fixed;
	width:100%;
	height:100%;
	background: #f0f1f5;
}

#col1 {	width: 30px; }
#col2 { width: 200px; background: #e2e5ee; }
#col3 { width: auto; }
#row1 { height: 30px; }  /*only kicks in for very big text, otherwise logo+padding is more than this*/
#row2 { height: 100px; }
#row3 { height: 100% }


#prebanner, #banner {
	background-color: #9baed8;
	background-image: url('img/fluid-bar.jpg');
	background-repeat: no-repeat;
	background-position: 0 0;
}
#logo {
	text-align: center;
	vertical-align: middle;
}
#logo h1 {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

#nav {
	vertical-align: top;
	padding: 2em 0;
}

#nav ul li {  
	/* #nav>ul would be better here and everywhere below, but IE ignores it */
	padding: 0 0 0 0; /*<a> does the padding*/
	margin: 0;
	font-weight: bold;
	list-style-type: none;
	border-bottom: solid #e2e5ee 1px;
}
#nav ul .curNav a, #nav ul .curNav ul .curNav a {  
	background: #3443b4;
	color: white;
}
#nav ul a {
	display: block;
	padding: .3em .7em;
	margin: 0;
	background: inherit;
	color: black;
	text-decoration: none;
}
#nav ul .curNav ul .nonSel a {  
	/* ordinary links. Include those that are children of a selected (.curNav)
	   top-level link. This could and should be avoided using ">", but see above... */
	background: transparent;
	color: black;	   
}
#nav ul a:hover {
	background: white !important;
	color: black !important;
}
#nav ul .separator {
	height: 3em;
}
/* navigation submenus are smaller and indented */
#nav ul ul li {
	padding-left: 2em;
	font-size: .9em;
	font-weight: normal;
}
/* icons (flags!) left of the navigation items - align them nicely */
#nav li img {
	vertical-align: baseline;
}


#content {
	vertical-align: top;
	padding: 2em 2em;
}
	

h1, h2, h3, h4, h5, h6 { 
	margin: 1.5em 0 .5em 0;
	padding: 0; 
}
h1 {
	font-size: 2em;
	font-family: arial black, inherit;
	font-weight: normal;
	border: solid white;
	border-width: 0 0 7px 0;
	color: #192793;
	margin-top: 0; /*sits immediately at the top of the page*/
}
h2 {
	font-size: 1.5em;
	border-left: solid #192793 1em;
	padding-left: 1em;
}

div.sideImage, div.galleryImage {
	float: right;
	width: auto;
	text-align: center;
	font-size: .8em;
	line-height: 1.2em;
	border: solid #e2e5ee 1px;
	background: white;
	padding: 1em;
	margin: 0 0 1em 1em;  /*only the left margin; sideImage must be flush with the right page border */
}
div.galleryImage {
	/* the only difference with sideImage is we're floated left and aligned with left page border */
	float: left;
	margin: 0 1em 1em 0;  
}
div.sideImage img, div.galleryImage img { /* the actual image */
	/* somewhat hackish - they changed their mind later on, I won't resize everything by hand (yet)... */	
	height: 100px;
	width: auto;
}
div.sideImage div, div.galleryImage div { /* div containing the description */
	margin-top: 1em;
}
div.gallery {  /* the container for "div.galleryImage"s */
	margin: 2em 0;
	overflow: auto; /* forces the div to accomodate floats with its size */
	width: 100%;
}

div.bigImage {
	text-align: center;
}
div.bigImage div {
	/*navigation: previous/next image*/
	margin: .7em 0 0 0
}
div.bigImage a {
	font-size: 80%;
	font-weight: bold;
}
div.bigImageDescription {
	width: 610px;  /* + padding == 640px */
	margin: 1em auto;
	padding: 15px;
	border: solid #e2e5ee 1px;
	background: white;
}


p {
	line-height: 1.7em;
	margin: 1em 0 0 0;
	padding: 0;
}
a {
	color: #3443b4;
	text-decoration: underline;
}
a:hover {
	color: black;
}
a img {
	vertical-align: middle;
	border: 0;
	text-decoration: none;
}

.materiali {
	border-collapse: collapse;
	width: 100%;
	margin-top: 1em;
	background: #e2e5ee;
}
.materiali td {
	padding: .5em .5em;
	vertical-align: top;
}
.materiali .filename {
	width: 20em;
}
.materiali .filesize {
	width: 5em;
}
.materiali .oddRow {
	background: white;
}