ÿþ$ ( f u n c t i o n ( )   {    
  
 	 	 $ ( " . s h o w r a s p " ) . l i v e ( ' c l i c k ' ,   f u n c t i o n ( e v e n t ) {  
                         v a r   _ t h i s   =   $ ( t h i s ) ;  
                         v a r   i d   =   _ t h i s . a t t r ( ' i d ' ) ;  
  
 	 	 	 i f   ( _ t h i s . a t t r ( ' r e l ' ) = = ' r a s p ' )  
 	 	 	 {  
 	 	 	 	 $ ( ' # s e a r c h _ r e s u l t _ ' + i d ) . h i d e ( 2 0 0 ) ;  
 	 	 	 	 $ ( ' # s e a r c h _ r a s p _ ' + i d ) . s h o w ( 5 0 0 ) ;  
                                 _ t h i s . a t t r ( ' r e l ' , ' s e a t s ' ) ;  
                                 _ t h i s . h t m l ( ' >:070BL  =0;8G85  <5AB  : ' ) ;  
 	 	 	 	 $ ( ' # s e a r c h _ t y p e _ h e a d e r _ ' + i d ) . h t m l ( ' @0A?8A0=85  ?>574>2' ) ;  
 	 	 	 	  
 	 	 	 }  
 	 	 	 e l s e  
 	 	 	 {  
 	 	 	 	 $ ( ' # s e a r c h _ r e s u l t _ ' + i d ) . s h o w ( 5 0 0 ) ;  
 	 	 	 	 $ ( ' # s e a r c h _ r a s p _ ' + i d ) . h i d e ( 2 0 0 ) ;  
                                 _ t h i s . a t t r ( ' r e l ' , ' r a s p ' ) ;  
                                 _ t h i s . h t m l ( ' >:070BL  @0A?8A0=85  : ' ) ;  
 	 	 	 	 $ ( ' # s e a r c h _ t y p e _ h e a d e r _ ' + i d ) . h t m l ( ' =0;8G85  <5AB' ) ;  
 	 	 	 }  
 	 	 	  
 	 	 } ) ;  
  
  
 	 	 $ ( " . t r a i n _ s e l e c t " ) . l i v e ( ' c l i c k ' ,   f u n c t i o n ( e v e n t ) {  
 	 	 	 v a r   _ t h i s   =   $ ( t h i s ) ;  
 	 	 	 _ t h i s . p a r e n t s ( ' t b o d y ' ) . f i n d ( ' . t i c k e t _ b t n _ s h o w ' ) . r e m o v e C l a s s ( ' t i c k e t _ b t n _ s h o w ' ) ;  
 	 	 	 _ t h i s . p a r e n t s ( ' t b o d y ' ) . f i n d ( ' . l a b e l s e l e c t ' ) . r e m o v e C l a s s ( ' l a b e l s e l e c t ' ) ;  
 	 	 	 _ t h i s . p a r e n t s ( ' t r ' ) . a d d C l a s s ( ' l a b e l s e l e c t ' ) ;  
 	 	 	 _ t h i s . p a r e n t s ( ' t r ' ) . f i n d ( ' . t r a i n _ b u y _ t i c k e t _ b t n ' ) . a d d C l a s s ( ' t i c k e t _ b t n _ s h o w ' ) ;  
 	 	 	 _ t h i s . a d d C l a s s ( ' l a b e l s e l e c t ' ) ;  
 	 	 } ) ;  
 	 	  
 	 	  
 	 	 $ ( " . t r a i n _ d e t a i l " ) . l i v e ( ' c l i c k ' ,   f u n c t i o n ( e v e n t ) {  
 	 	 	 v a r   _ t h i s   =   $ ( t h i s ) ;  
 	 	 	 v a r   i d   =   _ t h i s . a t t r ( ' i d ' ) ;  
 	 	 	  
 	 	 	 i f   ( $ ( ' # t r a i n _ '   +   i d ) . a t t r ( ' c l a s s ' ) = = ' t r a i n s _ i n f o _ r o w _ d e t a i l   h i d d e n '   )  
 	 	 	 {  
 	 	 	 	 _ t h i s . p a r e n t s ( ' t b o d y ' ) . f i n d ( ' # t r a i n _ '   +   i d ) . r e m o v e C l a s s ( ' h i d d e n ' ) ;  
 	 	 	 	 _ t h i s . p a r e n t s ( ' t b o d y ' ) . f i n d ( ' # t r a i n _ '   +   i d ) . a d d C l a s s ( ' s h o w ' ) ;  
 	 	 	 	 _ t h i s . a d d C l a s s ( ' t r a i n _ d e t a i l _ a c t i v e ' ) ;  
 	 	 	 }  
 	 	 	 e l s e    
 	 	 	 {  
 	 	 	 	 _ t h i s . p a r e n t s ( ' t b o d y ' ) . f i n d ( ' # t r a i n _ '   +   i d ) . r e m o v e C l a s s ( ' s h o w ' ) ;  
 	 	 	 	 _ t h i s . p a r e n t s ( ' t b o d y ' ) . f i n d ( ' # t r a i n _ '   +   i d ) . a d d C l a s s ( ' h i d d e n ' ) ;  
 	 	 	 	 _ t h i s . r e m o v e C l a s s ( ' t r a i n _ d e t a i l _ a c t i v e ' ) ;  
 	 	 	 }  
 	 	 } ) ;  
 	 	  
 	 	  
 	 	 $ ( " . t r a i n - b o o k i n g - b t n - i n p " ) . l i v e ( ' c l i c k ' ,   f u n c t i o n ( e v e n t )   {  
 	 	 	 v a r   _ t h i s   =   $ ( t h i s ) ;  
 	 	 	 _ t h i s . a d d C l a s s ( ' a c t i o n - s u b m i t - p r o c e s s ' ) ;  
 	 	 	  
 	 	 	 v a r   t r a i n _ i d   =     _ t h i s . p a r e n t s ( ' f o r m ' ) . f i n d ( ' i n p u t : r a d i o [ n a m e = t r a i n _ s e l e c t ] : c h e c k e d ' ) . v a l ( )   ;    
 	 	 	 a l e r t ( ' S T O P !   0==K9  DC=:F8>=0;  A59G0A  B>;L:>  4;O  CG0AB=8:>2  ?@>5:B0.   I D :   '   + t r a i n _ i d ) ;  
 	 	  
 	 	 } ) ;  
 	 	  
 	 	 $ ( " . t r a i n _ b u y _ t i c k e t _ b t n " ) . l i v e ( ' c l i c k ' ,   f u n c t i o n ( e v e n t )   {  
 	 	 	 v a r   _ t h i s   =   $ ( t h i s ) ;  
 	 	 	 _ t h i s . p a r e n t s ( ' t b o d y ' ) . f i n d ( ' . t r a i n - b o o k i n g - b t n - i n p ' ) . a d d C l a s s ( ' a c t i o n - s u b m i t - p r o c e s s ' ) ;  
 	 	 	  
 	 	 	 v a r   t r a i n _ i d   =     _ t h i s . p a r e n t s ( ' f o r m ' ) . f i n d ( ' i n p u t : r a d i o [ n a m e = t r a i n _ s e l e c t ] : c h e c k e d ' ) . v a l ( )   ;    
 	 	 	 a l e r t ( ' S T O P !   0==K9  DC=:F8>=0;  A59G0A  B>;L:>  4;O  CG0AB=8:>2  ?@>5:B0.   I D :   '   + t r a i n _ i d ) ;  
 	 	 } ) ;  
 	 	  
 	 	 / / i f   s u b m i t   b u t t o n   i s   c l i c k e d  
   	 $ ( ' # s e l e c t _ t r a i n _ 1 ' ) . s u b m i t ( f u n c t i o n   ( )   {    
 	 	 v a r   t r a i n _ i d   =   $ ( ' # s e l e c t _ t r a i n _ 1 ' ) . f i n d ( ' i n p u t : r a d i o [ n a m e = t r a i n _ s e l e c t ] : c h e c k e d ' ) . v a l ( )   ;    
 	 	 	 a l e r t ( ' S T O P !   0==K9  DC=:F8>=0;  A59G0A  B>;L:>  4;O  CG0AB=8:>2  ?@>5:B0.   I D :   '   + t r a i n _ i d ) ;  
                 r e t u r n   f a l s e ;  
         } ) ;   	 	 	  
 	 	  
 	 } ) ; 
