.ibutton-container {
  position: relative;
  height: 8px;
  border: 1px solid #d1d1d1;
  border-top: 1px solid #ababab;
  -webkit-border-radius: 8px;
  border-radius: 8px;
  cursor: pointer;
  /* set max width to that of sprite */
  max-width: 400px;
  /* prevent text selection */
  -khtml-user-select: none;
  -o-user-select: none;
  -moz-user-select: none;
  -moz-user-focus: ignore; 
  -moz-user-input: disabled;
  /* set default width based on ON/OFF labels */
  width: 65px;
  vertical-align: middle;
  display: inline-block;
}

.ibutton_text .ibutton-container {
  height: 26px;
  -webkit-border-radius: 2px;
  border-radius: 2px;
  margin-top: 2px;
}

.wTitle .iButton {
  margin-top: 4px;
  margin-right: 16px;
}

span.left {
  margin-right: 1px;
}

span.right {
  margin-left: 1px;
}

span.online {
  position: relative;
	top: 1px;
	display: inline-block;
	width: 6px;
	height: 7px;
	background: url(../images/onlineLight.png) no-repeat;
}

span.offline {
	position: relative;
  top: 1px;
	display: inline-block;
	width: 6px;
	height: 7px;
	background: url(../images/offlineLight.png) no-repeat;
}

span.yes {
	margin-top: 1px;
	display: inline-block;
	width: 8px;
	height: 8px;
  margin-left: 1px;
	background: url(../images/yes.png) no-repeat;
}

span.no {
	position: relative;
	top: 1px;
	display: inline-block;
	width: 8px;
	height: 8px;
  margin-left: 1px;
	background: url(../images/no.png) no-repeat;
}

.ibutton-disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.ibutton-container .checker {
	opacity: 0;
  position: absolute;
  visibility: hidden;
}

.ibutton-container .radio {
	opacity: 0;
}

.ibutton-container input {
  position: absolute;
  top: 0;
  left: 0;

  /* hide the element */
  filter:alpha(opacity=0);
  -moz-opacity: 0.0;
  opacity: 0.0;

  /* allow checking of input if visible */
  -moz-user-input: enabled;
}

.ibutton-handle {
  display: block;
  height: 20px;
  cursor: inherit;
  position: absolute;
  top: -5px;
  background: url(../images/handler.png) no-repeat scroll 0 0;
  z-index: 3;
  padding-left: 3px;
  /* set default width based on ON/OFF labels */
  width: 16px;
}

.ibutton_text .ibutton-handle {
  background: url(../images/ibutton-text.png) no-repeat scroll 0 0;
  width: 22px;
  height: 32px;
  top: -3px;
  margin-left: -1px;
}

.ibutton_text .ibutton-handle-right {
  height: 100%;
  width: 100%;
  padding-right: 3px;
  background: url(../images/ibutton-text.png) no-repeat scroll 100% 0px;
  z-index: 3; 
}

.ibutton_text .ibutton-handle-middle {
  height: 100%;
  width: 100%;
  background: url(../images/ibutton-text.png) no-repeat scroll 50% 0px;
  z-index: 3; 
}

div.ibutton-label-on, div.ibutton-label-off {
  white-space: nowrap;
  font-size: 11px;
  line-height: 8px;
  font-weight: bold !important;
  font-family: Arial, Helvetica, sans-serif !important;
  text-transform: uppercase;
  cursor: inherit;
  display: block;
  height: 4px;
  position: absolute;
  width: auto;
  top: 0;
  padding-top: 4px;
  overflow: hidden; 
  background: url(../images/ibutton-sprite.png) no-repeat scroll 0 0;
}

.ibutton_text div.ibutton-label-on, .ibutton_text div.ibutton-label-off {
  height: 22px;
}

div.ibutton-label-on {
  color: #909090 !important;
  background: #becad0;
  background: -moz-linear-gradient(top, #becad0 0%, #d5e3e9 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#becad0), color-stop(100%,#d5e3e9));
  background: -webkit-linear-gradient(top, #becad0 0%,#d5e3e9 100%);
  background: -o-linear-gradient(top, #becad0 0%,#d5e3e9 100%);
  background: -ms-linear-gradient(top, #becad0 0%,#d5e3e9 100%);
  background: linear-gradient(to bottom, #becad0 0%,#d5e3e9 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#becad0', endColorstr='#d5e3e9',GradientType=0 );
  text-shadow: 0 -1px 2px rgba(0, 0, 0, 0.4);
  padding-top: 4px;
  z-index: 1; 
  text-align: left !important;
}

div.ibutton-label-off {
	background: #c4c4c4;
	background: -moz-linear-gradient(top, #c4c4c4 0%, #efefef 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#c4c4c4), color-stop(100%,#efefef));
	background: -webkit-linear-gradient(top, #c4c4c4 0%,#efefef 100%);
	background: -o-linear-gradient(top, #c4c4c4 0%,#efefef 100%);
	background: -ms-linear-gradient(top, #c4c4c4 0%,#efefef 100%);
	background: linear-gradient(to bottom, #c4c4c4 0%,#efefef 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c4c4c4', endColorstr='#efefef',GradientType=0 );
}

div.ibutton-label-on span {
	padding-left: 7px;
}

.ibutton-container div.ibutton-label-on span {
  padding-left: 3px;
}

div.ibutton-label-off {
  color: #909090 !important;
  background-position: 100% 0;
  text-align: right;
  right: 0;
	/* the off label needs to near the left edge (ideally just 5px away) 
	 * it just needs to be close enough that it won't show under the handle if dragged to the left  
	 */ 
  width: 95%;
}

.ibutton-container div.ibutton-label-off span {
  padding-right: 3px;
}

/* create an outline when button gets focus via keyboard */
.ibutton-container label {
	cursor: inherit;
	padding: 1px 3px;
	font-size: 1em !important;
	height: 29px !important;
	line-height: 19px !important;
	font-weight: bold;
	display: inline-block;
}

.ibutton_text .ibutton-container label {
  line-height: 17px !important;
}

.ibutton-focus label {
	/* we must use border, since outline doesn't work in IE */
	
	padding: 0 2px;
}

.ibutton-focus div.ibutton-label-on span label {
	/* use white for more contrast */
	
}
