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