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