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