/* Main rules */

body { padding: 0; margin: 10px 0; background: #FFED6D url("img/body-line.gif") repeat-x 0 0; text-align: center; }
.spc:after, #crossroad .news:after, #gallery:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }	/* auto break */
h1 { background-color: #FFCD01; color: #7F6500; margin: 0 1px 1px;}

/* Mother */
#mother, #footer { width: 940px; margin: 0 auto; padding: 10px; text-align: left; background-color: #167FD1; }

/* Header */
#header { height: 190px; background: url("img/header.jpg") no-repeat 0 0; }
#header h1 { margin: 0; font-size: 25px; width: 195px; height: 40px; }
#header a { width: 185px; height: 38px;	display: block;	text-decoration: none; }
#header span { overflow: hidden;	visibility: hidden;	display: none; }

/* Main menu */
#menu-main { background: transparent url("img/menu-line.gif") repeat-y 0 0; width: 100%; }
#menu-main a, #menu-main span { padding: 0.62em 14px; display: block; text-decoration: none; color: #264A96; _height: 1px; }
#menu-main span { background: #800000 url("img/menu.png") repeat-x 0 0; color: white; font-weight: bold; cursor: default; }
#menu-main a:hover, #menu-main a:active, #menu-main a:focus { color: #264A96; text-decoration: underline; }
#menu-main a { padding-left: 19px; }
#menu-main li { border-bottom: 1px solid white; }
#menu-main li.active { background: #167FD1; }
#menu-main li.active a { color: white; padding-left: 30px; background: url("img/link2-active.gif") no-repeat 19px 50%; text-decoration: none; }
#menu-main li.active li a, #menu-main li li a { background: url("img/link2.gif") no-repeat 19px 50%; color: #264A96; }
#menu-main li.active li a:hover, #menu-main li li a:hover { color: black; text-decoration: underline; }
#menu-main li li.active a:hover { color: white; }
#menu-main li li { background: none; font-size: 92%; border: none; }
#menu-main .last a, #menu-main .last span { border: none; }
#menu-main ul { list-style: none; margin: 0; padding: 0; }
#menu-main ul ul { background: #D1D9DF; }
#menu-main ul ul a, #menu-main ul ul span { padding-left: 30px; border: none; }


/* Content */
#content { width: 940px; padding: 1px 0 0; min-height: 200px; background: white url("img/content-line.gif") repeat-y 0 0; }

/* News */
#news { background-color: #E6E6E6; margin: 0 10px; }
#news .item { padding-bottom: 14px; color: #515151; }
#news p, #news h3 { margin-bottom: 0.4em; padding: 4px 6px;}
#news h3 { font-size: 130%; clear: both; background-color: #F6F6F6; }
#news h3 span { font-weight: normal; font-size: 80%; color: #167FD1; }
#news p { padding-right: 0.5em; }
#news p.more { text-align: left; }
#news.subpage p { margin-bottom: 1.3em; }
#col-cont-r #news p { font-size: 92%; }

/* Perex */
#perex { font-weight: bold; padding: 1.6em 25px 1.6em; background: #E7E7E7; }
#perex p { margin: 0; padding: 0; }

/* Service */
.service { padding: 10px 10px 0; width: 400px; border: 2px solid #999; margin-bottom: 1.8em; }
.service h4, .service p, .service ul, .service table { margin-bottom: 10px; }
.service img { margin-right: 5px; }
.service h4 { padding: 8px 10px; margin: -10px -10px 10px; background: #aaa; color: white; _height: 1px; }

/* Notice */
#notice { margin: 0;  padding: 0; list-style: none; }
#notice li { padding-left: 30px; height: 40px; background: url("img/ico-doc.gif") no-repeat 0 0; }
#notice li a { font-weight: bold; }

/* Poll */
.pollform { padding: 0 0 3em 19px; font-size: 92%; }
.pollform h3 { margin-bottom: 0.35em; padding: 0.3em 0; color: #888; font-size: 100%; }
.pollform img { border: none; vertical-align: middle; }
.pollform table, .pollform td { border: none; background: #eee; } 
.pollform ul { margin: 0; padding: 0; list-style: none; }
.pollform li { margin-bottom: 4px; }
.pollform a { color: #616161; text-decoration: none; display: block; margin-bottom: -4px; }
.pollform a:hover { color: black; text-decoration: underline; }

/* Footer */
#footer { padding-top: 0.5em; font-size: 92%; text-align: right; background: #FFED6D; color: #000000; }
#footer a { color: #000000; text-decoration: none; }
#footer a:hover { color: #167FD1; }
#footer span { float: left; width: 25%; height: 2em; line-height: 2em; text-align: left; }

/* Columns */
#col-l { width: 190px; float: left; }
#col-r { width: 740px; float: right; }
#col-r .spc { padding: 30px 25px; _height: 1px; text-align: justify; }
#col-r #col-cont-l .spc { text-align: justify; }
#col-l .spc { padding: 20px; }
#col-cont-l { width: 475px; float: right; }
#col-cont-r { width: 265px; float: left; }
#col-cont-r h2 { background-color: #E6E6E6; color: #797979; margin: 12px 10px 0 10px; padding: 18px 6px; }

/* Crossroad */
#crossroad img { float: left; margin: 0 20px 20px 0; }
#crossroad .no-image { padding-left: 178px; }
#crossroad .news { padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px dotted #ddd; _height: 1px; min-height: 1px; }
#crossroad .more { margin: 0; }

/* gallery */
#gallery { margin-right: -3px; _height: 1px; min-height: 1px; margin:5px 0 0;}
#gallery a { display: block; width: 226px; padding: 4px; _height: 170px; min-height: 170px;
	float: left; margin:9px 5px; margin-top: 0; font-size: 92%; text-decoration: none; border: 1px solid #ddd; text-align: center; _display: inline; }
#gallery img { display: block; margin: 0 auto 3px auto; border: none; }


/* Map */
#map { border: none; }

/* Misc */
.no-screen { position: absolute; left: -2000px; top: -2000px; }
.files { margin: 0 0 1.6em 0; padding: 0; list-style: none; }
table.th-right th { text-align: right; }
ul p.center img { margin-top: 1.5em; }

/* by agent_orange */
span.break {
	display:block;
	width:95%; height:1px; font-size:1px;
	float:none; clear:both;
	padding:0; margin:0; border:0;	
}

p#gal-list {
	text-align:center;
}

#files {
	margin:0 25px;
	clear:both;
}
#images {
	margin:0 25px;
}