ÿþ/ * *  
   *   S a t u r a   p r o j e c t  
   *   T h i s   f i l e   i s   p a r t   o f   t h e   S a t u r a   C M S .  
   *  
   *   @ a u t h o r   J a n   `a b a t  
   * /  
  
 w i n d o w . a d d E v e n t ( ' d o m r e a d y ' ,   f u n c t i o n ( e )   {  
     i f   ( $ ( ' i m a g e - b a n n e r ' ) ) {  
         v a r   s l i d e n e w s   =   n e w   v i e w e r ( $ $ ( ' # i m a g e - b a n n e r   d i v . i m a g e - b ) ' ) , {  
             m o d e :   ' a l p h a ' ,  
             i n t e r v a l :   5 0 0 0  
         } ) ;  
         s l i d e n e w s . p l a y ( s l i d e n e w s ) ;  
         i f   ( $ ( ' i m a g e - b a n n e r - l ' )   & &   $ ( ' i m a g e - b a n n e r - r ' ) ) {  
             $ ( ' i m a g e - b a n n e r - l ' ) . a d d E v e n t ( ' c l i c k ' , s l i d e n e w s . p r e v i o u s . b i n d ( s l i d e n e w s ) ) ;  
             $ ( ' i m a g e - b a n n e r - r ' ) . a d d E v e n t ( ' c l i c k ' , s l i d e n e w s . n e x t . b i n d ( s l i d e n e w s ) ) ;  
         }  
     }  
  
     v a r   a c c o r d i o n   =   n e w   F x . A c c o r d i o n ( $ $ ( ' . i n d e x - b o x - s c i   h 2 ' ) ,   $ $ ( ' . i n d e x - b o x - s c i   u l ' ) ,   {  
  
         o n A c t i v e :   f u n c t i o n ( t o g g l e r ,   e l e m e n t ) {  
             t o g g l e r . a d d C l a s s ( ' a c t i v e ' ) ;  
         } ,  
         o n B a c k g r o u n d :   f u n c t i o n ( t o g g l e r ,   e l e m e n t ) {  
             t o g g l e r . r e m o v e C l a s s ( ' a c t i v e ' ) ;  
         } ,  
         t r i g g e r :   ' m o u s e o v e r '  
     } ) ;  
 } ) ;  
  
 f u n c t i o n   g m a p s ( )   {  
     i f   ( G B r o w s e r I s C o m p a t i b l e ( ) )   {  
         v a r   m a p   =   n e w   G M a p 2 ( d o c u m e n t . g e t E l e m e n t B y I d ( " m a p - g o o g l e " ) ) ;  
         v a r   g e o   =   n e w   G C l i e n t G e o c o d e r ( ) ;  
          
         / /   d e f a u l t   p o s i t i o n   +   z o o m  
         g e o . g e t L a t L n g ( ' N á r o d n í   o b r a n y   2 6 ,   P r a h a ' , f u n c t i o n (   p o i n t   ) { m a p . s e t C e n t e r ( p o i n t ,   1 6 ) ; } ) ;  
          
         / /   i c o n   b r e w e r y  
         v a r   w d   =   n e w   G I c o n ( G _ D E F A U L T _ I C O N ) ;  
         w d . i m a g e   =   " . . / t h e m e s / w e b d e c o r / i m a g e s / w d - m a p s - i c o n . p n g " ;  
         w d . i c o n S i z e   =   n e w   G S i z e ( 2 6 ,   4 0 ) ;  
         w d . s h a d o w   =   " . . / t h e m e s / w e b d e c o r / i m a g e s / w d - m a p s - i c o n - s h a d o w . p n g " ;  
         w d . s h a d o w S i z e   =   n e w   G S i z e ( 4 6 ,   4 1 ) ;  
         v a r   w d O p t i o n s   =   {   i c o n : w d   } ;  
          
         / /   a d d   m a r k e r  
         f u n c t i o n   c r e a t e M a r k e r ( i c o n , a d d r e s s , i n f o ) {  
             g e o . g e t L a t L n g ( a d d r e s s , f u n c t i o n ( p o i n t ) {  
                 v a r   m a r k e r   =   n e w   G M a r k e r ( p o i n t ,   i c o n ) ;  
                  
                 G E v e n t . a d d L i s t e n e r ( m a r k e r ,   " c l i c k " ,   f u n c t i o n   ( )   {  
                     m a r k e r . o p e n I n f o W i n d o w H t m l ( i n f o ) ;  
                 } ) ;  
                  
                 m a p . a d d O v e r l a y ( m a r k e r ) ;  
             } ) ;  
         }  
          
         c r e a t e M a r k e r ( w d O p t i o n s , ' N á r o d n í   o b r a n y   3 5 ,   P r a h a ' , ' < s t r o n g > W E B D E C O R   s t u d i o < / s t r o n g > < b r   / > < a   h r e f = " m a i l t o : i n f o @ w e b d e c o r . c z " > i n f o @ w e b d e c o r . c z < / a > ' ) ;  
          
         m a p . a d d C o n t r o l ( n e w   G S m a l l M a p C o n t r o l ( ) ) ;  
         / / m a p . a d d C o n t r o l ( n e w   G M a p T y p e C o n t r o l ( ) ) ;  
  
     }  
 } 
