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