#divIMPanel {
	position: fixed;
	bottom: 0; left: 0;
	z-index: 9999; /*--Keeps the panel on top of all other elements--*/
	background: #e3e2e2;
	border: 1px solid #c3c3c3;
	border-bottom: none;
	width: 100%;
	margin: 0;
}

#divIMPanel, #divIMPanel * {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box; /* this is the default but if people (usually us) override it the instant messenger gets squashed */
}

*html #divIMPanel { /*--IE6 Hack - Fixed Positioning to the Bottom--*/
	margin-top: -1px; /*--Prevents IE6 from having an infinity scroll bar - due to 1px border on #footpanel--*/
	position: absolute;
	/*IE fix from http://www.gunlaug.no/contents/wd_additions_15.html*/
	top:expression(eval(document.compatMode &&document.compatMode=='CSS1Compat') ?documentElement.scrollTop+(documentElement.clientHeight-this.clientHeight) : document.body.scrollTop +(document.body.clientHeight-this.clientHeight));
}

#divIMPanel ul {
	padding: 0; margin: 0;
	float: left;
	width: 100%;
	list-style: none;
	border-top: 1px solid #fff; /*--Gives the bevel feel on the panel--*/
	font-size: 1.1em;
	
}

#divIMPanel ul li{
	margin-right: 5px;
	padding-right: 5px;
	float: right;
	position: relative;
}

#divIMPanel ul li a{
	padding: 5px 0px;
	float: left;
	height: 16px; width: 16px;
	text-decoration: none;
	position: relative;
}

html #divIMPanel ul li a:hover {
	background-color: #fff; 
}

html #divIMPanel ul li a.active { /*--Active state when sub-panel is open--*/
	background-color: #fff;
	height: 17px;
	margin-top: -2px; /*--Push it up 2px to attach the active button to sub-panel--*/
	border: 1px solid #555;
	border-top: none;
	z-index: 200; /*--Keeps the active link on top of the sub-panel--*/
	position: relative;
}

html #divIMPanel ul li a.alert {
	background-color: #ff8040;
}

#divIMPanel a.im{
	width: 230px;
	border-left: 1px solid #bbb;
	border-right: 1px solid #bbb;
}

#divIMPanel ul li div a { /*--Reset link style for sub-panel links--*/
	text-indent: 0;
	width: auto;
	height: auto;
	padding: 5px;
	float: none;
	color: #00629a;
	position: static;
}

#divIMPanel ul li div a:hover {
	text-decoration: underline; 
} /*--Reset hover style for sub-panel links--*/

#divIMPanel .IM_subpanel {
	position: absolute;
	left: 0; bottom: 27px;
	display: none;	/*--Hide by default--*/
	width: 230px;
	border-style: solid;
	border-color: #555;
	border-width: 1px 1px 0px 1px;
	background: #fff;
	overflow: hidden;
}

#divIMPanel h3 {
	padding: 5px 10px;
	font-size: 1.1em;
	cursor: pointer;
	margin-top: 0px;
}

#divIMPanel h3 span { /*--Right aligned "-" icon--*/
	font-size: 1.5em;
	float: right;
	line-height: 0.6em;
	font-weight: normal;
}

#divIMPanel .IM_subpanel ul {
	padding: 0; margin: 0;
	background: #fff;
	width: 100%;
	padding-bottom: 2px;
}

#divIMPanel div.IM_subpanelcontent {
	padding: 0; 
	margin: 0;
	background: #fff;
	width: 100%;
	overflow: auto;
	padding-bottom: 2px;
	height: 300px;
}

#divIMPanel .IM_subpanel li{
	float: none; /*--Reset float--*/
	display: block;
	padding: 0; margin: 0;
	overflow: hidden;
	clear: both;
	background: #fff;
	position: static;  /*--Reset relative positioning--*/
	font-size: 0.9em;
}

#liIMConnectionsPanel .IM_subpanel li span {
	padding: 5px;
	background: #fff;
	color: #777;
	float: left;
}

#liIMConnectionsPanel .IM_subpanel li a img {
	float: left;
	margin: 0 5px;
}

#liIMConnectionsPanel .IM_subpanel li a{
	padding: 3px 0;	margin: 0;
	line-height: 15px;
	height: 15px;
	background: #fff;
	display: block;
}

#liIMConnectionsPanel .IM_subpanel li a:hover {
	background: #3b5998;
	color: #fff;
	text-decoration: none;
}

#divIMPanel .IM_imboxcontent {
	padding: 5px;
}

#divIMPanel .IM_imboxinput {
	text-align: center;
	padding-bottom: 5px;
}

#divIMPanel .IM_imboxtextarea {
	width: 90%;
	height: 4em;
}

#divIMPanel span.minimise {
	padding-right: 10px;
}

#divIMPanel img.IM_status {
	padding: 0px 2px;
	vertical-align: middle;
}

#divIMPanel img.IM_chatimg {
	padding: 0px 5px;
	vertical-align: middle;
}

#divIMPanel div.IM_message_from {
	padding-top: 5px;
}

#divIMPanel div.IM_message_to {
	padding-top: 5px;
}

#divIMPanel .IM_message_to span.IM_message_name {
	color: #526ea6;
}

#divIMPanel .IM_message_from span.IM_message_name {
	color: #6f6f6f;
}

#divIMPanel span.IM_message_message {
	color: #000000;
}

#divIMPanel span.IM_message_name {
	font-weight: bold;	
}

#divIMPanel span.IM_message_timestamp {
	font-size: xx-small;
	float: right;
}

#divIMPanel img.IM_unread {
	display: none;
	height: 15px;
	vertical-align: top;
}

#divIMPanel span.IM_gooffline {
	float: right;
	padding-top: 3px;	
	padding-right: 3px;	
}

#divIMPanel span.IM_gooffline img {
	vertical-align: middle;
	padding: 2px;
}