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