/*						*
*	Haapsalu Piiskopilinnus 2007	*
*		Krabi and Mask		*
*		Oliver Pulges		*
*						*/


.sIFR-replaced, {
 /* clips the absolutely positioned embed element. */
position:relative; /* Allows you to position the embed tag absolute. */
visibility:visible !important;
}


.sIFR-replaced  embed{
	position:absolute; /* places the embed element outside the document structure to allow for clipping. */
}

@media screen and (min-width: 550px){
	.sIFR-replaced  embed{
	position:static; /* places the embed element outside the document structure to allow for clipping. */
	}
}

body{
	margin: 0;
	padding: 0;
	background: white;
	text-align: center;
	font: 12px Tahoma, sans-serif;
	color: #333;
}

img{
	border: none;
	margin:0;
	padding:0;
}

a{
	text-decoration: none;
	color: #333;
}

a:hover{
	text-decoration: underline;
}

.red{
	color: #cf4111;
}

.blue{
 color: #2b64a2;
}

h3{
	margin:0;
	padding:0;
	font-size: 20px;
	line-height: 1em;
	font-family: 'Times New Roman', Times;  /* muuta */
	font-weight: normal;
	height: 25px;
}

* html h3{
	font-size: 20px;
	line-height: 1em;
}



.activeheading {
	color: #ffcc00;
}

* html .activeheading {
		font-size: 22px;
	line-height: 1em;
}

#wrap{
	padding:0;
	margin: 0 auto 0 auto;
	width: 950px;
	display: block;
	clear:both;
}

/* header */
#header{
	margin:0;
	padding:0;
	text-align:left;
	height: 75px;
	display: block;
	clear: both;
	overflow:hidden;

}

#header_firstbox{
	width: 450px;
	height: 75px;
	display: block;
	overflow:hidden;
	float:left;
}

#header_firstbox img{
	margin: 22px 14px 0 0;
	float: right;
}

#header_firstbox2{
	width: 440px;
	height: 75px;
	display: block;
	overflow:hidden;
	float:left;
}

#header_firstbox2 img{
	margin: 22px 14px 0 0;
	float: right;
}


#header_secondbox{
	width: 120px;
	height: 75px;
	display: block;
	overflow:hidden;
	float:left;
}

#header_thirdbox{
	width: 80px;
	height: 75px;
	display: block;
	overflow:hidden;
	float:left;
}

#header_thirdbox ul{
	padding:0;
	list-style-type: none;
	width: 60px;
	margin: 22px 0 0 10px;
	font-size: 11px;
	text-align:left;
}

#header_fourthbox{
	width: 300px;
	height: 75px;
	display: block;
	overflow:hidden;
	float:left;
}


#header_fourthbox .esileht_sifr14{
	margin: 22px 0 0 0;
	font-size: 14px;
	padding:0;
	line-height: 14px;
	height: 16px;
	display: block;
	clear:both;
	text-align: center;
	font-family: 'Times New Roman', Times;
	font-weight:bold;
}

.sIFR-active #header_fourthbox .esileht_sifr14{
	text-align: left;
	height: 35px;
}

#header_fourthbox a{
	color: #cf4111;
	display: block;
	clear:both;
}
/* -- header */

/*esileht */

#esileht_content{
	width: 950px;
	background: white url("../pildid/firstpage_bg.jpg") no-repeat;
	height: 500px;
}

#esileht_content #topbox{
	width: 950px;
	height: 221px;
}

#top_logobox {
	width: 70px;
	height: 30px;
	display:block;
	float:right;
	background: white;
}

#esileht_content #bottombox{
	width: 100%;
	margin: 0 0 0 18px;
	display: block;
	clear:both;
	text-align: left;
}

* html #esileht_content #bottombox{
	margin: 0 0 0 0px;
}

.l2menu{
	display:block;
	width: 700px;
	overflow:hidden;
	float:left;
}

#esileht_content table{
	margin: 16px 18px 0px 18px;
	padding:0;
}

#esileht_content .row{
	padding:0;
	margin:0;
	text-align: left;
	vertical-align: top;
}



#esileht_content .row h3{
	color: white;
	font-size: 20px;
	line-height: 20px;
	height:25px;
	margin-bottom: 30px;
}

h4{
	color: white;
	margin:0;
	padding:0;
	display: block;
	font-size: 22px;
	line-height:1em;
	height:1px;
	overflow:hidden;
	padding-right:20px;
	filter: alpha(opacity=0); /* MSIE/PC */
	-moz-opacity: 0; /* Mozilla 1.6 and older */
	opacity: 0;
}



#esileht_content .row ul{
	padding:0 0 9px 0;
	margin:0;
	float:left;
	list-style-type: none;
	line-height:22px;
	font-size: 11px;
	border-bottom: 5px solid #ececec;
	clear:both;
}

#esileht_content .row ul li{

}

#esileht_content .box_row_outer{
	width:196px;
	display: block;
	padding:0;
	float:left;
	margin: 0 0 0 0;
	
}

#esileht_content .box_row{
	width:160px;
	display: block;
	padding:0;
	overflow:hidden;
	border: 5px solid #c8d0c2;
	padding: 13px 13px 13px 13px; 
	font-size: 11px;
	margin: 0 0 0 0;
}


#esileht_content .activeheading {
	color: #ffcc00;
	font-size: 20px;
	margin-bottom: 30px;
}

#esileht_content .box_row p{
	margin: 0 0 8px 0;
}

#krabi_logo{
	margin:4px;
	padding: 0;
	display: block;
	float:right;
}

/* -- esileht */

/* sisuleht */

/* content head */
	#content_head{
		width: 950px;
		height: 200px;
		background: #2b65a3 url("../pildid/content_head_bg.jpg") no-repeat;
		text-align:left;
		overflow:hidden;
	}

	#content_head .row{
		margin: 45px 0 0 16px;
		text-align: left;
		vertical-align: top;
	}
	
	#content_head table{
		margin: 45px 0 0 16px;
	}

	
	* html #content_head .row{
		margin: 45px 0 auto 10px;
	}

	#content_head .row h3{
		padding: 0 6px 0 6px;
		line-height: 20px;
		height:30px;
		color: white;
	}

	#content_head .row h3 a{
		color: white;
		padding: 1px 6px 1px 6px;
	}

	#content_head .row .activeheading{
		padding: 1px 6px 1px 6px;

		height:30px;
		color: #ffcc00;
	}


	#content_head .row ul{
		list-style-type: none;
		clear: both;
		margin: 3px 0 3px 0;
		padding: 0px 0px 0px 0px;
		line-height:18px;
		font-size: 11px;
		color: white;
	}
	
	#content_head .row ul li{
	
	}

	#content_head .row ul a{
		color: white;
		padding: 1px 6px 1px 6px;
	}

	/*#content_head .row div:hover{
		clear: both;
		margin: 3px 0 3px 0;
		padding: 0 6px 0 6px;
		line-height:15px;
		font-size: 11px;
		color: white;
		background: #ffcc00;
	} */
	
	#content_head .row .active{
		clear: both;
		margin: 3px 0 3px 0;
		padding: 1px 6px 1px 6px;
		line-height:15px;
		font-size: 11px;
		color: white;
		background: #ffcc00;
	}
	
/* -- content head */

#content_outer{
	width: 950px;
	display: block;
	clear:both;
	overflow:hidden;
	background: #e9efe5 url("../pildid/content_bg.gif") repeat-y;
	line-height: 16px;
	padding-bottom: 20px;
}
 /* content left */
	#content_left{
		width: 650px;
		display:block;
		float:left;
		overflow:hidden;
		text-align: left;
	}
	
	#content_left h1{
		margin:0;
		padding:0;
		font-size: 30px;
		line-height: 1em;
		font-family: 'Times New Roman', Times;  /* muuta */
		font-weight: normal;
		height: 50px;
		position: static;
		clear:both;
	}
	
	.sIFR-active #content_left h1{
		line-height: 0.9em;
		position: static;
		
	}
	
	#content_left p{
		margin: 8px 0 20px 0;
		padding: 0;
		line-height: 18px;
	}

	#content_left .inner{
		display: block;
		margin: 35px;
	}

 /* --content left */
 
 /* content right */
	#content_right{
		width: 300px;
		display:block;
		float:left;
		overflow:hidden;
		text-align: left;
	}
	
	#content_right .inner{
		display: block;
		margin: 24px;
	}
	
	#content_right .inner h1{
		color: #333;
		font-family: 'Times New Roman', Times;
		font-weight: normal;
		font-size: 20px;
		line-height: 1em;
		margin:0;
		padding:0;
		height: 30px;
	}
	
	.sIFR-active #content_right .inner h1{
		line-height: 0.9em;
	}
	
	
	#content_right .inner .greenbox{
		display: block;
		background: #d5e1ce;
		padding: 10px;
		line-height: 18px;
		clear:both;
		overflow:hidden;
	}
	
	#content_right .inner .greenbox a{
		color: #2b64a2;
	}
	
	#content_right .inner .greenbox a.active{
		color: #2b64a2;
		font-weight: bold;
	}
	
	#content_right .inner p{
		display: block;
		background: #d5e1ce;
		padding: 10px;
		line-height: 14px;
		font-size: 11px;
		clear:both;
	}
	
	#content_right .inner .greenbox p{
	
		display: block;
		line-height: 14px;
		padding: 0;
		font-size: 11px;
	}
	
	#content_right img{
		padding:0;
		margin: 10px 0 5px 0;
		float:left;
	}
	
	#content_right .picturebox{
		display:block;
		clear:both;
		width: 254px;
		overflow:hidden;
		margin: 10px 0 5px 0;
		padding:0;
	}
	
	#content_right .picturebox .pic_container{
		display:block;
		width: 254px;
		overflow:hidden;
		background: url("../pildid/img_bg_upper.gif") no-repeat;
		margin: 0;
		padding:0;
	}

/* kulalisteraamat */

	#content_left h2{
		font-size: 20px;
		font-weight: bold;
		margin:10px 0 0 0;
		padding:0;
		line-height:1em;
	}
	
	#content_left h2 .date{
		font-size: 12px;
		font-weight: normal;
	}
	
	#content_right .textbox1{
		border: 1px solid #bdc8d2;
		width: 107px;
		line-height: 20px;
		font-size: 11px;
		margin:2px 0 2px 0;
		padding: 4px 0 0 4px;
		font-weight: normal;
		height: 20px;
	}
	
	#content_right .textbox2{
		border: 1px solid #bdc8d2;
		width: 224px;
		line-height: 20px;
		font-size: 11px;
		margin:2px 0 2px 0;
		padding: 5px 0 0 4px;
		font-weight: normal;
		height: 20px;
	}
	
	#content_right textarea{
		border: 1px solid #bdc8d2;
		width: 224px;
		line-height: 14px;
		font-size: 11px;
		margin:2px 0 2px 0;
		padding: 2px 0 0 4px;
		font-weight: normal;
		height: 100px;
		overflow: auto;
	}
	
	#content_right .submit{
		margin: 4px auto 10px auto;
	}
	
	#content_right p{
		font-size: 11px;
		margin: 4px 0 16px 0;
		line-height: 16px;
		width: 230px;
	}
	
/* --kulalisteraamat */

/* galerii */

	#content_left table{
		border: none;
		border-spacing: 10px;
		/* for IE */
		border-spacing:expression (cellspacing:10);
	}
	
	#content_left table tr td{
		width: 130px;
		height: 130px;
		background: #d5e1ce;
		text-align: center;
		margin: 5px;
	}
	

/* kalender */

#kalender a, #kalender table tr td a, #kalender table a {
	color: #505050;
	text-decoration:none;
}

#kalender .red {
	color:#cc3300;
}
#kalender{
	width: 230px;
	overflow: hidden;
	float:left;
	font-size: 11px;
	color: #505050;
	margin-top: 20px;
	background:url(../pildid/kalender.gif) no-repeat;
}
#kalender .head{
	height: 32px;
	line-height: 32px;
	text-align: center;
}
#kalender .head_2{
	padding: 0 8px 0 8px;
	text-align: left;
	line-height: 26px;
	height: 26px;
}
#kalender table{
	width: 230px;
	text-align: center;
	border-collapse: separate; 
	border-spacing: 0px 0px;
	line-height: 20px;
	color: #505050;
}
#kalender table td{
	padding: 0 2px 0 2px;
	margin:0;
	text-align: center;	
}
#kalender table tr{
	padding: 0;
	margin:0;
}
#kalender table tr.active:hover{
	background-color: #ead367;
	cursor: pointer;
}

#kalender table tr td.active:hover{
	background-color: #ead367;
	cursor: pointer;
}



