ÿþ/ * * *   S E T   B U T T O N ' S   F O L D E R   H E R E   * * * /  
 v a r   b u t t o n F o l d e r   =   " b u t t o n s / " ;  
  
 / * * *   S E T   B U T T O N S '   F I L E N A M E S   H E R E   * * * /  
 u p S o u r c e s   =   n e w   A r r a y ( " b u t t o n 1 u p . p n g " , " b u t t o n 2 u p . p n g " , " b u t t o n 3 u p . p n g " , " b u t t o n 4 u p . p n g " , " b u t t o n 5 u p . p n g " , " b u t t o n 6 u p . p n g " , " b u t t o n 7 u p . p n g " ) ;  
  
 o v e r S o u r c e s   =   n e w   A r r a y ( " b u t t o n 1 o v e r . p n g " , " b u t t o n 2 o v e r . p n g " , " b u t t o n 3 o v e r . p n g " , " b u t t o n 4 o v e r . p n g " , " b u t t o n 5 o v e r . p n g " , " b u t t o n 6 o v e r . p n g " , " b u t t o n 7 o v e r . p n g " ) ;  
  
 / /   S U B   M E N U S   D E C L A R A T I O N ,   Y O U   D O N T   N E E D   T O   E D I T   T H I S  
 s u b I n f o   =   n e w   A r r a y ( ) ;  
 s u b I n f o [ 1 ]   =   n e w   A r r a y ( ) ;  
 s u b I n f o [ 2 ]   =   n e w   A r r a y ( ) ;  
 s u b I n f o [ 3 ]   =   n e w   A r r a y ( ) ;  
 s u b I n f o [ 4 ]   =   n e w   A r r a y ( ) ;  
 s u b I n f o [ 5 ]   =   n e w   A r r a y ( ) ;  
 s u b I n f o [ 6 ]   =   n e w   A r r a y ( ) ;  
 s u b I n f o [ 7 ]   =   n e w   A r r a y ( ) ;  
  
  
 / / * * *   S E T   S U B   M E N U S   T E X T   L I N K S   A N D   T A R G E T S   H E R E   * * * / /  
  
  
  
 s u b I n f o [ 4 ] [ 1 ]   =   n e w   A r r a y ( " ã^­dÀ{îv" , " b r o a d c a s t . h t m " , " b r o a d c a s t . h t m " ) ;  
 s u b I n f o [ 4 ] [ 2 ]   =   n e w   A r r a y ( " |vLˆÀ{îv" , " d i s t r i b u t i o n . h t m " , " d i s t r i b u t i o n . h t m " ) ;  
  
 s u b I n f o [ 5 ] [ 1 ]   =   n e w   A r r a y ( " eq_ÚhúQßy  " , " s t u d i o . h t m " , " s t u d i o . h t m " ) ;  
 s u b I n f o [ 5 ] [ 2 ]   =   n e w   A r r a y ( " “q_6^ýˆ\O" , " v i d e o p r o d u c t i o n . h t m " , " v i d e o p r o d u c t i o n . h t m " ) ;  
 s u b I n f o [ 5 ] [ 3 ]   =   n e w   A r r a y ( " !|ËNýˆ\O" , " p r e s e n t a t i o n s . h t m " , " p r e s e n t a t i o n s . h t m " ) ;  
  
  
  
  
 / / * * *   S E T   S U B   M E N U   P O S I T I O N   (   R E L A T I V E   T O   B U T T O N   )   * * * / /  
 v a r   x S u b O f f s e t   =   1 2 0 ;  
 v a r   y S u b O f f s e t   =   7 ;  
  
  
  
 / / * * *   N O   M O R E   S E T T I N G S   B E Y O N D   T H I S   P O I N T   * * * / /  
 v a r   o v e r S u b   =   f a l s e ;  
 v a r   d e l a y   =   1 0 0 0 ;  
 t o t a l B u t t o n s   =   u p S o u r c e s . l e n g t h ;  
  
 / /   G E N E R A T E   S U B   M E N U S  
 f o r   (   x = 0 ;   x < t o t a l B u t t o n s ;   x + + )   {  
 	 / /   S E T   E M P T Y   D I V   F O R   B U T T O N S   W I T H O U T   S U B M E N U  
 	 i f   (   s u b I n f o [ x + 1 ] . l e n g t h   <   1   )   {    
 	 	 d o c u m e n t . w r i t e ( ' < d i v   i d = " s u b m e n u '   +   ( x + 1 )   +   ' " > ' ) ;  
 	 / /   S E T   D I V   F O R   B U T T O N S   W I T H   S U B M E N U  
 	 }   e l s e   {  
 	 	 d o c u m e n t . w r i t e ( ' < d i v   i d = " s u b m e n u '   +   ( x + 1 )   +   ' "   c l a s s = " d r o p m e n u "   ' ) ;  
 	 	 d o c u m e n t . w r i t e ( ' o n M o u s e O v e r = " o v e r S u b = t r u e ; ' ) ;  
 	 	 d o c u m e n t . w r i t e ( ' s e t O v e r I m g ( \ ' '   +   ( x + 1 )   +   ' \ ' , \ ' \ ' ) ; " ' ) ;  
 	 	 d o c u m e n t . w r i t e ( ' o n M o u s e O u t = " o v e r S u b = f a l s e ; ' ) ;  
 	 	 d o c u m e n t . w r i t e ( ' s e t T i m e o u t ( \ ' h i d e S u b M e n u ( \ \ \ ' s u b m e n u '   +   ( x + 1 )   +   ' \ \ \ ' ) \ ' , d e l a y ) ; ' ) ;  
 	 	 d o c u m e n t . w r i t e ( ' s e t O u t I m g ( \ ' '   +   ( x + 1 )   +   ' \ ' , \ ' \ ' ) ; " > ' ) ;  
  
  
 	 	 d o c u m e n t . w r i t e ( ' < u l > ' ) ;  
 	 	 f o r   (   k = 0 ;   k < s u b I n f o [ x + 1 ] . l e n g t h - 1 ;   k + +   )   {  
 	 	 	 d o c u m e n t . w r i t e ( ' < l i > ' ) ;  
 	 	 	 d o c u m e n t . w r i t e ( ' < a   h r e f = " '   +   s u b I n f o [ x + 1 ] [ k + 1 ] [ 1 ]   +   ' "   ' ) ;  
 	 	 	 d o c u m e n t . w r i t e ( ' t a r g e t = " '   +   s u b I n f o [ x + 1 ] [ k + 1 ] [ 2 ]   +   ' " > ' ) ;  
 	 	 	 d o c u m e n t . w r i t e (   s u b I n f o [ x + 1 ] [ k + 1 ] [ 0 ]   +   ' < / a > ' ) ;  
 	 	 	 d o c u m e n t . w r i t e ( ' < / l i > ' ) ;  
 	 	 }  
 	 	 d o c u m e n t . w r i t e ( ' < / u l > ' ) ;  
 	 }  
 	 d o c u m e n t . w r i t e ( ' < / d i v > ' ) ;  
 }  
  
  
  
  
  
 / / * * *   M A I N   B U T T O N S   F U N C T I O N S   * * * / /  
 / /   P R E L O A D   M A I N   M E N U   B U T T O N   I M A G E S  
 f u n c t i o n   p r e l o a d ( )   {  
 	 f o r   (   x = 0 ;   x < t o t a l B u t t o n s ;   x + +   )   {  
 	 	 b u t t o n U p   =   n e w   I m a g e ( ) ;  
 	 	 b u t t o n U p . s r c   =   b u t t o n F o l d e r   +   u p S o u r c e s [ x ] ;  
 	 	 b u t t o n O v e r   =   n e w   I m a g e ( ) ;  
 	 	 b u t t o n O v e r . s r c   =   b u t t o n F o l d e r   +   o v e r S o u r c e s [ x ] ;  
 	 }  
 }  
  
 / /   S E T   M O U S E O V E R   B U T T O N  
 f u n c t i o n   s e t O v e r I m g ( B u t ,   I D )   {  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' b u t t o n '   +   B u t   +   I D ) . s r c   =   b u t t o n F o l d e r   +   o v e r S o u r c e s [ B u t - 1 ] ;  
 }  
  
 / /   S E T   M O U S E O U T   B U T T O N  
 f u n c t i o n   s e t O u t I m g ( B u t ,   I D )   {  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' b u t t o n '   +   B u t   +   I D ) . s r c   =   b u t t o n F o l d e r   +   u p S o u r c e s [ B u t - 1 ] ;  
 }  
  
  
  
 / / * * *   S U B   M E N U   F U N C T I O N S   * * * / /  
 / /   G E T   E L E M E N T   I D   M U L T I   B R O W S E R  
 f u n c t i o n   g e t E l e m e n t ( i d )   {  
 	 r e t u r n   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 . g e t E l e m e n t B y I d ( i d )   :   d o c u m e n t . a l l   ?   d o c u m e n t . a l l ( i d )   :   n u l l ;    
 }  
  
 / /   G E T   X   C O O R D I N A T E  
 f u n c t i o n   g e t R e a l L e f t ( i d )   {    
 	 v a r   e l   =   g e t E l e m e n t ( i d ) ;  
 	 i f   ( e l )   {    
 	 	 x P o s   =   e l . o f f s e t L e f t ;  
 	 	 t e m p E l   =   e l . o f f s e t P a r e n t ;  
 	 	 w h i l e   ( t e m p E l   ! =   n u l l )   {  
 	 	 	 x P o s   + =   t e m p E l . o f f s e t L e f t ;  
 	 	 	 t e m p E l   =   t e m p E l . o f f s e t P a r e n t ;  
 	 	 }    
 	 	 r e t u r n   x P o s ;  
 	 }    
 }    
  
 / /   G E T   Y   C O O R D I N A T E  
 f u n c t i o n   g e t R e a l T o p ( i d )   {  
 	 v a r   e l   =   g e t E l e m e n t ( i d ) ;  
 	 i f   ( e l )   {    
 	 	 y P o s   =   e l . o f f s e t T o p ;  
 	 	 t e m p E l   =   e l . o f f s e t P a r e n t ;  
 	 	 w h i l e   ( t e m p E l   ! =   n u l l )   {  
 	 	 	 y P o s   + =   t e m p E l . o f f s e t T o p ;  
 	 	 	 t e m p E l   =   t e m p E l . o f f s e t P a r e n t ;  
 	 	 }  
 	 	 r e t u r n   y P o s ;  
 	 }  
 }  
  
 / /   M O V E   O B J E C T   T O   C O O R D I N A T E  
 f u n c t i o n   m o v e O b j e c t T o ( o b j e c t I D , x , y )   {  
 	 v a r   e l   =   g e t E l e m e n t ( o b j e c t I D ) ;  
 	 e l . s t y l e . l e f t   =   x ;  
 	 e l . s t y l e . t o p   =   y ;  
 }  
  
 / /   M O V E   S U B M E N U   T O   C O R R E S P O N D I N G   B U T T O N  
 f u n c t i o n   s h o w S u b M e n u ( s u b I D ,   b u t t o n I D )   {  
 	 h i d e A l l S u b M e n u s ( ) ;  
 	 b u t X   =   g e t R e a l L e f t ( b u t t o n I D ) ;  
 	 b u t Y   =   g e t R e a l T o p ( b u t t o n I D ) ;  
 	 m o v e O b j e c t T o ( s u b I D , b u t X + x S u b O f f s e t ,   b u t Y + y S u b O f f s e t ) ;  
 }  
  
 / /   H I D E   A L L   S U B   M E N U S  
 f u n c t i o n   h i d e A l l S u b M e n u s ( )   {  
 	 f o r   (   x = 0 ;   x < t o t a l B u t t o n s ;   x + + )   {  
 	 	 m o v e O b j e c t T o ( " s u b m e n u "   +   ( x + 1 )   +   " " , - 5 0 0 ,   - 5 0 0   ) ;  
 	 }  
 }  
  
 / /   H I D E   O N E   S U B   M E N U  
 f u n c t i o n   h i d e S u b M e n u ( s u b I D )   {  
 	 i f   (   o v e r S u b   = =   f a l s e   )   {  
 	 	 m o v e O b j e c t T o ( s u b I D , - 5 0 0 ,   - 5 0 0 ) ;  
 	 }  
 }  
  
  
  
 / / p r e l o a d ( ) ;  
  
 
