html, body {
    margin:0;
    padding:0;
    font-family: Arial, Sans-Serif;
}

img {
    border:0;
    display: inline;
}

#header  {
    background:url("http://www.liepa.fi/themes/liepa/liepa_images/top.gif") top repeat-x;
    height: 100px;
    overflow: hidden;
}
#header div.wrapRight {
    background:url("http://www.liepa.fi/themes/liepa/liepa_images/top_right.gif") top right no-repeat;
}
#header a {
    text-decoration:  none;
}
#header h1 {
    display: block;
    margin: 0;
    padding: 0;
}
#header h1 span {
    display: none;
}

#blockTop {
    position:absolute;
    top:0;
    right:0;
    width:300px;
    padding-top:30px;
    padding-right:30px;
}
#blockTop p {
    margin:4px 0 0 0 ;
    padding:0;
    text-align:right;
    color: #DEE7B1;
    font-size:x-small;
}

#blockTop a {
    color: #DEE7B1;
    font-weight:bold;
    text-decoration:underline;
    
}
#blockTop fieldset {
    margin:0;
    padding:0;
}
#blockTop dl {
    margin:0;
    padding:0;
}
#blockTop dl dt {
    float:left;
    width:50%;
    text-align:right;
    padding-right:5px;
    padding-top:3px;
    font-size: x-small;
    color: #DEE7B1;
}
#blockTop input {
    font-size: xx-small;
    width:30%;
}



#footer  {
    background:url("http://www.liepa.fi/themes/liepa/liepa_images/foot.gif") top repeat-x;
    font-size:  xx-small;
    text-align:  center;
    margin-bottom: 10px;
}
#footer div.wrapLeft {
    background:url("http://www.liepa.fi/themes/liepa/liepa_images/foot_left.gif") top left no-repeat;
}
#footer div.wrapRight {
    background:url("http://www.liepa.fi/themes/liepa/liepa_images/foot_right.gif") top right no-repeat;
    height: 30px;
}

#footer p {
    margin: 0;
    padding-top: 4px;
    color: #DEE7B1;
}

#footer a {
    color: #DEE7B1;
}

#top-nav,
#inner-wrapper {
    border-left: 1px solid #999;
    border-right: 1px solid #999;
    margin-left: 20px;
    margin-right: 18px;
}

#inner-wrapper {
    background:url("http://www.liepa.fi/themes/liepa/liepa_images/inner_bg.gif") top left repeat-y;
}

#inner-wrapper h1,
#inner-wrapper h2,
#inner-wrapper h3,
#inner-wrapper h4 {
    margin-top: 0;
    color: #1F6831;
}

#top-nav {
    background:url("http://www.liepa.fi/themes/liepa/liepa_images/nav_bar.gif") top repeat-x;
    height: 20px;
    overflow: hidden;
}

#top-nav ul {
    margin: 0;
    padding: 0;
    list-style:  none;
    position: absolute;
}

#top-nav li {
    display:  inline;
}
#top-nav ul li a {
    display: block;
    height: 20px;
    float: left;
    font-weight: bold;
    font-size: 14px;
    padding-top: 2px;
    padding-bottom: 0px;
    padding-right: 10px;
    padding-left: 10px;
    text-decoration: none;
    color: #1F6831;
}

#content {
    font-size: 90%;
    padding-top: 5px;
}

#top-nav li.current {
}

#top-nav li.current a {
    background:url("http://www.liepa.fi/themes/liepa/liepa_images/nav_bar_act.gif") top repeat-x;
    color: #ffffff;
}

#leftCol {
    float: left;
    width: 180px;
    overflow: hidden;
    padding-top:10px;
}

#rightCol {
    float: right;
    width: 220px;
    overflow: hidden;
    padding: 10px;
    background:url("http://www.liepa.fi/themes/liepa/liepa_images/column_bg.gif") top repeat-x;
    
}

#leftCol h2, #rightCol h2 {
    font-size: medium;
}

#secondaryContent div.block div.content h3 {
    font-size:medium;
    margin-bottom:1px;
}
#secondaryContent div.block div.content p {
    margin-top:0;
    font-size:small;
}


.subnaviBody div.header {
    display:none;
}
.subnaviBody ul {
    margin:0;
    padding:0;
    list-style: none;
    margin-bottom:5px;
    padding-left:10px;
}
.subnaviBody ul ul {
    list-style: none;
    font-size:95%;
}

.subnaviBody li {
    display: none;
}
.subnaviBody li.current, .subnaviBody li.current li {
    display: block;
}
.subnaviBody li.current li {
}


.subnaviBody li.current a {
    color: #1F6831;
    text-decoration: none;
    font-weight: bold;
}

.subnaviBody li.current li a {
    font-weight: normal;
}
.subnaviBody li.current li.current a {
    text-decoration: none;
    font-weight: bold;
}
.subnaviBody li.current li.current li a {
    text-decoration: none;
    font-weight: normal;
}


#middleCol {
    margin-left: 180px;
    padding: 0 15px 0 15px;
    height: 380px; /* Sets min height for IE */
}
html > body #middleCol {
    /* Sets min height for gecko */
    height: auto;
    min-height: 380px;
}

#Bottom {
    text-align:center;
}

#Bottom h2, #Bottom div.content p {
    margin: 0;
    padding:0;
    color: #1F6831;
    font-size: xx-small;
}
/** spons images */
#Bottom img {
    padding: 0 5px 2px 5px;
    border:0;
}


#rightCol div.content {
    font-size: x-small;
}


fieldset.noBorder {
    border:0;
}

div.message {
    border: 1px solid #ff0000;
    padding:5px;
}
div.infoMessage {
    border: 1px solid #ff0000;
    padding:5px;
}#nav {
    height: 50px;
    font-size: 0.75em;
}
#nav ul {
    position: absolute;
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: #209640;
}
#nav ul li {
    float: left;
    display: inline;
    margin: 0;
}
#nav ul li a {
    display: block;
    position: relative;
    padding: 0.2em 1.5em;
    background-color: #0099CC;
    font-size: 1.3em;
    font-weight: bold;
    color: #DEE7B1;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.05em;
    border-right: 1px solid #209640;
}
#nav ul li a:hover {
    color: #2666A3;
    text-decoration: underline;
}
#nav ul li.current a {
    color: #2666A3;
    background-color: #E5F8FF;
}
#nav ul li.current a:visited {
    color: #2666A3;
}
/* hide the sublevels */
#nav ul ul {
    display: none;
}
#nav ul li.current ul {
    position: absolute;
    left: 0;
    display: block;
    /* use max-width emulation hack from
     * http://www.svendtofte.com/code/max_width_in_ie/, using the IE5.0+ dynamic
     * properties syntax, see
     * http://msdn.microsoft.com/workshop/author/dhtml/overview/recalc.asp */
        padding: 0;
    background-color: #E5F8FF;
}
#nav ul li.current li {
    padding: 0.4em 0;
}
#nav ul li.current li a {
    /* hide first pipe */
    left: -1px;
    padding: 0 1em;
    font-weight: normal;
    font-size: 1.1em;
    color: #2666A3;
    border-right: none;
    border-left: 1px solid #2666A3;
}
/* hide 3rd or more levels */
#nav ul ul ul li {
    display: none;
}
#options {
    float: right;
    width: 180px;
    background: #DEE7B1;
    border: 1px solid #666666;
}