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