ÿþf u n c t i o n   v i e w ( x ,   y ,   n a m e )   { 
 
 s c r = ' 0 ' ; 
 
 i f   ( s c r e e n . w i d t h < x ) 
 
 { 
 
 	 x = s c r e e n . w i d t h - 2 0 0 ; 
 
 	 s c r = ' 1 ' ; 
 
 } 
 
 i f   ( s c r e e n . h e i g h t < y ) 
 
 { 
 
 	 y = s c r e e n . h e i g h t - 1 0 0 ; 
 
 	 s c r = ' 1 ' ; 
 
 } 
 
 n e w w i n   =   w i n d o w . o p e n ( " " , " _ b l a n k " , " w i d t h = " + x + " , h e i g h t = " + y + " ,   s c r o l l b a r s = " + s c r + " ,   s t a t u s = 0 " ) ;   
 
 n e w w i n . d o c u m e n t . w r i t e ( ' < h t m l > < h e a d > < t i t l e > H o m e p a g e   v o n   H e l e n e   B e i t l e r < / t i t l e > < l i n k   h r e f = " s t y l e . c s s "   r e l = " s t y l e s h e e t " > < / h e a d > < b o d y   b g c o l o r = # f f f > < i m g   s r c = ' + n a m e + ' > < / b o d y > < / h t m l > ' ) ; } 
 
 
 
 
 
 d d = d o c u m e n t ;   N S = ( d d . l a y e r s ) ? 1 : 0 ; I E = ( d d . a l l ) ? 1 : 0 ; D O M = ( d d . g e t E l e m e n t B y I d ) ? 1 : 0 
 
 f u n c t i o n   M M _ s w a p I m g R e s t o r e ( )   {   / / v 3 . 0 
 
     v a r   i , x , a = d o c u m e n t . M M _ s r ;   f o r ( i = 0 ; a & & i < a . l e n g t h & & ( x = a [ i ] ) & & x . o S r c ; i + + )   x . s r c = x . o S r c ; 
 
 } 
 
 
 
 f u n c t i o n   M M _ p r e l o a d I m a g e s ( )   {   / / v 3 . 0 
 
     v a r   d = d o c u m e n t ;   i f ( d . i m a g e s ) {   i f ( ! d . M M _ p )   d . M M _ p = n e w   A r r a y ( ) ; 
 
         v a r   i , j = d . M M _ p . l e n g t h , a = M M _ p r e l o a d I m a g e s . a r g u m e n t s ;   f o r ( i = 0 ;   i < a . l e n g t h ;   i + + ) 
 
         i f   ( a [ i ] . i n d e x O f ( " # " ) ! = 0 ) {   d . M M _ p [ j ] = n e w   I m a g e ;   d . M M _ p [ j + + ] . s r c = a [ i ] ; } } 
 
 } 
 
 
 
 f u n c t i o n   M M _ f i n d O b j ( n ,   d )   {   / / v 4 . 0 1 
 
     v a r   p , i , x ;     i f ( ! d )   d = d o c u m e n t ;   i f ( ( p = n . i n d e x O f ( " ? " ) ) > 0 & & p a r e n t . f r a m e s . l e n g t h )   { 
 
         d = p a r e n t . f r a m e s [ n . s u b s t r i n g ( p + 1 ) ] . d o c u m e n t ;   n = n . s u b s t r i n g ( 0 , p ) ; } 
 
     i f ( ! ( x = d [ n ] ) & & d . a l l )   x = d . a l l [ n ] ;   f o r   ( i = 0 ; ! x & & i < d . f o r m s . l e n g t h ; i + + )   x = d . f o r m s [ i ] [ n ] ; 
 
     f o r ( i = 0 ; ! x & & d . l a y e r s & & i < d . l a y e r s . l e n g t h ; i + + )   x = M M _ f i n d O b j ( n , d . l a y e r s [ i ] . d o c u m e n t ) ; 
 
     i f ( ! x   & &   d . g e t E l e m e n t B y I d )   x = d . g e t E l e m e n t B y I d ( n ) ;   r e t u r n   x ; 
 
 } 
 
 
 
 f u n c t i o n   M M _ s w a p I m a g e ( )   {   / / v 3 . 0 
 
     v a r   i , j = 0 , x , a = M M _ s w a p I m a g e . a r g u m e n t s ;   d o c u m e n t . M M _ s r = n e w   A r r a y ;   f o r ( i = 0 ; i < ( a . l e n g t h - 2 ) ; i + = 3 ) 
 
       i f   ( ( x = M M _ f i n d O b j ( a [ i ] ) ) ! = n u l l ) { d o c u m e n t . M M _ s r [ j + + ] = x ;   i f ( ! x . o S r c )   x . o S r c = x . s r c ;   x . s r c = a [ i + 2 ] ; } 
 
 } 
 
 
 
 
 
 v a r   n e w W i n d o w   =   n u l l ; 
 
 f u n c t i o n   o p e n P h o t o ( l o c ,   p a r )   { 
 
     / / i f   ( n e w W i n d o w ! = n u l l )   r e s   =   n e w W i n d o w . c l o s e ( ) ; 
 
     n e w W i n d o w   =   w i n d o w . o p e n   ( l o c ,   " T o u r " ,   p a r ) ; 
 
     n e w W i n d o w . f o c u s ( ) ; 
 
 } 
 
 
 
 
 
 f u n c t i o n   M M _ r e l o a d P a g e ( i n i t )   {     / / r e l o a d s   t h e   w i n d o w   i f   N a v 4   r e s i z e d 
 
     i f   ( i n i t = = t r u e )   w i t h   ( n a v i g a t o r )   { i f   ( ( a p p N a m e = = " N e t s c a p e " ) & & ( p a r s e I n t ( a p p V e r s i o n ) = = 4 ) )   { 
 
         d o c u m e n t . M M _ p g W = i n n e r W i d t h ;   d o c u m e n t . M M _ p g H = i n n e r H e i g h t ;   o n r e s i z e = M M _ r e l o a d P a g e ;   } } 
 
     e l s e   i f   ( i n n e r W i d t h ! = d o c u m e n t . M M _ p g W   | |   i n n e r H e i g h t ! = d o c u m e n t . M M _ p g H )   l o c a t i o n . r e l o a d ( ) ; 
 
 } 
 
 M M _ r e l o a d P a g e ( t r u e ) ; 
