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