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