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