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