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