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