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