* { 
  font-family: Verdana;
  margin: 0; 
  padding: 0;
}
body {
  padding-top: 5px;
}
#messenger_window {
  background-color: #fff;
}
#left_column {
  float: left;
  left: 5px;
  width: 200px; 
}
#right_column {
  margin-left: 210px;
  padding-right: 5px;
}
#messenger_window .rounded_block_header_left {
  padding-left: 12px;
}
#messenger_window .rounded_block_header_right{
  padding-right: 12px;
}

/* styles for yellow dialog block - differ from blocks.css */
#dialog {
  display: block;
}
* html #dialog {
  width: 99%;
}
.person_details {
  position: relative;
}
#current_person {
  margin-bottom: 5px;
}
#current_person  .rounded_block_header_left {
  position: absolute;
  top: 0;
  left: 0;
}
#current_person  .rounded_block_header_right, #current_person .rounded_block_header_left {
	background-image: url(../images/messenger/blocks/yellow_header_2.gif);
  height: 25px;
  line-height: 25px;
}
#current_person .block_top {
  background-image: url(../images/messenger/blocks/yellow_top_bottom_2.gif);
}
#current_person  .block_middle_1 {
	border-right: 1px solid #d7daab;	
}
#current_person .block_middle_2 {
	background-image: url(../images/messenger/blocks/yellow_middle_middle_2.gif);
}
#current_person  .block_bottom, #current_person  .block_bottom div  {
  background-image: url(../images/messenger/blocks/yellow_top_bottom_2.gif);
}
#current_person .block_text {
  margin: 0 8px;
  padding-top: 23px;
}
#current_person  .rounded_block_header_left  span {
  /*float: left;*/
  margin-right: 5px;
  /*padding-top: 2px;*/
}
#current_person  .rounded_block_header_left  span img {
  vertical-align: middle;
}
#current_person  .rounded_block_header_left em {
  font-style: normal;
  font-weight: normal;
  font-size: 11px;
  margin-left: 3px;
}
*:first-child+html #current_person  .rounded_block_header_left  span {
  position: relative;
  top: -1px;
}
* html #current_person  .rounded_block_header_left img {
  height: 19px;
}
* html #current_person  .rounded_block_header_left span {
  margin-right: 3px;
  position: relative;
  top: 1px;
}
#current_person .online {
  color: #52ab16;
}
#current_person .online em {
  color: #6eae28;
}
#current_person .offline {
  color: #777;
}
#current_person .offline em {
  color: #888;
}
.person_info {
  font-size: 11px;
  overflow: hidden;
}
* html .person_info {
  zoom: 1;
}
a.avatar {
  background: url(../images/messenger/photo_bg.png) no-repeat 0 0;
  display: block;
  float: left;
  height: 58px;
  width: 57px;
  margin-right: 5px;
}
.avatar img {
  margin: 4px 0 0 4px;
}
.person_info .status {
  background: url(../images/messenger/status_arrow.gif) no-repeat 0 0;
  padding: 2px 0 0 10px;
  overflow: hidden;
}
* html .person_info .status {
  zoom: 1;
}
.status div {
  background: url(../images/messenger/status_text.gif) repeat-x 0 0;
  border-right: 1px solid #8eb559;
  border-bottom: 1px solid #8eb559;
  float: left;
  line-height: 1.3em;
  padding: 2px 5px 2px 10px;
}
.person_info  .links {
  color: #bec197;
  margin-left: 71px;
  padding-top: 4px;
  white-space: nowrap;
}
.links a, .links a:visited {
  color: #555;
  font-size: 11px;
}

.pseudo_link {
  color: #555;
  font-size: 11px;
  border-bottom: 1px dotted #555;
  cursor: pointer;
}


/* CONTACTS LIST */
*:first-child+html  #contacts_list .block_middle_2 {
  zoom: 1;
}
#contacts_list .rounded_block_header_right, #contacts_list .rounded_block_header_left {
	background-image: url(../images/messenger/blocks/blue_header_2.gif);
  height: 25px;
  line-height: 25px;
}
#contacts_list .block_text {
  clear: none;
  font-size: 11px;
  margin: 0;
  height: 524px;
  /* 600 - 10px (body padding) - 25 (rounded_block_header_left) - 8 (block_middle_2.padding-top) - 28*/ 
  overflow: auto;
}
#contacts_list .block_middle_1 { 
  background: #deeef8 url(../images/messenger/blocks/blue_middle_middle.gif) repeat-x top left;
  padding-bottom: 20px;
}
#contacts_list .block_middle_2 { /* COMMENTS */
  background-color: transparent;
  background-image: none;
  border-top: none;
  clear: left;
} 
* html #contacts_list {
  background-color: #d5e6f1;
}
/* contacts list itslef */
.contacts {
  list-style-type: none;
}
.contacts li {
  display: block;
  color: #333;
  line-height: 20px;
  margin-bottom: 1px;
  padding: 4px 6px;
  overflow: hidden;
}
.contacts .offline strong {
  color: #aaa;
}
.contacts span {
  float: left;
  margin-right: 5px;
  width: 20px;
}
.contacts li.active  {
  background-color: #e9f5fd;
  zoom:1;
}
.contacts li.active strong {
  font-weight: bold;
}
.contacts strong img {
  vertical-align: middle;position: relative;top:-1px;
}
a img { border: none; }
.contacts .li_hover em {
  display: block;
  cursor: pointer;
}
.contacts .li_hover  {
  background-color: #e9f5fd;
  cursor: pointer;
}
.contacts strong {
  float: left;
  font-weight: normal;
  line-height: 20px;
}
.contacts em {
  height: 15px;
  width: 15px;
  display: none;
  position: relative; 
  top: 3px;
  background: url(../images/messenger/del.gif) no-repeat 0 0;
  float: right;
}
.new_message strong {
  font-weight: bold;
}
/* all contacts button */
.down_title {
  background: url(../images/messenger/blocks/blue_header_3.gif) no-repeat right top;
  position: absolute;
  font-size: 12px;
  bottom: 0;
  height: 25px;
  line-height: 25px;
  right: 0;overflow: hidden; 
  padding-right: 8px;
}
* html .down_title  {
  bottom: expression(this.parentNode.offsetHeight % 2 ? '-1px' : '0');
  zoom: 1;
}
.down_title strong {
  border-right: 1px solid #b9cad8;
  font-weight: bold;
  height: 24px;
  float: left;
  line-height: 23px;
  padding-right: 10px;
  padding-left: 10px;
  background: url(../images/messenger/blocks/blue_header_3.gif) no-repeat left top;
  text-decoration: underline;
  cursor: pointer;
  margin-right: 8px;
}
.down_title span {
  background: url(../images/messenger/set.png) no-repeat 0 0;
  cursor: pointer;
  display: block;
  float: left;
  height: 15px;
  width: 16px;
  font-size: 0;
  line-height: 0;
  position: relative;
  top:5px;
}


/* ALL CONTACTS BLOCK */
* html #all_contacts {
  width: 99%;
}
#all_contacts {
  display: none;
}
#all_contacts  .rounded_block_header_left, #all_contacts  .rounded_block_header_right {
  background-image: url(../images/messenger/blocks/gray_header_2.gif);
  height: 25px;
  line-height: 25px;
}
#all_contacts  .rounded_block_header_left {
  position: absolute;
  top: 0;
  left: 0;
}
#all_contacts .block_text {
  margin: 0;
  padding-top: 29px;
}
#all_contacts .paginator {
  padding: 13px 0 10px;
}
.conds {
  background: url(../images/messenger/conds_bg.gif) repeat-x 0 0;
  height: 23px;
  overflow: hidden;
  padding: 0 7px 0 5px;
  position: relative;
}
* html .conds, .conds h5 {
  zoom: 1;
}
.conds h5 {
  background: url(../images/messenger/filter_bg.gif) no-repeat 0 1px;
  float: left; 
  font-size: 11px;
  line-height: 23px;
  overflow: hidden;
  padding-left: 24px;
}
.conds h5 strong {
  float: left;
  margin-right: 10px;
}
.conds h5 span {
  cursor: pointer;
  float: left;
  font-weight: normal;
  margin-right: 10px;
  text-decoration: underline;
}
.conds .active {
  background-color: #5391c1;
  color: #fff;
  cursor: default;
  padding: 0 5px;  
  text-decoration: none;
}
#search_nick {
  background: url(../images/messenger/search_nick.gif) no-repeat 0 2px;
  float: right;
  height: 23px;
  padding-left: 21px;
}
#search_nick input {
  border:1px solid #CCCACB;
  font-size: 11px;
  padding: 2px 3px;
  position: relative;
  top: 2px;
}
* html #search_nick input {
  top: 1px;
}
*:first-child+html #search_nick input {
  top: 1px;
}
.rounded_block .person {
  overflow: hidden;
  padding: 3px 6px;
}
.hover_person {
  background-color: #ededed;
}
* html .rounded_block .person  {
  zoom: 1;
}
.person .avatar img {
  border-color: #fff;
}
.person div {
  cursor: pointer;
  margin-left: 60px;
}
.person h3 {
  font-size: 12px;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.4em;
}
.people .online h3 {
  color: #52ab16;
}
.people .online em {
  color: #6eae28;
}
.people .offline h3 {
  color: #777;
}
.people .offline em {
  color: #888;
}
.person em {
  font-weight: normal;
  font-size: 11px;
  font-style: normal;
  margin-left: 2px;
}
.person p {
  font-size: 11px;
  line-height: 1.3em;
}


/* CHAT */
.div_textarea textarea {
  border: 1px solid #cccacb;
  height: 70px;
  width: 99.5%;
  margin-top: 5px;
  font-size: 12px;
  z-index: 1;
}
* html .div_textarea   {
  position: relative; 
  height:1%;
  z-index: 1;
}
* html .div_textarea   textarea {
  zoom:1;
}
* html #message_block{
  height: 1%;
}	
.posts {
  background-color: #fff;
  border: 1px solid #cccacb;
  font-size: 11px;
  height: 100%;
  margin-bottom: 5px;
  overflow: auto;
  /* TODO uncomment dor ie6 */  
  /*width: 99.5%;*/
}
.post {
  border-top: 1px dashed #dbdbdb;
  padding: 5px 10px 6px;
}
.posts .first {
  border: none;
}
.post h6 {
  overflow: hidden;
  font-size: 11px;
  font-weight: normal;
  margin-bottom: 2px;
}
* html .post h6  {
  zoom: 1;
}
.post p {
  line-height: 1.3em;
}
.mine h6 strong {
  color: #888;  
}
.other h6 strong {
  color: #82b4d8;
}
.post h6 strong {
  float: left;
  font-weight: normal;
}
.post h6 span {
  float: right;
  color: #aaa;
  font-size: 10px;
}
#chat .block_text {
  padding: 0 8px;margin: 0;
  height: 1%;
}
div.smiles {
  height: 30px;
  padding-top: 5px;position: relative;
}
#more_smiles {
  font-size: 11px;
  position: absolute;
  top: 11px;
  right: 1px;
  font-style: normal;  
}
.smiles span {
  color: #333;
  cursor: pointer;
  text-decoration: underline;
}
* html #more_smiles {
  right: 8px;
}
.smiles a img {
  border: none;
 }
#more_smiles div {
  background-color: #fff;
  border: 1px solid #bbb;
  border-bottom-color: #aaa;
  border-right-color: #aaa;
  cursor: default;
  display: none;
  line-height: 32px;
  padding: 4px 0px 4px 5px;
  position: absolute;
  right: 40px;
  top: -6px;
  width: 420px;
  z-index: 5;
}
#more_smiles div  img {
  cursor: pointer;
  margin-right: 5px;
  vertical-align: middle;
}
.button_and_text {
  font-size: 12px;
  padding: 5px 0 0;
}
.button_and_text input {
  position: relative;
  margin-right: 2px;  
  z-index: 1;
}
.button_and_text span {
  font-size: 11px;
  color: #bbb;
  margin-right: 10px;
}
.button_and_text a, .button_and_text a:visited {
  font-size: 11px;
  color: #333;
}
.more_people {
  text-align: center;
}
.more_people img {
  cursor: pointer;
  margin: 0 2px;
  vertical-align: middle;
}
.paginator {
  font-size: 11px;
  text-align: center;
  line-height: 14px;
  padding-bottom: 8px;
}
.paginator a, .paginator a:visited {
  color: #333;
}
.paginator a {
  padding: 2px 4px 3px;
}
.paginator .arrow img {
  position: relative;
  top: 2px;
}
.paginator a.current {
  background-color: #bfdcf1;
  text-decoration: none;
}

/* settings */
* html #settings {
  width: 99%;
}
#settings {
  display: none;
}
#settings .block_text {
  font-size: 11px;
  margin: 0;
  padding: 24px 10px 0;
}
#settings  .rounded_block_header_left, #settings  .rounded_block_header_right {
  background-image: url(../images/messenger/blocks/gray_header_2.gif);
  height: 25px;
  line-height: 25px;
}
#settings  .rounded_block_header_left {
  position: absolute;
  top: 0;
  left: 0;
}
#settings .auto_spam_filter, #settings .messages_filter {
  height: 20px;
  line-height: 20px;
  margin-bottom: 5px; 
  position: relative;
}
#settings .auto_spam_filter  p, #settings .messages_filter  p{
  float: left;
  height: 20px;
  margin-right: 5px;
  position: relative;
  text-align: right; 
  width: 60px;
}
.auto_spam_filter  input {
  height: 20px;
}
/* opera hack */
@media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) { 
  head~body .auto_spam_filter  input {
    height: 14px;
    position: relative; 
    top: 3px;
}}
.auto_spam_filter  label {
  vertical-align: middle;
}
.messages_filter select {
  border: 1px solid #CCCACB;
  font-size: 11px;
  position: relative;
  top: 2px;
  vertical-align: top;
  width: 200px;
}
.messages_filter  em {
  font-style: normal;
  vertical-align: middle;
}
#settings .button_filter {
  margin-top: 11px;
}
#settings form {
  padding: 5px 0 10px;
}
.button_filter input {
  margin-left: 65px;
}
* html .button_filter input {
  overflow: visible;
  padding: 0 2px;
}
* html .auto_spam_filter  input {
  margin-right: -4px;
}
*:first-child+html .auto_spam_filter  input {
  margin-right: -3px;
}
.person_details a {
  color:#777777;
  text-decoration: none;
}
.person_details .online a {
  color: #52ab16;;
  text-decoration: none;
}

#text_throbber {
  display: none;
  position: absolute;
  left: 480px;
  top: 200px;
  z-index: 1000;
}
div#smile_panel {
	position: absolute;
	top: -110px;
	z-index: 1000;
}
.dialog_controls {
	position: relative;
}
.people .offline a {
	color: #777777;
}
.people .online a {
	color: #52ab16;
}