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