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 S_ Ÿûy _ÿ\ŸSeg„vþVGr>f:yúQeg 
     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 _ 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 S_ ŸÀo;mîvhöeÿÝOX[ŸSegþVaŒ„vaŒ } 
     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 ] ; }  
 }  
  
 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   c h e c k l o g i n ( ) {  
 i f ( d o c u m e n t . l o g i n f o r m . l o g i n _ n a m e . v a l u e = = " " ) {  
     a l e r t ( " ÷‹“eQ(u7bT! " ) ;  
         d o c u m e n t . l o g i n f o r m . l o g i n _ n a m e . f o c u s ( ) ;  
         r e t u r n   f a l s e ;    
 }  
 i f ( d o c u m e n t . l o g i n f o r m . l o g i n _ p a s s w o r d . v a l u e = = " " ) {  
     a l e r t ( " ÷‹“eQÆ[x! " ) ;  
         d o c u m e n t . l o g i n f o r m . l o g i n _ p a s s w o r d . f o c u s ( ) ;  
         r e t u r n   f a l s e ;    
 }  
 i f ( d o c u m e n t . l o g i n f o r m . r e g _ c h e c k c o d e . v a l u e = = " " ) {  
     a l e r t ( " ÷‹“eQŒšÁ‹x! " ) ;  
         d o c u m e n t . l o g i n f o r m . r e g _ c h e c k c o d e . f o c u s ( ) ;  
         r e t u r n   f a l s e ;    
 }  
 }  
 f u n c t i o n   s h o w m e n u ( t h e i d , i c o n I D )  
 {  
 i f ( t h e i d . s t y l e . d i s p l a y   = = ' n o n e ' )  
 {  
 	 t h e i d . s t y l e . d i s p l a y   =   " " ;  
 	 i c o n I D . s r c = " i m a g e s / l e f t m e n u o f f . g i f " ;  
 }  
 e l s e {  
 	 t h e i d . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 i c o n I D . s r c = " i m a g e s / l e f t m e n u o n . g i f " ;  
 }  
 }  
 f u n c t i o n   a d m i n _ m e n u ( t h e i d , i c o n I D )  
 {  
 i f ( t h e i d . s t y l e . d i s p l a y   = = ' n o n e ' )  
 {  
 	 t h e i d . s t y l e . d i s p l a y   =   " " ;  
 	 i c o n I D . s r c = " i m a g e s / l e f t m e n u 1 . g i f " ;  
 }  
 e l s e {  
 	 t h e i d . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 i c o n I D . s r c = " i m a g e s / l e f t m e n u 1 . g i f " ;  
 }  
 }  
 f u n c t i o n   s o r t _ m e n u ( t h e i d , i c o n I D )  
 {  
 i f ( t h e i d . s t y l e . d i s p l a y   = = ' n o n e ' )  
 {  
 	 t h e i d . s t y l e . d i s p l a y   =   " " ;  
 	 i c o n I D . s r c = " i m a g e s / l e f t m e n u 2 . g i f " ;  
 }  
 e l s e {  
 	 t h e i d . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 i c o n I D . s r c = " i m a g e s / l e f t m e n u 2 . g i f " ;  
 }  
 }  
 f u n c t i o n   p r o d u c t _ m e n u ( t h e i d , i c o n I D )  
 {  
 i f ( t h e i d . s t y l e . d i s p l a y   = = ' n o n e ' )  
 {  
 	 t h e i d . s t y l e . d i s p l a y   =   " " ;  
 	 i c o n I D . s r c = " i m a g e s / l e f t m e n u 3 . g i f " ;  
 }  
 e l s e {  
 	 t h e i d . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 i c o n I D . s r c = " i m a g e s / l e f t m e n u 3 . g i f " ;  
 }  
 }  
 f u n c t i o n   p i c t r u e _ m e n u ( t h e i d , i c o n I D )  
 {  
 i f ( t h e i d . s t y l e . d i s p l a y   = = ' n o n e ' )  
 {  
 	 t h e i d . s t y l e . d i s p l a y   =   " " ;  
 	 i c o n I D . s r c = " i m a g e s / l e f t m e n u 5 . g i f " ;  
 }  
 e l s e {  
 	 t h e i d . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 i c o n I D . s r c = " i m a g e s / l e f t m e n u 5 . g i f " ;  
 }  
 }  
 f u n c t i o n   a r t i c l e _ m e n u ( t h e i d , i c o n I D )  
 {  
 i f ( t h e i d . s t y l e . d i s p l a y   = = ' n o n e ' )  
 {  
 	 t h e i d . s t y l e . d i s p l a y   =   " " ;  
 	 i c o n I D . s r c = " i m a g e s / l e f t m e n u 4 . g i f " ;  
 }  
 e l s e {  
 	 t h e i d . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 i c o n I D . s r c = " i m a g e s / l e f t m e n u 4 . g i f " ;  
 }  
 }  
 f u n c t i o n   s h o w s l e f t s o r t ( t h e i d , i c o n I D )  
 {  
 i f ( t h e i d . s t y l e . d i s p l a y   = = ' n o n e ' )  
 {  
 	 t h e i d . s t y l e . d i s p l a y   =   " " ;  
 	 i c o n I D . s r c = " " ;  
 }  
 e l s e {  
 	 t h e i d . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 i c o n I D . s r c = " " ;  
 }  
 }  
 f u n c t i o n   c h e c k s e c r e t d e l ( )  
 { c = w i n d o w . c o n f i r m ( " nx¤‹ Rd–Ù*N¡{tXT^7bT? " ) ;  
 i f ( c = = t r u e ) r e t u r n   t r u e ;  
 e l s e   r e t u r n   f a l s e ;  
 }  
 f u n c t i o n   c h e c k s o r t d e l ( )  
 { c = w i n d o w . c o n f i r m ( " nx¤‹ Rd–Ù*Npenc{|+RT? " ) ;  
 i f ( c = = t r u e ) r e t u r n   t r u e ;  
 e l s e   r e t u r n   f a l s e ;  
 }  
 f u n c t i o n   c h e c k s o n s o r t d e l ( )  
 { c = w i n d o w . c o n f i r m ( " nx¤‹ Rd–Ù*NpencP[{|T? " ) ;  
 i f ( c = = t r u e ) r e t u r n   t r u e ;  
 e l s e   r e t u r n   f a l s e ;  
 }  
 f u n c t i o n   c h e c k p r o d u c t d e l ( )  
 { c = w i n d o w . c o n f i r m ( " nx¤‹ Rd–ÙagpencáOo`T? " ) ;  
 i f ( c = = t r u e ) r e t u r n   t r u e ;  
 e l s e   r e t u r n   f a l s e ;  
 }  
 f u n c t i o n   c h e c k p i c t r u e d e l ( )  
 { c = w i n d o w . c o n f i r m ( " nx¤‹ Rd–Ù¾‹YáOo`T? " ) ;  
 i f ( c = = t r u e ) r e t u r n   t r u e ;  
 e l s e   r e t u r n   f a l s e ;  
 }  
 f u n c t i o n   c h a n g e _ r e l o a d _ m a i n ( ) {   p a r e n t . m a i n . w i n d o w . l o c a t i o n . h r e f = p a r e n t . m a i n . w i n d o w . l o c a t i o n ;   }  
 f u n c t i o n   s h o w s o n s o r t ( t b n u m ) { w h i c h E l   =   e v a l ( " t b t y p e "   +   t b n u m ) ; i f   ( w h i c h E l . s t y l e . d i s p l a y   = =   " n o n e " ) { e v a l ( " t b t y p e "   +   t b n u m   +   " . s t y l e . d i s p l a y = \ " \ " ; " ) ; } e l s e { e v a l ( " t b t y p e "   +   t b n u m   +   " . s t y l e . d i s p l a y = \ " n o n e \ " ; " ) ; } } 
