ÿþ/ / / /   J a v a S c r i p t   D o c u m e n t  
 / / f u n c t i o n   o p e n I m a g e N e w s ( v L i n k ,   v H e i g h t ,   v W i d t h )  
 / / {  
 / / 	 v a r   s L i n k   =   ( t y p e o f ( v L i n k . h r e f ) = = ' u n d e f i n e d ' )   ?   v L i n k   :   v L i n k . h r e f ;  
  
 / / 	 i f   ( s L i n k = = ' ' )  
 / / 	 {  
 / / 	 	 r e t u r n   f a l s e ;  
 / / 	 }  
  
 / / 	 w i n D e f   =   ' s t a t u s = n o , r e s i z a b l e = n o , s c r o l l b a r s = n o , t o o l b a r = n o , l o c a t i o n = n o , f u l l s c r e e n = n o , t i t l e b a r = y e s , h e i g h t = ' . c o n c a t ( v H e i g h t ) . c o n c a t ( ' , ' ) . c o n c a t ( ' w i d t h = ' ) . c o n c a t ( v W i d t h ) . c o n c a t ( ' , ' ) ;  
 / / 	 w i n D e f   =   w i n D e f . c o n c a t ( ' t o p = ' ) . c o n c a t ( ( s c r e e n . h e i g h t   -   v H e i g h t ) / 2 ) . c o n c a t ( ' , ' ) ;  
 / / 	 w i n D e f   =   w i n D e f . c o n c a t ( ' l e f t = ' ) . c o n c a t ( ( s c r e e n . w i d t h   -   v W i d t h ) / 2 ) ;  
 / / 	 n e w w i n   =   o p e n ( ' ' ,   ' _ b l a n k ' ,   w i n D e f ) ;  
  
 / / 	 n e w w i n . d o c u m e n t . w r i t e l n ( ' < t i t l e > C h i   t i ¿t   h ì n h   £n h ! < / t i t l e > < b o d y   t o p m a r g i n = " 0 "   l e f t m a r g i n = " 0 "   m a r g i n h e i g h t = " 0 "   m a r g i n w i d t h = " 0 " > ' ) ;  
 / / 	 n e w w i n . d o c u m e n t . w r i t e l n ( ' < a   h r e f = " "   o n C l i c k = " w i n d o w . c l o s e ( ) ;   r e t u r n   f a l s e ; " > < i m g   s r c = " ' ,   s L i n k ,   ' "   a l t = " ' ,   ' D o n g   l a i ' ,   ' "   b o r d e r = 0 > < / a > ' ) ;  
 / / 	 n e w w i n . d o c u m e n t . w r i t e l n ( ' < / b o d y > ' ) ;  
  
 / / 	 i f   ( t y p e o f ( v L i n k . h r e f )   ! =   ' u n d e f i n e d ' )  
 / / 	 {  
 / / 	 	 r e t u r n   f a l s e ;  
 / / 	 }  
 / / }  
  
  
 f u n c t i o n   M M _ j u m p M e n u ( t a r g ,   s e l O b j ,   r e s t o r e )   {   / / v 3 . 0  
         e v a l ( t a r g   +   " . l o c a t i o n = ' "   +   s e l O b j . o p t i o n s [ s e l O b j . s e l e c t e d I n d e x ] . v a l u e   +   " ' " ) ;  
         i f   ( r e s t o r e )   s e l O b j . s e l e c t e d I n d e x   =   0 ;  
 }  
  
  
 / / S E L E C T   C E L L  
 v a r   t h e o l d c e l l   =   " "  
 f u n c t i o n   s h o w h i d e ( t h e c e l l )   {  
         i f   ( t h e o l d c e l l   = =   t h e c e l l )   {  
                 e v a l ( ' d o c u m e n t . a l l . '   +   t h e c e l l ) . s t y l e . d i s p l a y   =   ' n o n e '  
                 e v a l ( ' d o c u m e n t . a l l . '   +   t h e o l d c e l l ) . s t y l e . d i s p l a y   =   ' n o n e '  
                 t h e o l d c e l l   =   " "  
         }   e l s e   {  
                 i f   ( t h e o l d c e l l   ! =   t h e c e l l )   {  
                         i f   ( t h e o l d c e l l   ! =   " " )  
                                 e v a l ( ' d o c u m e n t . a l l . '   +   t h e o l d c e l l ) . s t y l e . d i s p l a y   =   ' n o n e '  
                         e v a l ( ' d o c u m e n t . a l l . '   +   t h e c e l l ) . s t y l e . d i s p l a y   =   ' '  
                         t h e o l d c e l l   =   t h e c e l l  
                 }  
         }  
 }  
  
  
  
 / / N E W   M O U S E  
 f u n c t i o n   s h o w h i d e b r o t h e r r o w s ( c u r r e n t r o w )   {  
         c u r r e n t e l e m e n t   =   d o c u m e n t . g e t E l e m e n t B y I d ( c u r r e n t r o w ) ;  
         m e n u n u m b e r   =   c u r r e n t r o w . s p l i t ( ' m a s t e r m e n u ' ) [ 1 ] ;  
  
         i f   ( c u r r e n t e l e m e n t . p a r e n t N o d e . r o w s )   {  
                 / / a l e r t ( c u r r e n t e l e m e n t . p a r e n t N o d e . r o w s )   ;  
                 / / a l e r t ( m e n u n u m b e r )   ;  
                 f o r   ( i   =   0 ;   i   <   c u r r e n t e l e m e n t . p a r e n t N o d e . r o w s . l e n g t h ;   i + + )   {  
                         s u b e l e m e n t   =   c u r r e n t e l e m e n t . p a r e n t N o d e . r o w s [ i ] ;  
                         i f   ( s u b e l e m e n t . i d   ! =   " " )   {  
                                 s u b n u m b e r   =   " " ;  
                                 i s s u b n u m b e r   =   s u b e l e m e n t . i d . s p l i t ( ' d e t a i l m e n u ' ) [ 0 ] ;  
                                 i f   ( i s s u b n u m b e r   ! =   s u b e l e m e n t . i d )   {  
                                         s u b n u m b e r   =   s u b e l e m e n t . i d . s p l i t ( ' d e t a i l m e n u ' ) [ 1 ] ;  
                                         / / a l e r t ( " m e n u n u m b e r   :   "   +   m e n u n u m b e r   +   "   i d   :   "   +   s u b e l e m e n t . i d   +   "   n o   :   "   +   s u b n u m b e r   +   "   s h o w   h i d e   :   "   +   ( s u b n u m b e r   = =   m e n u n u m b e r ) )   ;  
                                         i f   ( s u b n u m b e r   = =   m e n u n u m b e r )   {  
                                                 i f   ( s u b e l e m e n t . s t y l e . d i s p l a y   = =   " n o n e " )  
                                                         s u b e l e m e n t . s t y l e . d i s p l a y   =   " " ;  
                                                 e l s e  
                                                         s u b e l e m e n t . s t y l e . d i s p l a y   =   " n o n e " ;  
                                         }  
                                         e l s e   {  
                                                 s u b e l e m e n t . s t y l e . d i s p l a y   =   " n o n e " ;  
                                         }  
                                 }  
                         }  
                 }  
         }  
 } 
