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