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