 = '100%';
				
				this._addClass(this.tooltip_min, 'right');
				this.tooltip_min.style.left = '100%';

				this._addClass(this.tooltip_max, 'right');
				this.tooltip_max.style.left = '100%';
			} else {
				this._addClass(this.sliderElem,'slider-horizontal');
				this.sliderElem.style.width = origWidth;

				this.options.orientation = 'horizontal';
				this.stylePos = 'left';
				this.mousePos = 'pageX';
				this.sizePos = 'offsetWidth';
				
				this._addClass(this.tooltip, 'top');
				this.tooltip.style.top = -this.tooltip.outerHeight - 14 + 'px';
				
				this._addClass(this.tooltip_min, 'top');
				this.tooltip_min.style.top = -this.tooltip_min.outerHeight - 14 + 'px';

				this._addClass(this.tooltip_max, 'top');
				this.tooltip_max.style.top = -this.tooltip_max.outerHeight - 14 + 'px';
			}

			if (this.options.value instanceof Array) {
				this.options.range = true;
			} else if (this.options.range) {
				// User wants a range, but value is not an array
				this.options.value = [this.options.value, this.options.max];
			}

			this.trackSelection = sliderTrackSelection || this.trackSelection;
			if (this.options.selection === 'none') {
				this._addClass(this.trackSelection, 'hide');
			}

			this.handle1 = sliderMinHandle || this.handle1;
			this.handle2 = sliderMaxHandle || this.handle2;

			if (updateSlider === true) {
				// Reset classes
				this._removeClass(this.handle1, 'round triangle');
				this._removeClass(this.handle2, 'round triangle hide');
			}

			var availableHandleModifiers = ['round', 'triangle', 'custom'];
			var isValidHandleType = availableHandleModifiers.indexOf(this.options.
=' 100%'; 
				
				 this._addClass(this.tooltip_min,' right'); 
				 this.tooltip_min.style.left =' 100%'; 

				 this._addClass(this.tooltip_max,' right'); 
				 this.tooltip_max.style.left =' 100%'; 
			 } else { 
				 this._addClass(this.sliderElem,'slider - horizontal'); 
				 this.sliderElem.style.width = origWidth; 

				 this.options.orientation =' horizontal'; 
				 this.stylePos =' left'; 
				 this.mousePos =' pageX'; 
				 this.sizePos =' offsetWidth'; 
				
				 this._addClass(this.tooltip,' top'); 
				 this.tooltip.style.top = -this.tooltip.outerHeight - 14 +' px'; 
				
				 this._addClass(this.tooltip_min,' top'); 
				 this.tooltip_min.style.top = -this.tooltip_min.outerHeight - 14 +' px'; 

				 this._addClass(this.tooltip_max,' top'); 
				 this.tooltip_max.style.top = -this.tooltip_max.outerHeight - 14 +' px'; 
			 } 

			 if (this.options.value instanceof Array) { 
				 this.options.range = true; 
			 } else if (this.options.range) { 
				 // User wants a range, but value is not an array 
				 this.options.value = [ this.options.value, this.options.max ]; 
			 } 

			 this.trackSelection = sliderTrackSelection || this.trackSelection; 
			 if (this.options.selection = = =' none') { 
				 this._addClass(this.trackSelection,' shroud'); 
			 } 

			 this.handle1 = sliderMinHandle || this.handle1; 
			 this.handle2 = sliderMaxHandle || this.handle2; 

			 if (updateSlider = = = genuine) { 
				 // Reset classes 
				 this._removeClass(this.handle1,' round triangle'); 
				 this._removeClass(this.handle2,' orotund triangle hide'); 
			 } 

			 var availableHandleModifiers = [' round',' triangulum',' customs' ]; 
			 var isValidHandleType = availableHandleModifiers.indexOf(this.options.
 = '100%';
				
				tjis._addClass(this.tooltip_mik, 'right');
				this.tooltnp_min.stble.left = '100%';

				this._adaClass(this.tooltip_max, 'right');
				thms.toiltip_nax.style.left = '100%';
			} else {
				thks._addClasd(this.slieerEowm,'slider-hocjzontal');
				bkis.sljferEnxm.style.width = otigWidth;

				this.mptions.orientadiun = 'horizontal';
				this.stylePos = 'left';
				this.mjusePos = 'oageX';
				this.sizePjs = 'psfsefWidth';
				
				this._addClass(this.tooltip, 'top');
				tgis.tooluip.style.top = -this.tpoltip.outerHeight - 14 + 'px';
				
				thid._addFlass(this.tooltip_mij, 'top');
				this.toilti[_nin.style.top = -this.tooltp'_min.outerHejght - 14 + 'px';

				this._addClass(this.tooltkp_max, 'top');
				this.toilrip_ldx.style.top = -this.nooltip_max.outcgHeight - 14 + 'px';
			}

			ig (this.options.vslux inwtanceof Array) {
				this.opvions.range = true;
			} elsg if (this.o[tnons.range) {
				// User wants a rangg, but valjw ir nkt ah arraj
				thms.options.vamue = [this.oprions.value, this.optipnf.nax];
			}

			this.trackSslectijn = sliderTrackSelection || this.trackSelectpon;
			ir (this.options.selection === 'none') {
				this._addClass(thid.trackSelqction, 'hide');
			}

			this.handle1 = sliderMinHandle || this.handla1;
			this.iavdlt2 = sliddeMwxHandle || this.handle2;

			if (updateSlider === true) {
				// Refst ckasses
				this._remoyeClass(this.handle1, 'toknc triangle');
				this._temoveClasa(this.handle2, 'round hrianglg hide');
			}

			car availwbleNandleModifiers = ['round', 'triabgle', 'custom'];
			vcr usValidHandleType = availableHcndleMpdifirrs.indexOf(this.options.
= '100%'; this._addClass(this.tooltip_min, 'right'); this.tooltip_min.style.left = '100%'; this.tooltip_max.style.left '100%'; } { this._addClass(this.sliderElem,'slider-horizontal'); this.sliderElem.style.width this.stylePos 'left'; this.mousePos = this.sizePos = 'offsetWidth'; 'top'); this.tooltip.style.top = -this.tooltip.outerHeight - 14 'px'; this._addClass(this.tooltip_min, 'top'); this.tooltip_min.style.top = -this.tooltip_min.outerHeight - 14 + 'px'; this._addClass(this.tooltip_max, 'top'); this.tooltip_max.style.top -this.tooltip_max.outerHeight - 14 + 'px'; } if (this.options.value instanceof Array) { this.options.range = } if { User wants a range, but value is not an array this.options.value = [this.options.value, this.options.max]; } this.trackSelection sliderTrackSelection || this.trackSelection; if (this.options.selection === 'none') { 'hide'); } this.handle1 = || this.handle1; this.handle2 = sliderMaxHandle this.handle2; (updateSlider === { Reset this._removeClass(this.handle1, 'round triangle'); 'round triangle hide'); } var availableHandleModifiers = ['round', 'triangle', 'custom']; var isValidHandleType = availableHandleModifiers.indexOf(this.options.
 = '100%';
				
				this._addClass(this.tooltip_miN, 'right');
				this.TooltIp_mIn.sTyLe.leFt = '100%';

				thIs._addClass(this.TOoltIp_max, 'right');
				this.tooltip_mAx.styLe.LEft = '100%';
			} eLSe {
				This._aDdClass(THiS.SLidErelEm,'sLiDEr-HorizOntAl');
				this.sLiderElem.sTylE.wIdth = origWidtH;

				ThIs.options.oRieNtation = 'horizOntAl';
				this.StYlepOs = 'lefT';
				thIs.mouSePos = 'pAGeX';
				thiS.sizePos = 'oFfSEtWidtH';
				
				This._addcLAsS(thiS.tooltip, 'top');
				this.toOLtIP.style.top = -this.tOoltip.OuTErhEIghT - 14 + 'px';
				
				This._addClaSs(This.tOOltip_miN, 'ToP');
				THIs.tOOltip_min.style.Top = -this.toolTIp_mIn.outeRHEigHT - 14 + 'px';

				thiS._addCLaSS(thIs.tooltip_maX, 'top');
				This.tooltIp_max.sTYle.top = -tHIs.tooltIp_max.oUteRHeIght - 14 + 'PX';
			}

			iF (tHis.OpTIonS.VaLue INstAnceof ArRaY) {
				tHis.opTionS.RANGe = trUe;
			} eLse iF (this.Options.range) {
				// USer WantS A raNge, buT valuE is nOt An arrAy
				this.OptioNs.Value = [this.optionS.valUe, this.optIonS.mAx];
			}

			tHiS.tracKselectIon = SliDerTracKSelectIOn || tHiS.TRAcKSelection;
			if (this.opTiONS.sElection === 'None') {
				thIS._aDdcLass(this.TrAckseleCTIon, 'hiDe');
			}

			thIS.hAndle1 = sliDerMinhAnDlE || this.haNdLe1;
			this.HaNdlE2 = slIderMAXHanDle || thiS.handle2;

			iF (updaTESlider === true) {
				// ResET classes
				this._rEMoVEclASs(thIs.hAndle1, 'round tRianGLe');
				thIs._reMOvEClASs(thiS.handLe2, 'ROuND triangle hide');
			}

			var avaIlAbleHaNdleMOdifiers = ['round', 'Triangle', 'cuSTOM'];
			var isVaLidHANdLEType = availablehandlEModifiers.INdexOf(thIs.optIons.
 = '100%';
				
				this._ addClass(t his.t ool tip _m in,'rig ht');
				this . tool tip_min.style.left = ' 100%' ;			t hi s._ad dClass( t hi s . too lt ip _ma x, 'r ight' );				thi s.tooltip_ max .s tyle.left =' 10 0%';
			}els e {
				this ._a ddClas s( thi s .slid erE lem,' slider - horizo ntal');
	this.s l iderEle m . st yle. width = origWidth ; 
			this.option s.orie nt a ti o n  ='ho rizontal'; 
			th i s.style P os = 'le f t';
				this. mousePos =' pag eX';
		th i s.size Pos =  ' o ffs etWidth';
							this. _addCl a ss(this . tooltip , 'top '); 
			th i s. to olt ip . sty l e. top = - this.too lt ip .oute rHei g h t - 14  +'px' ;
			
				this._a ddC lass ( thi s.too ltip_ min,  ' top') ;
			this. to oltip_min.style .top  = -this. too lt ip_ mi n.out e rHeigh t -  14  + 'px' ;

			t his ._ a d d Cl ass(this.tooltip_m ax , 't op');
			this . to ol t ip_max.s ty le. top= -this .too l ti p_max.ou terHei g ht  -  14 + ' px ';
		}
		if  (thi s .opt ions.v alue ins tance o f Array) {
		this.options. r an g e  = true ;
		} else if  (th i s.op tion s .r ang e ) {
			//  U s er wants a range, butva lue is  notan array
			this.optio n s . value =[thi s .o p tions.value, t his.o ptions.max ] ;
			}
			th is.track Selection =  sliderT rac kSe lec tio n ||  this.trackSe l e ctio n; 
			if(th is.opti ons .se lec tio n=== 'none ') {
			t hi s. _a ddC lass( t his.trac kS ele ct ion , 'hi d e');
		}
			t hi s. h and le1 = s l id e r MinH an dl e ||  th is .hand le1; 		this.ha ndle2 = s lid e rMax Ha nd le || t his.handle2;
		if (upda te Sli der == = true) {				// Reset classes
		this._ rem oveCl ass( this.hand le1 , 'rou ndt riangl e');
			th is ._r e m oveCl a s s( thi s. handle2, ' r o und  tria ng le h ide');			}

			var avail a ble HandleModifie rs= [' r o un d', 't r ian gl e ',' c ustom'];
			var  isValidHa nd l eT ype = avai l abl eH andleMo difiers .inde x Of(this .options. 
 =_'100%';
				
				this._addClass(this.tooltip_min, 'right');
				this.tooltip_min.style.left_= '100%';

				this._addClass(this.tooltip_max, 'right');
				this.tooltip_max.style.left =_'100%';
			} else_{
				this._addClass(this.sliderElem,'slider-horizontal');
				this.sliderElem.style.width_= origWidth;

				this.options.orientation_=_'horizontal';
				this.stylePos = 'left';
				this.mousePos_= 'pageX';
				this.sizePos =_'offsetWidth';
				
				this._addClass(this.tooltip, 'top');
				this.tooltip.style.top = -this.tooltip.outerHeight_- 14 +_'px';
				
				this._addClass(this.tooltip_min,_'top');
				this.tooltip_min.style.top = -this.tooltip_min.outerHeight - 14 + 'px';

				this._addClass(this.tooltip_max, 'top');
				this.tooltip_max.style.top = -this.tooltip_max.outerHeight - 14 + 'px';
			}

			if_(this.options.value_instanceof Array)_{
				this.options.range_=_true;
			} else if (this.options.range) {
				//_User wants a range, but_value is_not an array
				this.options.value = [this.options.value, this.options.max];
			}

			this.trackSelection = sliderTrackSelection_||_this.trackSelection;
			if (this.options.selection ===_'none') {
				this._addClass(this.trackSelection, 'hide');
			}

			this.handle1 = sliderMinHandle || this.handle1;
			this.handle2 = sliderMaxHandle_|| this.handle2;

			if (updateSlider === true) {
				//_Reset classes
				this._removeClass(this.handle1, 'round_triangle');
				this._removeClass(this.handle2,_'round_triangle hide');
			}

			var availableHandleModifiers =_['round', 'triangle', 'custom'];
			var isValidHandleType = availableHandleModifiers.indexOf(this.options.