ÿþ 
  
 a d d D a t a   =   f u n c t i o n   ( P l a c e O n , C o n t r o l I D )    
 {  
  
         / /   l e t s   C r e a t e   T h e   M a i n   D i v    
         t h i s . p l a c e E l   =   E x t . g e t ( P l a c e O n ) ;  
         i f   ( C o n t r o l I D )    
                 t h i s . m a i n D i v I d   =   E x t . i d ( ) ;  
         e l s e  
                 t h i s . m a i n D i v I d   =   C o n t r o l I D ;  
                  
         t h i s . m a i n D i v   =   t h i s . C r e a t e D i v ( ' x - a d d d a t a ' , d o c u m e n t . b o d y ) ;  
          
          
          
         v a r   m y t i t l e   = t h i s . C r e a t e D i v ( ' x - a d d d a t a - t i t l e ' , t h i s . m a i n D i v ) ;  
          
         / / i f ( i e v e r   = =   6 )  
       / /   {  
                 / / t h i s . m a i n D i v . d o m . s t y l e . w i d t h = " 7 8 0 p x " ;  
                 / / m y t i t l e . d o m . s t y l e . w i d t h = " 7 8 0 p x " ;  
         / / }  
          
         t h i s . c l o s e E l   =   t h i s . C r e a t e D i v ( ' c l o s e m e ' , m y t i t l e ) ;  
         t h i s . c l o s e E l . d o m . i n n e r H T M L = " X " ;  
         t h i s . c l o s e E l . a d d L i s t e n e r ( ' m o u s e d o w n ' , t h i s . h i d e , t h i s ) ;  
          
         t h i s . C r e a t e D i v ( ' t i t l e - t e x t ' , m y t i t l e ) . d o m . i n n e r H T M L = " äÙèÕØ  àÛáÙÝ" ;  
          
         t h i s . m a i n D i v . d o m . i d   =   t h i s . m a i n D i v I d ;  
          
       / /   D r a w   L i s t  
         t h i s . l i s t C o n t a i n e r D i v   =   t h i s . C r e a t e D i v ( ' x - a d d d a t a - l i s t c o n t a i n e r ' , t h i s . m a i n D i v ) ;  
          
          
                 t h i s . l i s t H e a d e r D i v   =   t h i s . C r e a t e D i v ( ' x - a d d d a t a - l i s t c o n t a i n e r - h e a d e r ' , t h i s . l i s t C o n t a i n e r D i v ) ;  
                  
                 t h i s . l i s t H e a d e r D i v . d o m . i n n e r H T M L   =   " < s p a n > èéÙÞê  ÓÙèÕê< / s p a n > " ;  
                  
                 / / t h i s . C r e a t e D i v ( ' a s s e t s - l i s t - t i t l e ' , t h i s . l i s t H e a d e r D i v ) . d o m . i n n e r H T M L   =   " éÛÕàÔ  & n b s p   & n b s p   Þá'   ×Ó'   & n b s p   & n b s p   Þ×Ùè" ;  
                  
                 t h i s . l i s t D i v   =   t h i s . C r e a t e D i v ( ' x - a d d d a t a - l i s t c o n t a i n e r - l i s t ' , t h i s . l i s t C o n t a i n e r D i v ) ;  
                  
                 t h i s . l i s t D i v B o x   =   t h i s . l i s t D i v . g e t B o x ( ) ;  
                  
                 t h i s . l i s t U L   =   t h i s . C r e a t e D i v ( ' u l D i v ' , t h i s . l i s t D i v ) ;  
                  
                 t h i s . l i s t L I s   =   [ ] ;  
                  
         t h i s . l i s t I t e m W i d t h   =   t h i s . l i s t D i v . d o m . c l i e n t W i d t h   -   1 ;   / /   s e t   t h e   c l i e n t   w i d t h   f o r   t h a t   e l e m e n t   f o r   l 8 r   u s e  
          
          
          
          
          
          
       / /   D r a w   M a i n   S e c t i o n  
        
        
        
         t h i s . r i g h t S e c t i o n   =     t h i s . C r e a t e D i v ( ' x - a d d d a t a - r i g h t s e c t i o n ' , t h i s . m a i n D i v ) ;  
         / /   a d d i n g   t o p   m e n u  
         t h i s . m a i n i n f o t o p R o w   =   t h i s . C r e a t e D i v ( ' x - a d d d a t a - m a i n i n f o - t o p r o w ' , t h i s . r i g h t S e c t i o n ) ;  
          
          
         t h i s . m a i n i n f o t o p R o w . d o m . s t y l e . d i s p l a y = " n o n e " ;  
                 / /   t o p   m e n u   o p t i o n s  
                  
                  
                  
                 / / t h i s . m a i n i n f o t o p R o w M y A s s e t L i s t   =   t h i s . C r e a t e D i v ( ' x - a d d d a t a - m a i n i n f o - t o p r o w - i t e m ' , t h i s . m a i n i n f o t o p R o w ) ;  
                 / / t h i s . m a i n i n f o t o p R o w M y A s s e t L i s t . d o m . i n n e r H T M L   =   " ÔÕáã  ÜèéÙÞê  ÔàÛáÙÝ  éÜÙ" ;  
 / /                 t h i s . m a i n i n f o t o p R o w M y A s s e t L i s t . o n ( ' c l i c k ' , m a m . a d d R e m o v e A s s e t , m a m ) ;  
                 / / t h i s . m a i n i n f o t o p R o w M y A s s e t L i s t . d o m . i d   =   " l i s t A d d T o M y A s s e t s " ;  
                  
                  
                  
                 t h i s . m a i n i n f o t t o p R o w S e p   =   t h i s . C r e a t e D i v ( ' x - a d d d a t a - m a i n i n f o - t o p r o w - i t e m - s e p ' ,   t h i s . m a i n i n f o t o p R o w   ) ;  
                 t h i s . m a i n i n f o t t o p R o w S e p . d o m . i n n e r H T M L   =   " & n b s p " ;  
                  
                 / / t h i s . m a i n i n f o t o p R o w S m a r t A g e n t   =   t h i s . C r e a t e D i v ( ' x - a d d d a t a - m a i n i n f o - t o p r o w - i t e m ' , t h i s . m a i n i n f o t o p R o w ) ;  
                 / / t h i s . m a i n i n f o t o p R o w S m a r t A g e n t . d o m . i n n e r H T M L   =   " ÔäâÜ  áÕÛß  ×ÛÝ" ;  
                  
                 / / t h i s . m a i n i n f o t t o p R o w S e p   =   t h i s . C r e a t e D i v ( ' x - a d d d a t a - m a i n i n f o - t o p r o w - i t e m - s e p ' ,   t h i s . m a i n i n f o t o p R o w   ) ;  
                 / / t h i s . m a i n i n f o t t o p R o w S e p . d o m . i n n e r H T M L   =   " & n b s p " ;  
                  
                 t h i s . m a i n i n f o t o p R o w P r i c e H i s t o r y   =   t h i s . C r e a t e D i v ( ' x - a d d d a t a - m a i n i n f o - t o p r o w - i t e m ' , t h i s . m a i n i n f o t o p R o w ) ;  
                 t h i s . m a i n i n f o t o p R o w P r i c e H i s t o r y . d o m . i n n e r H T M L   =   " ÔáØÕèÙê  Þ×ÙèÙÝ  ÑÐÙÖÕè" ;  
                  
                 t h i s . m a i n i n f o t t o p R o w S e p   =   t h i s . C r e a t e D i v ( ' x - a d d d a t a - m a i n i n f o - t o p r o w - i t e m - s e p ' ,   t h i s . m a i n i n f o t o p R o w   ) ;  
                 t h i s . m a i n i n f o t t o p R o w S e p . d o m . i n n e r H T M L   =   " & n b s p " ;  
                  
                  
                 / / t h i s . m a i n i n f o t o p R o w P r i n t   =   t h i s . C r e a t e D i v ( ' x - a d d d a t a - m a i n i n f o - t o p r o w - i t e m ' , t h i s . m a i n i n f o t o p R o w ) ;  
                 / / t h i s . m a i n i n f o t o p R o w P r i n t . d o m . i n n e r H T M L   =   " êæÕÒê  ÔÓäáÔ" ;  
                 / / t h i s . m a i n i n f o t o p R o w P r i n t . o n ( ' c l i c k ' , t h i s . p r i n t A d d , t h i s ) ;  
                  
                  
         / /   c r e a t e   s t r u c t o r   f o r   d e t a i l   s e c t i o n  
         t h i s . d e t a i l B o x   =   t h i s . C r e a t e D i v ( ' x - a d d d a t a - a l l - d e t a i l s - b o x ' , t h i s . r i g h t S e c t i o n ) ;  
          
          
          
         / *   c r e a t e   i n l a g e   p i c   c o n t a i n e r   * /  
          
         t h i s . l a r g P i c   =   t h i s . C r e a t e D i v ( ' l a r g p i c ' ,   E x t . g e t B o d y ( ) ) ;  
         v a r   t 1   =   t h i s . C r e a t e D i v ( ' t i t l e ' , t h i s . l a r g P i c ) ;  
         t h i s . l a r g P i c C l o s e B t n   =   t h i s . C r e a t e D i v ( ' l a r g - p i c - c l o s e ' ,   t 1 ) ;  
                 t h i s . l a r g P i c C l o s e B t n . d o m . i n n e r H T M L = " X " ;  
                 t h i s . l a r g P i c C l o s e B t n . o n ( ' c l i c k ' , t h i s . h i d e L a r g P i c , t h i s ) ;  
         t h i s . C r e a t e D i v ( ' t x t ' ,   t 1 ) . d o m . i n n e r H T M L   =   " êæÕÒê  êÞÕàÔ"  
          
         t h i s . l a r g P i c N a v B a r   =   t h i s . C r e a t e D i v ( ' l a r g - p i c - n a v - b a r ' ,   t h i s . l a r g P i c ) ;  
         t h i s . l a r g I m g N a v B a c k   =   t h i s . C r e a t e D i v ( ' l a r g - p i c - n a v - b a r - b t n ' ,   t h i s . l a r g P i c N a v B a r ) ;  
         t h i s . l a r g I m g N a v N e x t   =   t h i s . C r e a t e D i v ( ' l a r g - p i c - n a v - b a r - b t n ' ,   t h i s . l a r g P i c N a v B a r ) ;  
                                  
                                  
                                  
                                  
                                 t h i s . l a r g I m g N a v N e x t . o n ( " c l i c k " , t h i s . L a r g P i c C h a n g e , t h i s ) ;  
                                 t h i s . l a r g I m g N a v N e x t . d o m . i d = " L a r g P i c U p " ;  
                                 t h i s . l a r g I m g N a v B a c k . o n ( " c l i c k " , t h i s . L a r g P i c C h a n g e , t h i s ) ;  
                                 t h i s . l a r g I m g N a v B a c k . d o m . i d = " L a r g P i c D o w n " ;  
                         / / t h i s . p i c B a r N a v . d o m . i n n e r H T M L = " 1   /   3 " ;  
                         t h i s . p i c B a r M a g n i f a y   = t h i s . C r e a t e D i v ( ' m a g n i f a y ' , t h i s . p i c B a r ) ;  
                  
                  
                 / / c r e a t e   a r e a   p i c   a n d   i n f o  
                 t h i s . a r e a P i c A n d I n f o   = t h i s . C r e a t e D i v ( ' x - a d d d a t a - a r e a - p i c - a n d - i n f o ' , t h i s . d e t a i l B o x ) ;  
                   t h i s . a r e a P i c   =   t h i s . C r e a t e D i v ( ' a r e a - p i c ' , t h i s . a r e a P i c A n d I n f o ) ;  
                   t h i s . a r e a P i c . d o m . i d   =   " a r e a S m a l l M a p " ;  
                   t h i s . a r e a P i c h o m e I c o n   =   t h i s . C r e a t e D i v ( ' a r e a P i c h o m e I c o n ' , t h i s . a r e a P i c ) ;  
                   t h i s . a r e a P i c h o m e I c o n . d o m . i d   =   " a r e a P i c h o m e I c o n " ;  
                   t h i s . i n f o T r e e   =   t h i s . C r e a t e D i v ( ' a r e a - i n f o - t r e e ' , t h i s . a r e a P i c A n d I n f o ) ;  
          
          
         / /   c r e a t e   p l a c e   f o r m   b a n n e r    
         t h i s . i n f o B a n n e r   =   t h i s . C r e a t e D i v ( ' a d d d a t a - i n f o - b a n n e r ' , t h i s . d e t a i l B o x ) ;  
          
          
          
         t h i s . m y B o x   =   t h i s . m a i n D i v . g e t B o x ( ) ;  
         t h i s . f i x L o c a t i o n ( ) ;  
         t h i s . v i s i b l e   =   f a l s e ;  
         / / t h i s . h i d e ( ) ;  
         t h i s . m a i n D i v . t o g g l e C l a s s ( ' x - a d d d a t a - h i d e ' ) ;      
          
         t h i s . c r e a t e R e p o r t F o r m ( ) ;  
          
  
 } ;  
  
  
 a d d D a t a . p r o t o t y p e   =    
 {  
 m a i n D i v :   n u l l ,  
 l i s t C o n t a i n e r D i v :   n u l l ,  
 l i s t H e a d e r D i v :   n u l l ,  
 l i s t D i v :   n u l l ,  
 l i s t D i v B o x :   n u l l ,  
 l i s t F i l l e r L i :   n u l l ,  
 r i g h t S e c t i o n :   n u l l ,  
 m i d d l e S e c t i o n :   n u l l ,  
 m a i n I n f o D i v :   n u l l ,  
 m a i n I n f o C l o s e D i v :   n u l l ,  
 m a i n I n f o D a t a D i v :   n u l l ,  
 m a i n I n f o L e f t C o l :   n u l l ,  
 m a i n I n f o P i c D i v :   n u l l ,  
 m a i n I n f o L i n k D i v :   n u l l ,  
 m a i n I n f o B u t t o n s D i v :   n u l l ,  
 b t n A d d T o L i s t :   n u l l ,  
 b t n H u n t e r :   n u l l ,  
 b a n n e r D i v :   n u l l ,  
 p r i c e C h a n g e D i v :   n u l l ,  
 d i s t a n c e D i v :   n u l l ,  
 m a i n D i v I d   :   n u l l ,  
 p l a c e E l :   n u l l ,  
 l i s t I t e m W i d t h :   n u l l ,  
 c l o s e E l :   n u l l ,  
 l i s t U L :   n u l l ,  
 l i s t L I s :   n u l l ,  
 v i s i b l e :   n u l l ,  
 m m :   n u l l ,   / /   M a r k e r s   M a n a g e r  
 r o w I n d e x :   n u l l ,  
 s e l e c t e d L i :   n u l l ,  
 m y B o x :   n u l l ,  
 m a i n i n f o t t o p R o w S e p   :   n u l l ,  
 m a i n i n f o t o p R o w S m a r t A g e n t   :   n u l l ,  
 m a i n i n f o t o p R o w P r i c e H i s t o r y   :   n u l l ,  
 m a i n i n f o t o p R o w P r i n t   :   n u l l ,  
 s c r i p t   :   ' j s o n / j s o n . a s p x ? a c t i o n = g e t A r e a I n f o & ' ,  
 / / p i c u r l   :   " h t t p : / / 1 9 2 . 1 1 8 . 9 7 . 2 0 6 / z a z i m / i m g . i m g ? A d d I d = " ,  
 p i c u r l   :   h o s t u r l + " z a z i m / i m g . i m g ? A d d I d = " ,  
  
  
 c r e a t e R e p o r t F o r m   :   f u n c t i o n ( )  
 {  
         i f ( ! t h i s . r e p o r t F o r m )  
         {  
                 t h i s . r e p o r t F o r m   =   n e w   c r e a t e F o r m ( { w i d t h : 3 3 0 , h e i g h t : 3 7 0 , t i t l e : ' ÓÙÕÕ×  éÒÙÐÕê' , a n a l y t i c s n a m e : ' r e p o r t _ a s s e t _ e r r o r ' } ) ;  
                 t h i s . r e p o r t F o r m . p a r e n t   =   t h i s ;  
                 t h i s . r e p o r t F o r m . i s _ v a l i d _ e m a i l   =   f u n c t i o n ( e m a i l )  
                 {  
                         r e t u r n   / ^ ( [ a - z A - Z 0 - 9 _ \ . \ - ] ) + \ @ ( ( [ a - z A - Z 0 - 9 \ - ] ) + \ . ) + ( [ a - z A - Z 0 - 9 ] { 2 , 4 } ) + $ / . t e s t ( e m a i l ) ;          
                 } ;  
                 t h i s . s u b m i t   =   f u n c t i o n ( )  
                 {  
                         v a r   d a t a   =   t h i s . g e t F o r m V a l s O b j ( ) ;  
                         v a r   m s g =   " " ;  
                          
                         i f ( d a t a . n a m e   = =   " " )  
                         {  
                                 i f ( m s g   ! =   " " )   m s g + = " \ n " ;  
                                 m s g + = " ×ÕÑÔ  ÜÔÖÙß  Ðê  éÝ  ÔÞÓÕÕ×" ;  
                         }  
                         i f ( d a t a . e m a i l   = =   " " )  
                         {  
                                 i f ( m s g   ! =   " " )   m s g + = " \ n " ;  
                                 m s g + = " ×ÕÑÔ  ÜÔÖÙß  ÛêÕÑê  ÞÙÙÜ" ;  
                         }  
                         e l s e  
                         {  
                                 i f ( ! t h i s . i s _ v a l i d _ e m a i l ( d a t a . e m a i l ) )  
                                 {  
                                         i f ( m s g   ! =   " " )   m s g + = " \ n " ;  
                                         m s g + = " ÛêÕÑê  ÔÞÙÙÜ  éÔÕÖàÔ  ÐÙàÔ  ×ÕçÙê" ;  
                                 }  
                                  
                         }  
                         i f ( d a t a . t y p e   = =   " " )  
                         {  
                                 i f ( m s g   ! =   " " )   m s g + = " \ n " ;  
                                 m s g + = " ×ÕÑÔ  ÜæÙÙß  Ðê  áÕÒ  ÔÓÙÕÕ×" ;  
                         }  
                         i f ( d a t a . t y p e   = =   " e l s e "   & &   ( d a t a . m s g   = = " "   | |   d a t a . m s g . l e n g t h   <   1 0   ) )  
                         {  
                                 i f ( m s g   ! =   " " )   m s g + = " \ n " ;  
                                 m s g + = " ÑÓÙÕÕ×  Ð×è  ÙéÜ  ÜÞÜÐ  Ðê  áÕÒ  ÔÑâÙÔ" ;  
                         }  
                         i f ( m s g   ! =   " " )  
                         {  
                                 a l e r t ( m s g ) ;  
                         }  
                         e l s e  
                         {  
                                 t h i s . p a r e n t . s e n d R e p o r t ( ) ;  
                         }  
                          
                          
                 } ;  
                 v a r   m s g =   " ÐàÕ  ÑÐêè  ÖÖÙÝ  âÕéÙÝ  Ðê  ÞÙØÑ  ÔÞÐÞæÙÝ  âÜ  Þàê  < b r > "   +  
                 " ÜÔæÙÒ  Ðê  ÔÞÙÓâ  ÔâÓÛàÙ  ÕÔÞÓÕÙç  ÑÙÕêè. < b r > " +  
                 " ÑÞÙÓÔ  ÕÞæÐêÝ  éÒÙÐÔ  ÑÞÙÓâ  ÔÞÕæÒ  ÑÐêè  < b r > " +  
                 " ÐàÐ  ÓÕÕ×Õ  ÜàÕ  âÜ  ÙÓÙ  ÞÙÜÕÙ  ÔØÕäá  ÔÞæÕèã. < b r > " +  
                 " ÐàÕ  àâéÔ  Ðê  ÞÙØÑ  ÔÞÐÞæÙÝ  âÜ  Þàê  ÜØäÜ  ÑÑâÙÔ.   < b r > " +  
                 " ÑêÕÓÔ  âÜ  éÙêÕã  ÔäâÕÜÔ< b r > " +  
                 " æÕÕê  Ðêè  ÖÖÙÝ. " ;  
                 t h i s . r e p o r t F o r m . a d d D i v ( { s t y l e : " r e p o r t F o r m M s g " , t e x t : m s g } ) ;  
                  
                  
                 t h i s . r e p o r t F o r m . a d d D i v ( { s t y l e : " r e p o r t F o r m T e x t " , t e x t : " *   éÝ  ÔäÕàÔ: " } ) ;  
                 t h i s . r e p o r t F o r m . a d d F i e l d ( { s t y l e : " r e p o r t F o r m D a t a " , t y p e : ' t e x t ' , v a l u e : ' '   , n a m e : ' n a m e ' , w i d t h : 1 8 0 } ) ;  
                 t h i s . r e p o r t F o r m . a d d D i v ( { s t y l e : " r e p o r t F o r m T e x t " , t e x t : " *   ÛêÕÑê  ÞÙÙÜ: " } ) ;  
                 t h i s . r e p o r t F o r m . a d d F i e l d ( { s t y l e : " r e p o r t F o r m D a t a " , t y p e : ' t e x t ' , v a l u e : ' '   , n a m e : ' e m a i l ' , w i d t h : 1 8 0 } ) ;  
                 t h i s . r e p o r t F o r m . a d d D i v ( { s t y l e : " r e p o r t F o r m T e x t " , t e x t : " ØÜäÕß: " } ) ;  
                 t h i s . r e p o r t F o r m . a d d F i e l d ( { s t y l e : " r e p o r t F o r m D a t a " , t y p e : ' t e x t ' , v a l u e : ' '   , n a m e : ' p h o n e ' , w i d t h : 1 8 0 } ) ;  
                  
                 t h i s . r e p o r t F o r m . a d d D i v ( { s t y l e : " r e p o r t F o r m T e x t " , t e x t : " *   áÕÒ  ÔÑâÙÔ: " } ) ;  
                 t h i s . r e p o r t F o r m . a d d F i e l d ( { s t y l e : " r e p o r t F o r m D a t a " , t y p e : ' s e l e c t ' , v a l u e : ' '   , n a m e : ' t y p e ' , w i d t h : 1 8 0 } ) ;  
                  
                  
                 t h i s . r e p o r t F o r m . a d d D i v ( { s t y l e : " r e p o r t F o r m T e x t " , t e x t : " êÙÐÕè  ÔÑâÙÔ: " } ) ;  
                 t h i s . r e p o r t F o r m . a d d F i e l d ( { s t y l e : " r e p o r t F o r m D a t a " , t y p e : ' t e x t a r e a '   ,   n a m e : ' m s g ' ,   h e i g h t : 8 0 , w i d t h : 1 7 5 } ) ;  
                  
                 t h i s . r e p o r t F o r m . f i e l d A r r a y . t y p e . a d d O p t i o n ( ' ' , ' Ñ×è' , t r u e ) ;  
                 t h i s . r e p o r t F o r m . f i e l d A r r a y . t y p e . a d d O p t i o n ( ' l o c a t i o n ' , ' ÞÞÕçÝ  ÜÐ  àÛÕß  ÑÞäÔ' ) ;  
                 t h i s . r e p o r t F o r m . f i e l d A r r a y . t y p e . a d d O p t i o n ( ' d e t a i l s ' , ' ×áèÙÝ  äèØÙÝ' ) ;  
                 t h i s . r e p o r t F o r m . f i e l d A r r a y . t y p e . a d d O p t i o n ( ' c o n t a c t ' , ' äèØÙ  ÔêçéèÕê  ×áèÙÝ  /   éÒÕÙÙÝ' ) ;  
                 t h i s . r e p o r t F o r m . f i e l d A r r a y . t y p e . a d d O p t i o n ( ' o l d ' , ' ÞÕÓâÔ  ÜÐ  èÜÕÕàØÙê' ) ;  
                 t h i s . r e p o r t F o r m . f i e l d A r r a y . t y p e . a d d O p t i o n ( ' e l s e ' , ' Ð×è  äèØ' ) ;  
                 v a r   b t n s d i v   = t h i s . r e p o r t F o r m . a d d D i v ( { s t y l e : ' r e p o r t F o r m b t n s ' } ) ;  
                 t h i s . r e p o r t F o r m . a d d B t n ( { w i d t h : 1 7 0 , t a r g e t : b t n s d i v , t e x t : ' ÓÕÕ×' } ) . o n ( ' c l i c k ' , t h i s . s u b m i t , t h i s . r e p o r t F o r m ) ;  
                  
                  
         }  
 } ,  
 s e n d R e p o r t   :   f u n c t i o n ( )  
 {  
          
         t h i s . r e p o r t F o r m . f o r m . d o m . s t y l e . z I n d e x   =   t h i s . r e p o r t F o r m . f o r m . d o m . s t y l e . z I n d e x   - 1 ;  
         v a r   d a t a   =   t h i s . r e p o r t F o r m . g e t F o r m V a l s ( )   +   " | a d d _ i d ( "   +     t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' i d ' ] ]   +   " ) " ;  
         d a t a   =   d a t a . r e p l a c e ( / , / g , " _ p s i k " ) . r e p l a c e ( / " / g , " _ m e r c a " ) . r e p l a c e ( / ' / g , " _ g e r e s h " ) ;  
          
         E x t . A j a x . r e q u e s t ( {  
                         u r l   : h o s t u r l   +   " c o n t a c t / s e n d m s g . a s p x ? " ,  
                         s u c c e s s   :   f u n c t i o n ( a n s ) {  
                                 v a r   r e z   =   e v a l ( a n s . r e s p o n s e T e x t ) ;  
                                 i f ( r e z [ 0 ] = =   f a l s e )  
                                 {  
                                          
                                         a l e r t ( r e z [ 1 ] ) ;  
                                         t h i s . r e p o r t F o r m . f o r m . d o m . s t y l e . z I n d e x   =   t h i s . r e p o r t F o r m . f o r m . d o m . s t y l e . z I n d e x   + 1 ;  
                                         t h i s . r e p o r t F o r m . h i d e ( ) ;  
                                 }  
                                 e l s e  
                                 {  
                                         a l e r t ( ' Þáäè  ÔäàÙÙÔ  éÜÚ  ÔÕÐ:   \ n   '   +   r e z [ 1 ]   +   ' \ n   æÕÕê  Ðêè  ÖÖÙÝ'   ) ;  
                                         t h i s . r e p o r t F o r m . f o r m . d o m . s t y l e . z I n d e x   =   t h i s . r e p o r t F o r m . f o r m . d o m . s t y l e . z I n d e x   + 1 ;  
                                         t h i s . r e p o r t F o r m . h i d e ( ) ;  
                                 }  
                                  
                         } ,  
                         f a i l u r e   : f u n c t i o n ( ) { a l e r t ( ' ×ÙÑÕè  Üéèê  àÛéÜ  ÐàÐ  ÑÓÕç  Ðê  ×ÙÑÕè  ÔÐÙàØèàØ' ) ; t h i s . r e p o r t F o r m . f o r m . d o m . s t y l e . z I n d e x   =   t h i s . r e p o r t F o r m . f o r m . d o m . s t y l e . z I n d e x   + 1 ; t h i s . r e p o r t F o r m . h i d e ( ) ; } ,  
                         p a r a m s   : { d a t a : d a t a } ,  
                         s c o p e   :   t h i s  
                 } ) ;  
      
 } ,  
 f i x L o c a t i o n :   f u n c t i o n   ( )  
         {  
                 v a r   l o c B o x   =   t h i s . p l a c e E l . g e t B o x ( ) ;  
                  
                 / /   L e t s   C o m p u t e   T h e   L o c a t i o n  
                 v a r   t o p   =   M a t h . r o u n d ( l o c B o x . y   +   l o c B o x . h e i g h t / 2   -   t h i s . m y B o x . h e i g h t / 2 ) ;  
                 v a r   l e f t   =   M a t h . r o u n d ( l o c B o x . x   +   l o c B o x . w i d t h / 2   -   t h i s . m y B o x . w i d t h / 2 ) ;  
                  
                  
                 t h i s . m a i n D i v . d o m . s t y l e . t o p   =   t o p   +   ' p x ' ;  
                 t h i s . m a i n D i v . d o m . s t y l e . l e f t   =   l e f t   +   ' p x ' ;  
                  
                  
         } ,  
         C r e a t e D i v :   f u n c t i o n   ( i n C l a s s , a p p e n d T o )  
         {  
                 v a r   D i v   =     E x t . g e t ( d o c u m e n t . c r e a t e E l e m e n t ( ' D I V ' ) ) ;  
                 D i v . d o m . i d   =   E x t . i d ( ) ;  
                 D i v . t o g g l e C l a s s ( i n C l a s s ) ;      
                 i f   ( a p p e n d T o )   D i v . a p p e n d T o ( a p p e n d T o ) ;  
                
                  
                 r e t u r n   D i v ;  
         } ,  
         A d d s C o u n t :   f u n c t i o n   ( N o , C o u n t , T y p e )  
         {  
                 / / t h i s . l i s t H e a d e r D i v . d o m . i n n e r H T M L   =   " < s p a n > "   +   T y p e   +   "   " +   N o   + "   ÞêÕÚ  " +   C o u n t   + " < / s p a n > " ;  
         } ,  
         h i d e :   f u n c t i o n   ( )  
         {  
                  
           i f   ( t h i s . v i s i b l e )  
           {  
           / / a l e r t ( ' h i d e ' ) ;  
            
           i f ( o p e n F o r m L i s t . l e n g t h   ! =   0 )  
                 {  
                         f o r ( v a r   i = 0 ;   i < o p e n F o r m L i s t . l e n g t h   ;   i + + )  
                         {  
                                 i f ( o p e n F o r m L i s t [ i ]   = =   t h i s )  
                                 {  
                                         o p e n F o r m L i s t . s p l i c e ( i , 1 ) ;  
                                 }  
                         }  
                 }  
            
           b m a n a g e r . r e m o v e ( t h i s . c o n s t B a n n e r ) ;  
           t h i s . h i d e L a r g P i c ( ) ;  
           i f ( E x t . g e t ( ' c o n t a c t D e t a i l s ' )   ! =   n u l l )  
                                 {  
                                         t h i s . c o n t a c t D e t a i l s . d o m . s t y l e . d i s p l a y = ' n o n e ' ;  
                                         t h i s . c o n t a c t D e t a i l s . d o m . i n n e r H T M L   =   " " ;  
                                 }  
           t h i s . m a i n D i v . f a d e O u t ( {  
                         e n d O p a c i t y :   0 ,   / / c a n   b e   a n y   v a l u e   b e t w e e n   0   a n d   1   ( e . g .   . 5 )  
                         e a s i n g :   ' e a s e O u t ' ,  
                         d u r a t i o n :   . 5 ,  
                         r e m o v e :   f a l s e ,  
                         u s e D i s p l a y :   t r u e  
                 } ) ;  
                 t h i s . c l e a r L i s ( ) ;  
             / /     t h i s . m a i n D i v . t o g g l e C l a s s ( ' x - a d d d a t a - h i d e ' ) ;      
                 t h i s . v i s i b l e   =   f a l s e ;  
           }  
           i f ( t h i s . b l o c k d i v )  
                 t h i s . b l o c k d i v . d o m . s t y l e . d i s p l a y = " n o n e " ;  
         } ,  
         s h o w :   f u n c t i o n   ( )  
         {  
              
              
           i f   ( ! t h i s . v i s i b l e )  
           {  
                 / / a l e r t ( ' s h o w ' ) ;      
                  
                 i f ( ! t h i s . b l o c k d i v )  
                 {  
                         t h i s . b l o c k d i v   =   E x t . g e t ( d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ) ;  
                         t h i s . b l o c k d i v . d o m . s t y l e . w i d t h   =   E x t . g e t B o d y ( ) . g e t W i d t h ( )   +   " p x " ;  
                         t h i s . b l o c k d i v . d o m . s t y l e . h e i g h t   =       " 2 0 0 0 p x " ;  
                         t h i s . b l o c k d i v . d o m . s t y l e . p o s i t i o n   =   " a b s o l u t e " ;  
                         t h i s . b l o c k d i v . d o m . s t y l e . t o p = 0 ;  
                         t h i s . b l o c k d i v . d o m . s t y l e . l e f t = 0 ;  
                         t h i s . b l o c k d i v . d o m . s t y l e . b a c k g r o u n d C o l o r   =   " g r a y " ;  
                         v a r   v a l = 4 ;  
                         t h i s . b l o c k d i v . d o m . s t y l e . M o z O p a c i t y   =   v a l ;  
                         t h i s . b l o c k d i v . d o m . s t y l e . o p a c i t y   =   v a l / 1 0 ;  
                         t h i s . b l o c k d i v . d o m . s t y l e . f i l t e r   =   ' a l p h a ( o p a c i t y = '   +   v a l * 1 0   +   ' ) ' ;  
                         t h i s . b l o c k d i v . a p p e n d T o ( E x t . g e t B o d y ( ) ) ;  
                         t h i s . b l o c k d i v . d o m . s t y l e . d i s p l a y = " n o n e " ;  
                         t h i s . b l o c k d i v . d o m . s t y l e . z I n d e x   = 1 0 0 0 0 ;  
                          
                 }  
                  
                 t h i s . f i x L o c a t i o n ( ) ;            
                 / / t h i s . m a i n D i v . t o g g l e C l a s s ( ' x - a d d d a t a - h i d e ' ) ;    
                 t h i s . m a i n D i v . f a d e I n ( ) ;  
                 / / t h i s . m a i n D i v . t o g g l e C l a s s ( ' x - a d d d a t a - h i d e ' ) ;      
                 t h i s . v i s i b l e   =   t r u e ;  
                 t h i s . b l o c k d i v . d o m . s t y l e . d i s p l a y = " b l o c k " ;  
                 t h i s . m a i n D i v . d o m . s t y l e . z I n d e x   = 1 0 0 0 1 ;  
                 o p e n F o r m L i s t [ o p e n F o r m L i s t . l e n g t h ]   =   t h i s ;  
                 t h i s . m a i n D i v . d o m . f o c u s ( ) ;  
           }  
         } ,  
         c l e a r L i s :   f u n c t i o n   ( )  
         {  
         i f ( t h i s . b a n n e r L i s t )  
         {  
                 f o r ( v a r   i = 0 ; i < t h i s . b a n n e r L i s t . l e n g t h ; i + + )  
                 {  
                         b m a n a g e r . r e m o v e ( t h i s . b a n n e r L i s t [ i ] ) ;  
                         t h i s . b a n n e r L i s t [ i ]   =   n u l l ;  
                 }  
                 t h i s . b a n n e r L i s t   =   n e w   A r r a y ( ) ;  
         }  
         i f   (   t h i s . l i s t F i l l e r L i )  
         {  
                         t h i s . l i s t F i l l e r L i . d o m . i n n e r H T M L   =   ' ' ;  
                         t h i s . l i s t F i l l e r L i . r e m o v e ( ) ;  
                         t h i s . l i s t F i l l e r L i   =   n u l l ;  
         }  
         t h i s . s e l e c t e d L i   =   n u l l ;  
                 f o r   ( v a r   i   =   0 ;   i   <   t h i s . l i s t L I s . l e n g t h ;   i + + )  
                 {  
                         t h i s . l i s t L I s [ i ] . r e m o v e A l l L i s t e n e r s ( ) ;  
                         t h i s . l i s t L I s [ t h i s . l i s t L I s . l e n g t h   -   1 ] . r o w   =   n u l l ;  
                         t h i s . l i s t L I s [ i ] . d o m . i n n e r H T M L   =   ' ' ;  
                         t h i s . l i s t L I s [ i ] . r e m o v e ( ) ;  
                         t h i s . l i s t L I s [ i ]   =   n u l l ;  
                 }  
                 t h i s . l i s t L I s   =   n u l l ;  
                 t h i s . l i s t L I s   =   [ ] ;  
         } ,  
         e n l i s t :   f u n c t i o n   ( M a r k e r I d , s e l e c t I d , r o w s , _ r o w I n d e x )  
         {  
                  
                  
                 i f ( ! r o w s )  
                 {  
                         v a r   r o w s   =   m a p . g e t H o u s e s M a r k e r D a t a ( M a r k e r I d ) ;  
                 }  
                 i f ( _ r o w I n d e x )  
                 {  
                         t h i s . r o w I n d e x   =   _ r o w I n d e x ;  
                 }  
                 e l s e  
                 {  
                         t h i s . r o w I n d e x   =   m m . r o w I n d e x ;  
                 }  
                  
                 t h i s . c l e a r L i s ( ) ;  
                  
                 v a r   s e l e c t I n d e x   =   0 ;   / /   v a r   t o   h o l d   w i c h   i n d e x   w i l l   g o   f i r s t  
                 / /  
                 v a r   c o u n t e r   =   - 1 ;  
                  
                  
                 i f ( ! t h i s . s e l e c t L i s t T e m p l a t e )  
                         {  
                                 t h i s . s e l e c t L i s t T e m p l a t e   =   n e w   E x t . T e m p l a t e (  
                                         ' < d i v   c l a s s = " D i v l i " > ' ,  
                                         ' < d i v   c l a s s = " S t r e e t " >   { s t r e e t }   < / d i v > ' ,  
                                         ' < d i v   c l a s s = " R o o m s " >   { r o o m s }   ×Ó\ '     < / d i v > ' ,  
                                         ' < d i v   c l a s s = " P r i c e " >   { p r i c e }   < / d i v > ' ,  
                                         ' < d i v   c l a s s = " { a v g } "   >   < / d i v > ' ,  
                                         ' < / d i v > '  
                                 ) ;  
                                 t h i s . s e l e c t L i s t T e m p l a t e   =   t h i s . s e l e c t L i s t T e m p l a t e . c o m p i l e ( ) ;  
                         }  
                 f o r   ( v a r   i   =   r o w s . l e n g t h - 1 ;   i   > =   0 ;   i - - )  
                 {  
                         c o u n t e r + + ;  
                         i f   ( s e l e c t I d   & &   s e l e c t I d   = =   r o w s [ i ] [ t h i s . r o w I n d e x [ ' i d ' ] ] )   s e l e c t I n d e x   =   c o u n t e r ;  
                          
                         i f ( c o u n t e r   %   a d d D a t a l i L i s t   = =   0   )  
                         {  
                                 i f ( ! t h i s . b a n n e r L i s t )   t h i s . b a n n e r L i s t   =   [ ] ;  
                                 / /   c h a n g e   n u m b e r   t o   a d d   b a n n e r s     0 =   n o   b a n n e r s  
                                 i f ( t h i s . b a n n e r L i s t . l e n g t h   < 0 )  
                                 {  
                                         t h i s . b a n n e r L i s t [ t h i s . b a n n e r L i s t . l e n g t h ]   =   b m a n a g e r . a d d ( ' 1 3 3 0 3 ' , ' 1 2 8 ' , ' 3 0 ' , t h i s . l i s t U L ) ;  
                                 }  
  
                         }  
                          
                         v a r   O r i g P r i c e   =   r o w s [ i ] [ t h i s . r o w I n d e x [ ' S h e k e l R e n t ' ] ] ;  
                         i f   ( O r i g P r i c e   <   1 0 0 0 0 0 0 )  
                         {  
                                 O r i g P r i c e   =     r o u n d N u m b e r ( O r i g P r i c e / 1 0 0 0 , 2 )   +   " K "   +   "   ª " ;  
                         }  
                         e l s e  
                         {  
                                 O r i g P r i c e   =     r o u n d N u m b e r ( O r i g P r i c e / 1 0 0 0 0 0 0 , 2 )   +   " M " +   "   ª " ;  
                         }  
                         v a r   a r r o w   =   " " ;  
                          
                         i f ( ! i s N a N ( r o w s [ i ] [ t h i s . r o w I n d e x [ ' v P r i c e A v g ' ] ] ) )  
                         {  
                                 i f ( r o w s [ i ] [ t h i s . r o w I n d e x [ ' S h e k e l R e n t ' ] ] * 1   >   1 0 0 )  
                                 {  
                                         i f   ( r o w s [ i ] [ t h i s . r o w I n d e x [ ' S h e k e l R e n t ' ] ]   >   r o w s [ i ] [ t h i s . r o w I n d e x [ ' v P r i c e A v g ' ] ] * 1     )    
                                           a r r o w   =   " U p " ;  
                                         e l s e   i f   ( r o w s [ i ] [ t h i s . r o w I n d e x [ ' S h e k e l R e n t ' ] ]   <   r o w s [ i ] [ t h i s . r o w I n d e x [ ' v P r i c e A v g ' ] ] * 1       )    
                                                 a r r o w   =   " D o w n " ;  
                                 }  
                                  
                                 i f (   r o w s [ i ] [ t h i s . r o w I n d e x [ ' v P r i c e A v g ' ] ] * 1     = =   0   )  
                                         a r r o w   =   " " ;  
                         }  
                         v a r   l i = t h i s . s e l e c t L i s t T e m p l a t e . a p p e n d ( t h i s . l i s t U L , { s t r e e t : r o w s [ i ] [ t h i s . r o w I n d e x [ ' v S t r e e t ' ] ] , r o o m s : r o w s [ i ] [ t h i s . r o w I n d e x [ ' R o o m N u m b e r ' ] ] , p r i c e : O r i g P r i c e , a v g : a r r o w } ) ;  
                         l i   =   E x t . g e t ( l i ) ;  
                         l i . a d d L i s t e n e r ( ' m o u s e d o w n ' , t h i s . s e l e c t , t h i s , { l i :   l i } ) ;  
                         t h i s . l i s t L I s [ t h i s . l i s t L I s . l e n g t h ]   =   l i ;  
                         t h i s . l i s t L I s [ t h i s . l i s t L I s . l e n g t h   -   1 ] . r o w   =   r o w s [ i ] ;  
                          
                 }  
               t h i s . s e l e c t ( n u l l , n u l l , { l i :   t h i s . l i s t L I s [ s e l e c t I n d e x ] } , t r u e ) ;  
               / /   f i l l   a n o t h e r   e m p t y   l i   s o   t h e   h e i g h t   o f   t h e   l i s t   w i l l   b e   r i g h t  
               i f   ( ( r o w s . l e n g t h   <   2   ?   2   :   r o w s . l e n g t h   )   *   2 9   <   t h i s . l i s t D i v B o x . h e i g h t )  
               {  
                 / *  
                       t h i s . l i s t F i l l e r L i   =   E x t . g e t ( d o c u m e n t . c r e a t e E l e m e n t ( ' L I ' ) ) ;  
                       t h i s . l i s t F i l l e r L i . t o g g l e C l a s s ( ' D i v l i ' ) ;  
                       t h i s . l i s t F i l l e r L i . t o g g l e C l a s s ( ' P l a c e H o l d e r ' ) ;  
                       t h i s . l i s t F i l l e r L i . d o m . s t y l e . h e i g h t   =   ( t h i s . l i s t D i v B o x . h e i g h t   -   r o w s . l e n g t h   *   2 9   )     +   ' p x ' ;  
                       t h i s . l i s t F i l l e r L i . a p p e n d T o ( t h i s . l i s t U L ) ;  
                       * /  
               }  
               e l s e  
               {   / /   l e t s   j u s t   a d d   a   d o u b l e   e n d ,   s o   w e   c a n   c o m p a n s a t e   f o r   t h e   s e l e c t e d   e f f e c t  
               / *  
                     t h i s . l i s t F i l l e r L i   =   E x t . g e t ( d o c u m e n t . c r e a t e E l e m e n t ( ' L I ' ) ) ;  
                     t h i s . l i s t F i l l e r L i . t o g g l e C l a s s ( ' D i v l i ' ) ;  
                     t h i s . l i s t F i l l e r L i . t o g g l e C l a s s ( ' P l a c e H o l d e r ' ) ;  
                     t h i s . l i s t F i l l e r L i . d o m . s t y l e . h e i g h t   =   ( 2   *   2 9   )     +   ' p x ' ;  
                     t h i s . l i s t F i l l e r L i . a p p e n d T o ( t h i s . l i s t U L ) ;  
                     * /  
               }  
                 t h i s . A d d s C o u n t ( 1 , r o w s . l e n g t h , r o w s [ 0 ] [ t h i s . r o w I n d e x [ ' A s s e t T y p e ' ] ] ) ;  
                 t h i s . s h o w ( ) ;  
                  
         } ,  
         s e l e c t :   f u n c t i o n   ( p 1 , p 2 , p 3 , n o A m i n )  
         {  
                  
                  
                 p a g e T r a c k e r . _ t r a c k P a g e v i e w ( " / d i s p l a y _ a d d "   ) ;    
                 / / t h i s . i n f o B a n n e r / / 1 3 3 0 8    
                  
                 i f ( ! t h i s . d i s p l a y t e m p l a t e )  
                 {  
                         t h i s . d i s p l a y t e m p l a t e   =   n e w   E x t . T e m p l a t e (  
                                             '   < d i v   c l a s s = " a s s e t s - d e t a i l - b o x " >   ' ,  
                                             '     < d i v   c l a s s = " a s s e t - d e t a i l "   i d = " a s s e t - d e t a i l - a n c o r " >   ' ,  
                                             '         < d i v   s t y l e = " w i d t h : 1 8 0 p x ;   f l o a t : r i g h t ;   h e i g h t : 2 4 0 p x ; " >   ' ,  
                                             '             < d i v   c l a s s = " o r a n g e - t e x t " >   äèØÙ  àÛá< / d i v >   ' ,  
                                             '             < d i v   c l a s s = " t e x t - t i t l e "   s t y l e = " f o n t - w e i g h t : b o l d ; " >   Þ×Ùè: < / d i v >   < d i v   c l a s s = " { p r i c e _ c o l o r } " >   { p r i c e }   ª     < / d i v >   ' ,  
                                             '             < d i v   c l a s s = " t e x t - t i t l e "   s t y l e = " v i s i b i l i t y : { s h o w a v g p r i c e } ; f o n t - w e i g h t : b o l d ; " >   Þ×Ùè  ÞÞÕæâ: < / d i v >   < d i v   c l a s s = " t e x t - d a t a "   s t y l e = " v i s i b i l i t y : { s h o w a v g p r i c e } ; f o n t - w e i g h t : b o l d ; f o n t - s i z e : 1 4 p x ; " >   { a v g _ p r i c e }   < / d i v >   ' ,  
                                             '             < d i v   c l a s s = " t e x t - t i t l e " >   àÛá: < / d i v >   < d i v   c l a s s = " t e x t - d a t a " >   { t y p e }   < / d i v >   ' ,  
                                             '             < d i v   c l a s s = " t e x t - t i t l e "   s t y l e = " h e i g h t : 4 3 p x " >   ÞÙçÕÝ: < / d i v >   < d i v   c l a s s = " t e x t - d a t a "   s t y l e = " h e i g h t : 4 3 p x ; o v e r f l o w : h i d d e n ; " >   < a c r o n y m   t i t l e = " { l o c a t i o n } " >   { l o c a t i o n }   < / a c r o n y m >       < / d i v >   ' ,  
                                             '             < d i v   c l a s s = " t e x t - t i t l e " >   éØ×: < / d i v >   < d i v   c l a s s = " t e x t - d a t a " > { s i z e }   < / d i v >   ' ,  
                                             '             < d i v   c l a s s = " t e x t - t i t l e " >   ×ÓèÙÝ: < / d i v >   < d i v   c l a s s = " t e x t - d a t a " >   { r o o m s } < / d i v >   ' ,  
                                             '             < d i v   c l a s s = " t e x t - t i t l e " >   çÕÞÔ: < / d i v >   < d i v   c l a s s = " t e x t - d a t a " > { f l o o r }   < / d i v >   ' ,  
                                             '             < d i v   c l a s s = " t e x t - t i t l e " >   êÐèÙÚ  ÛàÙáÔ: < / d i v >   < d i v   c l a s s = " t e x t - d a t a " > { d a t e }   < / d i v >   ' ,  
                                             '             < d i v   c l a s s = " t e x t - t i t l e "   s t y l e = " f o n t - w e i g h t : b o l d ; " >   êÐèÙÚ  âÓÛÕß: < / d i v >   < d i v   c l a s s = " t e x t - d a t a "   s t y l e = " f o n t - w e i g h t : b o l d ; " >   { u p d a t e } < / d i v >   ' ,  
                                             '         < / d i v >   ' ,  
                                             '         < d i v   s t y l e = "   w i d t h : 1 2 5 p x ;   f l o a t : r i g h t ;   h e i g h t : 2 4 0 p x ; " > ' ,  
                                             '             < i m g     i d = " a s s e t P i c B o x "   s r c = " " / > ' ,  
                                             '               < d i v   c l a s s = " m a g n i f a y "   i d = " a s s e t _ s h o w _ l a r g _ p i c _ t x t " >   Ü×å  ÜÔÒÓÜÔ  < / d i v > ' ,  
                                             '               < d i v   c l a s s = " c o n t a c t - d e t a i l - l i n k "   i d = " s h o w C o n t a c t D e t a i l "   >   äèØÙ  ÔêçéèÕê  < / d i v > ' ,  
                                             '               < d i v   c l a s s = " c o n t a c t - d e t a i l "   i d = " c o n t a c t D e t a i l " > ' ,  
                                             '                 ÐÙé  çéè:   { c o n t a c t n a m e }   < b r > ' ,  
                                             '                   { c o n t a c t p h o n e }     ' ,  
                                             '               < / d i v > ' ,  
                                             '         < / d i v > ' ,  
                                             '         < d i v   s t y l e = " w i d t h : 1 8 0 p x ;   f l o a t : r i g h t ;   h e i g h t : 1 1 0 p x ; " > ' ,  
                                             '             < d i v   c l a s s = " o r a n g e - t e x t "   s t y l e = " w i d t h : 1 0 0 % ; " >   äèØÙÝ  àÕáäÙÝ< / d i v > ' ,  
                                             '                   < d i v   c l a s s = " { e l e v a i t o r } " >   ÞâÜÙê  < / d i v > ' ,  
                                             '                   < d i v   c l a s s = " { a i r c o n } " >   ÞÙÖÕÒ  < / d i v > ' ,  
                                             '                   < d i v   c l a s s = " { p a r k i n g } " >   ×àÙÔ  < / d i v > ' ,  
                                             '                   < d i v   c l a s s = " { b a r s } " >   áÕèÒÙÝ  < / d i v > ' ,  
                                             '                   < d i v   c l a s s = " { f u r n i } " >   èÙÔÕØ  < / d i v > ' ,  
                                             '         < / d i v >   ' ,  
                                             '         < d i v   s t y l e = " w i d t h : 1 2 0 p x ;   f l o a t : r i g h t ;   h e i g h t : 1 1 0 p x ; " > ' ,  
                                             '         < d i v   c l a s s = " o r a n g e - t e x t "   s t y l e = " w i d t h : 1 0 0 % ; " >   & n b s p < / d i v > ' ,  
                                             '                   < d i v   c l a s s = " { t e r a s } " >   Þèäáê  < / d i v > ' ,  
                                             '                   < d i v   c l a s s = " { r e f u r b } " >   ÞéÕäæê  < / d i v > ' ,  
                                             '                   < d i v   c l a s s = " { a r b i t r a t i o n } " >   êÙÕÕÚ/ ÙÖÞÕê/ Ð×è  < / d i v > ' ,  
                                             '                   < d i v   c l a s s = " { p a r t n e r s } " >   ÞêÐÙÝ  ÜéÕêäÙÝ  < / d i v > ' ,  
                                             '                   < d i v   c l a s s = " { h a c } " >   ÒÙéÔ  ÜàÛÙÝ  < / d i v > ' ,  
                                             '         < / d i v > ' ,  
                                             '         < d i v   s t y l e = " w i d t h : 1 0 0 % ;   f l o a t : r i g h t ;   h e i g h t : 3 0 p x ;   o v e r f l o w : h i d d e n ; "   t i t l e = " { d e s c r i p t i o n } " > ' ,  
                                             '             { d e s c r i p t i o n } ' ,  
                                             '         < / d i v > ' ,  
                                             '     < / d i v >   ' ,  
                                             '     < d i v   c l a s s = " a s s e t - m a p - a n d - d i s t a n c e " > ' ,  
                                             '             < d i v   c l a s s = " o r a n g e - t e x t " >   ÞäÔ  ÕÞè×çÙÝ< / d i v > ' ,  
                                             '             < d i v   c l a s s = " m i n i m a p "   i d = " m i n i m a p " >     < / d i v > ' ,  
                                             '           < d i v   c l a s s = " o r a n g e - t e x t "   s t y l e = " f o n t - w e i g h t : b o l d ; " >   Þè×çÙÝ  < / d i v >   ' ,  
                                             '           < d i v   c l a s s = " d i s t a n c e s - d i v " > ' ,  
                                             '               < d i v   i d = " ÐàØàÕê  áÜÕÜèÙÕê"   >   < i m g   s r c = " a d d D a t a / i m a g e s / a n t e n a g r a y . p n g " / >   < d i v > ÐàØàÕê  < b r >   áÜÕÜèÙÕê  < / d i v >   < / d i v > ' ,  
                                             '               < d i v   i d = " ÑêÙ  áäè" >   < i m g   s r c = " a d d D a t a / i m a g e s / s c h o o l g r a y . p n g " / >   < d i v >   ÑêÙ  áäè  < / d i v >   < / d i v > ' ,  
                                             '               < d i v   i d = " ×àÙÕàÙÝ" >   < i m g   s r c = " a d d D a t a / i m a g e s / p a r k i n g g r a y . p n g " / >   < d i v >   ×àÙÕàÙÝ  < / d i v >   < / d i v > ' ,  
                                             '               < d i v   i d = " áÕäè/ ÞèÛÖ  Þá×èÙ" >   < i m g   s r c = " a d d D a t a / i m a g e s / s u p e r g r a y . p n g " / >   < d i v >   áÕäè  < b r >   ÞèÛÖ  Þá×èÙ  < / d i v >   < / d i v > ' ,  
                                             '               < d i v   i d = " ÑÙê  Þèç×ê" >   < i m g   s r c = " a d d D a t a / i m a g e s / p h a r m a c y g r a y . p n g " / >   < d i v > ÑêÙ  < b r >   Þèç×ê  < / d i v >   < / d i v > ' ,  
                                             '               < d i v   i d = " çÕäÕê  ×ÕÜÙÝ" >   < i m g   s r c = " a d d D a t a / i m a g e s / k o p a t h o l i m g r a y . p n g " / >   < d i v >   çÕäÕê  < b r >   ×ÕÜÙÝ  < / d i v >   < / d i v > ' ,  
                                             '               < d i v   i d = " ê×àÕê  ÓÜç" >   < i m g   s r c = " a d d D a t a / i m a g e s / g a s g r a y . p n g " / >   < d i v >   ê×àê  ÓÜç  < / d i v >   < / d i v > ' ,  
                                             '               < d i v   i d = " ê×àê  èÛÑê" >   < i m g   s r c = " a d d D a t a / i m a g e s / t r a i n g r a y . p n g " / >   < d i v >   èÛÑê    < / d i v >   < / d i v > ' ,  
                                             '               < d i v   i d = " ×ÕäÙ  è×æÔ" >   < i m g   s r c = " a d d D a t a / i m a g e s / b e a c h g r a y . p n g " / >   < d i v >   ×ÕäÙ  è×æÔ  < / d i v >   < / d i v > ' ,  
                                             '               < d i v   i d = " ÑèÙÛÔ/ çÐàØèÙ" >   < i m g   s r c = " a d d D a t a / i m a g e s / p o o l g r a y . p n g " / >   < d i v >   ÑèÙÛÕê    < / d i v >   < / d i v > ' ,  
                                             '               < d i v   i d = " ÒàÙÝ" >   < i m g   s r c = " a d d D a t a / i m a g e s / t e m p e l g r a y . p n g " / >   < d i v >   ÒàÙÝ/ äÐèçÙÝ    < / d i v >   < / d i v > ' ,  
                                             '               < d i v   i d = " ÞÕâÓÕàÙÝ" >   < i m g   s r c = " a d d D a t a / i m a g e s / c l u b g r a y . p n g " / >   < d i v >   ÞÕâÓÕàÙÝ    < / d i v >   < / d i v > ' ,  
                                             '           < / d i v > ' ,  
                                             '     < / d i v > ' ,  
                                             '     < d i v   c l a s s = " a s s e t D i s p l a y B t n s "   i d = " a s s e t D i s p l a y B t n s " > ' ,  
                                             '               < d i v   c l a s s = " b t n a p r i n t "     i d = " p r i n t a d d " >   êæÕÒê  ÔÓäáÔ  < / d i v > ' ,  
                                             '               < d i v   c l a s s = " b t n a d d "     i d = " a d d r e m o v e m y a s s e t s " >   ÔÕáã  ÜàÛáÙÝ  éÜÙ  < / d i v > < d i v   c l a s s = " b t n s e p " >   < / d i v > ' ,  
                                             '               < d i v   c l a s s = " b t n h i s t o r y "     i d = " p r i c e h i s t o r y " >   ÔáØÕèÙê  Þ×ÙèÙÝ  < / d i v > < d i v   c l a s s = " b t n s e p " >   < / d i v > ' ,  
                                             '               < d i v   c l a s s = " b t n a r e p r o t "     i d = " r e p o r t e r r o r " >   ÓÕÕ×  âÜ  ÞÕÓâÔ  éÒÕÙÔ  < / d i v >   < d i v   c l a s s = " b t n s e p " >   < / d i v > ' ,  
                                             '       < / d i v > ' ,  
                                             ' < / d i v > '  
  
                         ) ;  
                          
                         t h i s . d i s p l a y t e m p l a t e   =   t h i s . d i s p l a y t e m p l a t e . c o m p i l e ( ) ;  
                 }  
                  
                 i f   ( p 3 . l i   ! =   t h i s . s e l e c t e d L i )  
                 {  
                         i f   ( t h i s . s e l e c t e d L i )   t h i s . s e l e c t e d L i . t o g g l e C l a s s ( ' s e l e c t e d ' ) ;  
                         t h i s . s e l e c t e d L i   =   p 3 . l i ;  
                         t h i s . s e l e c t e d L i . t o g g l e C l a s s ( ' s e l e c t e d ' ) ;  
                         / /   F i x   s c r o l l   p o s i t i o n   s o   i t   w o n t   l o o k   w i e r d  
                    
                         v a r   s e l e c t e d P o s   =   t h i s . s e l e c t e d L i . g e t B o x ( ) . y   -   t h i s . l i s t D i v . g e t B o x ( ) . y ;  
                         i f   ( s e l e c t e d P o s   <   2 *   2 9 )  
                         {  
                                 t h i s . l i s t D i v . s c r o l l ( " b " , s e l e c t e d P o s   -   2   *   2 9 , t r u e ) ;  
                         }  
                         e l s e   i f   ( s e l e c t e d P o s   >   8   *   2 9 )  
                         {  
                                 t h i s . l i s t D i v . s c r o l l ( " b " , ( s e l e c t e d P o s   -   7   *   2 9 ) , t r u e ) ;  
                         }  
                         / /   s e t   t h e   o p t i o n s  
                          
                         / /   c h a n g e d   b y   g i l a d    
                          
                         / /   a d d   m a r k i n g   f r o m   h e a d e r  
                         / / / / l i s t A d d T o M y A s s e t s  
                          
                          
                          
                          
                          
                         t h i s . i n f o T r e e . d o m . s t y l e . d i s p l a y   =   ' b l o c k ' ;    
                         / /   h i d e   c o n t a c t   d e t a i l s    
                                 i f ( E x t . g e t ( ' c o n t a c t D e t a i l s ' )   ! =   n u l l )  
                                 {  
                                         t h i s . c o n t a c t D e t a i l s . d o m . s t y l e . d i s p l a y = ' n o n e ' ;  
                                         t h i s . c o n t a c t D e t a i l s . d o m . i n n e r H T M L   =   " " ;  
                                 }  
                                  
                         / /   h i d e   l a r g   p i c  
                                 t h i s . h i d e L a r g P i c ( ) ;  
                         / /   a d d i n g   a d r e s s  
                         v a r   a d d r e s s T e x t   =   " " ;  
                         v a r   l a s t U p d a t e   =   " " ;  
                          
                          
                         / *   s t a r t   c r e a t i n g   n e w   o b j e c t   w i t h   d i s p l a y   d a t a   f o r   t e m p l a t e   * /  
                          
                         v a r   d i s p o b j   =   { } ;  
                         f u n c t i o n   e v ( n a m e , v a l u e )  
                         {  
                                 v a l u e   =   v a l u e . r e p l a c e ( / " / g , ' ' ) ;  
                                 v a l u e   =   v a l u e . r e p l a c e ( / ' / g , ' ' ) ;  
                                 v a l u e   =   v a l u e . r e p l a c e ( / \ n / g , ' ' ) ;  
                                 v a l u e   =   v a l u e . r e p l a c e ( / \ r / g , ' ' ) ;  
                                 v a r   s t r 1   =   " d i s p o b j . "   +   n a m e   +   " = ' "   +   v a l u e   +   " ' ; " ;  
                                 / / s t r 1   =   s t r 1 ;  
                                 e v a l ( s t r 1 ) ;  
                         }  
                          
                          
                          
                          
                         i f ( ! i s N a N (   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v A g e ' ] ] ) )  
                         {  
                                 i f (   (   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v A g e ' ] ]   * 1   )   >   0     )  
                                 {  
                                         l a s t U p d a t e   =   " ÜäàÙ    "   +   ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v A g e ' ] ]   * 1 )   +   "   ÙÞÙÝ" ;  
                                 }  
                                 e l s e   i f (   (   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v A g e ' ] ] * 1   )   = =   0     )  
                                 {  
                                         l a s t U p d a t e   =   "   ÑéâÔ  ÔÐ×èÕàÔ"    
                                 }  
                                 e l s e  
                                 {  
                                         l a s t U p d a t e   =   " ÜäàÙ    "   +   ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v A g e ' ] ]   * - 1 )   +   "   éâÕê" ;  
                                 }  
                         }  
                        
                          
                         e v ( ' u p d a t e ' , l a s t U p d a t e ) ;  
                          
                         v a r   a d d T y p e T e x t ;  
                         / / t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x . v A d d T y p e ]  
                         i f ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x . v A d d T y p e ]   = =   ' r e n t ' )  
                         {  
                                 a d d T y p e T e x t   =   ' ÔéÛèÔ' ;  
                         }  
                         e l s e   i f ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x . v A d d T y p e ]   = =   ' s a l e ' )  
                         {  
                                 a d d T y p e T e x t   =   ' ÞÛÙèÔ' ;  
                         }  
                         e l s e   i f ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x . v A d d T y p e ]   = =   ' p a r t n e r s ' )  
                         {  
                                 a d d T y p e T e x t   =   ' éÕêäÙÝ' ;  
                         }  
                         e l s e   i f ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x . v A d d T y p e ]   = =   ' c o m m e r c i a l ' )  
                         {  
                                 a d d T y p e T e x t   =   ' âÙáçÙ' ;  
                         }  
                         e l s e   i f ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x . v A d d T y p e ]   = =   ' e x c h a n g e ' )  
                         {  
                                 a d d T y p e T e x t   =   ' Ô×ÜäÔ' ;  
                         }  
                          
                         a d d r e s s T e x t   + = t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' A s s e t T y p e ' ] ] +   ' ( '   +   a d d T y p e T e x t   +   ' ) ' ;  
                          
                         e v ( ' t y p e ' , a d d r e s s T e x t ) ;  
                          
                          
                         v a r   l o c   =   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' c i t y ' ] ]   +   ' & n b s p '   +   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' S t r e e t ' ] ] ;  
                         i f ( l o c . l e n g t h   >   1 2 5   )  
                         {  
                                 l o c   =   ' < a c r o n y m   t i t l e = " ' + l o c + ' " >   ' + l o c . s u b s t r ( 0 , 1 8 ) + ' . . .   < / a c r o n y m > ' ;  
                         }  
                          
                         e v ( ' l o c a t i o n ' ,   l o c ) ;  
                         e v ( ' r o o m s ' , t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' R o o m N u m b e r ' ] ] ) ;  
                         e v ( ' s i z e ' , t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' S i z e ' ] ] . r e p l a c e ( /   / g , " " ) . r e p l a c e ( / - / g , " " )   = =   ' '   ?   ' ÜÐ  æÕÙÙß'   :   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' S i z e ' ] ]   +   "   Þ\ " è  " ) ;  
                         e v ( ' f l o o r ' , t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' F l o o r ' ] ] ) ;  
                          
                         / /   a d d i n g   a p t   p r o p e r t i e s  
                          
                         v a r   a p t P r o p e r t i s   =   n e w   A r r a y ( ) ;  
 / /                         d e b u g g e r ;  
                         i f   ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' E l e v a t o r _ v a l u e ' ] ]   = =   ' t r u e ' ) { a p t P r o p e r t i s [ 0 ]   =   ' y e s ' ; } e l s e { a p t P r o p e r t i s [ 0 ]   =   ' n o ' ; }   ;   / / ÞâÜÙê 
                         i f   ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' A i r C o n d _ v a l u e ' ] ]   = =   " t r u e "   ) { a p t P r o p e r t i s [ 1 ]   =   ' y e s ' ; } e l s e { a p t P r o p e r t i s [ 1 ]   =   ' n o ' ; }   ;   / / ÞÙÖÕÒ 
                         i f   ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' P a r k i n g _ v a l u e ' ] ]   = =   " t r u e "   ) { a p t P r o p e r t i s [ 2 ]   =   ' y e s ' ; } e l s e { a p t P r o p e r t i s [ 2 ]   =   ' n o ' ; }   ;   / / ×àÙÔ 
                         i f   ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' B a r s _ v a l u e ' ] ]   = =   ' t r u e ' ) { a p t P r o p e r t i s [ 3 ]   =   ' y e s ' ; } e l s e { a p t P r o p e r t i s [ 3 ]   =   ' n o ' ; }   ;   / / áÕèÒÙÝ 
                         i f   ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' F u r n i s h e d _ v a l u e ' ] ]   = =   ' t r u e '   ) { a p t P r o p e r t i s [ 4 ]   =   ' y e s ' ; } e l s e { a p t P r o p e r t i s [ 4 ]   =   ' n o ' ; }   ;   / / èÙÔÕØ 
                         i f   ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' G o o d F o r P a r t n e r s _ v a l u e ' ] ]   = =   ' t r u e ' ) { a p t P r o p e r t i s [ 5 ]   =   ' y e s ' ; } e l s e { a p t P r o p e r t i s [ 5 ]   =   ' n o ' ; }   ;   / / ÞêÐÙÝ  ÜéÕêäÙÝ 
                         i f   ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' H a n d i c a p A c c e s s _ v a l u e ' ] ]   = =   ' t r u e ' ) { a p t P r o p e r t i s [ 6 ]   =   ' y e s ' ; } e l s e { a p t P r o p e r t i s [ 6 ]   =   ' n o ' ; }   ;   / / ÒÙéÔ  ÜàÛÙÝ 
                         i f   ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' R e f u r b i s h e d _ v a l u e ' ] ]   = =   ' t r u e ' ) { a p t P r o p e r t i s [ 7 ]   =   ' y e s ' ; } e l s e { a p t P r o p e r t i s [ 7 ]   =   ' n o ' ; }   ;   / / ÞéÕäæê 
                         i f   ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' V e r n a d a N o _ v a l u e ' ] ]   = =   ' t r u e ' ) { a p t P r o p e r t i s [ 8 ]   =   ' y e s ' ; } e l s e { a p t P r o p e r t i s [ 8 ]   =   ' n o ' ; }   ;   / / Þèäáê 
                         i f   ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v T i v u c h ' ] ]   = =   ' t r u e ' ) { a p t P r o p e r t i s [ 9 ]   =   ' y e s ' ; } e l s e { a p t P r o p e r t i s [ 9 ]   =   ' n o ' ; }   ;   / / ÞêÙÕÕ× 
                          
                          
                          
                          
                         e v ( ' e l e v a i t o r ' , a p t P r o p e r t i s [ 0 ] ) ;  
                         e v ( ' a i r c o n ' , a p t P r o p e r t i s [ 1 ] ) ;  
                         e v ( ' p a r k i n g ' , a p t P r o p e r t i s [ 2 ] ) ;  
                         e v ( ' b a r s ' , a p t P r o p e r t i s [ 3 ] ) ;  
                         e v ( ' f u r n i ' , a p t P r o p e r t i s [ 4 ] ) ;  
                         e v ( ' t e r a s ' , a p t P r o p e r t i s [ 8 ] ) ;  
                         e v ( ' r e f u r b ' , a p t P r o p e r t i s [ 7 ] ) ;  
                         e v ( ' a r b i t r a t i o n ' , a p t P r o p e r t i s [ 9 ] ) ;  
                         e v ( ' p a r t n e r s ' , a p t P r o p e r t i s [ 5 ] ) ;  
                         e v ( ' h a c ' , a p t P r o p e r t i s [ 6 ] ) ;  
                          
                          
                          
                          
                          
  
                          
                         / /   a d d   p r i c e   a n d   l i n k   t o   o t h e r   p r i c e   l i s t  
                          
                         v a r   p r i c e C l a s s   =   " "  
                          
                         / /   t e s t   p r i c e   - -   S t a r t  
                         i f (   i s N a N ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P r i c e A v g ' ] ] ) )    
                         {  
                                 p r i c e C l a s s   =   " P r i c e - b l a c k " ;  
                         }  
                         e l s e  
                         {  
                                 i f   ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' S h e k e l R e n t ' ] ]   >   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P r i c e A v g ' ] ]   * 1       )    
                                   p r i c e C l a s s   =   " P r i c e - r e d " ;  
                                 e l s e   i f   ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' S h e k e l R e n t ' ] ]   <   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P r i c e A v g ' ] ]   * 1       )    
                                         p r i c e C l a s s   =   " P r i c e - g r e e n " ;  
                                          
                                 i f (   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P r i c e A v g ' ] ]   * 1     = =   0   | |     t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' S h e k e l R e n t ' ] ]   * 1   < 1 0 0   )  
                                         p r i c e C l a s s   =   " P r i c e - b l a c k " ;  
                         }  
                          
                         v a r   p r i c e t x t   =   " < S P A N   c l a s s = ' " +   p r i c e C l a s s     + " ' > "   +     ( ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' S h e k e l R e n t ' ] ] * 1 )   <   1 0 0   ?   ' Þ×Ùè  ÜÐ  æÕÙÙß'   :   " ª   "   +       E x t . u t i l . F o r m a t . u s M o n e y (     t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' S h e k e l R e n t ' ] ] ) ) . r e p l a c e ( ' $ ' , ' ' ) . r e p l a c e ( ' . 0 0 ' , ' ' )     +   " < / S P A N > "   ;  
                         i f ( ! i s N a N ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P r i c e A v g ' ] ] ) )    
                         {        
                                 p r i c e t x t + =   " < D I V   s t y l e = \ " d i r i c t i o n : r t l ; \ " > "     +   (   ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P r i c e A v g ' ] ] * 1 )   = =   0   ?   " "   : (     " Þ×Ùè  ÞÞÕæâ  ÜÐÙÖÕè  "   +   " ª   "   +       E x t . u t i l . F o r m a t . u s M o n e y (     t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P r i c e A v g ' ] ] ) ) . r e p l a c e ( ' $ ' , ' ' ) . r e p l a c e ( ' . 0 0 ' , ' ' )       )   +   " < / D I V > "  
                         }  
                         e v ( ' p r i c e ' , ( ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' S h e k e l R e n t ' ] ] * 1 )   <   1 0 0   ?   ' Þ×Ùè  ÜÐ  æÕÙÙß'   :   "   "   +       E x t . u t i l . F o r m a t . u s M o n e y (     t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' S h e k e l R e n t ' ] ] ) ) . r e p l a c e ( ' $ ' , ' ' ) . r e p l a c e ( ' . 0 0 ' , ' ' ) ) ;  
                         e v ( ' p r i c e _ c o l o r ' , p r i c e C l a s s ) ;  
                          
                         i f (   i s N a N ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P r i c e A v g ' ] ] ) )    
                                 e v ( ' s h o w a v g p r i c e ' , ' h i d d e n ' ) ;  
                         e l s e   i f ( ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P r i c e A v g ' ] ] * 1 )   = =   0 )  
                                 e v ( ' s h o w a v g p r i c e ' , ' h i d d e n ' ) ;  
                         e l s e  
                         {  
                                 e v ( ' s h o w a v g p r i c e ' , ' b l o c k ' ) ;  
                                 e v ( ' a v g _ p r i c e ' , E x t . u t i l . F o r m a t . u s M o n e y ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P r i c e A v g ' ] ] ) . r e p l a c e ( ' $ ' , ' ' ) . r e p l a c e ( ' . 0 0 ' , ' ' ) ) ;  
                         }  
                         e v ( ' d a t e ' , t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ " E n t r y W h e n " ] ] ) ;  
          
                         e v ( ' c o n t a c t n a m e '   ,   ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' C o n t a c t ' ] ]   = = " "   ?   ' ÜÐ  æÕÙÙß'   : t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' C o n t a c t ' ] ]   )   ) ;  
                         v a r   p n u m b e r s   =   " " ;  
                         i f ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x . P h o n e A ]   ! =   " " )  
                         {  
                                 p n u m b e r s   =   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x . P h o n e A ] ;  
                         }  
                         i f ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x . P h o n e B ]   ! =   " " )  
                         {  
                                 i f ( p n u m b e r s . l e n g t h   ! =   0 )   p n u m b e r s + = " < b r > " ;  
                                 p n u m b e r s + =   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x . P h o n e B ] ;  
                         }  
                         e v ( ' c o n t a c t p h o n e ' ,   p n u m b e r s ) ;  
                          
                          
                         / /   g e t   a r e a   p i c   a n d   c l e a r   o l d   m a r k e r s  
                                 / / v a r   p i c u r l   =   " h t t p : / / 1 9 2 . 1 1 8 . 9 7 . 2 0 6 / Z a z i m / w m s . w m s ? A s s e t X = " + t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' x ' ] ] + " & A s s e t Y = " + t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' y ' ] ] ;  
                                  
                         / /   g e t   a p t   a r e a   i n f o   f r o m   s e r v e r  
                         / / t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' p x ' ] ]  
                          
                          
                         / *   t e s t   * /  
                          
                         i f ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x . d e s c r i p t i o n ]   )  
                         {        
                                 / / d e b u g g e r ;  
                                 e v ( ' d e s c r i p t i o n ' ,   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x . d e s c r i p t i o n ] ) ;  
                                  
                         }  
                          
                          
                         t h i s . d e t a i l B o x . d o m . i n n e r H T M L   =   " " ;  
                         t h i s . d i s p l a y t e m p l a t e . a p p e n d ( t h i s . d e t a i l B o x , d i s p o b j ) ;  
                         v a r   p i c u r l   =   h o s t u r l + " Z a z i m / w m s . w m s ? A s s e t X = " + t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' x ' ] ] + " & A s s e t Y = " + t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' y ' ] ] ;  
                         t h i s . g e t A p t P i c ( p i c u r l ) ;  
                          
                         t h i s . a r e a P i c h o m e I c o n   =   t h i s . C r e a t e D i v ( ' a r e a P i c h o m e I c o n ' , E x t . g e t ( ' m i n i m a p ' ) ) ;  
                         t h i s . a r e a P i c h o m e I c o n . d o m . i d   =   " a r e a P i c h o m e I c o n " ;  
                         t h i s . p i c B o x   = E x t . g e t ( ' a s s e t P i c B o x ' ) ;  
                          
                          
                         v a r   u r l   =   t h i s . s c r i p t   +   ' i n p u t = '   + t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' i d ' ] ] ;  
                          
                         v a r   r e q   =   n e w   t r e e A j a x ( ) ;  
                         t h i s . c u r r e t A s s e t X   =   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' x ' ] ] * 1 ;  
                         t h i s . c u r r e t A s s e t Y   =   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' y ' ] ] * 1 ;  
                         v a r   o n S u c c e s s F u n c = f u n c t i o n   ( l i s t ) { t h i s . f i l l A r e a I n f o T r e e ( l i s t ) ; }  
                         v a r   o n E r r o r F u n c = f u n c t i o n   ( e r r o r ) { }  
                          
                         / *   g e t   d i s t a n c e   d a t a * /  
                         r e q . m a k e R e q u e s t (   u r l ,   " g e t " ,   t h i s . c r e a t e D e l e g a t e ( t h i s , t h i s . f i l l A r e a I n f o T r e e ) , t h i s . c r e a t e D e l e g a t e ( t h i s ,   o n E r r o r F u n c )   ) ;  
                        
                       E x t . g e t ( ' s h o w C o n t a c t D e t a i l ' ) . o n ( ' c l i c k ' , f u n c t i o n ( ) {  
                       p a g e T r a c k e r . _ t r a c k P a g e v i e w ( " / s h o w _ p h o n e _ n u m b e r " ) ;    
                       E x t . g e t ( ' s h o w C o n t a c t D e t a i l ' ) . d o m . c l a s s N a m e   =   E x t . g e t ( ' c o n t a c t D e t a i l ' ) . d o m . c l a s s N a m e ;  
                       E x t . g e t ( ' s h o w C o n t a c t D e t a i l ' ) . d o m . i n n e r H T M L   =   E x t . g e t ( ' c o n t a c t D e t a i l ' ) . d o m . i n n e r H T M L ;  
                         / / . d i s p l a y = " n o n e " ;  
                       E x t . g e t ( ' s h o w C o n t a c t D e t a i l ' ) . d o m . s t y l e . d i s p l a y = " b l o c k " ;      
                       } ) ;    
                          
                          
                         t h i s . m a i n i n f o t o p R o w P r i n t   =   E x t . g e t ( ' p r i n t a d d ' ) ;  
                         t h i s . m a i n i n f o t o p R o w P r i n t . o n ( ' c l i c k ' , t h i s . p r i n t A d d , t h i s ) ;  
                          
                          
                          
                         E x t . g e t ( ' r e p o r t e r r o r ' ) . o n ( ' c l i c k ' , t h i s . r e p o r t F o r m . s h o w , t h i s . r e p o r t F o r m ) ;  
                         t h i s . m a i n i n f o t o p R o w M y A s s e t L i s t   =   E x t . g e t ( ' a d d r e m o v e m y a s s e t s ' ) ;  
                         t h i s . m a i n i n f o t o p R o w M y A s s e t L i s t . o n ( ' c l i c k ' , m a m . a d d R e m o v e A s s e t , m a m ) ;  
                         i f ( m a m . g e t A s s e t L i s t ( ) . i n d e x O f ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' i d ' ] ]   +   " | " )   ! =   - 1 )  
                         {  
                                 t h i s . m a i n i n f o t o p R o w M y A s s e t L i s t . d o m . i n n e r H T M L   =   " Ôáè  ÞÔàÛáÙÝ  éÜÙ" ;  
                                 t h i s . m a i n i n f o t o p R o w M y A s s e t L i s t . d o m . c l a s s N a m e = " b t n a r e m o v e " ;  
                         }  
                         e l s e  
                         {  
                                 t h i s . m a i n i n f o t o p R o w M y A s s e t L i s t . d o m . i n n e r H T M L   =   " ÔÕáã  ÜàÛáÙÝ  éÜÙ" ;  
                                 t h i s . m a i n i n f o t o p R o w M y A s s e t L i s t . d o m . c l a s s N a m e = " b t n a d d " ;  
                         }  
                          
                         t h i s . m a i n i n f o t o p R o w M y A s s e t L i s t . d o m . i d   =   ' d i s p l a y ' +   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' i d ' ] ] ;  
                          
                         t h i s . d e t a i l B o x . s l i d e I n ( ' t ' ,   {   d u r a t i o n :   0 . 4   , c a l l b a c k : f u n c t i o n ( ) {  
                         i f ( t h i s . c o n s t B a n n e r )  
                         {  
                                 b m a n a g e r . r e m o v e ( t h i s . c o n s t B a n n e r ) ;  
                         }  
                         t h i s . c o n s t B a n n e r   =   b m a n a g e r . a d d ( ' 1 3 3 0 8 ' , ' 4 7 0 ' , ' 6 3 ' , t h i s . i n f o B a n n e r ) ;  
                         } , s c o p e : t h i s } ) ;  
                         / / t h i s . i n f o T r e e  
                          
                         / /   a d d   p i c _ m a n a g e r  
                    
                    
                         i f ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P i c C o u n t ' ] ]   = =   0   | |   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P i c C o u n t ' ] ]   = =   n u l l   )  
                         {  
                                 E x t . g e t ( ' a s s e t _ s h o w _ l a r g _ p i c _ t x t ' ) . d o m . i n n e r H T M L   =   " ÜÐ  àÞæÐÕ  êÞÕàÕê" ;  
                         }  
                         e l s e  
                         {  
                                 E x t . g e t ( ' a s s e t _ s h o w _ l a r g _ p i c _ t x t ' ) . o n ( " c l i c k " , t h i s . s h o w L a r g P i c , t h i s ) ;  
                                 t h i s . p i c B o x . o n ( " c l i c k " , t h i s . s h o w L a r g P i c , t h i s ) ;  
                                 t h i s . l a r g I m g N a v B a c k . d o m . i n n e r H T M L   =   " Ä%1 " ;  
                                 t h i s . l a r g I m g N a v N e x t . d o m . i n n e r H T M L   =   "   /   "   +   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P i c C o u n t ' ] ]   +   " º%" ;  
                                  
                                  
                         }  
                          
                         t h i s . c u r r e n t D i s p l a y e d P i c t u r e   =   1 ;  
                         / /   h t t p : / / 1 9 2 . 1 1 8 . 9 7 . 2 0 6 / z a z i m / i m g . i m g ? A d d I d = 1 0 6 9 7 6 2 & I m a g e N o = 5 & W i d t h = 1 4 3 & H e i g h t = 1 0 8  
                         / / t h i s . p i c u r l   +    
                         / /  
                          
                         t h i s . p i c B o x . d o m . s r c   =   t h i s . p i c u r l   +   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' i d ' ] ]   +   " & I m a g e N o = "   +   t h i s . c u r r e n t D i s p l a y e d P i c t u r e   +   " & W i d t h = 1 1 0 & H e i g h t = 8 0 "   ;  
                          
                 }  
                  
         } ,  
         p r i n t A d d   :   f u n c t i o n ( )  
         {  
                  
                 p r i n t . a d d ( [ { d a t a : t h i s . s e l e c t e d L i . r o w , i n d e x : t h i s . r o w I n d e x } ] )  
                  
         } ,  
         s h o w L a r g P i c   :   f u n c t i o n ( e v t )  
         {  
                  
                 / / p i c C h a n g e  
                 v a r   w i d t h   =   3 5 0 ;  
                 v a r   h e i g h t   =   3 0 0 ;  
                  
                 i f ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P i c C o u n t ' ] ]   = =   0   | |   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P i c C o u n t ' ] ]   = =   n u l l   )   r e t u r n ;  
                  
                 / / t h i s . l a r g P i c  
                 i f ( t h i s . l a r g P i c . d o m . s t y l e . d i s p l a y   = =   " b l o c k " )  
                 {  
                         t h i s . l a r g P i c . d o m . s t y l e . d i s p l a y = ' n o n e ' ;    
                 }  
                 e l s e  
                 {  
                         i f ( t h i s . l a r g P i c . d o m . s t y l e . b a c k g r o u n d I m a g e   ! =   " u r l ( ' " +   t h i s . p i c u r l   +   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' i d ' ] ]   +   " & I m a g e N o = "   +   t h i s . c u r r e n t D i s p l a y e d P i c t u r e   +   " & W i d t h = " +   w i d t h   + " & H e i g h t = " +   h e i g h t     + " ' ) " )  
                                 t h i s . l a r g P i c . d o m . s t y l e . b a c k g r o u n d I m a g e   = " u r l ( ' " +   t h i s . p i c u r l   +   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' i d ' ] ]   +   " & I m a g e N o = "   +   t h i s . c u r r e n t D i s p l a y e d P i c t u r e   +   " & W i d t h = " +   w i d t h   + " & H e i g h t = "   +   h e i g h t       + " ' ) " ;  
                                  
  
                         t h i s . l a r g P i c . d o m . s t y l e . l e f t   =   e v t . g e t P o i n t ( ) . x   + 5   +   " p x " ;  
                         t h i s . l a r g P i c . d o m . s t y l e . t o p   =   e v t . g e t P o i n t ( ) . y     +   " p x " ;  
                         t h i s . l a r g P i c . d o m . s t y l e . d i s p l a y   =   " b l o c k " ;  
                          
                         t h i s . l a r g P i c . f a d e I n ( ) ;  
                 }  
                  
                  
                  
         } ,  
         m o v e L a r g P i c   :   f u n c t i o n ( e v t )  
         {  
                 r e t u r n ;  
                 t h i s . l a r g P i c . d o m . s t y l e . l e f t   =   e v t . g e t P o i n t ( ) . x   + 5   +   " p x " ;  
                 t h i s . l a r g P i c . d o m . s t y l e . t o p   =   e v t . g e t P o i n t ( ) . y   - 1 5 0   +   " p x " ;  
                  
         } ,  
         h i d e L a r g P i c   :   f u n c t i o n ( )  
         {  
                 / / i f ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P i c C o u n t ' ] ]   = = 0 )   r e t u r n ;  
                 / / t h i s . l a r g P i c . d o m . s t y l e . d i s p l a y = ' n o n e ' ;    
                  
                 t h i s . l a r g P i c . f a d e O u t ( {  
                         e n d O p a c i t y :   0 ,   / / c a n   b e   a n y   v a l u e   b e t w e e n   0   a n d   1   ( e . g .   . 5 )  
                         e a s i n g :   ' e a s e O u t ' ,  
                         d u r a t i o n :   . 5 ,  
                         r e m o v e :   f a l s e ,  
                         u s e D i s p l a y :   t r u e  
                 } ) ;  
         } ,  
          
         L a r g P i c C h a n g e   :   f u n c t i o n ( e v t , s r c )  
         {  
                  
                 i f ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P i c C o u n t ' ] ]   = = 0 )   r e t u r n ;  
                  
                 v a r   w i d t h   =   3 5 0 ;  
                 v a r   h e i g h t   =   3 0 0 ;  
                  
                 i f ( s r c . i d   = =   " L a r g P i c U p " )  
                 {  
                     i f (     t h i s . c u r r e n t D i s p l a y e d P i c t u r e   = =   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P i c C o u n t ' ] ] )  
                     {  
                         t h i s . c u r r e n t D i s p l a y e d P i c t u r e   =   1 ;  
                     }  
                     e l s e  
                     {  
                         t h i s . c u r r e n t D i s p l a y e d P i c t u r e + + ;  
                     }  
                 }  
                 e l s e  
                 {  
                     i f (     t h i s . c u r r e n t D i s p l a y e d P i c t u r e   = =   1 )  
                     {  
                         t h i s . c u r r e n t D i s p l a y e d P i c t u r e   =   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' v P i c C o u n t ' ] ] ;  
                     }  
                     e l s e  
                     {  
                         t h i s . c u r r e n t D i s p l a y e d P i c t u r e - - ;  
                     }  
                 }  
                  
                 t h i s . l a r g I m g N a v B a c k . d o m . i n n e r H T M L   =   " Ä%"   +   t h i s . c u r r e n t D i s p l a y e d P i c t u r e ;  
                  
                 / / t h i s . c u r r e n t P i c N u m . d o m . i n n e r H T M L   =   " Ä%"   +   t h i s . c u r r e n t D i s p l a y e d P i c t u r e ;  
                  
                 t h i s . p i c B o x . d o m . s r c   = t h i s . p i c u r l   +   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' i d ' ] ]   +   " & I m a g e N o = "   +   t h i s . c u r r e n t D i s p l a y e d P i c t u r e   +   " & W i d t h = 1 1 0 & H e i g h t = 8 0 " ;  
                 t h i s . l a r g P i c . d o m . s t y l e . b a c k g r o u n d I m a g e   = " u r l ( ' " +   t h i s . p i c u r l   +   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' i d ' ] ]   +   " & I m a g e N o = "   +   t h i s . c u r r e n t D i s p l a y e d P i c t u r e   +   " & W i d t h = " +   w i d t h   + " & H e i g h t = "   +   h e i g h t       + " ' ) " ;  
                  
         } ,  
         c r e a t e D e l e g a t e   :   f u n c t i o n ( i n s t a n c e ,   m e t h o d )   {  
 	 	 r e t u r n   f u n c t i o n ( )   {  
 	 	 	 r e t u r n   m e t h o d . a p p l y ( i n s t a n c e ,   a r g u m e n t s ) ;  
 	 	 }  
 	 } ,  
         g e t A p t P i c   :   f u n c t i o n ( u r l )  
         {  
                  
                 v a r   p a r e n t   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' p i c h o l d e r ' ) ;  
                 d o c u m e n t . g e t E l e m e n t B y I d ( ' p i c h o l d e r ' ) . s t y l e . b a c k g r o u n d I m a g e   = " u r l ( ' " +   u r l   + " ' ) " ;  
                  
                 / / v a r   s m a l l M a p   =   E x t . g e t ( ' a r e a S m a l l M a p ' ) ;  
                 v a r   s m a l l M a p   =   E x t . g e t ( ' m i n i m a p ' ) ;  
                 s m a l l M a p . d o m . s t y l e . b a c k g r o u n d I m a g e   = " u r l ( ' " +   u r l   + " ' ) " ;  
                 r e t u r n ;  
         } ,  
          
         t e s t M a r k e r P r o x y   :   f u n c t i o n ( d i v , t x t )  
         {  
                 i f ( ! t h i s . m a r k e r A r r a y ) r e t u r n ;  
                 i f ( t h i s . m a r k e r A r r a y . l e n g t h   = =   0   )   r e t u r n ;  
                 v a r   d i f n u m   =   3 0 ;  
                  
                 v a r   d i v y   =   ( d i v . d o m . s t y l e . t o p . t o S t r i n g ( ) . r e p l a c e ( / p x / , " " )   * 1 ) ;  
                 v a r   d i v x   =   ( d i v . d o m . s t y l e . l e f t . t o S t r i n g ( ) . r e p l a c e ( / p x / , " " )   * 1 ) ;  
                 f o r ( v a r   i = 0 ;   i   < t h i s . m a r k e r A r r a y . l e n g t h   - 1 ; i + + )  
                 {  
                         v a r   m a r k e r p i c   =   E x t . g e t ( t h i s . m a r k e r A r r a y [ i ] + " _ m a r k e r " ) ;  
                         v a r   o l d y   =   ( m a r k e r p i c . d o m . s t y l e . t o p . t o S t r i n g ( ) . r e p l a c e ( / p x / , " " )   * 1 ) ;  
                         v a r   o l d x   =   ( m a r k e r p i c . d o m . s t y l e . l e f t . t o S t r i n g ( ) . r e p l a c e ( / p x / , " " )   * 1 ) ;  
                          
                         i f (   d i v x   - d i f n u m   < =   o l d x   & &   d i v x   + d i f n u m   > =   o l d x )  
                         {  
                                 i f (   d i v y   - d i f n u m   < =   o l d y   & &   d i v y   + d i f n u m   > =   o l d y )  
                                 {  
                                         v a r   m a r k e r t x t   =   E x t . g e t ( t h i s . m a r k e r A r r a y [ i ] + " _ m a r k e r _ t e x t " ) ;  
                                         i f ( m a r k e r t x t . d o m . i n n e r H T M L . s u b s t r ( 0 , m a r k e r t x t . d o m . i n n e r H T M L . i n d e x O f ( " ( " ) )   = =   t x t . d o m . i n n e r H T M L . s u b s t r ( 0 , t x t . d o m . i n n e r H T M L . i n d e x O f ( " ( " ) ) )  
                                         {  
                                                 / / a l e r t ( " s a m e " ) ;  
                                                 d i v . d o m . i n n e r H T M L   =   " " ;  
                                                 d i v . r e m o v e ( ) ;  
                                                 d i v = n u l l ;  
                                                 t x t . d o m . i n n e r H T M L   =   " " ;  
                                                 t x t . r e m o v e ( ) ;  
                                                 t x t =   n u l l ;  
                                                 t h i s . m a r k e r A r r a y . s p l i c e ( t h i s . m a r k e r A r r a y . l e n g t h - 1 , 1 ) ;  
                                                 r e t u r n   f a l s e ;  
                                         }  
                                         e l s e  
                                         {  
                                                 v a r   x   =   ( d i v x   +   o l d x )   / 2 ;  
                                                 v a r   y   =   ( d i v y   +   o l d y )   / 2 ;  
                                                 m a r k e r p i c . d o m . s t y l e . t o p   =   y   +   " p x " ;  
                                                 m a r k e r p i c . d o m . s t y l e . l e f t   =   x   +   " p x " ;  
                                                 i f ( m a r k e r t x t . d o m . i n n e r H T M L . i n d e x O f ( t x t . d o m . i n n e r H T M L )   ! =   - 1   )  
                                                         m a r k e r t x t . d o m . i n n e r H T M L   =   m a r k e r t x t . d o m . i n n e r H T M L   +   " < b r > "   +   t x t . d o m . i n n e r H T M L ;  
                                                 d i v . d o m . i n n e r H T M L   =   " " ;  
                                                 d i v . r e m o v e ( ) ;  
                                                 d i v = n u l l ;  
                                                 t x t . d o m . i n n e r H T M L   =   " " ;  
                                                 t x t . r e m o v e ( ) ;  
                                                 t x t =   n u l l ;  
                                                 t h i s . m a r k e r A r r a y . s p l i c e ( t h i s . m a r k e r A r r a y . l e n g t h - 1 , 1 ) ;  
                                                 r e t u r n   f a l s e ;  
                                                 / / a l e r t ( " d i f " ) ;  
                                         }  
                                          
                                 }  
                         }  
                 }  
                         r e t u r n   t r u e ;  
         } ,  
         c r e a t e I t e m M a r k e r   :   f u n c t i o n ( i d , t y p e , x , y , p i c )  
         {  
                 i f ( ! t h i s . m a r k e r A r r a y )  
                 {  
                         t h i s . m a r k e r A r r a y   =   n e w   A r r a y ( ) ;  
                 }  
                  
                 t h i s . m a r k e r A r r a y [ t h i s . m a r k e r A r r a y . l e n g t h ]   =   i d ;  
          
          
                 v a r   d i s p l a y W i d t h   =   5 1 2 ;  
                 v a r   d i s p l a y H e i g h t   =   5 1 2 ;  
                 v a r   t e x t W i d t h   =   1 0 0 ;  
                  
                 / / a s s e t _ d i s p l a y _ s e p  
                  
                 v a r   m a p d i v =   E x t . g e t ( ' p i c h o l d e r ' ) ;  
                 / / m a p d i v . d o m . s t y l e . t o p   =   E x t . g e t ( ' a s s e t _ d i s p l a y _ s e p ' ) . g e t B o x ( ) . y   -   5 5   + " p x " ;  
                 m a p d i v . d o m . s t y l e . t o p   =   E x t . g e t B o d y ( ) . g e t S c r o l l ( ) . t o p   * 1   +   4 0   +   " p x " ;  
                 m a p d i v . d o m . s t y l e . l e f t   =   E x t . g e t ( ' a s s e t - d e t a i l - a n c o r ' ) . g e t B o x ( ) . x   + 5   + " p x " ;  
                 m a p d i v . d o m . s t y l e . w i d t h   =   d i s p l a y W i d t h   +   " p x " ;  
                 m a p d i v . d o m . s t y l e . h e i g h t   =   d i s p l a y H e i g h t   +   " p x " ;  
                 m a p d i v . d o m . s t y l e . d i s p l a y = ' b l o c k ' ;  
                 m a p d i v . d o m . s t y l e . z I n d e x   =   " 9 9 9 9 9 9 " ;  
                  
                 / / m a p d i v . f a d e I n ( ) ;  
                  
                 / /   c r e a t e   r e d   d o t  
                 v a r   D i v   =     E x t . g e t ( d o c u m e n t . c r e a t e E l e m e n t ( ' D I V ' ) ) ;  
                 D i v . d o m . i d   =   i d   +   " _ m a r k e r " ;  
                 v a r   T o p L e f t X   =   t h i s . c u r r e t A s s e t X - 1 0 0 0 ;  
                 v a r   T o p L e f t Y   =   t h i s . c u r r e t A s s e t Y + 1 0 0 0 ;  
                 v a r   W I D T H _ M E T E R   =   2 0 0 0 ;  
                 v a r   P I X E L _ P E R _ M E T E R   =   5 1 2 / 2 0 0 0 ;  
                 D i v . d o m . c l a s s N a m e   =   " m a r k e r - b u l l e t " ;  
                 D i v . d o m . s t y l e . b a c k g r o u n d I m a g e   =   " u r l ( " +   p i c   +   " ) " ;  
                 D i v . d o m . s t y l e . p o s i t i o n = " a b s o l u t e " ;  
                 v a r   c o n t a i n e r   =   E x t . g e t ( ' p i c h o l d e r ' ) . g e t B o x ( ) ;  
                 v a r   m a r k e r x   =   (   ( ( x   -   T o p L e f t X ) * P I X E L _ P E R _ M E T E R ) * 1     -   7 ) ;  
                 v a r   m a r k e r y   =   ( ( ( T o p L e f t Y   -   y ) * P I X E L _ P E R _ M E T E R ) * 1   - 7 ) ;  
                  
                 / / d e b u g g e r ;  
                 i f ( m a r k e r x   - 1 0   < =   0 )   m a r k e r x   =   m a r k e r x + 1 0 ;  
                 i f ( m a r k e r x   + 1 0   > =   c o n t a i n e r . w i d t h )   m a r k e r x   =   m a r k e r x - 1 0 ;  
                  
                 i f ( m a r k e r y   - 1 0   < =   0 )   m a r k e r y   =   m a r k e r y + 1 0 ;  
                 i f ( m a r k e r y   + 2 0   > =   c o n t a i n e r . h e i g h t )   m a r k e r y   =   m a r k e r y - 1 5 ;  
                  
                 D i v . d o m . s t y l e . l e f t   =     m a r k e r x   + " p x " ;  
                 D i v . d o m . s t y l e . t o p   =   m a r k e r y     + " p x " ;  
                 D i v . d o m . s t y l e . z I n d e x   =   " 1 0 0 0 0 0 0 " ;  
                  
                  
                  
                  
                 / /   c r e a t e   t e x t   n o d e  
                 v a r   T e x t   =     E x t . g e t ( d o c u m e n t . c r e a t e E l e m e n t ( ' D I V ' ) ) ;  
                 T e x t . d o m . i d   =   i d   +   " _ m a r k e r _ t e x t " ;  
                 T e x t . d o m . s t y l e . w i d t h   =   t e x t W i d t h   +   " p x " ;  
                 T e x t . d o m . c l a s s N a m e   =   " m a r k e r - t e x t " ;  
                 T e x t . d o m . i n n e r H T M L   =   t y p e ;  
                 T e x t . d o m . s t y l e . p o s i t i o n = " a b s o l u t e " ;  
                  
                 / /   t e s t   t e x t   p o s i t i o n  
                  
                 v a r   t e x t x = 0 ;  
                 v a r   t e x t y =   m a r k e r y   +   1 7 ;  
                 i f (   m a r k e r x   +   ( ( t e x t W i d t h / 2 ) * 1 )   <   d i s p l a y W i d t h   )  
                 {  
                     t e x t x   =   m a r k e r x   -   ( ( t e x t W i d t h / 2 ) * 1 ) ;  
                      
                 }  
                 e l s e  
                 {  
                         t e x t x   =   m a r k e r x   -   ( ( t e x t W i d t h / 2 ) * 1 ) ;  
                         / / t e x t x   =   d i s p l a y W i d t h   -   ( ( t e x t W i d t h / 2 ) * 1 )   -   4 ;  
                 }  
                 i f (   m a r k e r x   -   ( ( t e x t W i d t h / 2 ) * 1 )   <   0     )  
                 {  
                         / / t e x t x   =   2 ;  
                 }  
                  
                  
                  
                 T e x t . d o m . s t y l e . t o p   =   t e x t y   +   " p x " ;  
                 T e x t . d o m . s t y l e . l e f t   =   t e x t x   +   " p x " ;  
                  
                  
                  
                 i f ( t h i s . t e s t M a r k e r P r o x y ( D i v , T e x t ) )  
                 {  
                         D i v . a p p e n d T o ( E x t . g e t ( ' p i c h o l d e r ' ) ) ;  
                         T e x t . a p p e n d T o ( E x t . g e t ( ' p i c h o l d e r ' ) ) ;  
                 }  
                  
                  
                  
                 / / D i v . d o m . i n n e r H T M L   =   t y p e ;  
                  
                 / / x a d d d a t a p r i c e a n d p i c s  
                  
         } ,  
         r e m o v e T r e e M a r k e r s   :   f u n c t i o n ( )  
         {  
                 i f ( ! t h i s . m a r k e r A r r a y )   r e t u r n ;  
                 f o r ( v a r   i = 0 ;   i < t h i s . m a r k e r A r r a y . l e n g t h ; i + + )  
                 {  
                         v a r   m a r k e r p i c   =   E x t . g e t ( t h i s . m a r k e r A r r a y [ i ] + " _ m a r k e r " ) ;  
                         v a r   m a r k e r t x t   =   E x t . g e t ( t h i s . m a r k e r A r r a y [ i ] + " _ m a r k e r _ t e x t " ) ;  
                          
                         m a r k e r p i c . d o m . i n n e r H T M L   =   " " ;  
                         m a r k e r p i c . r e m o v e ( ) ;  
                         m a r k e r p i c = n u l l ;  
                         m a r k e r t x t . d o m . i n n e r H T M L   =   " " ;  
                         m a r k e r t x t . r e m o v e ( ) ;  
                         m a r k e r t x t   =   n u l l ;  
                          
                 }  
                 t h i s . m a r k e r A r r a y = n u l l ;  
                 v a r   m a p d i v =   E x t . g e t ( ' p i c h o l d e r ' ) ;                  
                 m a p d i v . d o m . s t y l e . d i s p l a y = ' n o n e ' ;  
         } ,  
         r e m o v e I t e m M a r k e r   :   f u n c t i o n ( i d )  
         {  
                 v a r   m a p d i v =   E x t . g e t ( ' p i c h o l d e r ' ) ;                  
                 m a p d i v . d o m . s t y l e . d i s p l a y = ' n o n e ' ;  
                  
                 t h i s . r e m o v e T r e e M a r k e r s ( ) ;  
                 / *  
                 v a r   t   =   E x t . g e t ( i d + " _ m a r k e r " ) ;  
                  
                 t . d o m . i n n e r H T M L   =   ' ' ;  
                         t . r e m o v e ( ) ;  
                         t   =   n u l l ;  
                          
                 t   =   E x t . g e t ( i d + " _ m a r k e r _ t e x t " ) ;  
                         t . r e m o v e ( ) ;  
                         t   =   n u l l ;  
                     * /      
                 r e t u r n ;  
         } ,  
         f i l l A r e a I n f o T r e e   :   f u n c t i o n ( l i s t , a s s e t x , a s s e t y )  
         {  
                 / / d e b u g g e r ;  
                  
                 i f ( t h i s . t r e e )  
                 {  
                          
                         t h i s . t r e e . c l e a r T r e e F r o m C o n t a i n e r ( ) ;  
                 }  
                  
                 v a r   i t e m s   =   e v a l ( l i s t . r e s p o n s e T e x t ) ;  
                  
                  
                 f o r ( v a r   i = 0 ;   i < i t e m s . l e n g t h ; i + + )  
                 {  
                         i f ( i t e m s [ i ] . t y p e   = =   " êÙÛÕàÙÝ" )  
                                 i t e m s [ i ] . t y p e =   " ÑêÙ  áäè" ;  
                 }  
                  
                 v a r   m y t r e e   =   n e w   t r e e ( ' i n f o t r e e ' , ' ØÑÜê  Þè×çÙÝ' ) ;  
                 v a r   c u r r e n t D i s t a n c e   = 0 ;  
                 v a r   c u r r e n t C a t e g o r y   =   " " ;  
                 v a r   s u b t r e e = n u l l ;  
                 v a r   i t e m N a m e =   " " ;  
                 v a r   w r i t e D i s t a n c e   =   0 ;  
                 v a r   x y = " " ;  
                 i f ( i t e m s . l e n g t h   = = 0 )   r e t u r n ;  
                 f o r ( v a r   i = 0 ;   i < i t e m s . l e n g t h ; i + + )  
                 {  
                         x y = i t e m s [ i ] . x   +   " , "   +   i t e m s [ i ] . y ;  
                         w r i t e D i s t a n c e   =   i t e m s [ i ] . d i s t a n c e ;  
                         i f ( w r i t e D i s t a n c e . t o S t r i n g ( ) . i n d e x O f ( " . " )   ! =   - 1 )  
                                         {  
                                                 w r i t e D i s t a n c e   =   w r i t e D i s t a n c e . t o S t r i n g ( ) . s u b s t r ( 0 , w r i t e D i s t a n c e . t o S t r i n g ( ) . i n d e x O f ( " . " ) ) ;  
                                         }  
                         i t e m N a m e   =   ( i t e m s [ i ] . n a m e   = = " "   ?   " ÜÜÐ  éÝ. "   : i t e m s [ i ] . n a m e   ) +   '   ( '   +   w r i t e D i s t a n c e   +   '   Þ) ' ;  
                         i f   ( i t e m N a m e . l e n g t h   >   1 9 )  
                         {  
                                 i t e m N a m e   =   ' < a c r o n y m   t i t l e = " '   +   i t e m N a m e   +   ' " > '   +   i t e m N a m e . t o S t r i n g ( ) . s u b s t r ( 0 , 1 5 )   +   " . . . "   +   ' < / a c r o n y m > ' ;  
                         }  
                         i f ( i t e m s [ i ] . t y p e   ! =   c u r r e n t C a t e g o r y   )  
                         {  
                                  
                                 i f ( s u b t r e e   ! =   n u l l )  
                                 {  
                                         i f ( c u r r e n t D i s t a n c e . t o S t r i n g ( ) . i n d e x O f ( " . " )   ! =   - 1 )  
                                         {  
                                                 c u r r e n t D i s t a n c e   =   c u r r e n t D i s t a n c e . t o S t r i n g ( ) . s u b s t r ( 0 , c u r r e n t D i s t a n c e . t o S t r i n g ( ) . i n d e x O f ( " . " ) ) ;  
                                         }  
                                         s u b t r e e . t i t l e N a m e   + =   " ( "   +   ( c u r r e n t D i s t a n c e   *   1   )     +   "   Þ) " ;  
                                 }  
                                  
                                  
                                 i f ( ! m y t r e e . s u b t r e e b y n a m e )   m y t r e e . s u b t r e e b y n a m e   =   [ ] ;  
                                 i f ( m y t r e e . s u b t r e e b y n a m e [ i t e m s [ i ] . t y p e ]   = =   n u l l )  
                                 {        
                                         s u b t r e e   =     m y t r e e . a d d S u b T r e e ( ' t r e e _ ' + i ,   i t e m s [ i ] . t y p e   ) ;  
                                         m y t r e e . s u b t r e e b y n a m e [ i t e m s [ i ] . t y p e ]   =   s u b t r e e ;  
                                         t r y  
                                         {  
                                                 E x t . g e t ( i t e m s [ i ] . t y p e ) . f i r s t ( ) . o n ( ' m o u s e o v e r ' , s u b t r e e . m o u s e o v e r , s u b t r e e ) ;  
                                                 E x t . g e t ( i t e m s [ i ] . t y p e ) . f i r s t ( ) . o n ( ' m o u s e o u t ' , s u b t r e e . m o u s e o u t , s u b t r e e ) ;  
                                                  
                                                 E x t . g e t ( i t e m s [ i ] . t y p e ) . f i r s t ( ) . d o m . s r c   =   E x t . g e t ( i t e m s [ i ] . t y p e ) . f i r s t ( ) . d o m . s r c . t o S t r i n g ( ) . r e p l a c e ( / g r a y / g , " " ) ;  
                                                 E x t . g e t ( i t e m s [ i ] . t y p e ) . f i r s t ( ) . d o m . s t y l e . c u r s o r   =   " p o i n t e r " ;  
                                                 s u b t r e e . m a r k e r p i c   =   E x t . g e t ( i t e m s [ i ] . t y p e ) . f i r s t ( ) . d o m . s r c ;  
                                         }  
                                         c a t c h ( e x )  
                                         {  
                                                  
                                         }  
                                 }  
                                 e l s e  
                                 {  
                                         s u b t r e e   =   m y t r e e . s u b t r e e b y n a m e [ i t e m s [ i ] . t y p e ] ;  
                                 }  
                                  
                                  
                                          
                                 c u r r e n t C a t e g o r y   =   i t e m s [ i ] . t y p e ;  
                                 v a r   i t e m   =   s u b t r e e . a d d I t e m ( i , i t e m N a m e , x y   ) ;  
                                 i t e m . o r g t e x t   =   ( i t e m s [ i ] . n a m e   = = " "   ?   " ÜÜÐ  éÝ. "   : i t e m s [ i ] . n a m e   ) +   '   ( '   +   w r i t e D i s t a n c e   +   '   Þ) ' ;  
                                 / / t h i s . c r e a t e I t e m M a r k e r ( i , i t e m s [ i ] . t y p e , i t e m s [ i ] . x , i t e m s [ i ] . y ) ;  
                                  
                                 / / s u b t r e e . a d d I t e m ( i , i t e m s [ i ] . n a m e   +   ' (   '   +   ( i t e m s [ i ] . d i s t a n c e * 1 )   +   '   ÞØè  ) '   ) ;  
                                 c u r r e n t D i s t a n c e   =   i t e m s [ i ] . d i s t a n c e   *   1 ;  
                         }  
                         e l s e  
                         {  
                                 i f ( c u r r e n t D i s t a n c e   >   i t e m s [ i ] . d i s t a n c e   * 1     )  
                                 {  
                                         c u r r e n t D i s t a n c e   =   i t e m s [ i ] . d i s t a n c e   * 1   ;  
                                 }  
                                  
                                 v a r   i t e m   = s u b t r e e . a d d I t e m ( i , i t e m N a m e , x y   ) ;  
                                 i t e m . o r g t e x t   =   ( i t e m s [ i ] . n a m e   = = " "   ?   " ÜÜÐ  éÝ. "   : i t e m s [ i ] . n a m e   ) +   ' ( '   +   w r i t e D i s t a n c e   +   '   Þ) ' ;  
                                 / / t h i s . c r e a t e I t e m M a r k e r ( i , i t e m s [ i ] . t y p e , i t e m s [ i ] . x , i t e m s [ i ] . y ) ;  
                         }  
                 }  
                  
                 i f ( c u r r e n t D i s t a n c e . t o S t r i n g ( ) . i n d e x O f ( " . " )   ! =   - 1 )  
                                         {  
                                                 c u r r e n t D i s t a n c e   =   c u r r e n t D i s t a n c e . t o S t r i n g ( ) . s u b s t r ( 0 , c u r r e n t D i s t a n c e . t o S t r i n g ( ) . i n d e x O f ( " . " ) ) ;  
                                         }  
                 s u b t r e e . t i t l e N a m e   + =   "   (   "   +   ( c u r r e n t D i s t a n c e   *   1   )     +   "   ) " ;  
                 / / t h i s . i n f o T r e e . d o m . i n n e r H T M L = " " ;  
                 m y t r e e . d r o w ( ' ' , t r u e , t h i s . i n f o T r e e . d o m ) ;  
                 t h i s . i n f o T r e e . d o m . s t y l e . d i s p l a y   =   ' b l o c k ' ;  
                  
                 t h i s . t r e e   =   m y t r e e ;  
                 m y t r e e . i t e m E n t e r   =   t h i s . c r e a t e D e l e g a t e ( t h i s , t h i s . s h o w M a r k e r O n M a p ) ;  
                 m y t r e e . i t e m L e a v e   =   t h i s . c r e a t e D e l e g a t e ( t h i s , t h i s . h i d e M a r k e r O n M a p ) ;  
                 m y t r e e . t r e e E n t e r   =   t h i s . c r e a t e D e l e g a t e ( t h i s , t h i s . s h o w M a r k e r s O n M a p ) ;  
                 m y t r e e . t r e e L e a v e   =   t h i s . c r e a t e D e l e g a t e ( t h i s , t h i s . h i d e M a r k e r s O n M a p ) ;  
         } ,  
                 s h o w M a r k e r O n M a p   :   f u n c t i o n ( i t e m , p i c , b , c )  
                 {  
                          
                         t h i s . c r e a t e I t e m M a r k e r ( i t e m . i d , i t e m . o r g t e x t , i t e m . v a l u e . s p l i t ( " , " ) [ 0 ] , i t e m . v a l u e . s p l i t ( " , " ) [ 1 ] , p i c ) ;  
                 } ,  
                 h i d e M a r k e r O n M a p   :   f u n c t i o n ( i t e m )  
                 {  
                         t h i s . r e m o v e T r e e M a r k e r s ( ) ;  
                          
                          
                 } ,  
                 s h o w M a r k e r s O n M a p   :   f u n c t i o n ( r o o t )  
                 {  
                          
                         i f ( r o o t . t y p e   = =   " t r e e " )   r e t u r n ;  
                         t h i s . h i d e M a r k e r s O n M a p ( ) ;  
                         f o r ( v a r   i = 0 ; i < r o o t . i t e m s . l e n g t h ; i + + )  
                         {  
                                 i f ( r o o t . i t e m s [ i ] . t y p e   ! =   " s u b t r e e " )  
                                         t h i s . s h o w M a r k e r O n M a p ( r o o t . i t e m s [ i ] , r o o t . m a r k e r p i c ) ;  
                         }  
                          
                 } ,  
                 h i d e M a r k e r s O n M a p   :   f u n c t i o n ( r o o t )  
                 {  
                         t h i s . r e m o v e T r e e M a r k e r s ( ) ;  
                 } ,  
                 r e S h o w P r i c e :   f u n c t i o n ( )  
                 {  
                         t h i s . p r i c e C h a n g e D i v . t o g g l e C l a s s ( ' x - a d d d a t a - h i d e ' ) ;  
                         t h i s . d i s t a n c e D i v . t o g g l e C l a s s ( ' x - a d d d a t a - h i d e ' ) ;    
                 } ,  
                 S h o w H i d e C o n t a c t D e t a i l   :   f u n c t i o n ( )  
                 {        
                         i f ( E x t . g e t ( ' c o n t a c t D e t a i l s ' )   = =   n u l l )  
                         {  
                                 t h i s . c o n t a c t D e t a i l s   =   t h i s . C r e a t e D i v ( ' c o n t a c t - d e t a i l s ' , E x t . g e t B o d y ( ) ) ;  
                                 t h i s . c o n t a c t D e t a i l s . d o m . i d   =   " c o n t a c t D e t a i l s " ;  
                         }  
                         i f ( t h i s . c o n t a c t D e t a i l s . d o m . i n n e r H T M L   = =   " " )  
                         {  
                          
                                 t h i s . c o n t a c t D e t a i l s . d o m . s t y l e . t o p   =     t h i s . c o n t a c t A p t L i n k . g e t B o x ( ) . y   +   1 2   +   " p x " ;  
                                 t h i s . c o n t a c t D e t a i l s . d o m . s t y l e . l e f t   =     t h i s . c o n t a c t A p t L i n k . g e t B o x ( ) . x   +   " p x " ;  
                                 v a r   t e x t   =   " < D I V >   ÐÙé  çéè  :   "   +   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' C o n t a c t ' ] ]   +   "   < / D I V > " ;  
                                 t e x t + = " < D I V >   ØÜäÕß  :   "   +   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' P h o n e A ' ] ]   +    
                                 ( t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' P h o n e B ' ] ]   ! = ' ' ?   ( " , "   +   t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' P h o n e B ' ] ] )   : ' ' ) +  
                                 "   < / D I V > " ;  
                                 t h i s . c o n t a c t D e t a i l s . d o m . i n n e r H T M L   =   t e x t ;  
                                 / / t h i s . r o w I n d e x [ ' P h o n e A ' ]  
                                 / / t h i s . s e l e c t e d L i . r o w [ t h i s . r o w I n d e x [ ' C o n t a c t ' ] ]  
                                  
                                 t h i s . c o n t a c t D e t a i l s . d o m . s t y l e . d i s p l a y = ' b l o c k ' ;  
                         }  
                         e l s e  
                         {  
                                 t h i s . c o n t a c t D e t a i l s . d o m . i n n e r H T M L   =   " " ;  
                                 t h i s . c o n t a c t D e t a i l s . d o m . s t y l e . d i s p l a y = ' n o n e ' ;  
                         }  
                 }  
 } ;  
  
 / /   A J A X   P R O T O T Y P E   _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
 
 
 
 t r e e A j a x   =   f u n c t i o n   ( ) 
 { 
 	 t h i s . r e q   =   { } ; 
 	 t h i s . i s I E   =   f a l s e ; 
 } 
 
 
 
 t r e e A j a x . p r o t o t y p e . m a k e R e q u e s t   =   f u n c t i o n   ( u r l ,   m e t h ,   o n C o m p ,   o n E r r ) 
 { 
 	 
 	 i f   ( m e t h   ! =   " P O S T " ) 
 	 	 m e t h   =   " G E T " ; 
 	 
 	 t h i s . o n C o m p l e t e   =   o n C o m p ; 
 	 t h i s . o n E r r o r   =   o n E r r ; 
 	 
 	 v a r   p o i n t e r   =   t h i s ; 
 	 
 	 / /   b r a n c h   f o r   n a t i v e   X M L H t t p R e q u e s t   o b j e c t 
 	 i f   ( w i n d o w . X M L H t t p R e q u e s t ) 
 	 { 
 	 	 t h i s . r e q   =   n e w   X M L H t t p R e q u e s t ( ) ; 
 	 	 t h i s . r e q . o n r e a d y s t a t e c h a n g e   =   f u n c t i o n   ( )   {   p o i n t e r . p r o c e s s R e q C h a n g e ( )   } ; 
 	 	 t h i s . r e q . o p e n ( " G E T " ,   u r l ,   t r u e ) ;   / / 
 	 	 t h i s . r e q . s e n d ( n u l l ) ; 
 	 / /   b r a n c h   f o r   I E / W i n d o w s   A c t i v e X   v e r s i o n 
 	 } 
 	 e l s e   i f   ( w i n d o w . A c t i v e X O b j e c t ) 
 	 { 
 	 	 t h i s . r e q   =   n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) ; 
 	 	 i f   ( t h i s . r e q ) 
 	 	 { 
 	 	 	 t h i s . r e q . o n r e a d y s t a t e c h a n g e   =   f u n c t i o n   ( )   {   p o i n t e r . p r o c e s s R e q C h a n g e ( )   } ; 
 	 	 	 t h i s . r e q . o p e n ( m e t h ,   u r l ,   t r u e ) ; 
 	 	 	 t h i s . r e q . s e n d ( ) ; 
 	 	 } 
 	 } 
 } 
 
 
 t r e e A j a x . p r o t o t y p e . p r o c e s s R e q C h a n g e   =   f u n c t i o n ( ) 
 { 
 	 
 	 / /   o n l y   i f   r e q   s h o w s   " l o a d e d " 
 	 i f   ( t h i s . r e q . r e a d y S t a t e   = =   4 )   { 
 	 	 / /   o n l y   i f   " O K " 
 	 	 i f   ( t h i s . r e q . s t a t u s   = =   2 0 0 ) 
 	 	 { 
 	 	 	 t h i s . o n C o m p l e t e (   t h i s . r e q   ) ; 
 	 	 }   e l s e   { 
 	 	 	 t h i s . o n E r r o r (   t h i s . r e q . s t a t u s   ) ; 
 	 	 } 
 	 } 
 } 
  
  
  
  
 
