*{
  margin: 0px;
  padding: 0px;
}

*:focus {
  outline: 0;
}

img {
    border: none;
}

a {
  color: #0EA2CC;
  text-decoration: none;
}

p {
 line-height: 20px;
 margin-bottom: 10px;
}

h1, h2, h3 {
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 16px;
}

body {
  background: url(../images/bg.jpg) fixed center top;
  background-color: #ccc;
  font: 12px Verdana, Arial, Helvetica, sans-serif;
}

#wrap {
  width: 950px;
  margin: 0 auto 0 auto;
}

#header {
  background: url(../images/header.png) no-repeat;
  height: 220px;
}

#content {
  background: url(../images/pagebg.png) repeat-y;
  padding: 0 40px 0 40px;
}

#right {
  float: right;
  width: 660px;
}


#right a:visited, active {
  border: none;
}

#right a:hover {
  color: #ff0000;
}

h1 a, h2 a, h3 a, h4 a {
  text-decoration: none;
  border:none!important;
}

.clear {
  clear: both;
}

#sidebar {
  float: left;
  width: 200px;
  background: url(../images/sb2.jpg) left repeat-y;
}

#sidebartop {
  background: url(../images/sb1.jpg) left top no-repeat;
  height: 10px;
}

#sidebarbtm {
  background: url(../images/sb3.jpg) left top no-repeat;
  height: 9px;
}

#sidebar ul {
  list-style: none;
  font: bold 14px "Trebuchet MS", Verdana, sans-serif;
  margin-bottom: 15px;
}

#sidebar li {
  display: block;
  height: 36px;
  margin-bottom: 2px;
}

#sidebar a, #sidebar a:visited {
  display: block;
  background: url(../images/menu1.jpg) right top no-repeat;
  padding: 10px 10px 0 40px;
  height: 26px;
  color: #999;
}

#right h2 {
  color: #014782;
  font: normal 18px "Trebuchet MS", Verdana, sans-serif;
}

#right h2 a {
  color: #014782;
}

#right h2 a:hover {
  color: #000;
  background: #ffffee;
  border: none;
}

#sidebar a:hover {
  background: url(../images/menu2.jpg) right top no-repeat;
  color: #333;
}

#sidebar .active a{
  background: url(../images/menu3.jpg) right top no-repeat;
  color: #000;
}

#sidebar h2 {
  display: block;
  background: url(../images/sidebarh2.jpg) no-repeat;
  height: 40px;
  padding: 14px 10px 0 40px;
  color: #186185;
  text-transform: uppercase;
}

#footer {
  background: url(../images/footerbg.png) no-repeat;
  height: 62px;
}

#site-logo {
  display: block;
  float: left;
  width: 146px;
  margin: 25px 0 0 60px;
  background: url(../images/flats-logo.png) no-repeat;
  height: 150px;
}

#sitename a{
  color: #fff;
}

.caption {
  display: block;
  font: normal 12px Verdana, Arial, Helvetica, sans-serif;
  color: #000000;
  padding-top: 30px;
}

#sitename a .blue {
  color: #0F9EC8;
  font-style: italic;
}

#sitename a:hover {
  color: #0f9ec8;
}

#sitename a:hover .blue{
  color: #9c6;
  font-family: Georgia;
  font-weight: normal;
}

#nav {
  float: right;
  width: 645px;
  padding: 35px 40px 0 0;
  height: 134px;
}

#content-top {
  background: url(../images/topbg.png) no-repeat;
  height: 20px;
}

#topmenu {
  /*padding: 60px 0 20px 0 ;*/
}

#topmenu ul {
  list-style: none;
  padding-left: 10px;
}

#topmenu li {
  display: inline;
  margin-left: 3px;
}

#topmenu a, #topmenu a:visited {
  display: block;
  float: left;
  color: #fff;
}

#topmenu a:hover {
  color: #65A6E5;
}

#featured {
  background: url(../images/ftrdbox1.jpg) no-repeat;
  height: 150px;
  color: #00CCFF;
  margin-bottom: 15px;
}

#featured div {
  padding: 10px 0px 0 10px;
  height: 105px;
  font: normal 16px "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.ftd_btm {
  display: block;
  height: 20px;
  padding: 15px 5px 0 35px;
  background: url(../images/ftrdlink.png) 8px 12px no-repeat;
}

#featured a {
  color:#fff!important;
  font-weight: bold;
  border-bottom: none;
}

#featured a:visited, #featured a:active{
  color:#fff!important;
}

#featured a:hover {
  /*text-decoration: underline;*/
  color:#fff!important;
}

.postbottom {
  background: url(../images/postbttm.png) no-repeat;
  height: 26px;
  margin-bottom: 20px;
}

.postbottom ul {
  list-style: none;
}

.postbottom li {
  display: inline;
  margin:0!important;
  padding:0!important;
}

.postbottom a, .postbottom a:visited, .postbottom a:active{
  color:#fff!important;
  font-weight: bold;
  border: none!important;
  display: block;
  float: left;
  height: 20px;
  padding: 6px 5px 0 30px;
}

.postbottom a:hover {
  color:#fff!important;
  font-weight: bold;
}

.permalink a, .permalink a:visited, .permalink a:active {
  background: url(../images/ico_more.png) 5px 5px no-repeat;
  cursor: default;
}

.cats a{
  background: url(../images/ico_cat.png) 5px 5px no-repeat;
}

.auth a{
  background: url(../images/ico_usr.png) 5px 5px no-repeat;
}

.date a{
  background: url(../images/ico_date.png) 5px 5px no-repeat;
}

.comnts a{
  background: url(../images/comment.png) 5px 5px no-repeat;
}

.news{

}

.news ul {
  margin-left: 25px;
  margin-bottom: 10px;
}

.news ol {
  margin-left: 25px;
  margin-bottom: 10px;
}

.news li{
    line-height: 15px;
}

.post h2 {
  display: block;
  margin-bottom: 10px;
}

.post .description {
  display: block;
  font-size: 12px;
  color: #999;
}

.post ul {
  margin-left: 25px;
  margin-bottom: 10px;
}

.post ol {
  margin-left: 25px;
  margin-bottom: 10px;
}

.post li{
    line-height: 15px;
}

.post .leftalign {
  display: block;
  padding: 5px;
  background: #eee;
  margin: 8px;
  float: left;
  border: solid 1px #ddd;
}

.post .rightalign {
  display: block;
  padding: 5px;
  background: #eee;
  margin: 8px;
  float: right;
  border: solid 1px #ddd;
}

form input, form textarea, form select {
	margin:0 0 2px 10px; /* set margin on left of form elements rather than right of */
    /*background: #FFFFD7;*/
}
form label {
	display: block;  /* block float the labels to left column, set a width */
	float: left;
	width: 120px;
	padding: 0;
	margin: 5px 0 0 0; /* set top margin same as form input - textarea etc. elements */
	text-align: right;
}

.submit_button{
    float:right;
    color: #ffffff;
    padding-top:2px;
    padding-bottom:2px;
    padding-left:5px;
    padding-right:5px;
    background-color:  #5071ce;
    border-top: 1px solid #273E7E;
    border-right: 2px solid #203468;
    border-bottom: 2px solid #203468;
    border-left: 1px solid  #273E7E;
    /*font-size: x-small;*/
    font-weight: bold;
}
/*
.button {
  display: block;
  padding: 0px;
  margin: 3px;
  border: 1px solid #9DC6D2;
  color: #000000;
  background: #E9F2F5;
}

.textfield:hover {
  background: #FFFFCC;
}

.textfield:focus {
  background: #ffffff;
  border: 1px solid #3A2C1B;
}
*/
.hide {
  display: none;
}

#bottom {
  padding: 20px;
  background: url(../images/bottombg.png) repeat-x;
  margin-top: 15px;
}

#bottom p {
/*  display: block;
  padding: 3px;*/
  text-align: center;
}

#credits {
  text-align: right;
  font-size: 10px;
  padding: 5px 40px 0 40px;
}

.pagenavi {
  height: 22px;
  padding: 5px 5px 0 5px;
  background: #eee;
  border: solid 1px #ddd;
  margin: 25px 0 15px 0;
}

.pagenavi .alignleft {
  display: block;
  text-align: left;
}

.pagenavi .alignright {
  display: block;
  float: right;
}

.pagenavi a, .pagenavi a:visited, .pagenavi a:active {
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border:none!important;
}

.pagenavi a:hover {
  color:#0099CC!important;
}

.td-title {
    padding:3px;
    border-right: 1px solid #dedede;
    background: #ededed;
    white-space: nowrap;
    color: #014782;
    font-weight: bold;
    width: 120px;
}
.td-data {
    padding:3px;
    font-weight: bold;
}
