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