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