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