body {
	background: #FEFEFE url(../img/ui/bg_body.jpg) repeat-x;
	font: 76% Arial, Helvetica, sans-serif;
	margin: 0;
	padding: 12px 0;
	text-align: center;
}

/* LAYOUT */

div#wrap {
	margin: 0 auto;
	text-align: left;
	width: 919px;
}

div#header {
	background: url(../img/ui/bg_header.jpg) no-repeat;
	color: #fff;
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: 0.8em;
	height: 78px;
}

div#contentwrap {
	background: url(../img/ui/bg_contentwrap.png) repeat-y;
	border-bottom: 1px #EAEDEE solid;
	clear: both;
	float: left;
	margin-bottom: 2px;
}

div#contentwrap-admin {
	background: url(../img/ui/bg_contentwrap_admin.png) repeat-y;
	border-bottom: 1px #EAEDEE solid;
	clear: both;
	float: left;
	margin-bottom: 2px;
}

div#leftcol {
	background: url(../img/ui/bg_leftcol.jpg) no-repeat;
	clear: both;
	float: left;
	width: 217px;
}

div#centercol {
	float: left;
	width: 513px;
}

div#centercol-wrap {
	background: url(../img/ui/bg_etusivun_banneri.jpg) no-repeat;
	float: left;
	padding-top: 11px;
}

div#centercol-wrap-admin {
	background: url(../img/ui/bg_etusivun_banneri_admin.jpg) no-repeat;
	float: left;
	padding-top: 11px;
}

div#centercol-subpage {
	border: 1px #EAEDEE solid;
	border-top: none;
	color: #707171;
	display: inline; /* fix ie double margin bug */
	float: left;
	margin: 0 2px 0 0;
	min-height: 400px;
	padding: 9px 20px 20px 40px;
	width: 449px;
}

div#centercol-adminpage {
	border: 1px #EAEDEE solid;
	border-top: none;
	float: left;
	margin: 0 2px 0 0;
	min-height: 300px;
	padding: 9px 20px 20px 40px;
	width: 638px;
}

div#mainnews {
	border: 1px #EAEDEE solid;
	margin: 2px 2px 0 0;
	padding: 9px;
}

div#mainnews-text {
	background: #ECF5FF;
	margin-top: 2px;
	padding-left: 19px;
	padding-top: 21px;
}

div#othernews {
	border: 1px #EAEDEE solid;
	display: inline; /* fix ie double margin bug */
	float: left;
	margin: 2px 2px 2px 0;
	min-height: 190px;
	padding: 9px;
}

div#rightcol {
	float: left;
	width: 189px;
}

div#footer {
	background: url(../img/ui/bg_footer.jpg) no-repeat;
	clear: left;
	font: 0.9em "Trebuchet MS", Arial, Helvetica, sans-serif;
	padding: 50px 19px 20px 26px;
}

/* OTSIKOT */

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	padding: 0;
}

div#header h1 {
	float: left;
	margin: 31px 0 0 31px;
}

div#header h1 a {
	display: block;
	height: 42px;
	overflow: hidden;
	text-indent: -9999px;
	width: 220px;
}

h1.sattuu {
	background: url(../img/ui/bg_h1_home.jpg) no-repeat;
	font-size: 1.2em;
	font-weight: normal;
	height: 32px;
	line-height: 32px;
	padding-left: 19px;
}

h1.sattuu a {
	color: #fff;
}

div#leftcol h2 {
	background: url(../img/ui/bg_h2_sininen.jpg) no-repeat;
	color: #fff;
	font: bold 0.9em "Trebuchet MS", Arial, Helvetica, sans-serif;
	height: 18px;
	line-height: 18px;
	margin: 32px 0 0 2px;
	padding: 5px 0 5px 19px;
	text-transform: uppercase;
}

div#mainnews-text h2 {
	border-left: 4px #FFB607 solid;
	font-size: 1.4em;
	font-weight: normal;
	padding-left: 10px;
	margin-bottom: 17px;
}

div#mainnews-text h2 a {
	color: #008BD0;
}

div#othernews h3 {
	background: url(../img/ui/bg_h3_ajankohtaista.jpg) no-repeat;
	clear: both;
	float: left;
	font-size: 1em;
	font-weight: normal;
	height: 22px;
	line-height: 22px;
	padding-left: 19px;
	width: 375px;
}

div#othernews h3 a {
	color: #fff;
}

div#centercol-subpage h1, div#centercol-adminpage h1 {
	color: #1A7EC0;
	font-size: 1.8em;
	margin: 20px 0;
}

div#centercol-subpage h2, div#centercol-adminpage h2 {
	color: #000;
	font-size: 1.6em;
	margin-bottom: 10px;
}

div#centercol-subpage h3, div#centercol-adminpage h3 {
	color: #000;
	font-size: 1em;
}

/* LISTAT */

div#header ul {
	float: right;
	list-style: none;
	margin: 0 8px 0 0;
	padding: 0;
	text-transform: uppercase;
}

div#header ul li {
	background: url(../img/ui/bg_li_header.png) center left no-repeat;
	float: left;
	margin: 15px 8px 0 0;
	padding-left: 10px;
}

ul li.etusivulle {
	background: none !important;
}

ul#mainmenu {
	background: url(../img/ui/bg_mainmenu_bottom.jpg) left bottom no-repeat;
	list-style: none;
	margin: 32px 2px 0 2px;
	padding: 0 0 122px 0;
}

ul#mainmenu li {
	display: inline; /* fix ie double margin bug */
	margin: 0;
	padding: 0;
}

ul#mainmenu li a {
	background: url(../img/ui/bg_mainmenu_red.jpg) left bottom no-repeat;
	border-top: 1px #D7DCDE solid;
	border-bottom: 1px #fff solid;
	color: #56829B;
	display: block;
	font: bold 0.9em "Trebuchet MS", Arial, Helvetica, sans-serif;
	padding: 5px 0 5px 19px;
	text-transform: uppercase;
}

ul#mainmenu li a:hover {
	background: url(../img/ui/bg_mainmenu_blue.jpg) left bottom no-repeat;
	color: #008BD0;
}

ul#mainmenu li.level2selected a {
	background: url(../img/ui/bg_mainmenu_blue.jpg) left bottom no-repeat;
}

ul#mainmenu li.level3selected a {
	background: url(../img/ui/bg_level3selected.jpg) no-repeat !important;
	color: #008BD0; 
}

ul#mainmenu ul {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

ul#mainmenu ul li a {
	background: url(../img/ui/bg_level3menuli.jpg) no-repeat !important;
	color: #6A7D88;
	padding: 5px 0 5px 30px;
	text-transform: none;
}

ul#mainmenu ul ul {
	background: url(../img/ui/bg_level4menu.jpg) repeat-y;
	border-top: 1px #D7DCDE solid;
	border-right: 1px #E6EAEA solid;
	list-style: none;
	margin: 0;
	padding: 7px 0;
}

ul#mainmenu ul li.level3selected ul li a {
	background: url(../img/ui/bg_level4menuli.jpg) 0 13px no-repeat !important;
	border: none;
	color: #6A7D88 !important;
	margin: 0 0 0 30px;
	padding: 5px 0 5px 8px;
}

ul#mainmenu ul li.level3selected ul li a:hover {
	background: url(../img/ui/bg_level4menuli.jpg) 0 13px no-repeat !important;
	color: #008BD0 !important;
}

ul#mainmenu ul ul ul {
	background: url(../img/ui/bg_level4menu.jpg) repeat-y;
	border-top: none;
	border-right: none;
	list-style: none;
	margin: 0;
	padding: 0 0 7px 20px;
}

ul#mainmenu ul ul ul li a {
	padding: 2px 0 2px 0 !important;
}

div#rightcol ul {
	border-left: 1px #EFF4FA solid;
	border-right: 1px #EFF4FA solid;
	list-style: none;
	margin: 0 2px 0 0;
	padding: 0;
}

div#rightcol ul li {
	display: inline; /* fix ie double margin bug */
	margin: 0;
	padding: 0;
}

div#rightcol ul li a {
	background: #F4F4F4 url(../img/ui/bg_pikalinkit_li2.jpg) no-repeat;
	border-bottom: 1px #fff solid;
	border-top: 1px #EFF4FA solid;
	color: #56829B;
	display: block;
	font: 0.9em "Trebuchet MS", Arial, Helvetica, sans-serif;
	padding: 5px 0 5px 25px;
}

div#rightcol dl {
	border-top: 2px #fff solid;
	list-style: none;
	margin: 0;
	padding: 23px 0 23px 18px;
}

div#rightcol dd {
	background: url(../img/ui/bg_pikalinkit_nuoli.jpg) 0 3px no-repeat; 
	font-size: 0.9em;
	margin: 10px 0 0 0;
	padding: 0 0 0 14px;
}

div#rightcol dd a {
	color: #56829B;
}

div#rightcol ul li a:hover {
	color: #008BD0;
}

div#footer ul {
	float: right;
	list-style: none;
	margin: 0;
	padding: 0;
}

div#footer ul li {
	background: url(../img/ui/bg_footer_li.jpg) left center no-repeat;
	float: left;
	margin-right: 7px;
	padding-left: 10px;
}

/* TEKSTIT */

div#header p {
	clear: right;
	float: right;
	margin: 5px 16px 0 0;
	padding: 0;
}

span#txtsize {
	float: left;
}

div#centercol p, div#centercol-subpage p {
	margin: 0;
	padding: 0;
}

div#mainnews-text p {
	line-height: 20px;
	padding-bottom: 10px;
	padding-right: 173px;
}

p.lisaauutisia {
	background: url(../img/ui/bg_lisaa.jpg) no-repeat;
	float: right;
	font-size: 0.9em;
	height: 22px;
	line-height: 22px;
	width: 95px;
}

p.lisaauutisia a {
	color: #fff;
	padding-left: 10px;
}

div.newstitle {
	background: url(../img/ui/bg_nuoli.jpg) 0 1px no-repeat;
	clear: both;
	display: inline; /* fix ie double margin bug*/
	float: left;
	font-size: 0.9em;
	margin-left: 19px;
	margin-top: 13px;
	padding: 0 19px;
	width: 365px;
}

div.newstitle a {
	color: #000;
}

div.newsdate {
	color: #767A7B;
	font-size: 0.9em;
	float: left;
	margin-top: 13px;
	width: 65px;
}

p.linkkimato {
	font: 0.9em "Trebuchet MS", Arial, Helvetica, sans-serif;
	color: #A7A7A7;
}

p.linkkimato a {
	color: #A7A7A7;
}

span.linkkimato-valittu {
	color: #000;
	text-transform: uppercase;
}

p.ingressi {
	color: #3E3939 !important;
	font-weight: bold;
}

div#centercol-subpage p {
	color: #707171;
	line-height: 22px;
	margin-bottom: 20px;
}

div#footer p {
	line-height: 25px;
	margin: 0;
	padding: 0;
}

div#footer div {
	float: left;
}

div.date {
	background: url(../img/ui/bg_newsdate.jpg) left center no-repeat;
	color: #666;
	padding-left: 13px;
}

div.title {
	font-size: 1.2em;
	margin-bottom: 20px;
}

p.newsdetaildate {
	background: url(../img/ui/bg_newsdate.jpg) left center no-repeat;
	margin-bottom: 0 !important;
	padding-left: 13px !important;
}

/* LINKIT */

a {
	color: #008BD0;
	text-decoration: none;
}	

div#header a {
	color: #fff;
}

a#txtplus {
	background: url(../img/ui/bg_plus.png) no-repeat;
	display: block;
	float: left;
	height: 12px;
	margin: 2px 3px 0 6px;
	overflow: hidden;
	text-indent: -9999px;
	width: 12px;
}

a#txtminus {
	background: url(../img/ui/bg_minus.png) no-repeat;
	display: block;
	float: left;
	height: 12px;
	margin-top: 2px;
	overflow: hidden;
	text-indent: -9999px;
	width: 12px;
}

a.luelisaa {
	text-transform: uppercase;
}

div#leftcol h2 a {
	color: #fff;
}

div#footer a {
	color: #000;
	text-decoration: underline;
}

/* LOMAKKEET */

label {
	display: block;
}

fieldset { /* admin */
	border: 1px #D7DCDE solid;
	margin-bottom: 10px;
	padding: 10px;
	width: 540px;
}

div#centercol-subpage fieldset {
	width: auto;
}

legend {
	color: #000;
}

input, select {
	margin-bottom: 20px;
	width: 320px;
}

textarea {
	height: 300px;
	margin-bottom: 10px;
	width: 500px;
}

div#centercol-subpage textarea {
	width: 320px;
}

input.inputbtn {
	width: auto;
}

input.admininput {
	width: 420px;
}

input.admininput-h1 {
	color: #1A7EC0;
	font-size: 1.8em;
	width: 420px;
}

select.nostretch, input.nostretch {
	margin-right: 2px;
	width: auto;
}

textarea.nostretch {
	height: auto;
	width: auto;
}

input.chkrad {
	margin: 0;
	width: auto;
}

td.modbuttons input.inputbtn {
	font-size: 0.8em;
	margin-bottom: 0;
}

div#rightcol form {
	background:url(../img/ui/bg_searchform.jpg) no-repeat;
	border-top: 2px #fff solid;
	height: 52px;
	margin: 0;
	padding: 0;
}

div#rightcol form input.searchfield {
	background: url(../img/ui/bg_textfield.jpg) no-repeat;
	border: none;
	font-size: 0.9em;
	height: 27px;
	margin: 10px 0 0 13px;
	padding: 7px;
	padding-right: 2px;
	vertical-align: top;
	width: 123px;
}

div#rightcol form input.inputbtn {
	margin: 12px 0 0 9px;
}

/* TAULUKOT */

div#centercol-subpage table {
	margin-bottom: 20px;
	width: 100%;
}

div#centercol-subpage table td, div#centercol-subpage table th {
	border-bottom: 1px #D7DCDE solid;
	padding: 10px 5px;
	vertical-align: top;
}

table.resulttable {
	border-collapse: collapse;
	margin: 20px 0;
	width: 100%;
}

table.resulttable td {
	border-bottom: 1px #D7DCDE solid;
	padding: 10px 5px;
	vertical-align: top;
}

table.resulttable th {
	border-bottom: 1px #D7DCDE solid;
	padding: 10px 5px 10px 10px;
}

table.pagenavi {
	border-collapse: collapse;
}

th.sortup {
	background: url(../img/ui/nuoliylos.jpg) left center no-repeat;
}

th.sortdown {
	background: url(../img/ui/nuolialas.jpg) left center no-repeat;
}

/* KUVAT */

img.etusivun-banneri {
	border: 1px #EAEDEE solid;
	border-top: none;
	margin: 0;
	padding: 0 8px 9px 8px;
}

img.mainnews-image {
	background: #fff;
	border: 1px #ECF5FF solid;
	border-bottom: none;
	float: right;
	padding: 3px;
	margin-top: -21px;
}

img.kuvavasemalle {
	float: left;
	margin: 0 12px 12px 0;
	padding-top: 5px;
}

img.kuvaoikealle {
	float: right;
	margin: 0 0 12px 12px;
	padding-top: 5px;
}

div#rightcol img {
	margin-bottom: 10px;
}

a img {
	border: 0;
}

/* SEKALAISTA */

div#errormessage {
	padding: 10px;
	margin: 10px 0;
	background: #fff6bf;
	background-position: 15px 50%;
	border-top: 2px solid #ffd324;
	border-bottom: 2px solid #ffd324;
	display: none;
	width: 280px;
}
