ÿþS l i d e r . i s S u p p o r t e d   =   t y p e o f   d o c u m e n t . c r e a t e E l e m e n t   ! =   " u n d e f i n e d "   & &  
 	 t y p e o f   d o c u m e n t . d o c u m e n t E l e m e n t   ! =   " u n d e f i n e d "   & &  
 	 t y p e o f   d o c u m e n t . d o c u m e n t E l e m e n t . o f f s e t W i d t h   = =   " n u m b e r " ;  
  
 v a r   o b j S e a r c h R e s u l t   =   n u l l ;  
  
 f u n c t i o n   S l i d e r ( o E l e m e n t ,   o I n p u t ,   s O r i e n t a t i o n )   {  
  
         i f ( t y p e o f ( S e a r c h R e s u l t s )   ! =     " u n d e f i n e d " )  
         {  
                 o b j S e a r c h R e s u l t   =   S e a r c h R e s u l t s ;  
         }  
         e l s e  
         {  
                 o b j S e a r c h R e s u l t   =   S R ;  
         }  
          
 	 i f   ( ! o E l e m e n t )   r e t u r n ;  
 	 t h i s . _ o r i e n t a t i o n   =   s O r i e n t a t i o n   | |   " h o r i z o n t a l " ;  
 	 t h i s . _ r a n g e   =   n e w   R a n g e ( ) ;  
 	 t h i s . _ r a n g e . s e t E x t e n t ( 0 ) ;  
 	 t h i s . _ b l o c k I n c r e m e n t   =   1 0 ;  
 	 t h i s . _ u n i t I n c r e m e n t   =   1 ;  
 	 t h i s . _ t i m e r   =   n e w   T i m e r ( 1 0 0 ) ;  
  
  
 	 i f   ( S l i d e r . i s S u p p o r t e d   & &   o E l e m e n t )   {  
  
 	 	 t h i s . d o c u m e n t   =   o E l e m e n t . o w n e r D o c u m e n t   | |   o E l e m e n t . d o c u m e n t ;  
  
 	 	 t h i s . e l e m e n t   =   o E l e m e n t ;  
 	 	 t h i s . e l e m e n t . s l i d e r   =   t h i s ;  
 	 	 t h i s . e l e m e n t . u n s e l e c t a b l e   =   " o n " ;  
  
 	 	 / /   a d d   c l a s s   n a m e   t a g   t o   c l a s s   n a m e  
 	 	 t h i s . e l e m e n t . c l a s s N a m e   =   t h i s . _ o r i e n t a t i o n   +   "   "   +   t h i s . c l a s s N a m e T a g   +   "   "   +   t h i s . e l e m e n t . c l a s s N a m e ;  
  
 	 	 / /   c r e a t e   l i n e  
 	 	 t h i s . l i n e   =   t h i s . d o c u m e n t . c r e a t e E l e m e n t ( " D I V " ) ;  
 	 	 t h i s . l i n e . c l a s s N a m e   =   " l i n e " ;  
 	 	 t h i s . l i n e . u n s e l e c t a b l e   =   " o n " ;  
 	 	 t h i s . l i n e . a p p e n d C h i l d ( t h i s . d o c u m e n t . c r e a t e E l e m e n t ( " D I V " ) ) ;  
 	 	 t h i s . e l e m e n t . a p p e n d C h i l d ( t h i s . l i n e ) ;  
  
 	 	 / /   c r e a t e   h a n d l e  
 	 	 t h i s . h a n d l e   =   t h i s . d o c u m e n t . c r e a t e E l e m e n t ( " D I V " ) ;  
 	 	 t h i s . h a n d l e . c l a s s N a m e   =   " h a n d l e " ;  
 	 	 t h i s . h a n d l e . u n s e l e c t a b l e   =   " o n " ;  
 	 	 t h i s . h a n d l e . a p p e n d C h i l d ( t h i s . d o c u m e n t . c r e a t e E l e m e n t ( " D I V " ) ) ;  
 	 	 t h i s . h a n d l e . f i r s t C h i l d . a p p e n d C h i l d (  
 	 	 	 t h i s . d o c u m e n t . c r e a t e T e x t N o d e ( S t r i n g . f r o m C h a r C o d e ( 1 6 0 ) ) ) ;  
 	 	 t h i s . e l e m e n t . a p p e n d C h i l d ( t h i s . h a n d l e ) ;  
 	 }  
  
 	 t h i s . i n p u t   =   o I n p u t ;  
  
 	 / /   e v e n t s  
 	 v a r   o T h i s   =   t h i s ;  
 	 t h i s . _ r a n g e . o n c h a n g e   =   f u n c t i o n   ( )   {  
 	 	 o T h i s . r e c a l c u l a t e ( ) ;  
 	 	 i f   ( t y p e o f   o T h i s . o n c h a n g e   = =   " f u n c t i o n " )  
 	 	 	 o T h i s . o n c h a n g e ( ) ;  
 	 } ;  
  
 	 i f   ( S l i d e r . i s S u p p o r t e d   & &   o E l e m e n t )   {  
 	 	 t h i s . e l e m e n t . o n f o c u s 	 	 =   S l i d e r . e v e n t H a n d l e r s . o n f o c u s ;  
 	 	 t h i s . e l e m e n t . o n b l u r 	 	 	 =   S l i d e r . e v e n t H a n d l e r s . o n b l u r ;  
 	 	 t h i s . e l e m e n t . o n m o u s e d o w n 	 =   S l i d e r . e v e n t H a n d l e r s . o n m o u s e d o w n ;  
 	 	 t h i s . e l e m e n t . o n m o u s e o v e r 	 =   S l i d e r . e v e n t H a n d l e r s . o n m o u s e o v e r ;  
 	 	 t h i s . e l e m e n t . o n m o u s e o u t 	 	 =   S l i d e r . e v e n t H a n d l e r s . o n m o u s e o u t ;  
 	 	 t h i s . e l e m e n t . o n k e y d o w n 	 	 =   S l i d e r . e v e n t H a n d l e r s . o n k e y d o w n ;  
 	 	 t h i s . e l e m e n t . o n k e y p r e s s 	 	 =   S l i d e r . e v e n t H a n d l e r s . o n k e y p r e s s ;  
 	 	 t h i s . e l e m e n t . o n m o u s e w h e e l 	 =   S l i d e r . e v e n t H a n d l e r s . o n m o u s e w h e e l ;  
 	 	 t h i s . h a n d l e . o n s e l e c t s t a r t 	 =  
 	 	 t h i s . e l e m e n t . o n s e l e c t s t a r t 	 =   f u n c t i o n   ( )   {   r e t u r n   f a l s e ;   } ;  
  
 	 	 t h i s . _ t i m e r . o n t i m e r   =   f u n c t i o n   ( )   {  
 	 	 	 o T h i s . o n t i m e r ( ) ;  
 	 	 } ;  
  
 	 	 / /   e x t r a   r e c a l c u l a t e   f o r   i e  
 	 	 w i n d o w . s e t T i m e o u t ( f u n c t i o n ( )   {  
 	 	 	 o T h i s . r e c a l c u l a t e ( ) ;  
 	 	 } ,   1 ) ;  
 	 }  
 	 e l s e   {  
 	 	 t h i s . i n p u t . o n c h a n g e   =   f u n c t i o n   ( e )   {  
 	 	 	 o T h i s . s e t V a l u e ( o T h i s . i n p u t . v a l u e ) ;  
 	 	 } ;  
 	 }  
 }  
  
 S l i d e r . e v e n t H a n d l e r s   =   {  
  
 	 / /   h e l p e r s   t o   m a k e   e v e n t s   a   b i t   e a s i e r  
 	 g e t E v e n t : 	 f u n c t i o n   ( e ,   e l )   {  
 	 	 i f   ( ! e )   {  
 	 	 	 i f   ( e l )  
 	 	 	 	 e   =   e l . d o c u m e n t . p a r e n t W i n d o w . e v e n t ;  
 	 	 	 e l s e  
 	 	 	 	 e   =   w i n d o w . e v e n t ;  
 	 	 }  
 	 	 i f   ( ! e . s r c E l e m e n t )   {  
 	 	 	 v a r   e l   =   e . t a r g e t ;  
 	 	 	 w h i l e   ( e l   ! =   n u l l   & &   e l . n o d e T y p e   ! =   1 )  
 	 	 	 	 e l   =   e l . p a r e n t N o d e ;  
 	 	 	 e . s r c E l e m e n t   =   e l ;  
 	 	 }  
 	 	 i f   ( t y p e o f   e . o f f s e t X   = =   " u n d e f i n e d " )   {  
 	 	 	 e . o f f s e t X   =   e . l a y e r X ;  
 	 	 	 e . o f f s e t Y   =   e . l a y e r Y ;  
 	 	 }  
  
 	 	 r e t u r n   e ;  
 	 } ,  
  
 	 g e t D o c u m e n t : 	 f u n c t i o n   ( e )   {  
 	 	 i f   ( e . t a r g e t )  
 	 	 	 r e t u r n   e . t a r g e t . o w n e r D o c u m e n t ;  
 	 	 r e t u r n   e . s r c E l e m e n t . d o c u m e n t ;  
 	 } ,  
  
 	 g e t S l i d e r : 	 f u n c t i o n   ( e )   {  
 	 	 v a r   e l   =   e . t a r g e t   | |   e . s r c E l e m e n t ;  
 	 	 w h i l e   ( e l   ! =   n u l l   & &   e l . s l i d e r   = =   n u l l ) 	 {  
 	 	 	 e l   =   e l . p a r e n t N o d e ;  
 	 	 }  
 	 	 i f   ( e l )  
 	 	 	 r e t u r n   e l . s l i d e r ;  
 	 	 r e t u r n   n u l l ;  
 	 } ,  
  
 	 g e t L i n e : 	 f u n c t i o n   ( e )   {  
 	 	 v a r   e l   =   e . t a r g e t   | |   e . s r c E l e m e n t ;  
 	 	 w h i l e   ( e l   ! =   n u l l   & &   e l . c l a s s N a m e   ! =   " l i n e " ) 	 {  
 	 	 	 e l   =   e l . p a r e n t N o d e ;  
 	 	 }  
 	 	 r e t u r n   e l ;  
 	 } ,  
  
 	 g e t H a n d l e : 	 f u n c t i o n   ( e )   {  
 	 	 v a r   e l   =   e . t a r g e t   | |   e . s r c E l e m e n t ;  
 	 	 v a r   r e   =   / h a n d l e / ;  
 	 	 w h i l e   ( e l   ! =   n u l l   & &   ! r e . t e s t ( e l . c l a s s N a m e ) ) 	 {  
 	 	 	 e l   =   e l . p a r e n t N o d e ;  
 	 	 }  
 	 	 r e t u r n   e l ;  
 	 } ,  
 	 / /   e n d   h e l p e r s  
  
 	 o n f o c u s : 	 f u n c t i o n   ( e )   {  
 	 	 v a r   s   =   t h i s . s l i d e r ;  
 	 	 s . _ f o c u s e d   =   t r u e ;  
 	 	 s . h a n d l e . c l a s s N a m e   =   " h a n d l e   h o v e r " ;  
 	 } ,  
  
 	 o n b l u r : 	 f u n c t i o n   ( e )   {  
 	 	 v a r   s   =   t h i s . s l i d e r  
 	 	 s . _ f o c u s e d   =   f a l s e ;  
 	 	 s . h a n d l e . c l a s s N a m e   =   " h a n d l e " ;  
 	 } ,  
  
 	 o n m o u s e o v e r : 	 f u n c t i o n   ( e )   {  
 	 	 e   =   S l i d e r . e v e n t H a n d l e r s . g e t E v e n t ( e ,   t h i s ) ;  
 	 	 v a r   s   =   t h i s . s l i d e r ;  
 	 	 i f   ( e . s r c E l e m e n t   = =   s . h a n d l e )  
 	 	 	 s . h a n d l e . c l a s s N a m e   =   " h a n d l e   h o v e r " ;  
 	 } ,  
  
 	 o n m o u s e o u t : 	 f u n c t i o n   ( e )   {  
 	 	 e   =   S l i d e r . e v e n t H a n d l e r s . g e t E v e n t ( e ,   t h i s ) ;  
 	 	 v a r   s   =   t h i s . s l i d e r ;  
 	 	 i f   ( e . s r c E l e m e n t   = =   s . h a n d l e   & &   ! s . _ f o c u s e d )  
 	 	 	 s . h a n d l e . c l a s s N a m e   =   " h a n d l e " ;  
 	 } ,  
  
 	 o n m o u s e d o w n : 	 f u n c t i o n   ( e )   {  
 	 	 e   =   S l i d e r . e v e n t H a n d l e r s . g e t E v e n t ( e ,   t h i s ) ;  
 	 	 v a r   s   =   t h i s . s l i d e r ;  
 	 	 i f   ( s . e l e m e n t . f o c u s )  
 	 	 	 s . e l e m e n t . f o c u s ( ) ;  
  
 	 	 S l i d e r . _ c u r r e n t I n s t a n c e   =   s ;  
 	 	 v a r   d o c   =   s . d o c u m e n t ;  
  
 	 	 i f   ( d o c . a d d E v e n t L i s t e n e r )   {  
 	 	 	 d o c . a d d E v e n t L i s t e n e r ( " m o u s e m o v e " ,   S l i d e r . e v e n t H a n d l e r s . o n m o u s e m o v e ,   t r u e ) ;  
 	 	 	 d o c . a d d E v e n t L i s t e n e r ( " m o u s e u p " ,   S l i d e r . e v e n t H a n d l e r s . o n m o u s e u p ,   t r u e ) ;  
 	 	 }  
 	 	 e l s e   i f   ( d o c . a t t a c h E v e n t )   {  
 	 	 	 d o c . a t t a c h E v e n t ( " o n m o u s e m o v e " ,   S l i d e r . e v e n t H a n d l e r s . o n m o u s e m o v e ) ;  
 	 	 	 d o c . a t t a c h E v e n t ( " o n m o u s e u p " ,   S l i d e r . e v e n t H a n d l e r s . o n m o u s e u p ) ;  
 	 	 	 d o c . a t t a c h E v e n t ( " o n l o s e c a p t u r e " ,   S l i d e r . e v e n t H a n d l e r s . o n m o u s e u p ) ;  
 	 	 	 s . e l e m e n t . s e t C a p t u r e ( ) ;  
 	 	 }  
  
 	 	 i f   ( S l i d e r . e v e n t H a n d l e r s . g e t H a n d l e ( e ) )   { 	 / /   s t a r t   d r a g  
 	 	 	 S l i d e r . _ s l i d e r D r a g D a t a   =   {  
 	 	 	 	 s c r e e n X : 	 e . s c r e e n X ,  
 	 	 	 	 s c r e e n Y : 	 e . s c r e e n Y ,  
 	 	 	 	 d x : 	 	 	 e . s c r e e n X   -   s . h a n d l e . o f f s e t L e f t ,  
 	 	 	 	 d y : 	 	 	 e . s c r e e n Y   -   s . h a n d l e . o f f s e t T o p ,  
 	 	 	 	 s t a r t V a l u e : 	 s . g e t V a l u e ( ) ,  
 	 	 	 	 s l i d e r : 	 	 s  
 	 	 	 } ;  
 	 	 }  
 	 	 e l s e   {  
 	 	 	 v a r   l i n e E l   =   S l i d e r . e v e n t H a n d l e r s . g e t L i n e ( e ) ;  
 	 	 	 s . _ m o u s e X   =   e . o f f s e t X   +   ( l i n e E l   ?   s . l i n e . o f f s e t L e f t   :   0 ) ;  
 	 	 	 s . _ m o u s e Y   =   e . o f f s e t Y   +   ( l i n e E l   ?   s . l i n e . o f f s e t T o p   :   0 ) ;  
 	 	 	 s . _ i n c r e a s i n g   =   n u l l ;  
 	 	 	 s . o n t i m e r ( ) ;  
 	 	 }  
 	 } ,  
  
 	 o n m o u s e m o v e : 	 f u n c t i o n   ( e )   {  
 	  
 	 	 e   =   S l i d e r . e v e n t H a n d l e r s . g e t E v e n t ( e ,   t h i s ) ;  
  
 	 	 i f   ( S l i d e r . _ s l i d e r D r a g D a t a )   { 	 / /   d r a g  
 	 	 	 v a r   s   =   S l i d e r . _ s l i d e r D r a g D a t a . s l i d e r ;  
  
 	 	 	 v a r   b o u n d S i z e   =   s . g e t M a x i m u m ( )   -   s . g e t M i n i m u m ( ) ;  
 	 	 	 v a r   s i z e ,   p o s ,   r e s e t ;  
  
 	 	 	 i f   ( s . _ o r i e n t a t i o n   = =   " h o r i z o n t a l " )   {  
 	 	 	 	 s i z e   =   s . e l e m e n t . o f f s e t W i d t h   -   s . h a n d l e . o f f s e t W i d t h ;  
 	 	 	 	 p o s   =   e . s c r e e n X   -   S l i d e r . _ s l i d e r D r a g D a t a . d x ;  
 	 	 	 	 r e s e t   =   M a t h . a b s ( e . s c r e e n Y   -   S l i d e r . _ s l i d e r D r a g D a t a . s c r e e n Y )   >   1 0 0 ;  
 	 	 	 }  
 	 	 	 e l s e   {  
 	 	 	 	 s i z e   =   s . e l e m e n t . o f f s e t H e i g h t   -   s . h a n d l e . o f f s e t H e i g h t ;  
 	 	 	 	 p o s   =   s . e l e m e n t . o f f s e t H e i g h t   -   s . h a n d l e . o f f s e t H e i g h t   -  
 	 	 	 	 	 ( e . s c r e e n Y   -   S l i d e r . _ s l i d e r D r a g D a t a . d y ) ;  
 	 	 	 	 r e s e t   =   M a t h . a b s ( e . s c r e e n X   -   S l i d e r . _ s l i d e r D r a g D a t a . s c r e e n X )   >   1 0 0 ;  
 	 	 	 }  
 	 	 	  
 	 	 	 s . s e t V a l u e ( r e s e t   ?   S l i d e r . _ s l i d e r D r a g D a t a . s t a r t V a l u e   :  
 	 	 	 	 	 	 s . g e t M i n i m u m ( )   +   b o u n d S i z e   *   p o s   /   s i z e ) ;  
                          
                         o b j S e a r c h R e s u l t . S l i d e r D r a g ( S l i d e r ) ;  
                          
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }  
 	 	 e l s e   {  
 	 	 	 v a r   s   =   S l i d e r . _ c u r r e n t I n s t a n c e ;  
 	 	 	 i f   ( s   ! =   n u l l )   {  
 	 	 	 	 v a r   l i n e E l   =   S l i d e r . e v e n t H a n d l e r s . g e t L i n e ( e ) ;  
 	 	 	 	 s . _ m o u s e X   =   e . o f f s e t X   +   ( l i n e E l   ?   s . l i n e . o f f s e t L e f t   :   0 ) ;  
 	 	 	 	 s . _ m o u s e Y   =   e . o f f s e t Y   +   ( l i n e E l   ?   s . l i n e . o f f s e t T o p   :   0 ) ;  
 	 	 	 }  
 	 	 }  
  
 	 } ,  
  
 	 o n m o u s e u p : 	 f u n c t i o n   ( e )   {  
 	          
 	 	 e   =   S l i d e r . e v e n t H a n d l e r s . g e t E v e n t ( e ,   t h i s ) ;  
 	 	 v a r   s   =   S l i d e r . _ c u r r e n t I n s t a n c e ;  
 	 	 v a r   d o c   =   s . d o c u m e n t ;  
 	 	 i f   ( d o c . r e m o v e E v e n t L i s t e n e r )   {  
 	 	 	 d o c . r e m o v e E v e n t L i s t e n e r ( " m o u s e m o v e " ,   S l i d e r . e v e n t H a n d l e r s . o n m o u s e m o v e ,   t r u e ) ;  
 	 	 	 d o c . r e m o v e E v e n t L i s t e n e r ( " m o u s e u p " ,   S l i d e r . e v e n t H a n d l e r s . o n m o u s e u p ,   t r u e ) ;  
 	 	 }  
 	 	 e l s e   i f   ( d o c . d e t a c h E v e n t )   {  
 	 	 	 d o c . d e t a c h E v e n t ( " o n m o u s e m o v e " ,   S l i d e r . e v e n t H a n d l e r s . o n m o u s e m o v e ) ;  
 	 	 	 d o c . d e t a c h E v e n t ( " o n m o u s e u p " ,   S l i d e r . e v e n t H a n d l e r s . o n m o u s e u p ) ;  
 	 	 	 d o c . d e t a c h E v e n t ( " o n l o s e c a p t u r e " ,   S l i d e r . e v e n t H a n d l e r s . o n m o u s e u p ) ;  
 	 	 	 s . e l e m e n t . r e l e a s e C a p t u r e ( ) ;  
 	 	 }  
  
 	 	 i f   ( S l i d e r . _ s l i d e r D r a g D a t a )   { 	 / /   e n d   d r a g  
 	 	 	 S l i d e r . _ s l i d e r D r a g D a t a   =   n u l l ;  
 	 	 }  
 	 	 e l s e   {  
 	 	 	 s . _ t i m e r . s t o p ( ) ;  
 	 	 	 s . _ i n c r e a s i n g   =   n u l l ;  
 	 	 }  
 	 	 S l i d e r . _ c u r r e n t I n s t a n c e   =   n u l l ;  
 	 	  
                 o b j S e a r c h R e s u l t . S l i d e r C h a n g e ( S l i d e r ) ;  
 	 } ,  
  
 	 o n k e y d o w n : 	 f u n c t i o n   ( e )   {  
 	  
         	 e   =   S l i d e r . e v e n t H a n d l e r s . g e t E v e n t ( e ,   t h i s ) ;  
 	 	 / / v a r   s   =   S l i d e r . e v e n t H a n d l e r s . g e t S l i d e r ( e ) ;  
 	 	 v a r   s   =   t h i s . s l i d e r ;  
 	 	 v a r   k c   =   e . k e y C o d e ;  
 	 	 s w i t c h   ( k c )   {  
 	 	 	 c a s e   3 3 : 	 / /   p a g e   u p  
 	 	 	 	 s . s e t V a l u e ( s . g e t V a l u e ( )   +   s . g e t B l o c k I n c r e m e n t ( ) ) ;  
 	 	 	 	 b r e a k ;  
 	 	 	 c a s e   3 4 : 	 / /   p a g e   d o w n  
 	 	 	 	 s . s e t V a l u e ( s . g e t V a l u e ( )   -   s . g e t B l o c k I n c r e m e n t ( ) ) ;  
 	 	 	 	 b r e a k ;  
 	 	 	 c a s e   3 5 : 	 / /   e n d  
 	 	 	 	 s . s e t V a l u e ( s . g e t O r i e n t a t i o n ( )   = =   " h o r i z o n t a l "   ?  
 	 	 	 	 	 s . g e t M a x i m u m ( )   :  
 	 	 	 	 	 s . g e t M i n i m u m ( ) ) ;  
 	 	 	 	 b r e a k ;  
 	 	 	 c a s e   3 6 : 	 / /   h o m e  
 	 	 	 	 s . s e t V a l u e ( s . g e t O r i e n t a t i o n ( )   = =   " h o r i z o n t a l "   ?  
 	 	 	 	 	 s . g e t M i n i m u m ( )   :  
 	 	 	 	 	 s . g e t M a x i m u m ( ) ) ;  
 	 	 	 	 b r e a k ;  
 	 	 	 c a s e   3 8 : 	 / /   u p  
 	 	 	 c a s e   3 9 : 	 / /   r i g h t  
 	 	 	 	 s . s e t V a l u e ( s . g e t V a l u e ( )   +   s . g e t U n i t I n c r e m e n t ( ) ) ;  
 	 	 	 	 b r e a k ;  
  
 	 	 	 c a s e   3 7 : 	 / /   l e f t  
 	 	 	 c a s e   4 0 : 	 / /   d o w n  
 	 	 	 	 s . s e t V a l u e ( s . g e t V a l u e ( )   -   s . g e t U n i t I n c r e m e n t ( ) ) ;  
 	 	 	 	 b r e a k ;  
 	 	 }  
  
                 o b j S e a r c h R e s u l t . S l i d e r C h a n g e ( S l i d e r ) ;  
  
 	 	 i f   ( k c   > =   3 3   & &   k c   < =   4 0 )   {  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }  
 	 } ,  
  
 	 o n k e y p r e s s : 	 f u n c t i o n   ( e )   {  
  
 	 	 e   =   S l i d e r . e v e n t H a n d l e r s . g e t E v e n t ( e ,   t h i s ) ;  
 	 	 v a r   k c   =   e . k e y C o d e ;  
 	 	 i f   ( k c   > =   3 3   & &   k c   < =   4 0 )   {  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }  
 	 } ,  
  
 	 o n m o u s e w h e e l : 	 f u n c t i o n   ( e )   {  
 	 	 e   =   S l i d e r . e v e n t H a n d l e r s . g e t E v e n t ( e ,   t h i s ) ;  
 	 	 v a r   s   =   t h i s . s l i d e r ;  
 	 	 i f   ( s . _ f o c u s e d )   {  
 	 	 	 s . s e t V a l u e ( s . g e t V a l u e ( )   +   e . w h e e l D e l t a   /   1 2 0   *   s . g e t U n i t I n c r e m e n t ( ) ) ;  
 	 	 	 / /   w i n d o w s   i n v e r t s   t h i s   o n   h o r i z o n t a l   s l i d e r s .   T h a t   d o e s   n o t  
 	 	 	 / /   m a k e   s e n s e   t o   m e  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }  
 	 }  
 } ;  
  
  
  
 S l i d e r . p r o t o t y p e . c l a s s N a m e T a g   =   " d y n a m i c - s l i d e r - c o n t r o l " ,  
  
 S l i d e r . p r o t o t y p e . s e t V a l u e   =   f u n c t i o n   ( v )   {  
 	 t h i s . _ r a n g e . s e t V a l u e ( v ) ;  
 	 t h i s . i n p u t . v a l u e   =   t h i s . g e t V a l u e ( ) ;  
 } ;  
  
 S l i d e r . p r o t o t y p e . g e t V a l u e   =   f u n c t i o n   ( )   {  
 	 r e t u r n   t h i s . _ r a n g e . g e t V a l u e ( ) ;  
 } ;  
  
 S l i d e r . p r o t o t y p e . s e t M i n i m u m   =   f u n c t i o n   ( v )   {  
 	 t h i s . _ r a n g e . s e t M i n i m u m ( v ) ;  
 	 t h i s . i n p u t . v a l u e   =   t h i s . g e t V a l u e ( ) ;  
 } ;  
  
 S l i d e r . p r o t o t y p e . g e t M i n i m u m   =   f u n c t i o n   ( )   {  
 	 r e t u r n   t h i s . _ r a n g e . g e t M i n i m u m ( ) ;  
 } ;  
  
 S l i d e r . p r o t o t y p e . s e t M a x i m u m   =   f u n c t i o n   ( v )   {  
 	 t h i s . _ r a n g e . s e t M a x i m u m ( v ) ;  
 	 t h i s . i n p u t . v a l u e   =   t h i s . g e t V a l u e ( ) ;  
 } ;  
  
 S l i d e r . p r o t o t y p e . g e t M a x i m u m   =   f u n c t i o n   ( )   {  
 	 r e t u r n   t h i s . _ r a n g e . g e t M a x i m u m ( ) ;  
 } ;  
  
 S l i d e r . p r o t o t y p e . s e t U n i t I n c r e m e n t   =   f u n c t i o n   ( v )   {  
 	 t h i s . _ u n i t I n c r e m e n t   =   v ;  
 } ;  
  
 S l i d e r . p r o t o t y p e . g e t U n i t I n c r e m e n t   =   f u n c t i o n   ( )   {  
 	 r e t u r n   t h i s . _ u n i t I n c r e m e n t ;  
 } ;  
  
 S l i d e r . p r o t o t y p e . s e t B l o c k I n c r e m e n t   =   f u n c t i o n   ( v )   {  
 	 t h i s . _ b l o c k I n c r e m e n t   =   v ;  
 } ;  
  
 S l i d e r . p r o t o t y p e . g e t B l o c k I n c r e m e n t   =   f u n c t i o n   ( )   {  
 	 r e t u r n   t h i s . _ b l o c k I n c r e m e n t ;  
 } ;  
  
 S l i d e r . p r o t o t y p e . g e t O r i e n t a t i o n   =   f u n c t i o n   ( )   {  
 	 r e t u r n   t h i s . _ o r i e n t a t i o n ;  
 } ;  
  
 S l i d e r . p r o t o t y p e . s e t O r i e n t a t i o n   =   f u n c t i o n   ( s O r i e n t a t i o n )   {  
 	 i f   ( s O r i e n t a t i o n   ! =   t h i s . _ o r i e n t a t i o n )   {  
 	 	 i f   ( S l i d e r . i s S u p p o r t e d   & &   t h i s . e l e m e n t )   {  
 	 	 	 / /   a d d   c l a s s   n a m e   t a g   t o   c l a s s   n a m e  
 	 	 	 t h i s . e l e m e n t . c l a s s N a m e   =   t h i s . e l e m e n t . c l a s s N a m e . r e p l a c e ( t h i s . _ o r i e n t a t i o n ,  
 	 	 	 	 	 	 	 	 	 s O r i e n t a t i o n ) ;  
 	 	 }  
 	 	 t h i s . _ o r i e n t a t i o n   =   s O r i e n t a t i o n ;  
 	 	 t h i s . r e c a l c u l a t e ( ) ;  
  
 	 }  
 } ;  
  
 S l i d e r . p r o t o t y p e . r e c a l c u l a t e   =   f u n c t i o n ( )   {  
 	 i f   ( ! S l i d e r . i s S u p p o r t e d   | |   ! t h i s . e l e m e n t )   r e t u r n ;  
  
 	 v a r   w   =   t h i s . e l e m e n t . o f f s e t W i d t h ;  
 	 v a r   h   =   t h i s . e l e m e n t . o f f s e t H e i g h t ;  
 	 v a r   h w   =   t h i s . h a n d l e . o f f s e t W i d t h ;  
 	 v a r   h h   =   t h i s . h a n d l e . o f f s e t H e i g h t ;  
 	 v a r   l w   =   t h i s . l i n e . o f f s e t W i d t h ;  
 	 v a r   l h   =   t h i s . l i n e . o f f s e t H e i g h t ;  
  
 	 / /   t h i s   a s s u m e s   a   b o r d e r - b o x   l a y o u t  
  
 	 i f   ( t h i s . _ o r i e n t a t i o n   = =   " h o r i z o n t a l " )   {  
 	 	 i f   ( t h i s . g e t M a x i m u m ( )   -   t h i s . g e t M i n i m u m ( )   >   0 )  
 	 	 {  
 	 	 	 t h i s . h a n d l e . s t y l e . l e f t   =   ( w   -   h w )   *   ( t h i s . g e t V a l u e ( )   -   t h i s . g e t M i n i m u m ( ) )   /  
 	 	 	 	 ( t h i s . g e t M a x i m u m ( )   -   t h i s . g e t M i n i m u m ( ) )   +   " p x " ;  
 	 	 }  
 	 	 t h i s . h a n d l e . s t y l e . t o p   =   ( h   -   h h )   /   2   +   " p x " ;  
  
 	 	 t h i s . l i n e . s t y l e . t o p   =   ( h   -   l h )   /   2   +   " p x " ;  
 	 	 t h i s . l i n e . s t y l e . l e f t   =   h w   /   2   +   " p x " ;  
 	 	 / / t h i s . l i n e . s t y l e . r i g h t   =   h w   /   2   +   " p x " ;  
 	 	 t h i s . l i n e . s t y l e . w i d t h   =   M a t h . m a x ( 0 ,   w   -   h w   -   2 ) +   " p x " ;  
 	 	 t h i s . l i n e . f i r s t C h i l d . s t y l e . w i d t h   =   M a t h . m a x ( 0 ,   w   -   h w   -   4 ) +   " p x " ;  
 	 }  
 	 e l s e   {  
 	 	 t h i s . h a n d l e . s t y l e . l e f t   =   ( w   -   h w )   /   2   +   " p x " ;  
 	 	 i f   ( t h i s . g e t M a x i m u m ( )   -   t h i s . g e t M i n i m u m ( )   >   0 )  
 	 	 {  
 	 	 	 t h i s . h a n d l e . s t y l e . t o p   =   h   -   h h   -   ( h   -   h h )   *   ( t h i s . g e t V a l u e ( )   -   t h i s . g e t M i n i m u m ( ) )   /  
 	 	 	 	 ( t h i s . g e t M a x i m u m ( )   -   t h i s . g e t M i n i m u m ( ) )   +   " p x " ;  
 	 	 }  
  
 	 	 t h i s . l i n e . s t y l e . l e f t   =   ( w   -   l w )   /   2   +   " p x " ;  
 	 	 t h i s . l i n e . s t y l e . t o p   =   h h   /   2   +   " p x " ;  
 	 	 t h i s . l i n e . s t y l e . h e i g h t   =   M a t h . m a x ( 0 ,   h   -   h h   -   2 )   +   " p x " ; 	 / / h a r d   c o d e d   b o r d e r   w i d t h  
 	 	 / / t h i s . l i n e . s t y l e . b o t t o m   =   h h   /   2   +   " p x " ;  
 	 	 t h i s . l i n e . f i r s t C h i l d . s t y l e . h e i g h t   =   M a t h . m a x ( 0 ,   h   -   h h   -   4 )   +   " p x " ; 	 / / h a r d   c o d e d   b o r d e r   w i d t h  
 	 }  
 } ;  
  
 S l i d e r . p r o t o t y p e . o n t i m e r   =   f u n c t i o n   ( )   {  
 	 v a r   h w   =   t h i s . h a n d l e . o f f s e t W i d t h ;  
 	 v a r   h h   =   t h i s . h a n d l e . o f f s e t H e i g h t ;  
 	 v a r   h l   =   t h i s . h a n d l e . o f f s e t L e f t ;  
 	 v a r   h t   =   t h i s . h a n d l e . o f f s e t T o p ;  
  
 	 i f   ( t h i s . _ o r i e n t a t i o n   = =   " h o r i z o n t a l " )   {  
 	 	 i f   ( t h i s . _ m o u s e X   >   h l   +   h w   & &  
 	 	 	 ( t h i s . _ i n c r e a s i n g   = =   n u l l   | |   t h i s . _ i n c r e a s i n g ) )   {  
 	 	 	 t h i s . s e t V a l u e ( t h i s . g e t V a l u e ( )   +   t h i s . g e t B l o c k I n c r e m e n t ( ) ) ;  
 	 	 	 t h i s . _ i n c r e a s i n g   =   t r u e ;  
 	 	 }  
 	 	 e l s e   i f   ( t h i s . _ m o u s e X   <   h l   & &  
 	 	 	 ( t h i s . _ i n c r e a s i n g   = =   n u l l   | |   ! t h i s . _ i n c r e a s i n g ) )   {  
 	 	 	 t h i s . s e t V a l u e ( t h i s . g e t V a l u e ( )   -   t h i s . g e t B l o c k I n c r e m e n t ( ) ) ;  
 	 	 	 t h i s . _ i n c r e a s i n g   =   f a l s e ;  
 	 	 }  
 	 }  
 	 e l s e   {  
 	 	 i f   ( t h i s . _ m o u s e Y   >   h t   +   h h   & &  
 	 	 	 ( t h i s . _ i n c r e a s i n g   = =   n u l l   | |   ! t h i s . _ i n c r e a s i n g ) )   {  
 	 	 	 t h i s . s e t V a l u e ( t h i s . g e t V a l u e ( )   -   t h i s . g e t B l o c k I n c r e m e n t ( ) ) ;  
 	 	 	 t h i s . _ i n c r e a s i n g   =   f a l s e ;  
 	 	 }  
 	 	 e l s e   i f   ( t h i s . _ m o u s e Y   <   h t   & &  
 	 	 	 ( t h i s . _ i n c r e a s i n g   = =   n u l l   | |   t h i s . _ i n c r e a s i n g ) )   {  
 	 	 	 t h i s . s e t V a l u e ( t h i s . g e t V a l u e ( )   +   t h i s . g e t B l o c k I n c r e m e n t ( ) ) ;  
 	 	 	 t h i s . _ i n c r e a s i n g   =   t r u e ;  
 	 	 }  
 	 }  
  
 	 t h i s . _ t i m e r . s t a r t ( ) ;  
 } ;  
  
  
 f u n c t i o n   T i m e r ( n P a u s e T i m e )   {  
 	 t h i s . _ p a u s e T i m e   =   t y p e o f   n P a u s e T i m e   = =   " u n d e f i n e d "   ?   1 0 0 0   :   n P a u s e T i m e ;  
 	 t h i s . _ t i m e r   =   n u l l ;  
 	 t h i s . _ i s S t a r t e d   =   f a l s e ;  
 }  
  
 T i m e r . p r o t o t y p e . s t a r t   =   f u n c t i o n   ( )   {  
 	 i f   ( t h i s . i s S t a r t e d ( ) )  
 	 	 t h i s . s t o p ( ) ;  
 	 v a r   o T h i s   =   t h i s ;  
 	 t h i s . _ t i m e r   =   w i n d o w . s e t T i m e o u t ( f u n c t i o n   ( )   {  
 	 	 i f   ( t y p e o f   o T h i s . o n t i m e r   = =   " f u n c t i o n " )  
 	 	 	 o T h i s . o n t i m e r ( ) ;  
 	 } ,   t h i s . _ p a u s e T i m e ) ;  
 	 t h i s . _ i s S t a r t e d   =   f a l s e ;  
 } ;  
  
 T i m e r . p r o t o t y p e . s t o p   =   f u n c t i o n   ( )   {  
 	 i f   ( t h i s . _ t i m e r   ! =   n u l l )  
 	 	 w i n d o w . c l e a r T i m e o u t ( t h i s . _ t i m e r ) ;  
 	 t h i s . _ i s S t a r t e d   =   f a l s e ;  
 } ;  
  
 T i m e r . p r o t o t y p e . i s S t a r t e d   =   f u n c t i o n   ( )   {  
 	 r e t u r n   t h i s . _ i s S t a r t e d ;  
 } ;  
  
 T i m e r . p r o t o t y p e . g e t P a u s e T i m e   =   f u n c t i o n   ( )   {  
 	 r e t u r n   t h i s . _ p a u s e T i m e ;  
 } ;  
  
 T i m e r . p r o t o t y p e . s e t P a u s e T i m e   =   f u n c t i o n   ( n P a u s e T i m e )   {  
 	 t h i s . _ p a u s e T i m e   =   n P a u s e T i m e ;  
 } ;  
  
  
 f u n c t i o n   R a n g e ( )   {  
 	 t h i s . _ v a l u e   =   0 ;  
 	 t h i s . _ m i n i m u m   =   0 ;  
 	 t h i s . _ m a x i m u m   =   1 0 0 ;  
 	 t h i s . _ e x t e n t   =   0 ;  
  
 	 t h i s . _ i s C h a n g i n g   =   f a l s e ;  
 }  
  
 R a n g e . p r o t o t y p e . s e t V a l u e   =   f u n c t i o n   ( v a l u e )   {  
 	 v a l u e   =   M a t h . r o u n d ( p a r s e F l o a t ( v a l u e ) ) ;  
 	 i f   ( i s N a N ( v a l u e ) )   r e t u r n ;  
 	 i f   ( t h i s . _ v a l u e   ! =   v a l u e )   {  
 	 	 i f   ( v a l u e   +   t h i s . _ e x t e n t   >   t h i s . _ m a x i m u m )  
 	 	 	 t h i s . _ v a l u e   =   t h i s . _ m a x i m u m   -   t h i s . _ e x t e n t ;  
 	 	 e l s e   i f   ( v a l u e   <   t h i s . _ m i n i m u m )  
 	 	 	 t h i s . _ v a l u e   =   t h i s . _ m i n i m u m ;  
 	 	 e l s e  
 	 	 	 t h i s . _ v a l u e   =   v a l u e ;  
 	 	 i f   ( ! t h i s . _ i s C h a n g i n g   & &   t y p e o f   t h i s . o n c h a n g e   = =   " f u n c t i o n " )  
 	 	 	   t h i s . o n c h a n g e ( ) ;  
 	 }  
 } ;  
  
 R a n g e . p r o t o t y p e . g e t V a l u e   =   f u n c t i o n   ( )   {  
 	 r e t u r n   t h i s . _ v a l u e ;  
 } ;  
  
 R a n g e . p r o t o t y p e . s e t E x t e n t   =   f u n c t i o n   ( e x t e n t )   {  
 	 i f   ( t h i s . _ e x t e n t   ! =   e x t e n t )   {  
 	 	 i f   ( e x t e n t   <   0 )  
 	 	 	 t h i s . _ e x t e n t   =   0 ;  
 	 	 e l s e   i f   ( t h i s . _ v a l u e   +   e x t e n t   >   t h i s . _ m a x i m u m )  
 	 	 	 t h i s . _ e x t e n t   =   t h i s . _ m a x i m u m   -   t h i s . _ v a l u e ;  
 	 	 e l s e  
 	 	 	 t h i s . _ e x t e n t   =   e x t e n t ;  
 	 	 i f   ( ! t h i s . _ i s C h a n g i n g   & &   t y p e o f   t h i s . o n c h a n g e   = =   " f u n c t i o n " )  
 	 	 	 t h i s . o n c h a n g e ( ) ;  
 	 }  
 } ;  
  
 R a n g e . p r o t o t y p e . g e t E x t e n t   =   f u n c t i o n   ( )   {  
 	 r e t u r n   t h i s . _ e x t e n t ;  
 } ;  
  
 R a n g e . p r o t o t y p e . s e t M i n i m u m   =   f u n c t i o n   ( m i n i m u m )   {  
 	 i f   ( t h i s . _ m i n i m u m   ! =   m i n i m u m )   {  
 	 	 v a r   o l d I s C h a n g i n g   =   t h i s . _ i s C h a n g i n g ;  
 	 	 t h i s . _ i s C h a n g i n g   =   t r u e ;  
  
 	 	 t h i s . _ m i n i m u m   =   m i n i m u m ;  
  
 	 	 i f   ( m i n i m u m   >   t h i s . _ v a l u e )  
 	 	 	 t h i s . s e t V a l u e ( m i n i m u m ) ;  
 	 	 i f   ( m i n i m u m   >   t h i s . _ m a x i m u m )   {  
 	 	 	 t h i s . _ e x t e n t   =   0 ;  
 	 	 	 t h i s . s e t M a x i m u m ( m i n i m u m ) ;  
 	 	 	 t h i s . s e t V a l u e ( m i n i m u m )  
 	 	 }  
 	 	 i f   ( m i n i m u m   +   t h i s . _ e x t e n t   >   t h i s . _ m a x i m u m )  
 	 	 	 t h i s . _ e x t e n t   =   t h i s . _ m a x i m u m   -   t h i s . _ m i n i m u m ;  
  
 	 	 t h i s . _ i s C h a n g i n g   =   o l d I s C h a n g i n g ;  
 	 	 i f   ( ! t h i s . _ i s C h a n g i n g   & &   t y p e o f   t h i s . o n c h a n g e   = =   " f u n c t i o n " )  
 	 	 	 t h i s . o n c h a n g e ( ) ;  
 	 }  
 } ;  
  
 R a n g e . p r o t o t y p e . g e t M i n i m u m   =   f u n c t i o n   ( )   {  
 	 r e t u r n   t h i s . _ m i n i m u m ;  
 } ;  
  
 R a n g e . p r o t o t y p e . s e t M a x i m u m   =   f u n c t i o n   ( m a x i m u m )   {  
 	 i f   ( t h i s . _ m a x i m u m   ! =   m a x i m u m )   {  
 	 	 v a r   o l d I s C h a n g i n g   =   t h i s . _ i s C h a n g i n g ;  
 	 	 t h i s . _ i s C h a n g i n g   =   t r u e ;  
  
 	 	 t h i s . _ m a x i m u m   =   m a x i m u m ;  
  
 	 	 i f   ( m a x i m u m   <   t h i s . _ v a l u e )  
 	 	 	 t h i s . s e t V a l u e ( m a x i m u m   -   t h i s . _ e x t e n t ) ;  
 	 	 i f   ( m a x i m u m   <   t h i s . _ m i n i m u m )   {  
 	 	 	 t h i s . _ e x t e n t   =   0 ;  
 	 	 	 t h i s . s e t M i n i m u m ( m a x i m u m ) ;  
 	 	 	 t h i s . s e t V a l u e ( t h i s . _ m a x i m u m ) ;  
 	 	 }  
 	 	 i f   ( m a x i m u m   <   t h i s . _ m i n i m u m   +   t h i s . _ e x t e n t )  
 	 	 	 t h i s . _ e x t e n t   =   t h i s . _ m a x i m u m   -   t h i s . _ m i n i m u m ;  
 	 	 i f   ( m a x i m u m   <   t h i s . _ v a l u e   +   t h i s . _ e x t e n t )  
 	 	 	 t h i s . _ e x t e n t   =   t h i s . _ m a x i m u m   -   t h i s . _ v a l u e ;  
  
 	 	 t h i s . _ i s C h a n g i n g   =   o l d I s C h a n g i n g ;  
 	 	 i f   ( ! t h i s . _ i s C h a n g i n g   & &   t y p e o f   t h i s . o n c h a n g e   = =   " f u n c t i o n " )  
 	 	 	 t h i s . o n c h a n g e ( ) ;  
 	 }  
 } ;  
  
 R a n g e . p r o t o t y p e . g e t M a x i m u m   =   f u n c t i o n   ( )   {  
 	 r e t u r n   t h i s . _ m a x i m u m ;  
 } ;  
 
