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