ÿþ/ / s c _ s v r   =   " h t t p : / / s c . i n f o . g o v . h k / g b / " ;  
 t e s t _ s v r   =   " t e s t . i r d . g o v . h k " ;  
 p r o d _ s v r   =   " w w w . g o v . h k " ;  
 t e s t _ u r l   =   " h t t p : / / t e s t . i r d . g o v . h k " ;  
 p r o d _ u r l   =   " h t t p : / / w w w . g o v . h k " ;  
 e n g l i s h   =   " / e n g / " ;  
 c h i n e s e   =   " / c h i / " ;  
 s i m _ c h i n e s e   =   " / c h s / " ;  
  
 _ u r l   =   t o p . l o c a t i o n . h r e f ;  
  
 / / u r l   f u n c t i o n  
 f u n c t i o n   i s t e s t ( s t r _ u r l ) {  
 	 i f   ( s t r _ u r l . i n d e x O f ( t e s t _ s v r )   ! =   - 1 ) {  
 	 	 r e t u r n   t r u e ;  
 	 }  
 	 r e t u r n   f a l s e ;  
 }  
  
 f u n c t i o n   i s _ s c ( ) {  
 	 i f   ( _ u r l . i n d e x O f ( s i m _ c h i n e s e )   ! =   - 1 ) {  
 	 	 r e t u r n   t r u e ; 	  
 	 } 	  
 	 r e t u r n   f a l s e ;  
 }  
  
 f u n c t i o n   e a c _ p a g e ( s t r _ u r l ) {  
 	  
 	 i f   ( _ u r l . i n d e x O f ( s i m _ c h i n e s e )   ! =   - 1 ) {  
 	 	 i f   ( i s t e s t ( _ u r l ) ) {  
 	 	 	 l i n k 7   =   t e s t _ u r l   +   s t r _ u r l ; 	  
 	 	 } e l s e {  
 	 	 	 l i n k 7   =   p r o d _ u r l   +   s t r _ u r l ;  
 	 	 }  
 	 	 l i n k 7   =   l i n k 7 . r e p l a c e ( s i m _ c h i n e s e , c h i n e s e ) ;   	  
 	 	 t o p . l o c a t i o n . h r e f =   l i n k 7 ;  
 	 } e l s e {  
 	 	 t o p . l o c a t i o n . h r e f =   s t r _ u r l ;  
 	 }  
 	 	  
 }  
  
  
 f u n c t i o n   g b _ p a g e ( s t r _ u r l ) {  
 	 i f   ( i s t e s t ( _ u r l ) ) {  
 	 	 l i n k   =   s c _ s v r   +   t e s t _ s v r   +   s t r _ u r l ; 	  
 	 } e l s e {  
 	 	 l i n k   =   s c _ s v r   +   p r o d _ s v r   +   s t r _ u r l ;  
 	 }  
 	 t o p . l o c a t i o n . h r e f   =   l i n k ;  
 }  
  
 f u n c t i o n   s i m p _ c h i n e s e ( ) {  
 	 l i n k   =   t o p . l o c a t i o n . h r e f ;  
 	 i f   ( l i n k . i n d e x O f ( s i m _ c h i n e s e )   ! =   - 1 )    
 	 {  
 	 	 t r a d _ c h i n e s e ( ) ;  
 	 }  
 	 e l s e  
 	 {  
 	 	 s i m p _ c h i n e s e 2 ( ) ; 	 	  
 	 }  
 }  
  
 f u n c t i o n   s i m p _ c h i n e s e 2 ( ) {  
 	 l i n k   =   t o p . l o c a t i o n . h r e f ;  
 	 i f   ( l i n k . i n d e x O f ( e n g l i s h )   ! =   - 1 ) {  
 	 	 l i n k   =   l i n k . r e p l a c e ( e n g l i s h , c h i n e s e ) ;   	  
 	 }  
 	 l i n k   =   l i n k . r e p l a c e ( c h i n e s e , s i m _ c h i n e s e ) ; 	  
 	 / / a l e r t ( l i n k ) ;  
 	 t o p . l o c a t i o n . h r e f   =   l i n k ;  
  
 }  
  
 f u n c t i o n   g r a _ s i m p _ c h i n e s e ( ) {  
 	 l i n k 4   =   t o p . l o c a t i o n . h r e f ;  
 	 i f   ( l i n k 4 . i n d e x O f ( e n g l i s h )   ! =   - 1 ) {  
 	 	 l i n k 4   =   l i n k 4 . r e p l a c e ( e n g l i s h , c h i n e s e ) ;   	  
 	 }  
 	  
 	 l i n k 4   =   l i n k 4 . r e p l a c e ( c h i n e s e , s i m _ c h i n e s e ) ; 	  
 	 t o p . l o c a t i o n . h r e f   =   l i n k 4 ;  
 	  
 }  
  
 f u n c t i o n   t r a d _ c h i n e s e ( ) {  
 	  
 	 l i n k 2   =   t o p . l o c a t i o n . h r e f ;  
 	  
 	 i f   ( l i n k 2 . i n d e x O f ( s i m _ c h i n e s e )   ! =   - 1 )   {  
 	 	 l i n k 2   =   l i n k 2 . r e p l a c e ( s i m _ c h i n e s e , c h i n e s e ) ; 	  
 	 }  
 	 i f   ( l i n k 2 . i n d e x O f ( e n g l i s h )   ! =   - 1 ) {  
 	 	 l i n k 2   =   l i n k 2 . r e p l a c e ( e n g l i s h , c h i n e s e ) ;   	  
 	 }  
 	 t o p . l o c a t i o n . h r e f = l i n k 2 ;  
 }  
  
 f u n c t i o n   s t n _ e n g l i s h ( ) {  
 	  
 	 l i n k 2   =   t o p . l o c a t i o n . h r e f ;  
 	 i f   ( l i n k 2 . i n d e x O f ( s i m _ c h i n e s e )   ! =   - 1 ) {  
 	 	 l i n k 2   =   l i n k 2 . r e p l a c e ( s i m _ c h i n e s e , e n g l i s h ) ; 	  
 	 }  
 	 i f   ( l i n k 2 . i n d e x O f ( c h i n e s e )   ! =   - 1 ) {  
 	 	 l i n k 2   =   l i n k 2 . r e p l a c e ( c h i n e s e , e n g l i s h ) ;   	  
 	 }  
 	 i f   ( l i n k 2 . i n d e x O f ( ' # t o p ' )   ! =   - 1 ) {  
 	 	 l i n k 2   =   l i n k 2 . r e p l a c e   ( ' # t o p ' , ' ' ) ;  
 	 }  
 	 i f   ( l i n k 2 . i n d e x O f ( " t a x / g u i d e / c b i r " )   ! =   - 1 ) {  
 	 	 l i n k 2   =   l i n k 2 . r e p l a c e ( " c b i r " ,   " e b i r " ) ;  
 	 }  
 	 i f   ( l i n k 2 . i n d e x O f ( " t a x / g u i d e / m b i r " )   ! =   - 1 ) {  
 	 	 l i n k 2   =   l i n k 2 . r e p l a c e ( " m b i r " ,   " e b i r " ) ;  
 	 }  
 	  
 	 t o p . l o c a t i o n . h r e f = l i n k 2 ;  
 }  
 / *  
 f u n c t i o n   G I C _ s e a r c h ( ) {  
 	 v a r   c u r r e n t U r l   =   l o c a t i o n . h r e f . t o S t r i n g ( ) ;  
 	 v a r   u r l   =   " h t t p : / / s e a r c h 2 . i n f o . g o v . h k / c g i - b i n / s e . c g i " ;  
 	 v a r   S e a r c h W i n ;  
 	 v a r   m o d e   =   d o c u m e n t . s e a r c h . m o d e . v a l u e ;  
 	 v a r   q u   =   d o c u m e n t . s e a r c h . q u . v a l u e ;  
  
 	 S e a r c h W i n = w i n d o w . o p e n ( e v a l ( ' u r l   + " ? m o d e = "   +   m o d e   +   " & l a = 1 & g r _ 1 = i r d & m a = 1 0 0 & f t _ 1 = a l l t y p e & s o = 0 & n u = 1 0 & c a = 0 & t a = a l l & f u = & f d = & q u = "   +   q u ' ) ) ;  
 	 d o c u m e n t . l o c a t i o n . h r e f   =   c u r r e n t U r l ;  
 	 S e a r c h W i n . f o c u s ( ) ;  
 }  
  
  
  
 	 S e a r c h W i n = w i n d o w . o p e n ( e v a l ( ' u r l   + " ? m o d e = 1 1 9 & l a = 1 & g r _ 1 = i r d & m a = 1 0 0 & f t _ 1 = a l l t y p e & s o = 0 & n u = 1 0 & c a = 0 & t a = a l l & f u = & f d = & q u = "   +   q u ' ) ) ;  
 	 d o c u m e n t . l o c a t i o n . h r e f   =   c u r r e n t U r l ;  
 	 S e a r c h W i n . f o c u s ( ) ;  
 }  
 * /  
 / /   Y a h o o   s e a r c h  
 f u n c t i o n   G I C _ s e a r c h ( ) {  
 	 v a r   c u r r e n t U r l   =   l o c a t i o n . h r e f . t o S t r i n g ( ) ;  
 	 v a r   S e a r c h W i n ,   p g _ l g ,   u i _ l g ,   u i _ c s   ; 	 	 / / u i _ c s   :   C h a r s e t  
 	 v a r   q u   =   d o c u m e n t . s e a r c h . q u . v a l u e ;  
     v a r   t m p   =   " " ;  
  
 	 i f   ( _ u r l . i n d e x O f ( s i m _ c h i n e s e )   ! =   - 1 )   {  
 	 	 u i _ l g   =   " z h - c n " ;  
 	 	 p g _ l g   =   " c h s " ; 	  
 	 	 u i _ c s   =   " u t f 8 " ;  
 	 	 t m p = " & o e = U T F - 8 & i e = U T F - 8 & i n l a n g = z h - C N "  
     } 	 e l s e   i f   ( _ u r l . i n d e x O f ( c h i n e s e )   ! =   - 1 )   {  
     	 u i _ l g   =   " z h - h k " ;  
 	 	 p g _ l g   =   " c h i " ; 	  
 	 	 u i _ c s   =   " b i g 5 " ;  
     } 	 e l s e   {  
     	 u i _ l g   =   " e n " ;  
 	 	 p g _ l g   =   " e n g " ;  
 	 	 u i _ c s   =   " b i g 5 " ;  
     } 	  
  
 	 i f   ( q u . l e n g t h = = 0 )   {  
 / / a d a 	 	 v a r   u r l   =   " h t t p : / / w w w . i r d . g o v . h k / " + p g _ l g + " / a d v _ s e a r c h . h t m ? g p 0 = i r d _ h o m e & g p 1 = i r d _ h o m e " ;  
 	 	 v a r   u r l   =   " h t t p : / / w w w . i r d . g o v . h k / " + p g _ l g + " / a d v _ s e a r c h . h t m ? u i _ c h a r s e t = " + u i _ c s + " & g p 0 = i r d _ h o m e & g p 1 = i r d _ h o m e " + t m p ;  
 	 	 S e a r c h W i n = w i n d o w . o p e n ( e v a l ( ' u r l   + " & u i _ l a n g = "   +   u i _ l g ' ) ) ;  
 	 }   e l s e   {  
 / / a d a   	 v a r   u r l   =   " h t t p : / / s e a r c h . g o v . h k / s e a r c h . h t m l ? t p l _ i d = i r d & w e b = t h i s & g p 0 = i r d _ h o m e & g p 1 = i r d _ h o m e " ;  
 	 	 v a r   u r l   =   " h t t p : / / s e a r c h . g o v . h k / s e a r c h . h t m l ? u i _ c h a r s e t = " + u i _ c s +   " & t p l _ i d = i r d & w e b = t h i s & g p 0 = i r d _ h o m e & g p 1 = i r d _ h o m e " + t m p ;  
 	 	 S e a r c h W i n = w i n d o w . o p e n ( e v a l ( ' u r l   + " & u i _ l a n g = "   +   u i _ l g   +   " & q u e r y = "   +   q u ' ) ) ;  
 	 }  
 	 d o c u m e n t . l o c a t i o n . h r e f   =   c u r r e n t U r l ;  
 	 S e a r c h W i n . f o c u s ( ) ;  
 }  
  
 f u n c t i o n   G I C _ s e a r c h g b ( ) {  
 	 v a r   c u r r e n t U r l   =   l o c a t i o n . h r e f . t o S t r i n g ( ) ;  
 	 v a r   S e a r c h W i n ;  
 	 v a r   q u   =   d o c u m e n t . s e a r c h . q u . v a l u e ;  
 	 v a r   u i _ l g   =   " z h - c n " ;  
  
 	 i f   ( q u . l e n g t h = = 0 )   {  
 	 	 v a r   u r l   =   " w w w . i r d . g o v . h k / c h s / a d v _ s e a r c h . h t m ? g p 0 = i r d _ h o m e & g p 1 = i r d _ h o m e " ;  
 	 	 S e a r c h W i n = w i n d o w . o p e n ( e v a l ( ' u r l   + " & u i _ l a n g = "   +   u i _ l g ' ) ) ;  
 	 }   e l s e   {  
 	 	 v a r   u r l   =   " h t t p : / / s e a r c h . g o v . h k / s e a r c h . h t m l ? t p l _ i d = i r d & w e b = t h i s & g p 0 = i r d _ h o m e & g p 1 = i r d _ h o m e " ;  
 	 	 S e a r c h W i n = w i n d o w . o p e n ( e v a l ( ' u r l   + " & u i _ l a n g = "   +   u i _ l g   +   " & q u e r y = "   +   q u ' ) ) ;  
 	 }  
  
 	 d o c u m e n t . l o c a t i o n . h r e f   =   c u r r e n t U r l ;  
 	 S e a r c h W i n . f o c u s ( ) ;  
 }  
  
 f u n c t i o n   G I C _ s e a r c h c h s ( ) {  
 	 v a r   c u r r e n t U r l   =   l o c a t i o n . h r e f . t o S t r i n g ( ) ;  
 	 v a r   S e a r c h W i n ;  
 	 v a r   q u   =   d o c u m e n t . s e a r c h . q u . v a l u e ;  
 	 v a r   u i _ l g   =   " z h - c n " ;  
  
 	 i f   ( q u . l e n g t h = = 0 )   {  
 	 	 v a r   u r l   =   " h t t p : / / w w w . i r d . g o v . h k / c h s / a d v _ s e a r c h . h t m ? g p 0 = i r d _ h o m e & g p 1 = i r d _ h o m e " ;  
 	 	 S e a r c h W i n = w i n d o w . o p e n ( e v a l ( ' u r l   + " & u i _ l a n g = "   +   u i _ l g ' ) ) ;  
 	 }   e l s e   {  
 	 	 v a r   u r l   =   " h t t p : / / s e a r c h . g o v . h k / s e a r c h . h t m l ? t p l _ i d = i r d & w e b = t h i s & g p 0 = i r d _ h o m e & g p 1 = i r d _ h o m e " ;  
 	 	 S e a r c h W i n = w i n d o w . o p e n ( e v a l ( ' u r l   + " & u i _ l a n g = "   +   u i _ l g   +   " & q u e r y = "   +   q u ' ) ) ;  
 	 }  
  
 	 d o c u m e n t . l o c a t i o n . h r e f   =   c u r r e n t U r l ;  
 	 S e a r c h W i n . f o c u s ( ) ;  
 }  
  
 f u n c t i o n   l a n g ( v e r s i o n , v e r s i o n 2 ) {  
 	 l i n k   =   l o c a t i o n . h r e f ;  
 	 e n g l i s h   =   " / e n g / " ;  
 	 c h i n e s e   =   " / c h i / " ;  
     s i m _ c h i n e s e   =   " / c h s / " ;  
 	  
 	 i f   ( v e r s i o n   = =   " e n g " )  
 	 { 	 	  
 	 	 i f   ( v e r s i o n 2   = =   " c h i " )  
 	 	 {  
 	 	 	 i f   ( l i n k . i n d e x O f ( " t a x / g u i d e / e b i r " )   ! =   - 1 ) {  
 	 	 	 	 l i n k   =   l i n k . r e p l a c e ( " e b i r " ,   " c b i r " ) ;  
 	 	 	 }  
 	 	 	  
 	 	 	 l i n k   =   l i n k . r e p l a c e   ( e n g l i s h ,   c h i n e s e ) ;  
 	 	 	 p a r e n t . l o c a t i o n . h r e f   =   l i n k ;  
 	 	 } e l s e   i f   ( ( v e r s i o n 2   = =   " g b " )   | |   ( v e r s i o n 2   = =   " c h s " ) )  
 	 	 {  
 	 	 	 i f   ( l i n k . i n d e x O f ( " t a x / g u i d e / e b i r " )   ! =   - 1 ) {  
 	 	 	 	 l i n k   =   l i n k . r e p l a c e ( " e b i r " ,   " c b i r " ) ;  
 	 	 	 }  
 / * 	 	 	 l i n k   =   l i n k . r e p l a c e   ( e n g l i s h ,   c h i n e s e ) ;  
 	 	 	 l i n k   =   l i n k . r e p l a c e ( " h t t p : / / " , s c _ s v r ) ;  
 * / 	 	 	  
 	 	 	 l i n k   =   l i n k . r e p l a c e   ( e n g l i s h ,   s i m _ c h i n e s e ) ;  
 	 	 	 p a r e n t . l o c a t i o n . h r e f   =   l i n k ;  
 	 	 } 	 	  
 	 }  
  
 }  
  
 / /   g e n e r a l   f u n c t i o n s  
 f u n c t i o n   w i n _ p o p u p ( s t r _ u r l , s t r _ w i n n a m e , i n t _ w i d t h , i n t _ h e i g h t , s t r _ f e a t u r e ) {  
 	 i f   ( ! s t r _ f e a t u r e ) {  
 	 	 s t r _ f e a t u r e   =   ' t o o l b a r s = ' 	 +   ' n o '  
 	 	 +   ' , t o p = ' 	 	 	 +   ' 1 0 0 '  
 	 	 +   ' , l e f t = ' 	 	 	 +   ' 1 0 0 '  
 	 	 +   ' , w i d t h = '   	 	 	 +   i n t _ w i d t h  
 	 	 +   ' , h e i g h t = '   	 	 	 +   i n t _ h e i g h t  
 	 	 +   ' , s c r o l l b a r s = ' 	 	 +   ' n o '  
 	 	 +   ' , r e s i z a b l e = ' 	 	 	 +   ' n o '  
 	 	 +   ' , s c r e e n X = ' 	 	 	 +   ' 0 '  
 	 	 +   ' , s c r e e n Y = ' 	 	 	 +   ' 0 '  
 	 	 +   ' , s t a t u s = ' 	 	 	 +   ' n o '    
 	 }  
 	  
 	 v a r   w i n   =   w i n d o w . o p e n ( s t r _ u r l ,   s t r _ w i n n a m e   ,   s t r _ f e a t u r e ) ; 	 	  
 	 w i n . f o c u s ( ) ;  
 	 / / r e t u r n   w i n ;  
 }  
  
 / /   u r l   f u n c t i o n s  
  
 f u n c t i o n   g e t f o l d e r n a m e ( ) {  
 	    
 	   p r i v a t e _ s t r _ p a t h   =   l o c a t i o n . h r e f ;  
 	   p r i v a t e _ i n t _ l e n _ p a t h   =   p r i v a t e _ s t r _ p a t h . l e n g t h ;  
 	   p r i v a t e _ s t r _ s u b p a t h   =   p r i v a t e _ s t r _ p a t h . s u b s t r i n g   ( 7 , p r i v a t e _ i n t _ l e n _ p a t h ) ;  
 	   p r i v a t e _ i n t _ s u b p a t h i d   =   p r i v a t e _ s t r _ s u b p a t h . l a s t I n d e x O f ( " / " ) ;  
 	   p r i v a t e _ s t r _ s u b p a t h   =   p r i v a t e _ s t r _ s u b p a t h . s u b s t r i n g ( 0 , p r i v a t e _ i n t _ s u b p a t h i d ) ;  
 	   p r i v a t e _ i n t _ s u b p a t h i d   =   p r i v a t e _ s t r _ s u b p a t h . l a s t I n d e x O f ( " / " ) ;  
 	   p r i v a t e _ i n t _ l e n _ p a t h   =   p r i v a t e _ s t r _ s u b p a t h . l e n g t h ;  
 	   p r i v a t e _ s t r _ s u b p a t h   =   p r i v a t e _ s t r _ s u b p a t h . s u b s t r i n g   ( p r i v a t e _ s t r _ s u b p a t h + 1 , p r i v a t e _ i n t _ l e n _ p a t h ) ;  
 	   r e t u r n   p r i v a t e _ s t r _ s u b p a t h ;  
 	    
 }  
  
 f u n c t i o n   g e t f i l e n a m e ( ) {  
 	  
 	 p r i v a t e _ s t r _ p a t h   =   l o c a t i o n . h r e f ;  
 	 p r i v a t e _ i n t _ f i l e i d   =   p r i v a t e _ s t r _ p a t h . l a s t I n d e x O f ( " / " ) ;  
 	 p r i v a t e _ i n t _ f i l e s u b i d   =   p r i v a t e _ s t r _ p a t h . l a s t I n d e x O f ( " . " ) ;  
 	 p r i v a t e _ s t r _ f i l e n a m e   =   p r i v a t e _ s t r _ p a t h . s u b s t r i n g ( p r i v a t e _ i n t _ f i l e i d + 1 , p r i v a t e _ i n t _ f i l e s u b i d ) ;  
 	 r e t u r n   p r i v a t e _ s t r _ f i l e n a m e ;  
 }  
  
  
 / / s w a p   i m a g e   f u n c t i o n s  
 f u n c t i o n   s i _ o v e r ( s t r _ i m a g e _ n a m e   ,   s t r _ p a t h ) {  
 	 d o c u m e n t [ s t r _ i m a g e _ n a m e ] . s r c   =   s t r _ p a t h ;  
 }  
  
 f u n c t i o n   s i _ o u t ( s t r _ i m a g e _ n a m e   ,   s t r _ p a t h ) {  
 	 d o c u m e n t [ s t r _ i m a g e _ n a m e ] . s r c   =   s t r _ p a t h ;  
 }  
  
 / /   S t r i n g   f u n c t i o n s  
 f u n c t i o n   i s _ v a l i d _ l e n g t h ( s t r _ p a r a m ,   i n t _ l e n g t h ) {  
 	 i f   ( ( s t r _ p a r a m . l e n g t h   >   i n t _ l e n g t h   )   | |   ( s t r _ p a r a m . l e n g t h   = =   0   ) ) {  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 r e t u r n   t r u e ;  
 }  
  
 f u n c t i o n   p r i n t m e n u i c o n ( i n t L v ) {                  
                 v a r   s t r P a t h L v   =   " " ;  
                  
                 f o r   ( i n t I   =   0 ;   i n t I   <   i n t L v ;   i n t I + + )  
                   s t r P a t h L v   + =   " . . / " ;  
  
 	  
 	 l i n k   =   t o p . l o c a t i o n . h r e f ; 	  
 / / 	 i f   ( l i n k . i n d e x O f ( s c _ s v r )   ! =   - 1 )  
 	 i f   ( l i n k . i n d e x O f ( s i m _ c h i n e s e )   ! =   - 1 )  
 	 {  
 	 	 d o c u m e n t . w r i t e ( " < k a n h a n b y p a s s > " ) ;  
 	 	 d o c u m e n t . w r i t e ( " < a   h r e f = \ " j a v a s c r i p t : s i m p _ c h i n e s e ( ) ; \ "   o n M o u s e O u t = \ " M M _ s w a p I m g R e s t o r e ( ) \ "     o n M o u s e O v e r = \ " M M _ s w a p I m a g e ( ' m a i n b a r 3 ' , ' ' , ' "   +   s t r P a t h L v   +   " i m a g e s / g _ m e n u / g b / m a i n b a r 3 _ f 2 . g i f ' , 1 ) \ "   > < i m g   n a m e = \ " m a i n b a r 3 \ "   s r c = \ " "   +   s t r P a t h L v   +   " i m a g e s / g _ m e n u / g b / m a i n b a r 3 . g i f \ "   w i d t h = \ " 4 9 \ "   h e i g h t = \ " 2 0 \ "   b o r d e r = \ " 0 \ "   a l t = \ " A~ÔšHr\ " > < / a > " ) ;  
 / / 	 	 d o c u m e n t . w r i t e ( " < a   h r e f = \ " j a v a s c r i p t : s i m p _ c h i n e s e ( ) ; \ "   o n M o u s e O u t = \ " M M _ s w a p I m g R e s t o r e ( ) \ "     o n M o u s e O v e r = \ " M M _ s w a p I m a g e ( ' m a i n b a r 3 ' , ' ' , ' "   +   s t r P a t h L v   +   " i m a g e s / g _ m e n u / c h s / m a i n b a r 3 _ f 2 . g i f ' , 1 ) \ "   > < i m g   n a m e = \ " m a i n b a r 3 \ "   s r c = \ " "   +   s t r P a t h L v   +   " i m a g e s / g _ m e n u / c h s / m a i n b a r 3 . g i f \ "   w i d t h = \ " 4 9 \ "   h e i g h t = \ " 2 0 \ "   b o r d e r = \ " 0 \ "   a l t = \ " A~ÔšHr\ " > < / a > " ) ;  
 	 	 d o c u m e n t . w r i t e ( " < / k a n h a n b y p a s s > " ) ;  
 	 }  
 	 e l s e  
 	 {  
 	 	 d o c u m e n t . w r i t e ( " < k a n h a n b y p a s s > " ) ;  
 	 	 d o c u m e n t . w r i t e ( " < a   h r e f = \ " j a v a s c r i p t : s i m p _ c h i n e s e ( ) ; \ "   o n M o u s e O u t = \ " M M _ s w a p I m g R e s t o r e ( ) \ "     o n M o u s e O v e r = \ " M M _ s w a p I m a g e ( ' m a i n b a r 3 ' , ' ' , ' "   +   s t r P a t h L v   +   " i m a g e s / g _ m e n u / c h / m a i n b a r 3 _ f 2 . g i f ' , 1 ) \ "   > < i m g   n a m e = \ " m a i n b a r 3 \ "   s r c = \ " "   +   s t r P a t h L v   +   " i m a g e s / g _ m e n u / c h / m a i n b a r 3 . g i f \ "   w i d t h = \ " 4 9 \ "   h e i g h t = \ " 2 0 \ "   b o r d e r = \ " 0 \ "   a l t = \ " !|ÔšHr\ " > < / a > " ) ;  
 	 	 d o c u m e n t . w r i t e ( " < / k a n h a n b y p a s s > " ) ;  
 	 }  
 }  
  
 / /   f o r   a p p l i c a t i o n ,   e g   e T A X  
 f u n c t i o n   o p e n w i n d o w 8 0 0 x 5 3 0 ( u r l , w i n d o w N a m e )   {  
   i f   ( w i n d o w N a m e   = =   u n d e f i n e d )   {  
   w i n d o w N a m e   =   " _ b l a n k " ;  
   }  
   v a r   t r a n s l a t e d U r l   =   u r l ;  
   v a r   n e w w i n   =   w i n d o w . o p e n ( t r a n s l a t e d U r l ,   w i n d o w N a m e ,   ' w i d t h = 8 0 0 p x , h e i g h t = 5 3 0 p x , t o p = 0 , l e f t = 0 , d i r e c t o r i e s = n o , l o c a t i o n = n o , m e n u b a r = n o , s c r o l l b a r s = y e s , s t a t u s = y e s , t o o l b a r = n o , r e s i z a b l e = y e s ' ) ;  
   n e w w i n . f o c u s ( ) ;     / /   s e t   f o c u s   t o   n e w   w i n d o w  
   r e t u r n   f a l s e ;  
 }  
 
