ÿþ 
 v a r   a = 1 ;  
 v a r   c = 1 ;  
 v a r   t ;  
 t o t a l   =   3 ;  
 v a r   i m g   =   n e w   A r r a y ( ) ;  
 v a r   e n d   =   n e w   A r r a y ( ) ;  
 v a r   l e g   =   n e w   A r r a y ( ) ;  
 i m g [ 1 ]   =   " b a c k g r o u n d - i m a g e :   u r l ( i m a g e s / b a n n e r s / m e t a l t e x . g i f ) " ;  
 e n d [ 1 ]   =   " i n d e x . p h p / c o m p o n e n t / b a n n e r s / c l i c k / 4 5 . h t m l " ;  
 l e g [ 1 ]   =   "   -   w w w . m e t a l t e x . c o m . b r   -   " ;  
  
 i m g [ 2 ]   =   " b a c k g r o u n d - i m a g e :   u r l ( i m a g e s / s t o r i e s / t v / 0 0 2 4 . j p g ) " ;  
 e n d [ 2 ]   =   " i n d e x . p h p / m a t e m a t i c a - p a r a - e l e t r o n i c a . h t m l " ;  
 l e g [ 2 ]   =   " M a t e m á t i c a   p a r a   e l e t r ô n i c a " ;  
  
 i m g [ 1 ]   =   " b a c k g r o u n d - i m a g e :   u r l ( i m a g e s / s t o r i e s / t v / o b r . p n g ) " ;  
 e n d [ 1 ]   =   " h t t p : / / w w w . o b r . o r g . b r " ;  
 l e g [ 1 ]   =   " O l i m p í a d a   B r a s i l e i r a   d e   R o b ó t i c a " ;  
  
  
 f u n c t i o n   t i m e d C o u n t ( )  
 {  
 s u m i r ( c ) ;  
 i f ( c = = 3 )   {   c = 0 ;   }  
 c = c + 1 ;  
 t = s e t T i m e o u t ( " t i m e d C o u n t ( ) " , 4 0 0 0 ) ;  
  
 }  
  
  
  
 f u n c t i o n   s u m i r ( o q u e )  
 {  
 f o r ( i = 1 ;   i < = 3 ;   i + + ) {  
   i f ( i = = o q u e ) {  
     d o c u m e n t . g e t E l e m e n t B y I d ( " t v " + i ) . s t y l e . d i s p l a y = " b l o c k " ;  
   }   e l s e   {  
     d o c u m e n t . g e t E l e m e n t B y I d ( " t v " + i ) . s t y l e . d i s p l a y = " n o n e " ;  
   }  
 }  
 }  
  
  
 i f ( a = = 0 ) {  
 f o r ( i = 1 ; i < = t o t a l ; i + + ) {  
 	 d o c u m e n t . w r i t e ( " < d i v   i d = ' t v " +   i   +   " '   s t y l e = ' " +   i m g [ i ]   +   " '   o n C l i c k = ' p a r e n t . l o c a t i o n = \ " "   +   e n d [ i ]   +   " \ " ' > < d i v   c l a s s = ' l e g e n d a _ t v ' > < a   h r e f = ' "   +   e n d [ i ]   +   " ' > "   +   l e g [ i ]   +   " < / a > < / d i v > < / d i v > " ) ;  
 }  
  
 t i m e d C o u n t ( ) ;  
 }   e l s e   {  
     d o c u m e n t . w r i t e ( " < d i v   i d = ' t v 1 '   s t y l e = ' b a c k g r o u n d - i m a g e :   u r l ( i m a g e s / b a n n e r s / m e t a l t e x . g i f ) ' o n C l i c k = ' p a r e n t . l o c a t i o n = \ " i n d e x . p h p / c o m p o n e n t / b a n n e r s / c l i c k / 4 5 . h t m l \ " ' > < d i v   c l a s s = ' l e g e n d a _ t v ' > w w w . m e t a l t e x . c o m . b r < / d i v > < / d i v > " ) ;  
 }  
  
 
