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