/* *******************************************
RESETIT
******************************************* */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
	outline: 0;
}
body {
	line-height: 1;
	color: black;
	background: white;
}
ol, ul {
	list-style: none;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	text-align: left;
	font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}
input[type=hidden] {
visibility: hidden;
height:0px;
border:0px;
margin: 0 0 0 0;
padding: 0 0 0 0;
position:absolute;
}

img { -ms-interpolation-mode: bicubic; }

sup,
sub {
    height: 0;
    line-height: 1;
    vertical-align: baseline;
    _vertical-align: bottom;
    position: relative;

}
sup {
    bottom: 1ex;
}

sub {
    top: .5ex;
}

/* *******************************************
COMMON ELEMENTS
******************************************* */

body {
	background: #b6b7b9 url(/media/images/bg.png) center repeat-y;
    font: normal 12px/16px Arial, Helvetica, sans-serif;
}

/* Tablet */

table {
    width: 100%;
}
tbody tr:hover {
    background-color: #eee;
}
table td {
	border: 1px solid #ccc;
	border-collapse: collapse;
    padding: 3px;
    vertical-align: middle;
}
caption, tbody, tfoot, thead {}

/* *******************************************
COMMON BLOCKS
******************************************* */

#pageWrapper {
	background: url(/media/images/content_bg.png) repeat-y;
	display: block;
	margin: 0 auto;
	overflow: hidden;
	width: 1019px;
}
#vasenPalsta {
	display: block;
	float: left;
	margin: 0 10px 0 20px;
	width: 236px;
}
#oikeaPalsta {
	display: block;
	float: right;
	margin: 0 19px 0 0px;
	width: 236px;
}
* html #vasenPalsta {
	display: inline;
}
* html #oikeaPalsta {
	display: inline;
}
#ajankohtaista {
	background: #008364 url(/media/images/news_bg.png) no-repeat top center;
	display: block;
	margin: 0 0 10px 0;
	padding: 0 0 5px 0;
}
#linkit {
	background: #9cc889 url(/media/images/linkit_bg.png) no-repeat top center;
	display: block;
	margin: 0 0 10px 0;
	padding: 0 0 5px 0;
}
#ajankohtaista ul {
	margin: 10px 10px 10px 0;
}
#linkit ul {
	margin: 10px 10px 10px 0;
}
#ajankohtaista ul li {
}
#linkit ul li {
}
#linkit ul li span.title {
	color: white;
	display: block;
	font: bold 18px "Trebuchet MS", Arial, Helvetica;
	padding: 10px 5px 10px 15px;
	text-decoration: none;
}
#ajankohtaista ul ul {
	margin: 0 0 0 6px;
}
#linkit ul ul {
	margin: 0 0 0 6px;
}
#ajankohtaista ul ul li {
	margin: 5px 0;
}
#linkit ul ul li{
	margin: 5px 0;
}
#ajankohtaista a {
	color: white;
	display: block;
	font: bold 18px "Trebuchet MS", Arial, Helvetica;
	padding: 10px 5px 10px 15px;
	text-decoration: none;
}
#linkit a {
	color: white;
	display: block;
	font: bold 18px "Trebuchet MS", Arial, Helvetica;
	padding: 10px 5px 10px 15px;
	text-decoration: none;
}
#ajankohtaista a:hover,
#linkit a:hover {
	text-decoration: underline;
}
#ajankohtaista ul ul li a {
	background: url(/media/images/bullet_news.gif) no-repeat 10px 8px;
	display: block;
	font: bold 14px Arial, Helvetica, sans-serif;
	padding: 3px 5px 3px 20px;
	text-decoration: none;
}
#linkit ul ul li a {
	background: url(/media/images/bullet_linkit.gif) no-repeat 10px 8px;
	color: #006986;
	display: block;
	font: bold 14px Arial, Helvetica, sans-serif;
	padding: 3px 5px 3px 20px;
	text-decoration: none;
}
#contactinfo {
	display: block;
	margin: 8px 0 20px 0;
	padding: 0 0 5px 0;
}
#contactinfo ul li span.title {
	color: #006986;
	display: block;
	font: bold 18px "Trebuchet MS", Arial, Helvetica;
	padding: 10px 5px 2px 15px;
	text-decoration: none;
}
#contactinfo p
{
	padding: 2px 5px 2px 15px;
	font: bold 12px "Trebuchet MS", Arial, Helvetica;
}
#contactinfo a, #contactinfo a:visited
{
	color: #008364;
	text-decoration: none;
}
#contactinfo a:hover, #contactinfo a:visited:hover
{
	color: #008364;
	text-decoration: underline;
}
#leipis {
	display: block;
	margin: 0;
	min-height: 200px;
	overflow: hidden;
	padding: 10px;
	width: 471px;
}

/* *******************************************
HEADER
******************************************* */

#header {
	background: url(/media/images/header_bg.png) no-repeat;
	display: block;
	height: 262px;
	margin: 20px auto 0 auto;
	position: relative;
	width: 1019px;
}

/* *******************************************
FOOTER
******************************************* */

#footer {
	background: url(/media/images/footer_bg.png) no-repeat center bottom;
	clear: both;
	display: block;
	margin: 0 auto;
	min-height: 70px;
	text-align: center;
	width: 1019px;
}
ul#lisaLinkit {
	padding-right: 110px;
}
ul#lisaLinkit li {
	display: inline;
	margin: 10px;
}
ul#lisaLinkit li a {
	color: #008364;
	text-decoration: none;
}
ul#lisaLinkit li a:hover {
	text-decoration: underline;
}

#farmos_logo
{
	width: 80px;
	height: 15px;
	float: left;
	padding-left: 30px;
}
/* *******************************************
MAIN MENU
******************************************* */

#mainMenu {
	display: block;
	left: 20px;
	position: absolute;
	top: 185px;
}
#mainMenu ul {}
#mainMenu li {
	display: inline;
	margin: 0 2px;
}
#mainMenu li a {
	background: ;
	color: #008364;
	font: bold 16px Arial, Helvetica, sans-serif;
	padding: 16px;
	text-decoration: none;
}
#mainMenu li a:hover {
	color: #004e3c;
}
#mainMenu li a.active {
	color: #004e3c;
}

/*********************************************
SUB MENU
*********************************************/

#subMenu {
	display: block;
	margin: 0 0 10px 0;
	overflow: hidden;
	width: 236px;
}

/* First level */

#subMenu ul {}
#subMenu ul li {
	background: #bfe6f7 url(/media/images/subnavi_bg.gif) repeat-x;
	display: block;
	min-height: 155px;
	overflow: hidden;
	width: 236px;
}
#subMenu ul li a, #subMenu ul li span {
	color: white;
	display: block;
	font: bold 18px "Trebuchet MS", Arial, Helvetica;
	padding: 10px 5px 10px 15px;
	text-decoration: none;
}
#subMenu ul li a:hover {
	text-decoration: underline;
}
#subMenu ul li a.active {}

/* Second level */

#subMenu ul ul {
	margin: 0 0 0 5px;
}
#subMenu ul ul li {
	background: transparent;
	min-height: 1%;
}
#subMenu ul ul li {
	background: transparent;
	height: 1%;
}
#subMenu ul ul li a {
	background: url(/media/images/bullet_subnavi.gif) no-repeat 10px 8px;
	color: #006986;
	display: block;
	font: bold 14px Arial, Helvetica, sans-serif;
	padding: 3px 5px 3px 20px;
	text-decoration: none;
}
#subMenu ul ul li a:hover {
	text-decoration: underline;
}
#subMenu ul ul li a.active {}

/* Third level */

#subMenu ul ul ul {}
#subMenu ul ul ul li {}
#subMenu ul ul ul li a {}
#subMenu ul ul ul li a:hover {}
#subMenu ul ul ul li a.active {}

/*********************************************
SUB MENU RIGHT
*********************************************/

#subMenuRight {
	display: block;
	margin: 0 0 10px 0;
	overflow: hidden;
	width: 234px;
	border: 1px solid #33CC99;
}

/* First level */

#subMenuRight ul {
	padding-bottom: 5px;
}
#subMenuRight ul li {
	/*background: #bfe6f7 url(/media/images/subnavi_bg.gif) repeat-x;*/
	display: block;
	overflow: hidden;
	width: 220px;
	min-height: 100px;
}
#subMenuRight ul li a, #subMenuRight ul li span {
	color: #2DB487;
	display: block;
	font: bold 18px "Trebuchet MS", Arial, Helvetica;
	padding: 10px 5px 10px 15px;
	text-decoration: none;
}
#subMenuRight ul li a:hover {
	text-decoration: underline;
}
#subMenuRight ul li a.active {}

/* Second level */

#subMenuRight ul ul {
	margin: 0 0 0 5px;
}
#subMenuRight ul ul li {
	background: transparent;
	min-height: 1%;
}
#subMenuRight ul ul li {
	background: transparent;
	height: 1%;
}
#subMenuRight ul ul li a {
	background: url(/media/images/bullet_subnavi_right.gif) no-repeat 10px 8px;
	color: #2DB487;
	display: block;
	font: bold 14px Arial, Helvetica, sans-serif;
	padding: 3px 5px 3px 20px;
	text-decoration: none;
}
#subMenuRight ul ul li a:hover {
	text-decoration: underline;
}
#subMenuRight ul ul li a.selected {
	text-decoration: underline;
}

/* Third level */

#subMenuRight ul ul ul {
	margin: 0 0 0 5px;
}
#subMenuRight ul ul ul li {
	background: transparent;
	min-height: 1%;
}
#subMenuRight ul ul ul li {
	background: transparent;
	height: 1%;
}
#subMenuRight ul ul ul li a {
	background: url(/media/images/bullet_subnavi_right.gif) no-repeat 10px 8px;
	color: #2DB487;
	display: block;
	font: bold 14px Arial, Helvetica, sans-serif;
	padding: 3px 5px 3px 30px;
	text-decoration: none;
}
#subMenuRight ul ul ul li a:hover {
	text-decoration: underline;
}
#subMenuRight ul ul ul li a.selected {
	text-decoration: underline;
}



/* *******************************************
FORMIT
******************************************* */

form {
	width:470px;
	padding:10px 10px 10px 0;
	margin:5px 0;
}
form p {
	font-size:.9em;
	text-align:left;
	padding:15px 5px 5px 0;
	margin:0;
}
form fieldset#current p {
	padding:4px;
	margin:0;
}

form fieldset {
	width:450px;
	display:block;
	border:1px dotted #ccc;
	border-top:1px solid #666;
	padding:5px 5px 5px 10px;
	font-family: Arial, Helvetica, sans-serif;
	margin-bottom:0.5em;
	line-height:1.5em;
	font-size:1em;
}
form fieldset:hover {
	border:1px solid #666;
	border-top:1px solid #666;
}

form legend {
	font-size:1.1em;
	font-weight:bold;
	margin-bottom:15px;
	padding:6px;
	background:none;
}
* html form legend {
	padding:0 0 30px 0;
	margin:5px 0 0 0;
	border:none;
}

form label {
	clear:left;
	display:block;
	float:left;
	width:100px;
	text-align:left;
	padding-right:10px;
	margin-bottom:0.5em;
}

form input[type="text"] {
	border:1px solid #999;
	padding-left:0.5em;
	margin-bottom:0.6em;
	width:280px;
	background: #fff;
}
input[type="checkbox"],
input[type="radio"] {
	border: none;
	padding-left:0;
	margin-bottom:0;
	width: 20px;
	background: none;
}
input[type="checkbox"]:hover,
input[type="radio"]:hover {
	border: none;
	padding-left:0;
	margin-bottom:0;
	width: 20px;
	background: none;
}
input[type="checkbox"]:focus,
input[type="radio"]:focus {
	border: none;
	padding-left:0;
	margin-bottom:0;
	width: 20px;
	background: none;
}
form input:hover {
	background:#e9f0f5;
	border:1px solid #666;
}
form input:focus {
	background:#fff;
	border:1px solid #000;
}
form fieldset#medical input,
form fieldset#current input {
	width:45px;
}

form select {
	margin:0 0 1em 0.5em;
}
form textarea {
	font: 12px Arial, Helvetica, sans-serif;
	width:410px;
	height:15em;
	border:1px solid #999;
	padding:0.5em;
	overflow:auto;
	background:#fff;
}
form textarea:hover {
	background:#e9f0f5;
	border:1px solid #666;
}
form textarea:focus {
	background:#fff;
	border:1px solid #000;
}

form option {
	background:#fff;
}
form optgroup {
	background:#fff;
	font-style:normal;
}
form optgroup option {
	background:#fff;
}

form #button1,
form #button2 {
	font: bold 14px Arial, Helvetica, sans-serif;
	color:#fff;
	padding-right:0.5em;
	cursor:pointer;
	width:205px;
	margin-left:8px;
	background:#9cc889;
	border:1px solid #666;
}
form #button1:hover,
form #button2:hover {
	color:#fff;
	background:#008364;
	border:1px solid #000;
}

/* *******************************************
LEIPIS
******************************************* */

/* Tekstiblokit */

#header h1 {
	display: block;
	font: bold 50px/normal "Trebuchet MS", Arial, Helvetica;
	color: white;
	margin: 0 0 0 50px;
	padding: 30px 0 0 0;
	text-align: center;
	width: 560px;
}
#leipis h2 {
	color: #747474;
	font: normal 28px/normal "Trebuchet MS", Arial, Helvetica;
	margin: 0;
}
#leipis h3 {
	color: #747474;
	font: normal 20px/normal "Trebuchet MS", Arial, Helvetica;
	margin: 1em 0;
}
#leipis h4 {
	color: #747474;
	font: normal 16px/normal "Trebuchet MS", Arial, Helvetica;
	margin: 1em 0;
}
#leipis p {
	margin: 1em 0;
}

/* Muotoilut */

#leipis a {
	color: #008364;
	text-decoration: none;
}
#leipis a:hover {
	text-decoration: underline;
}
#leipis a.infolinkki
{
	background: url(/media/images/bullet_subnavi_right.gif) no-repeat 4px 8px;
	padding: 3px 5px 3px 14px;
	color: #008364;
	width: 300px;
	text-decoration: none;
	font-weight: bold;
	display: block;
}
#leipis a.infolinkki:hover
{
	background: url(/media/images/bullet_subnavi_right.gif) no-repeat 4px 8px;
	padding: 3px 5px 3px 14px;
	cursor: pointer;
	color: #008364;
	width: 300px;
	text-decoration: none;
	background-color: #eee;
	font-weight: bold;
	display: block;
}

em, italic {
	font-style: italic;
}
strong, b {
	font-weight: bold;
}

/* Listat */

#leipis ul,
#leipis ol {
	margin: 10px 0 10px 0;
}
#leipis ul li {
	background: url(/media/images/bullet.gif) no-repeat 0 5px;
	line-height: normal;
	margin: 5px 0;
	padding: 0 5px 0 10px;
}
#leipis ol li {
	list-style-type: decimal;
	line-height: normal;
	margin: 5px 25px;
	padding: 0px 5px 0px 10px;
}

/* Sekalaiset */

.leftalign {
	float: left;
	margin: 0 15px 15px 0;
}
.rightalign {
	float: right;
	margin: 0 0 15px 15px;
}
.normal {
	font-weight: normal;
}
hr.wide {
	background-color: #ddd;
	color: #ccc;
	border: none;
	display: block;
	height: 1px;
	margin: 0 30px 15px 30px;
	width: 958px;
}


