#BBBar {
	width: 570px;
}

#BBBar *:focus {
	outline: none;
}

#BBBar.hide, #BBBar .hide {
	display: none;
}

#BBBar .show {
	display: block;
}

#BBBar li {
	position: relative;
	display: inline;
	z-index: 1;
}

/* The following rule is only for Safari */
body:last-child:not(:root:root) #BBBar li {
	display: inline-block;
}

#BBBar select {
	border: 1px outset #000;
	padding: 2px;
	background-color: #eee;
	margin-left: 2px;	
}

#BBBar img {
	border: 1px outset #000;
	padding: 2px;
	background-color: #eee;
	margin-left: 2px;	
}	

#BBBar a:hover img {
	background-color: #c0d0e2;
}

#BBBarColorPicker {
	top: 27px;
	left: 11px;
	width: 9px;
	height: 120px;
	position: absolute;
}

#BBBar li > #BBBarColorPicker {
	top: 17px;
	left: 14px;
}

#BBBarColorPicker li {
	margin: -1px 0 0;
	padding: 0;
	width: 9px;
	height: 9px;
	cursor: pointer;
	display: block;
	border: 1px solid #000;
	position: relative;
}

#BBBarColorPicker li:hover {
	margin-left: -2px;
	border-width: 1px 3px;
}
	.hex_000 {
		background: #000;
	}
	.hex_333 {
		background: #333;
	}
	.hex_666 {
		background: #666;
	}
	.hex_999 {
		background: #999;
	}
	.hex_ccc {
		background: #ccc;
	}
	.hex_fff {
		background: #fff;
	}
	.hex_f00 {
		background: #f00;
	}
	.hex_0f0 {
		background: #0f0;
	}
	.hex_00f {
		background: #00f;
	}
	.hex_ff0 {
		background: #ff0;
	}
	.hex_0ff {
		background: #0ff;
	}
	.hex_f0f {
		background: #f0f;
	}

#BBBarColorPicker ul {
	left: 0px;
}

#BBBarFontPicker {
	top: 27px;
	left: 0;
	position: absolute;
	background-color: #fef9e9;
	padding: 1px;
	border: 1px solid #000;
	width: 10em;
}

#BBBar li > #BBBarFontPicker {
	top: 17px;
}

*:first-child + html #BBBar li > #BBBarFontPicker {
	top: 27px;
}

a.BBarFontList {
	cursor: pointer;
	height: 16px;
	margin-bottom: 2px;
	font-size: 12px;
	text-align: left;
	display: block;
	text-decoration: none;
	padding-left: 10px;
}

#BBBarFontPicker a:hover {
	color: #000;
	background-color: #fff4cf;
}

#BBBarSmilies {
	margin-left: 150px;
	margin-top: 0px;
	position: absolute;
	padding: 1px;
	height: 20px;
	overflow: auto;
}

#imagePreview {
	margin: 10px 0 0;
	padding: 10px;
	width: 148px;
	display: block;
	overflow: hidden;
	background: #fff url("buttons/ajax-loader.gif") no-repeat center;
	border: 1px solid #ccc;
	text-align: center;
}

#imagePreview img {
	margin: 0;
	padding: 0;
	border: none;
	max-width: 100%;
}

#BBBar .subcontent {
	padding: 10px;
	margin-left: -83px;
	left: 0;
	top: 27px;
	width: 170px;
	position: absolute;
	border: 1px outset #000;
	background: #eee;
	font-size: .95em;
	z-index: 2;
}

#BBBar li > .subcontent {
	top: 16px;
	width: 170px;
}

*:first-child + html #BBBar .subcontent {
	top: 27px;
}

/* The following rule is only for Safari */
body:last-child:not(:root:root) #BBBar li > .subcontent {
	top: 27px;
}

#BBBar .subcontent label {
	margin-bottom: .25em;
	display: block;
}

#BBBar .subcontent input {
	padding: 0;
	border: 1px solid #bbb;
	font-size: .9em;
}

#BBBar li > .subcontent input {
	padding: .25em;
	font-size: .95em;
}

*:first-child + html #BBBar li > .subcontent input {
	padding: 0;
	font-size: .9em;
}

#BBBar .subcontent .text {
	width: 140px;
}

#BBBar li > .subcontent .text {
	width: 130px;
}

*:first-child + html #BBBar .subcontent .text {
	width: 140px;
}

#BBBar .subcontent .submit {
	margin-left: 5px;
	padding: 0;
	width: auto;
	cursor: pointer;
}

#BBBar li > .subcontent .submit {
	padding: .15em .25em;
}

#BBBar .subcontent li.last-child {
	display: block;
	margin-top: .5em;
}

#BBBar .subcontent li.close {
	width: 18px;
	height: 18px;
	top: -5px;
	right: -7px;
	position: absolute;
	background: url("buttons/close.gif") no-repeat top;
	cursor: pointer;
}

#BBBar li > .subcontent li.close {
	background-image: url("buttons/close.png");
}

#BBBar .subcontent li.close span {
	display: none;
}