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