.ibutton-container {
  position: relative;
  height: 30px;
  cursor: pointer;
  overflow: hidden;
	/* 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: 85px;
}

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

	/* hide the element */
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";   /* IE8 */
	filter: alpha(opacity=0);                                          /* IE5-7 */
	-khtml-opacity: 0.0;                                               /* khtml, old safari */
	-moz-opacity: 0.0;                                                 /* mozilla, netscape */
	opacity: 0.0;                                                      /* fx, safari, opera */


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

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

}

.ibutton-handle-right {
  height: 100%;
  width: 100%;
  padding-right: 4px;
  background: transparent url(../images/ibutton-slider-default.png) no-repeat scroll 100% -30px;
  z-index: 3;
}

* html .ibutton-handle-right {
  position:relative;
  right:-3px;
}

.ibutton-handle-middle {
  height: 100%;
  width: 100%;
  background: transparent url(../images/ibutton-slider-default.png) no-repeat scroll -4px -30px;
  z-index: 3;
}

.ibutton-checked .ibutton-handle-middle { background-position: 800px -30px}

div.ibutton-label-on, div.ibutton-label-off {
  white-space: nowrap;
  font-size: 17px;
  line-height: 18px;
  font-weight: bold;
  font-family: Helvetica Neue, Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  cursor: inherit;
  display: block;
  height: 25px;
  position: absolute;
  width: auto;
  top: 0;
  padding-top: 5px;
  overflow: hidden;
  background: transparent url(../images/ibutton-slider-default.png) no-repeat scroll 0 0;
}

div.ibutton-label-on {
  color: #4A515D;
  /*text-shadow: 0 -1px 2px rgba(0, 0, 0, 0.4);*/
  left: 0;
  padding-top: 5px;
  z-index: 1;
}

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

div.ibutton-label-off {
  line-height: 21px;
  color: #4A515D;
  background-position: 100% 0;
  /*text-shadow: 0 -1px 2px rgba(153, 153, 153, 0.4);*/
  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%;
}

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

/* create an outline when button gets focus via keyboard */
.ibutton-container label {
	cursor: inherit;
	border: 1px dotted transparent;
}

* html .ibutton-container label {
	border: 0!important;
}


.ibutton-focus label {
	/* we must use border, since outline doesn't work in IE */
	border: 1px dotted #888 !important;
}

.ibutton-focus div.ibutton-label-on span label {
	/* use white for more contrast */
	/*border-color: #fff !important;*/
}

/* add padding to right/left so that text gets clipped before absolute edge */
.ibutton-padding-left, .ibutton-padding-right {
	position: absolute;
	top: 4px;
	z-index: 2;
	background: transparent url(../images/ibutton-slider-default.png) no-repeat scroll 0 -4px;
	width: 5px;
	height: 20px;
}

.ibutton-padding-left {
	left: 0;
}

.ibutton-padding-right {
	right: 0;
	background-position: 100% -4px;
}

/* change the styles of the handle when being dragged */
.ibutton-active-handle .ibutton-handle {
	background-position: 0 -120px;
}

.ibutton-active-handle .ibutton-handle-right {
	background-position: 100% -120px;
}

.ibutton-active-handle .ibutton-handle-middle {
	background-position: 50% -120px;
}


/* styles to use when the button is disabled */
.ibutton-disabled {
	cursor: not-allowed !important; /* cursor options: default or not-allowed */

    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";  /* IE8 */
	filter: alpha(opacity=50);                                         /* IE5-7 */
	-khtml-opacity: 0.5;                                               /* khtml, old safari */
	-moz-opacity: 0.5;                                                 /* mozilla, netscape */
	opacity: 0.5;                                                      /* fx, safari, opera */

}
