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