/**
* The chat window require this layout:
* 1. Fixed height status bar at the bottom
* 2. Content div that fills the rest of the window
* 
* The SUPERIOR technique for achieving this layout
* was found here:
* http://www.cssplay.co.uk/layouts/body4.html
*
* Kudos to Stuart Nicholls
*/
html, body
{
	margin: 0;
	padding: 0;
	border: 0;
	height: 100%;
	max-height: 100%;
	background: #F3F2E7;
	font: normal 12px Tahoma;
	color: #333;
	overflow: hidden;
}

html
{
/* hide overflow:hidden from IE5/Mac */ 
/* \*/ 
overflow: hidden; 
/* */ 
}

#content
{
	overflow: hidden;
	position: absolute;
	z-index: 3;
	top: 0;
	bottom: 23px;
	left: 0;
	right: 0;
}

* html #content
{
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100%;
	max-height: 100%;
	width: 100%;
	overflow: hidden;
	position: absolute;
	z-index: 3;
	border-bottom: 23px solid #fff;
}

#statusbar
{
	position: absolute;
	margin: 0;
	bottom: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 22px;
	z-index: 5;
	overflow: hidden;
	border-top: 1px solid #ACA899;
	background: url('images/status.gif') left bottom repeat-x;
	font: normal 11px Arial;
}

/**
* Vertical centering hack was found here:
* http://www.boutell.com/newfaq/creating/centervertically.html
*/
.center
{
	display: table;
	height: 100%;
	width: 100%;
}

.center .content
{
	display: table-cell;
	vertical-align: middle;
	text-align: center;
}

.center .content table
{
	margin: 0 auto;
}

* html .center
{
	position: relative;
	height: 100%;
	width: 100%;
}

* html .center .wrapper
{
	position: absolute;
	top: 50%;
	width: 100%;
}

* html .center .content
{
	position: relative;
	top: -50%;
}

td, input, textarea
{
	font: normal 12px Tahoma;
	resize: none;
}

a
{
	color: #070;
}

#toolbar
{
	position: absolute;
	z-index: 6;
	width: 100%;
	height: 27px;
	overflow: hidden;
	top: 0;
	left: 0;
	right: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: #efefe3 url('images/toolbar.gif') left bottom repeat-x;
}

#history
{
	background: #fff;
	overflow: auto;
	position: absolute;
	left: 0;
	right: 0;
	top: 27px;
	bottom: 84px;
	z-index: 5;
}

* html #history
{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100%;
	max-height: 100%;
	width: 100%;
	overflow-y: scroll;
	z-index: 5;
	border-bottom: 84px solid #F3F2E7;
	border-top: 27px solid #F3F2E7;
}

#chat .wrapper
{
	position: absolute;
	margin: 0;
	bottom: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 83px;
	z-index: 6;
	overflow: hidden;
	border-top: 1px solid #ACA899;
	background-color: #f3f2e7;
}

#toolbar-bottom
{
	position: absolute;
	left: 1px;
	right: 1px;
	bottom: 0;
	z-index: 20;
	height: 27px;
}

* html #toolbar-bottom
{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	border: 2px solid #F3F2E7;
	border-top: 0 none;
	border-bottom: 0 none;
	height: 27px;
}

#chat .wrapper .wrapper2
{
	position: absolute;
	left: 6px;
	right: 6px;
	top: 6px;
	bottom: 6px;
	bottom: 27px;
	z-index: 7;
	background: #fff;
	border: 1px solid #ACA899;
}

#splitter
{
	position: absolute;
	width: 100%;
	height: 6px;
	background: url('images/splitter.gif') center no-repeat;
	left: 0;
	bottom: 77px;
	z-index: 10;
	cursor: s-resize;
}

#resizer
{
	display:none;
	background: #cccccc;
	position: absolute;
	width: 100%;
	z-index: 11;
}

* html #chat .wrapper .wrapper2
{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100%;
	width: 100%;
	max-height: 100%;
	overflow: hidden;
	z-index: 7;
	border: 6px solid #F3F2E7;
	border-bottom: 27px solid #F3F2E7;
}

#message
{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	display: block;
	overflow-y: scroll;
	border: 0px none;
	width: 100%;
	height: 46px;
}

* html #message
{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100%;
	max-height: 100%;
	width: 100%;
	overflow-y: scroll;
	z-index: 8;
	border: 1px solid #ACA899;
}

#chat.ended #history
{
	top: 0;
	border-top: 0;
	bottom: 0;
	border-bottom: 0;
}

#chat.ended #toolbar
{
	display: none;
}

#chat.ended .wrapper
{
	display: none;
}

#chat.ended #splitter
{
	display: none;
}

.readonly
{
	background: #E7EAE0;
	color: #666;
}

.message
{
	padding: 2px 5px;
}

.message table
{
	border-spacing: 0;
}

.message td
{
	padding: 0;
}

.message .author
{
	font-weight: bold;
	display: block;
	float: left;
	margin: 0 5px 0 0;
	height: 1%;
}

.message .author.rtl
{
	float: right;
	direction: rtl;
	margin: 0 0 0 5px;
}

.message a
{
	color: #070;
}

.message.operator
{
	background: #FFFFD6;
}

.message.operator .author
{
	color: #1A16AB;
}

.message.system
{
	background: #D6FFD6;
}

#powered
{
	position: absolute;
	right: 5px;
	top: 3px;
}

.button
{
	border-spacing: 0;
	height: 21px;
	margin: 3px 0 0 5px;
	cursor: pointer;
	-moz-user-select: none;
	-khtml-user-select: none;
}

.button td
{
	padding: 0;
	font: normal 12px "Trebuchet MS";
}

.button td img
{
	margin-bottom: 0;
	vertical-align: middle;
}

.button .left
{
	width: 3px;
}

.button.over .left
{
	background: url('images/button-sprite.png') left top no-repeat;
}

.button .right
{
	width: 3px;
}

.button.over .right
{
	background: url('images/button-sprite.png') right -42px no-repeat;
}

.button.over .center, .button.over .text, .button.over .icon, .button.over .spacer
{
	background: url('images/button-sprite.png') left -21px no-repeat;
}

.button .spacer
{
	width: 3px;
}

.button.rtl
{
	margin: 3px 5px 0 0;
}

.button.rtl .left
{
	background-position: right -42px;
}

.button.rtl .right
{
	background-position: left top;	
}

.button .icon img
{
	_position: relative;
	_top: 1px;
}

.typing
{
	margin: 4px 0 0;
	-moz-user-select: none;
	-khtml-user-select: none;
}

.typing td
{
	font: normal 12px "Trebuchet MS";
}

.typing img
{
	vertical-align: middle;
	margin-bottom: 0;
}

/**
* The hack below is necessary to correctly display
* blocks with floats inside. For more information
* visit this link:
* http://www.positioniseverything.net/easyclearing.html
*/
.clearfix:after
{
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix
{
    display: inline-block;
}

/* Hides from IE-mac \*/
* html .clearfix
{
    height: 1%;
}
.clearfix
{
    display: block;
}
/* End hide from IE-mac */
