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