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