.ui-button {
	position: relative;
	
	/* Default all */
	top: -2px;
	/* Adjusting baseline for inline buttons in IE */
	/* IE7 */
	*top: -1px;
	/* IE6 */
	_top: 0px;
	/* IE8 */
	/*/
	top: -16px;
	margin-bottom: -16px;
	*/
	height: 22px;
	line-height: 22px;
	padding: 0 1px;
	text-decoration: none;
	display: -moz-inline-grid;
	display: inline-block;
	color: black;
	font-family: sans-serif;
	font-size: 11px;
	vertical-align: middle;
}

/* Adjusting baseline for inline buttons in Webkit-based browsers (Safari, Chrome) */
@media screen and (-webkit-min-device-pixel-ratio:0) { 
	.ui-button {
		 top: -3px;
	}
}

/* Firefox 1 - 3 */
.ui-button, x:-moz-any-link {
	top: -1px;
}			

/* Override for Firefox 3 */
.ui-button, x:-moz-any-link, x:default {
	top: -2px;
}			

.ui-button {
	/* IE7 */
	*top: -2px;
	/* IE6 */
	_top: 0px;
}

.ui-button .ui-button-inner {
	position: relative;
	float: left;
	clear: both;
	z-index: 1;
	padding: 0 5px;
	cursor: default;
	white-space: nowrap;
}

.ui-button .ui-button-bg {
	top: 1px;
	background: #eee;
	display: inline-block;
	line-height: 10px;
	height: 2px;
	border-top: 10px solid #f9f9f9;
	border-bottom: 10px solid #e3e3e3;
	color: #e3e3e3;
	margin-bottom: -22px;
	
	/* IE6 */
	_overflow: hidden;
}

.ui-button .ui-button-sides, .ui-button .ui-button-text {
	border-color: #ccc;
	border-style: solid;
}

.ui-button:hover .ui-button-sides, .ui-button:hover .ui-button-text {
	border-color: #999;
}

.ui-button .ui-button-sides {
	top: 1px;
	left: -1px;
	display: inline-block;
	height: 21px;
	_height: 22px;
	border-width: 0 1px;
	color: #ccc;
	overflow: hidden;
	margin-bottom: -22px;
}

.ui-button .ui-button-text {
	z-index: 2;
	border-width: 1px 0;
	line-height: 22px;
	_line-height: 22px;
	height: 21px;
}

.ui-button-icon-right .ui-icon {
	width: 16px;
	height: 16px;
	position: absolute;
	top: 3px;
	*top: 4px;
	_top: 3px;
	right: 1px;
	z-index: 4;
	cursor: default;
}

.ui-button-icon-right .ui-button-inner {
	padding-right: 18px;
}

.ui-button-content {
	z-index: 1000;
	position: absolute;
	display: none;
}

.ui-button-content-inner {
	display:inherit;
}

.ui-button-content-holder {
	display: none;
}

/* CSS for the small button */

/* Firefox 1 - 3 */
.ui-button-small, x:-moz-any-link {
	top: -2px;
}			

.ui-button-small {
	height: 16px;
	line-height: 16px;
	/*/
	top: -13px;
	*/
	*top: -1px;
	_top:0px;
}

.ui-button-small .ui-button-sides {
	height: 16px;
	margin-bottom: -16px;
}

.ui-button-small .ui-button-text {
	line-height: 16px;
	height: 16px;
}

.ui-button-small .ui-button-bg {
	line-height: 2px;
	border-top: 7px solid #f9f9f9;
	border-bottom: 7px solid #e3e3e3;
	margin-bottom: -16px;
}

.ui-button-small .ui-icon {
	top: 0px;
}

.ui-icon-button {
	display: inline-block;
	width: 16px;
	height: 16px;
	padding: 2px 3px 3px 2px;
}