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