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