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