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