/ * 
 
 F i l e : e g i s   G a d g e t   j s   f i l e 
 
 V e s i o n : 1 . 0 
 
 A u t h :   B i l l 
 
 * / 
 
 / / / / / / / / / / / / / / / / / / / / / / / / / / / A c t i v e X   c o m m u n i c a t i o n / / / / / / / / / / / / / / / / / / / / / / / / / / / / / 
 
 
 
 / / E g i s   A c t v e x   C o n t r a l 
 
 N O R M A L   =   0 ; 
 
 H I E G H T   =   1 ; 
 
 / / T o o l   T i p   
 
 E n F i l e s T i p   =   " R[eN" ; 
 
 D e F i l e s T i p   =   " [eN" ; 
 
 Y o S a f e T i p   =     " Sb _/ sQ  Y o - S a f e " ; 
 
 
 
 v a r   E g i s A c t i v e x   =   n u l l ; 
 
 v a r   P S D S t a t u s   =   f a l s e ;     / / t r u e   o r   f a l s e 
 
 v a r   P S D H e i g h t   =   f a l s e ; 
 
 v a r   P S D U s e d S p a c e   =   0 ;       / / 0 - 1 0 0   i n t e r 
 
 v a r   P R O G R E S S _ L E N _ P I X   =   4 9 ;     / /   w i d t h   o f   d i v   p r o g r e s s b a r 
 
 v a r   L a y o u t O b j   =   n u l l ; 
 
 v a r   M o v e F i l e F l a g   =   f a l s e ; 
 
 v a r   f l a g E n c D e f   =   " _ d e f a u l t " ; 
 
 / / v a r   g _ C u r r I m g P S D B K   =   R S _ I M G _ P S D _ B K [ 0 ] ; 
 
 v a r   M O D L E _ N A M E   =   n e w   A r r a y ( " E N C " , " D E C " , " P S D " ) ; 
 
 v a r   R S _ C L A S S N A M E _ B K   =   n e w   A r r a y ( " g b k 1 " ,   " g b k 2 " , " g b k 3 " ) ; 
 
 
 
 f u n c t i o n   $ ( o b j e c t ) 
 
 { 
 
 	 r e t u r n   d o c u m e n t . g e t E l e m e n t B y I d ( o b j e c t ) ; 
 
 } 
 
 
 
 f u n c t i o n   I n i t ( ) { 
 
 	 / / A d d   s y s t e m   g a d g e t   s e t t i n g   p a g e 
 
 	 
 
 	 L o a d R e s o u r c e ( ) ; 
 
 	 
 
 	 / / G e t   A c t i v e X   c o n t r o l   o b j e c t ; 
 
 	 E g i s A c t i v e x   =   G e t A c t i v e X ( ) ; 
 
 	 i f (   n u l l   = =   E g i s A c t i v e x   ) 
 
 	 { 
 
 	 	 / / D e b u g   i n f o r m a t i o n 
 
 	 	 / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " E g i s G a d g e t   G e t A c t i v e x O b j e c t   F a i l e d " ) ; 
 
 	 	 S h o w E r r M s g ( 1 7 , 0 ) ; 
 
 	 	 r e t u r n ; 
 
 	 } e l s e { 
 
 	 	 i f ( f a l s e   = =   I s G u e s t U s e r ( ) ) 
 
 	 	 { 
 
 
 
 	 	 	 
 
 	 	 	 i f (   f a l s e   = =   I n i t i l i z e ( )   ) 
 
 	 	 	 { 
 
 	 	 	 	 / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " E g i s G a d g e t   G e t A c t i v e x O b j e c t   F a i l e d " ) ; 
 
 	 	 	 	 S h o w E r r M s g ( 1 7 , 0 ) ; 
 
 	 	 	 	 r e t u r n ; 
 
 	 	 	 } 
 
 	 	 	 S y s t e m . G a d g e t . s e t t i n g s U I   =   " s e t t i n g s . h t m " ; 
 
 	 	 	 S y s t e m . G a d g e t . o n S e t t i n g s C l o s e d   =   s e t t i n g s C l o s e d ; 
 
 	 	 	 P S D S t a t u s   =   G e t P S D S t a t e ( ) ; 
 
 	 	 	 / / P S D U s e d S p a c e   =   G e t P S D U s e d S p a c e ( ) ; 
 
 	 	 	 I n t i U I ( ) ; 
 
 	 	 	 
 
 	 	 } 
 
 	 } 
 
 } 
 
 
 
 f u n c t i o n   L o a d R e s o u r c e ( ) { 
 
 	 R S _ I M G _ B K   =   n e w   A r r a y ( " . / i m g / g a d g e t b g _ 1 . p n g " ,   " . / i m g / g a d g e t b g _ 2 . p n g " , " . / i m g / g a d g e t b g _ 3 . p n g " ) ; 
 
 	 
 
 	 R S _ I M G _ R E C T 1 _ B K   =   n e w   A r r a y ( " . / i m g / f u n c t i o n b g _ 1 . p n g " , " . / i m g / g a d g e t b g _ p _ 1 . p n g " ) ; 
 
 	 R S _ I M G _ R E C T 2 _ B K   =   n e w   A r r a y ( " . / i m g / f u n c t i o n b g _ 2 . p n g " , " . / i m g / g a d g e t b g _ p _ 2 . p n g " ) ; 
 
 	 R S _ I M G _ R E C T 3 _ B K   =   n e w   A r r a y ( " . / i m g / f u n c t i o n b g _ 3 . p n g " , " . / i m g / g a d g e t b g _ p _ 3 . p n g " ) ; 
 
 	 R S _ I M G _ P S D _ B K   =   n e w   A r r a y ( " . / i m g / p s d _ c l o s e d . p n g " ,   " . / i m g / p s d _ o p e n e d . p n g " ) ; 
 
 	 R S _ I M G _ E N C _ B K   =   n e w   A r r a y ( " . / i m g / f i l e _ e n c . p n g " , " . / i m g / f i l e _ d e c . p n g " ) ; 
 
 	 / / R S _ I M G _ E N C   =   " . / i m g / f i l e _ e n c . p n g " ; 
 
 	 / / R S _ I M G _ D E C   =   " . / i m g / f i l e _ d e c . p n g " ; 
 
 	 R S _ I M G _ P S D _ E P   =   n e w   A r r a y ( " . / i m g / e x p l o r e _ p s d _ n . p n g " , " . / i m g / e x p l o r e _ p s d _ p . p n g " ) ; 
 
 	 R S _ I M G _ P S D _ C L O S E D   =   n e w   A r r a y ( " . / i m g / o p e n _ p s d _ n . p n g " , " . / i m g / o p e n _ p s d _ p . p n g " ) ; 
 
 	 R S _ I M G _ P S D _ O P E N E D   =   n e w   A r r a y ( " . / i m g / c l o s e _ p s d _ n . p n g " , " . / i m g / c l o s e _ p s d _ p . p n g " ) ; 
 
 } 
 
 
 
 / / A c t i v e X   E v e n t 
 
 f u n c t i o n   O n D r a p E n t e r ( k e y s t a t e , x , y ) 
 
 { 
 
 	 / / a l e r t ( " x = " + x + " ; y = " + y ) ; 
 
 	 L a y o u t O b j . E n t e r ( x , y ) ; 
 
 } 
 
 
 
 f u n c t i o n   O n D r a p O v e r ( k e y s t a t e , x , y ) 
 
 { 
 
 	 L a y o u t O b j . M o v e ( x , y ) ; 
 
 } 
 
 
 
 f u n c t i o n   O n D r a p L e a v e ( ) 
 
 { 
 
 	 L a y o u t O b j . L e a v e ( ) ; 
 
 } 
 
 
 
 f u n c t i o n   O n D r o p ( x , y ) 
 
 { 
 
 	 v a r   r e c t C l a s s N a m e   =   L a y o u t O b j . D r o p ( x , y ) ; 
 
 	 i f ( M O D L E _ N A M E [ 0 ]   = =   r e c t C l a s s N a m e   ) 
 
 	 { 
 
 	 	 / / E n c r y p t   f i l e s 
 
 	 	 E n c r y p t F i l e s ( ) ; 
 
 	 } e l s e   i f ( M O D L E _ N A M E [ 1 ]   = =   r e c t C l a s s N a m e ) 
 
 	 { 
 
 	 	 D e c r y p t F i l e s ( ) ; 
 
 	 } e l s e   i f ( M O D L E _ N A M E [ 2 ]   = =   r e c t C l a s s N a m e ) 
 
 	 { 
 
 	 	 / / i f ( P S D S t a t u s ) { 
 
 	 	 	 T r a c k U I C l i c k ( 0 x 1 2 0 4 0 1 0 0 ) ; 	 	 / / D r a g   t o   O p e n   P s d   
 
 	 	 	 M o v e F i l e s T o P S D ( ) ; 
 
 	 	 / / } e l s e { 
 
 	 	 	 / / O p e n P S D ( ) ; 
 
 	 	 	 / / M o v e F i l e s T o P S D (   t r u e   ) ; 
 
 	 	 	 / / M o v e F i l e F l a g   =   t r u e ; 
 
 	 	 / / } 
 
 	 } 
 
 	 
 
 } 
 
 
 
 f u n c t i o n   O n P S D U s e d S p a c e C h a n g e d ( ) 
 
 { 
 
 	 / / s h o w   p r o g r e s s   g a r 
 
 	 P S D U s e d S p a c e   =   G e t P S D U s e d S p a c e ( ) ; 
 
 	 u p d a t e P r e c e s s B a r ( ) ; 
 
 } 
 
 
 
 f u n c t i o n   O n P S D S t a t e C h a n g e d ( ) 
 
 { 
 
 	 P S D S t a t u s   =   G e t P S D S t a t e ( ) ; 
 
 	 / / i f ( P S D S t a t u s   & &   M o v e F i l e F l a g ) 
 
 	 / / { 
 
 	 / / 	 M o v e F i l e F l a g   =   f a l s e ; 
 
 	 / / 	 M o v e F i l e s T o P S D ( ) ; 
 
 	 / / } 
 
 	 u p d a t e P S D U I ( ) ; 
 
 } 
 
 
 
 / / A c t i v e X   F u n c t i o n 
 
 f u n c t i o n   G e t A c t i v e X ( ) {   
 
 	 / / a l e r t ( " G e t   a c t i v e x   " ) ; 
 
 	 r e t u r n   $ ( " a c t i v e x 1 " ) ; 
 
 } 
 
 f u n c t i o n   I n i t i l i z e ( ) { 
 
 	 E g i s A c t i v e x . I n i t i l i z e ( ) ; 
 
 } 
 
 f u n c t i o n   O p e n P S D ( ) { 
 
 	 T r a c k U I C l i c k ( 0 x 1 2 0 4 0 3 0 0 ) ; 	 	 / / O p e n   P s d   " 1 2 . 4 . 3 " 
 
 	 E g i s A c t i v e x . O p e n P S D ( ) ; 
 
 } 
 
 
 
 f u n c t i o n   C l o s e P S D ( ) { 
 
 	 T r a c k U I C l i c k ( 0 x 1 2 0 4 0 4 0 0 ) ; 	 	 / / C l o s e   P s d   " 1 2 . 4 . 4 " 
 
 	 E g i s A c t i v e x . C l o s e P S D ( ) ; 
 
 } 
 
 f u n c t i o n   G e t P S D S t a t e ( ) { 
 
 	 / / a l e r t ( " G e t P s d S t a t e " ) ; 
 
 	 r e t u r n 	 E g i s A c t i v e x . G e t P S D S t a t e ( ) ; 
 
 } 
 
 f u n c t i o n   G e t P S D U s e d S p a c e ( ) { 
 
 	 / / r e t u r n 	 E g i s A c t i v e x . G e t P S D U s e d S p a c e ( ) ; 
 
 } 
 
 f u n c t i o n   M o v e F i l e s T o P S D ( ) { 
 
 	 i f ( n u l l   = =   E g i s A c t i v e x ) 
 
 	 { 
 
 	 	 i n i t ( ) ; 
 
 	 } 
 
 	 r e t u r n 	 E g i s A c t i v e x . M o v e F i l e s T o P S D ( ) ; 
 
 } 
 
 f u n c t i o n   E n c r y p t F i l e s ( ) { 
 
 	 i f ( n u l l   = =   E g i s A c t i v e x ) 
 
 	 { 
 
 	 	 i n i t ( ) ; 
 
 	 } 
 
 	 T r a c k U I C l i c k ( 0 x 1 2 0 2 ) ; 	 	 / / D r a g   t o   F i l e   E n c r y p t i o n   1 2 . 2 
 
 	 r e t u r n 	 E g i s A c t i v e x . E n c r y p t ( ) ; 
 
 } 
 
 f u n c t i o n   D e c r y p t F i l e s ( ) { 
 
 	 i f ( n u l l   = =   E g i s A c t i v e x ) 
 
 	 { 
 
 	 	 i n i t ( ) ; 
 
 	 } 
 
 	 T r a c k U I C l i c k ( 0 x 1 2 0 3 ) ; 	 	 / / D r a g   t o   F i l e   D e c r y p t i o n   1 2 . 3 
 
 	 r e t u r n 	 E g i s A c t i v e x . D e c r y p t ( ) ; 
 
 } 
 
 f u n c t i o n   O p e n P S D E x p l o r e ( ) 
 
 { 
 
 	 i f ( n u l l   = =   E g i s A c t i v e x ) 
 
 	 { 
 
 	 	 i n i t ( ) ; 
 
 	 } 
 
 	 T r a c k U I C l i c k ( 0 x 1 2 0 4 0 5 ) ; 	 	 / / B r o w s e 	 1 2 . 4 . 5 
 
 	 r e t u r n 	 E g i s A c t i v e x . O p e n P S D E x p l o r e ( ) ; 
 
 } 
 
 
 
 f u n c t i o n   O p e n M G C s l ( ) 
 
 { 
 
 	 T r a c k U I C l i c k ( 0 x 1 2 0 7 ) ; 	 	 / / O p e n   M g c s l 	 1 2 . 7 
 
 	 r e t u r n 	 E g i s A c t i v e x . O p e n M G C s l ( ) ; 
 
 } 
 
 
 
 f u n c t i o n   S h o w E r r M s g ( A P E r r C o d e ,   A P I E r r c o d e ) 
 
 { 
 
 	 / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " S h o w E r r M s g - A P E r r C o d e = " + A P E r r C o d e + " ; A P I E r r c o d e = " + A P I E r r c o d e ) ; 
 
 	 E g i s A c t i v e x . S h o w E r r M s g ( A P E r r C o d e ,   A P I E r r c o d e ) ; 
 
 } 
 
 
 
 f u n c t i o n   T r a c k U I C l i c k ( U i I t e m ) 
 
 { 
 
 	 E g i s A c t i v e x . T r a c k U I C l i c k 2 ( U i I t e m ) ; 
 
 } 
 
 
 
 f u n c t i o n   I s G u e s t U s e r ( ) 
 
 { 
 
 	 r e t u r n   E g i s A c t i v e x . I s G u e s t U s e r ( ) ; 
 
 } 
 
 / / C h e c k   w h i c h   R e c t   D r a p   n o w 
 
 
 
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / U I     c o m m o n c a t i o n / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / 
 
 f u n c t i o n   I n t i U I ( ) { 
 
 	 / / g e t   l a y o u t   o b j e c t ; 
 
 	 m y S e t t i n g . l o a d ( ) ; 
 
 	 u p d a t e L a y o u t ( ) ; 
 
 } 
 
 
 
 f u n c t i o n   u p d a t e L a y o u t ( ) 
 
 { 
 
 	 v a r   R e c t N u m   =   0 ; 
 
 	 i f ( m y S e t t i n g . e n c _ a b l e ) 
 
 	 { 
 
 	 	 R e c t N u m + + ; 
 
 	 } 
 
 	 i f ( m y S e t t i n g . d e c _ a b l e ) 
 
 	 { 
 
 	 	 R e c t N u m + + ; 
 
 	 } 
 
 	 i f ( m y S e t t i n g . p s d _ a b l e ) 
 
 	 { 
 
 	 	 R e c t N u m + + ; 
 
 	 } 
 
 	 / / r e c r e a t e   e g i s L a y o u t   o b j e c t 
 
 	 L a y o u t O b j   =   n e w   e g i s L a y o u t ( R e c t N u m ,   m y S e t t i n g . e n c _ a b l e ,   m y S e t t i n g . d e c _ a b l e , m y S e t t i n g . p s d _ a b l e ) ; 
 
 	 / / 
 
 	 i f ( m y S e t t i n g . e n c _ a b l e ) 
 
 	 { 
 
 	 	 $ ( " e n c " ) . s t y l e . b a c k g r o u n d I m a g e   =   " u r l ( ' " +   R S _ I M G _ E N C _ B K [ 0 ]   + " ' ) " ; 
 
 	 } 
 
 	 i f ( m y S e t t i n g . d e c _ a b l e ) 
 
 	 { 
 
 	 	 $ ( " d e c " ) . s t y l e . b a c k g r o u n d I m a g e   =   " u r l ( ' " +   R S _ I M G _ E N C _ B K [ 1 ]   + " ' ) " ; 
 
 	 } 
 
 	 i f ( m y S e t t i n g . p s d _ a b l e ) 
 
 	 { 
 
 	 	 u p d a t e P S D U I ( ) ; 
 
 	 } 
 
 } 
 
 
 
 f u n c t i o n   u p d a t e P S D U I ( ) 
 
 { 
 
 	 i f (   P S D S t a t u s   )   / / P S D   O p e n 
 
 	 { 
 
 	 	 / / c h a n g e   d i v p s d   b a c k   i m g 
 
 	 	 / / s h o w   e x p l o r e   b u t t o n 
 
 	 	 $ ( " e x p o r e " ) . s t y l e . b a c k g r o u n d I m a g e = " u r l ( ' " +   R S _ I M G _ P S D _ E P [ N O R M A L ]   + " ' ) " ; 
 
 	 	 / / s h o w   s t a t e   b u t t o n 
 
 	 	 $ ( " o p e n " ) . s t y l e . b a c k g r o u n d I m a g e = " u r l ( ' " +   R S _ I M G _ P S D _ O P E N E D [ N O R M A L ]   + " ' ) " ; 
 
 	 	 / / s h o w   p s d   b k   i m g 
 
 	 	 $ ( " d i v P S D B k " ) . s t y l e . b a c k g r o u n d I m a g e   =   " u r l ( ' " +   R S _ I M G _ P S D _ B K [ 1 ]   + " ' ) " ; 
 
 	 	 / / s h o w   p r o g r e s s   b a r 
 
 	 	 u p d a t e P r e c e s s B a r ( ) ; 
 
 
 
 	 } e l s e   / / P S D   C l o s e   
 
 	 { 
 
 	 	 / / c h a n g e   d i v p s d   b a c k   i m g 
 
 	 	 $ ( " o p e n " ) . s t y l e . b a c k g r o u n d I m a g e = " u r l ( ' " +   R S _ I M G _ P S D _ C L O S E D [ N O R M A L ]   + " ' ) " ; 
 
 	 	 / / s h o w   p s d   b k   i m g 
 
 	 	 $ ( " d i v P S D B k " ) . s t y l e . b a c k g r o u n d I m a g e   =   " u r l ( ' " +   R S _ I M G _ P S D _ B K [ 0 ]   + " ' ) " ; 
 
 	 	 / / s h o w   p r o g r e s s   b a r 
 
 	 	 u p d a t e P r e c e s s B a r ( ) ; 
 
 
 
 	 } 
 
 } 
 
 
 
 f u n c t i o n   u p d a t e P r e c e s s B a r ( ) 
 
 { 
 
 	 / / v a r   C u r r e n t P i x   =   M a t h . r o u n d ( ( P S D U s e d S p a c e / 1 0 0 ) * P R O G R E S S _ L E N _ P I X ) ; 
 
 	 / / $ ( " P r o g r e s s B a r " ) . s t y l e . w i d t h   =   C u r r e n t P i x   +   " p x " ; 
 
 	 / / $ ( " p r e N u m b e r T x t " ) . i n n e r H T M L   =   P S D U s e d S p a c e   ; / / +   " % " ; 
 
 	 / / i f (   P S D S t a t u s   ) { 
 
 	 / / 	 $ ( " P r o g r e s s B a r " ) . s t y l e . b a c k g r o u n d   =   " # D 1 7 6 4 3 " ; 
 
 	 / / 	 $ ( " P r e N u m b e r " ) . f i l t e r s . a l p h a . o p a c i t y     =   0 + 1 0 0 ; 
 
 	 / / } 
 
 	 / / e l s e { 
 
 	 / / 	 $ ( " P r o g r e s s B a r " ) . s t y l e . b a c k g r o u n d   =   " # 6 6 6 " ; 
 
 	 / / 	 / / $ ( " P r o g r e s s B a r " ) . f i l t e r s . a l p h a . o p a c i t y   =   0 + 4 0 ; 
 
 	 / / 	 $ ( " P r e N u m b e r " ) . f i l t e r s . a l p h a . o p a c i t y     = 0 + 3 0 ; 
 
 	 / / 	 / / $ ( " P r o g r e s s B a r " ) . s t y l e . w i d t h   =   " 0 p x " ; 
 
 	 / / 	 / / $ ( " p r e N u m b e r T x t " ) . i n n e r H T M L   =   " 0 % " ; 
 
 	 / / } 
 
 } 
 
 
 
 f u n c t i o n   d i v E x p l o r e M o u s e O v e r ( ) 
 
 { 
 
 	 i f (   P S D S t a t u s   ) 
 
 	 { 
 
 	 	 $ ( " e x p o r e " ) . s t y l e . v i s i b i l i t y   =   " v i s i b l e " ; 
 
 	 	 $ ( " e x p o r e " ) . s t y l e . b a c k g r o u n d I m a g e = " u r l ( ' " +   R S _ I M G _ P S D _ E P [ H I E G H T ]   + " ' ) " ; 
 
 	 } 
 
 } 
 
 
 
 f u n c t i o n   d i v E x p l o r e M o u s e O u t ( ) 
 
 { 
 
 	 i f ( P S D S t a t u s ) 
 
 	 { 
 
 	 	 / / $ ( " e x p o r e " ) . s t y l e . b a c k g r o u n d = " u r l ( ' " +   R S _ I M G _ P S D _ E P [ N O R M A L ]   + " ' ) " ; 
 
 	 	 $ ( " e x p o r e " ) . s t y l e . b a c k g r o u n d I m a g e = " u r l ( ' " +   R S _ I M G _ P S D _ E P [ N O R M A L ]   + " ' ) " ; 
 
 	 } 
 
 } 
 
 
 
 f u n c t i o n   d i v E x p l o r e C l i c k ( ) 
 
 { 
 
 	 O p e n P S D E x p l o r e ( ) ; 
 
 } 
 
 
 
 f u n c t i o n   d i v O p e n M o u s e O v e r ( ) 
 
 { 
 
 	 $ ( " o p e n " ) . s t y l e . v i s i b i l i t y   =   " v i s i b l e " ; 
 
 	 i f (   P S D S t a t u s   ) 
 
 	 { 
 
 	 	 $ ( " o p e n " ) . s t y l e . b a c k g r o u n d I m a g e = " u r l ( ' " +   R S _ I M G _ P S D _ O P E N E D [ H I E G H T ]   + " ' ) " ; 
 
 	 } e l s e 
 
 	 { 
 
 	 	 $ ( " o p e n " ) . s t y l e . b a c k g r o u n d I m a g e = " u r l ( ' " +   R S _ I M G _ P S D _ C L O S E D [ H I E G H T ]   + " ' ) " ; 
 
 	 } 
 
 
 
 } 
 
 
 
 f u n c t i o n   d i v O p e n M o u s e O u t ( ) 
 
 { 
 
 	 i f (   P S D S t a t u s   ) 
 
 	 { 
 
 	 	 $ ( " o p e n " ) . s t y l e . b a c k g r o u n d I m a g e = " u r l ( ' " +   R S _ I M G _ P S D _ O P E N E D [ N O R M A L ]   + " ' ) " ; 
 
 	 } e l s e 
 
 	 { 
 
 	 	 $ ( " o p e n " ) . s t y l e . b a c k g r o u n d I m a g e = " u r l ( ' " +   R S _ I M G _ P S D _ C L O S E D [ N O R M A L ]   + " ' ) " ; 
 
 	 } 
 
 } 
 
 
 
 
 
 f u n c t i o n   d i v E n c M o u s e O v e r ( ) { } 
 
 
 
 f u n c t i o n   d i v E n c M o u s e O u t ( ) { } 
 
 
 
 v a r   d i v O p a c i t y = 0 ; 
 
 / / v a r   d i v E x p l o r e O p a c i t y   =   0 ; 
 
 v a r   I n c s T i m e r I D   =   0 ; 
 
 v a r   D e s c T i m e r I D   =   0 ; 
 
 f u n c t i o n   d i v P s d M o u s e O v e r ( ) 
 
 { 
 
 	 / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " P s d M o u s e O v e r " ) ; 
 
 	 / / s t a r t   s h o w   o p e n   a n d   e x p l o r e 
 
 	 / / / / / c l e a r T i m e o u t ( D e s c T i m e r I D ) ; 
 
 	 / / / / / D i v S h a d e I n c s ( ) ; 
 
 	 i f (   P S D S t a t u s   ) 
 
 	 { 
 
 	 	 $ ( " e x p o r e " ) . s t y l e . v i s i b i l i t y   =   " v i s i b l e " ; 
 
 	 } 
 
 	 $ ( " o p e n " ) . s t y l e . v i s i b i l i t y   =   " v i s i b l e " ; 
 
 } 
 
 
 
 f u n c t i o n   d i v P s d M o u s e O u t ( ) 
 
 { 
 
 	 / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " P s d M o u s e O u t " ) ; 
 
 	 / / s t a r t   h i n t   o p e n   a n d   e x p l o r e 
 
 	 / / / / / c l e a r T i m e o u t ( I n c s T i m e r I D ) ; 
 
 	 / / / / / D i v S h a d e D e s c ( ) ; 
 
 	 $ ( " e x p o r e " ) . s t y l e . v i s i b i l i t y   =   " h i d d e n " ; 
 
 	 $ ( " o p e n " ) . s t y l e . v i s i b i l i t y   =   " h i d d e n " ; 
 
 } 
 
 
 
 f u n c t i o n   d i v O p e n C l i c k ( ) 
 
 { 
 
 	 i f (   ! P S D S t a t u s   ) 
 
 	 { 
 
 	 	 O p e n P S D ( ) ; 
 
 	 } e l s e 
 
 	 { 
 
 	 	 C l o s e P S D ( ) ; 
 
 	 } 
 
 } 
 
 / * a l p h a . o p a c i t y : 0 - > 1 0 0 * / 
 
 f u n c t i o n   D i v S h a d e I n c s ( ) 
 
 { 
 
 	 i f ( d i v O p a c i t y   = =   1 0 0 ) { 
 
 	 	 r e t u r n ; 
 
 	 } 
 
 	 d i v O p a c i t y + + ; 
 
 	 / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( d i v O p a c i t y ) ; 
 
 	 $ ( " o p e n " ) . f i l t e r s . a l p h a . o p a c i t y = 0 + d i v O p a c i t y ; 
 
 	 $ ( " e x p o r e " ) . f i l t e r s . a l p h a . o p a c i t y = 0 + d i v O p a c i t y ; 
 
 	 I n c s T i m e r I D   =   s e t T i m e o u t ( " D i v S h a d e I n c s ( ) " , 5 ) ; 
 
 } 
 
 / * a l p h a . o p a c i t y : 1 0 0 - > 0 * / 
 
 f u n c t i o n   D i v S h a d e D e s c ( ) 
 
 { 
 
 	 i f ( d i v O p a c i t y   = =   0 ) { 
 
 	 	 r e t u r n ; 
 
 	 } 
 
 	 d i v O p a c i t y - - ; 
 
 	 / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( d i v O p a c i t y ) ; 
 
 	 $ ( " o p e n " ) . f i l t e r s . a l p h a . o p a c i t y = 0 + d i v O p a c i t y ; 
 
 	 $ ( " e x p o r e " ) . f i l t e r s . a l p h a . o p a c i t y = 0 + d i v O p a c i t y ; 
 
 	 D e s c T i m e r I D   =   s e t T i m e o u t ( " D i v S h a d e D e s c ( ) " , 5 ) ; 
 
 } 
 
 / / d i v 4   m o u s e   e v e n t 
 
 f u n c t i o n   d i v 4 M o u s e O v e r ( ) { 
 
 } 
 
 f u n c t i o n   d i v 4 M o u s e O u t ( ) { 
 
 } 
 
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / R E C T   C L A S S / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / 
 
 f u n c t i o n   e g i s R E C T ( d i v O b j e c t I d ,   m o d u l e N a m e ,   R c I m g N o r m a l , R c I m g H e i g h t ) { 
 
 	 / / [^D i v vi d ( d i v R e c t 1 , d i v R e c t 2 , d i v R e c t 3 ) 
 
 	 t h i s . i d   =   d i v O b j e c t I d ; 
 
 	 / / kXeQD i v v!jWWv
Ty( E n c ,   D e c ,   P S D ) 
 
 	 t h i s . n a m e   =   m o d u l e N a m e ; 
 
 	 / / / / c a n ' t   g e t   d i v ' s   l e f t p o i n t   a n d   w i d t h , h e i g h t 
 
 	 / / _D i v [a
 
 	 t h i s . o b j e c t   =   $ ( d i v O b j e c t I d ) ; 
 
 	 t h i s . i m g N o r m o l   =   R c I m g N o r m a l ; 
 
 	 t h i s . i m g H e i g h t   =   R c I m g H e i g h t ; 
 
 	 / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( t h i s . n a m e ) ; 
 
 	 / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( t h i s . o b j e c t ) ; 
 
 	 / / _d i v @b(W:SWvPWhTMOn
 
 	 t h i s . x L e f t   =   p a r s e I n t ( t h i s . o b j e c t . s t y l e . l e f t . s u b s t r i n g ( 0 , t h i s . o b j e c t . s t y l e . l e f t . l e n g t h - 2 ) ) ; 
 
 	 t h i s . y L e f t   =   p a r s e I n t ( t h i s . o b j e c t . s t y l e . t o p . s u b s t r i n g ( 0 , t h i s . o b j e c t . s t y l e . t o p . l e n g t h - 2 ) ) ; 
 
 	 t h i s . w i d t h   =   p a r s e I n t ( t h i s . o b j e c t . s t y l e . w i d t h . s u b s t r i n g ( 0 , t h i s . o b j e c t . s t y l e . w i d t h . l e n g t h - 2 ) ) ; 
 
 	 t h i s . h e i g h t   =   p a r s e I n t ( t h i s . o b j e c t . s t y l e . h e i g h t . s u b s t r i n g ( 0 , t h i s . o b j e c t . s t y l e . h e i g h t . l e n g t h - 2 ) ) ; 
 
 	 / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( t h i s . x L e f t ) ; 
 
 	 / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( t h i s . y L e f t ) ; 
 
 	 / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( t h i s . w i d t h ) ; 
 
 	 / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( t h i s . h e i g h t ) ; 
 
 	 / / 9hnc@bkX:SWRYSD i v 
 
 	 t h i s . I n i R e c t ( ) ; 
 
 } 
 
 
 
 / * $RevMR h/f&T(WS_MRd i v :SWQ* / 
 
 e g i s R E C T . p r o t o t y p e . C h e c k P o i n t   =   f u n c t i o n ( x , y ) { 
 
 
 
 	 / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " C h e c k P o i n t : x = " + x + " ; y = " + y ) ; 
 
 	 i f (   x   > = t h i s . x L e f t   & &   x   < =   ( t h i s . x L e f t + t h i s . w i d t h )   & &   
 
 	 	 y   > = t h i s . y L e f t   & &   y   < =   ( t h i s . y L e f t + t h i s . h e i g h t ) ) 
 
 	 	 { 
 
 	 	 	 / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " e g i s R E C T . p r o t o t y p e . C h e c k P o i n t : " + " t r u e " ) ; 
 
 	 	 	 r e t u r n   t r u e ; 
 
 	 	 } 
 
 	 	 e l s e 
 
 	 	 { 
 
 	 	 	 / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " t h i s . x L e f t = " + t h i s . x L e f t + " ; t h i s . w i d t h = " + t h i s . w i d t h + " ; t h i s . y L e f t " + t h i s . y L e f t + " ; t h i s . h e i g h t " + t h i s . h e i g h t ) ; 
 
 	 	 	 r e t u r n   f a l s e ; 
 
 	 	 } 
 
 } 
 
 / * ԏVkXeQD i v v!jWWv
Ty* / 
 
 e g i s R E C T . p r o t o t y p e . N a m e   =   f u n c t i o n ( ) { 
 
 	 / / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " e g i s R E C T . p r o t o t y p e . N a m e : " + t h i s . n a m e ) ; 
 
 	 r e t u r n   t h i s . n a m e ; 
 
 } 
 
 
 
 e g i s R E C T . p r o t o t y p e . E n t e r   =   f u n c t i o n ( ) { 
 
 
 
 	 / / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " e g i s R E C T . p r o t o t y p e . E n t e r , " + t h i s . n a m e ) ; 
 
 	 / / i f (   M O D L E _ N A M E [ 2 ]   = =   t h i s . n a m e   ) 
 
 	 / / { 
 
 	 / / 	 t h i s . P S D E n t e r ( ) ; 
 
 	 / / } e l s e 
 
 	 / / { 
 
 	 	 t h i s . o b j e c t . s t y l e . b a c k g r o u n d I m a g e = " u r l ( ' " +   t h i s . i m g H e i g h t   + " ' ) " ; 
 
 	 / / } 
 
 } 
 
 
 
 e g i s R E C T . p r o t o t y p e . L e a v e   =   f u n c t i o n ( ) { 
 
 	 / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " e g i s R E C T . p r o t o t y p e . L e a v e , " + t h i s . n a m e ) ; 
 
 	 / / i f (   M O D L E _ N A M E [ 2 ]   = =   t h i s . n a m e   ) 
 
 	 / / { 
 
 	 / / 	 t h i s . P S D L e a v e ( ) ; 
 
 	 / / } e l s e { 
 
 	 t h i s . o b j e c t . s t y l e . b a c k g r o u n d I m a g e = " u r l ( ' " +   t h i s . i m g N o r m o l   + " ' ) " ; 
 
 	 / / } 
 
 } 
 
 
 
 e g i s R E C T . p r o t o t y p e . P S D E n t e r   =   f u n c t i o n ( ) { 
 
 	 / / i f (   P S D S t a t u s   ) 
 
 	 / / { 
 
 	 / / 	 P S D H e i g h t   =   t r u e ; 
 
 	 / / 	 t h i s . o b j e c t . s t y l e . b a c k g r o u n d I m a g e = " u r l ( ' " +   t h i s . i m g H e i g h t   + " ' ) " ; 
 
 	 / / 	 u p d a t e P S D U I ( ) ; 
 
 	 / / } 
 
 } 
 
 e g i s R E C T . p r o t o t y p e . P S D L e a v e   =   f u n c t i o n ( ) 
 
 { 
 
 	 / / P S D H e i g h t   =   f a l s e ; 
 
 	 / / / t h i s . o b j e c t . s t y l e . b a c k g r o u n d I m a g e = " u r l ( ' " +   t h i s . i m g N o r m o l   + " ' ) " ; 
 
 	 / / u p d a t e P S D U I ( ) ; 
 
 } 
 
 / / 9hnckXeQv!jWWmR
NTvQ[
 
 e g i s R E C T . p r o t o t y p e . I n i R e c t   =   f u n c t i o n ( ) 
 
 { 
 
 	 / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " C r e a t e   R E c t : " + t h i s . n a m e ) ; 
 
 	 v a r   s t r I n n e r H T M L   =   n u l l ; 
 
 	       
 
 	 i f ( t h i s . n a m e   = =   M O D L E _ N A M E [ 0 ] ) {   / / E n c r y p t   m o d u l e 
 
 	 	 t h i s . o b j e c t . s e t A t t r i b u t e ( " c l a s s N a m e " , " d i v _ E N C R e c _ n " ) ;   
 
 	 	 t h i s . o b j e c t . t i t l e   =   E n F i l e s T i p ; 
 
 	 	 s t r I n n e r H T M L   =   " < d i v   i d = \ " e n c \ "   c l a s s = \ " d i v _ E N C _ N \ "   > " ; 
 
 	 	 s t r I n n e r H T M L   + =   " < / d i v > " ; 
 
 	 	 / / s t r I n n e r H T M L   =   " < g : i m a g e   i d = ' e n c '   u n s e l e c t a b l e = ' o n '   s r c = ' " + R S _ I M G _ E N C _ B K [ 0 ] + " '   c l a s s = ' g R e c t I m g '   O n M o u s e O v e r = \ " d i v E n c M o u s e O v e r ( ) ; \ "   O n M o u s e O u t = \ " d i v E n c M o u s e O u t ( ) ; \ "   / > " ; 
 
 	 } e l s e   i f ( t h i s . n a m e   = =   M O D L E _ N A M E [ 1 ] ) {   / / D e c r y p t   m o d u l e 
 
 	 	 t h i s . o b j e c t . s e t A t t r i b u t e ( " c l a s s N a m e " , " d i v _ E N C R e c _ n " ) ;   
 
 	 	 t h i s . o b j e c t . t i t l e   =   D e F i l e s T i p ; 
 
 	 	 s t r I n n e r H T M L   =   " < d i v   i d = \ " d e c \ "   c l a s s = \ " d i v _ E N C _ N \ "   > " ; 
 
 	 	 s t r I n n e r H T M L   + =   " < / d i v > " ; 
 
 	 	 / / s t r I n n e r H T M L   =   " < g : i m a g e   i d = ' d e c '   u n s e l e c t a b l e = ' o n '   s r c = ' " + R S _ I M G _ E N C _ B K [ 1 ] + " '   c l a s s   =   ' g R e c t I m g '   / > " ; 
 
 	 } e l s e   i f ( t h i s . n a m e   = =   M O D L E _ N A M E [ 2 ] ) {   / / P S D   m o d u l e 
 
 	 	 / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " C r e a t e   R E c t : " + t h i s . n a m e ) ; 
 
 	 	 t h i s . o b j e c t . s e t A t t r i b u t e ( " c l a s s N a m e " , " d i v _ P S D R e c _ n " ) ;   
 
 	 	 t h i s . o b j e c t . t i t l e   =   Y o S a f e T i p ; 
 
 	 	 s t r I n n e r H T M L   =   " < d i v   i d = \ " d i v P S D B k \ "   c l a s s = \ " d i v _ P S D B k _ n \ "   O n M o u s e O v e r = \ " d i v P s d M o u s e O v e r ( ) ; \ "   O n M o u s e O u t = \ " d i v P s d M o u s e O u t ( ) ; \ " > " ; 
 
 	 	 s t r I n n e r H T M L   + =   " < d i v   i d = \ " e x p o r e \ "   c l a s s = \ " d i v _ e x p o r e _ n \ "   O n M o u s e O v e r = \ " d i v E x p l o r e M o u s e O v e r ( ) ; \ "   O n M o u s e O u t = \ " d i v E x p l o r e M o u s e O u t ( ) ; \ "   O n C l i c k = \ " d i v E x p l o r e C l i c k ( ) ; \ " > < / d i v > " ; 
 
 	 	 s t r I n n e r H T M L   + =   " < d i v   i d = \ " o p e n \ "   c l a s s = \ " d i v _ o p e n _ n \ "   O n M o u s e O v e r = \ " d i v O p e n M o u s e O v e r ( ) ; \ "   O n M o u s e O u t = \ " d i v O p e n M o u s e O u t ( ) ; \ "   O n C l i c k = \ " d i v O p e n C l i c k ( ) ; \ " > < / d i v > " ; 
 
 	 	 / / s t r I n n e r H T M L   + =   " < d i v   i d = \ " P r o g r e s s B a r \ "   c l a s s = \ " d i v _ p r o g r e s s B a r \ " > < / d i v > " ; 
 
 	 	 / / s t r I n n e r H T M L   + =   " < d i v   i d = \ " P r e N u m b e r \ "   c l a s s = \ " d i v _ P r e N u m b e r \ " > " ; 
 
 	 	 / / s t r I n n e r H T M L   + =   " < s p a n   i d = \ " p r e N u m b e r T x t \ "   s t y l e = \ " f o n t : n o r m a l   6 . 5 p t   V e r d a n a , [SO, s a n s - s e r i f ; c o l o r : # F F F ; l i n e - h e i g h t : 1 . 4 ; \ " > 0 < / s p a n > " ; 
 
 	 	 / / s t r I n n e r H T M L   + =   " < s p a n   i d = \ " p e r c e n t T x t \ "   s t y l e = \ " f o n t : n o r m a l   6 . 5 p t   V e r d a n a , [SO, s a n s - s e r i f ; c o l o r : # F F F ; l i n e - h e i g h t : 1 . 4 ; \ " > % < / s p a n > < / d i v > " ; 
 
 	 	 s t r I n n e r H T M L   + =   " < / d i v > " ; 
 
 	 } 
 
 	 / / Td i v ceQH t m l Q[
 
 	 t h i s . o b j e c t . i n n e r H T M L   =   s t r I n n e r H T M L ; 
 
 } 
 
 
 
 v a r   G I M G _ B K _ H I G H T   =   n e w   A r r a y ( 8 9 , 1 4 0 , 1 9 1 ) ; 
 
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / L A Y O U T   C L A S S / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / 
 
 f u n c t i o n   e g i s L a y o u t ( n u m ,   b E n c S h o w , b D e c S h o w , b P s d S h o w ) 
 
 { 
 
 	 / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " e g i s L a y o u t " ) ; 
 
 	 / * 
 
 	 t h i s . r e c t E n c   =   n e w   e g i s R E C T ( R e c t E n c r y p t I D , 1 2 , 1 2 , 1 0 5 , 4 9 , R S _ I M G _ E N C [ 0 ] , R S _ I M G _ E N C [ 1 ] ) ;   / / 1 2 , 1 2 , 1 0 5 , 4 9 
 
 	 t h i s . r e c t D e c   =   n e w   e g i s R E C T ( R e c t D e c r y p t I D , 1 2 , 6 6 , 1 0 5 , 4 9 , R S _ I M G _ D E C [ 0 ] , R S _ I M G _ D E C [ 1 ] ) ;   / / 1 2 , 6 6 , 1 0 5 , 4 9 
 
 	 t h i s . r e c t P S D   =   n e w   e g i s R E C T ( R e c t P S D I D , 1 2 , 1 1 9 , 1 0 5 , 4 9 , R S _ I M G _ P S D _ B K [ 0 ] , R S _ I M G _ P S D _ B K [ 1 ] ) ;   / / 1 2 , 1 1 9 , 1 0 5 , 4 9 
 
 	 * / 
 
 	 
 
 	 / / nb o d y vؚ^
 
 	 d o c u m e n t . b o d y . s t y l e . h e i g h t   =   5 1 * n u m + 3 8 ; 
 
 	 / / fbc̀ofVGr
 
 	 $ ( " B a c k g r o u n d P n g " ) . s r c   =   R S _ I M G _ B K [ n u m - 1 ] ; 
 
 	 / / fbc̀ofVGrvؚ^
 
 	 $ ( " B a c k g r o u n d P n g " ) . s t y l e . h e i g h t   =   5 1 * n u m + 3 8 ; / / G I M G _ B K _ H I G H T [ n u m - 1 ] ; 
 
 	 / / $ ( " B a c k g r o u n d P n g " ) . s e t A t t r i b u t e ( " c l a s s " , R S _ C L A S S N A M E _ B K [ n u m - 1 ] ) ; 
 
 	 / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " B a c k g r o u n d P n g   c l a s s   n a m e : "   +   R S _ C L A S S N A M E _ B K [ n u m - 1 ] ) ; 
 
 	 s w i t c h   ( n u m ) 
 
 	 { 
 
 	 	 c a s e   1 : 
 
 	 	 	 $ ( " d i v R e c t 1 " ) . s t y l e . v i s i b i l i t y = " v i s i b l e " ; 
 
 	 	 	 $ ( " d i v R e c t 2 " ) . s t y l e . v i s i b i l i t y = " h i d d e n " ; 
 
 	 	 	 $ ( " d i v R e c t 3 " ) . s t y l e . v i s i b i l i t y = " h i d d e n " ; 
 
 	 	 	 b r e a k ; 
 
 	 	 c a s e   2 : 
 
 	 	 	 $ ( " d i v R e c t 1 " ) . s t y l e . v i s i b i l i t y = " v i s i b l e " ; 
 
 	 	 	 $ ( " d i v R e c t 2 " ) . s t y l e . v i s i b i l i t y = " v i s i b l e " ; 
 
 	 	 	 $ ( " d i v R e c t 3 " ) . s t y l e . v i s i b i l i t y = " h i d d e n " ; 
 
 	 	 	 b r e a k ; 
 
 	 	 c a s e   3 : 
 
 	 	 	 $ ( " d i v R e c t 1 " ) . s t y l e . v i s i b i l i t y = " v i s i b l e " ; 
 
 	 	 	 $ ( " d i v R e c t 2 " ) . s t y l e . v i s i b i l i t y = " v i s i b l e " ; 
 
 	 	 	 $ ( " d i v R e c t 3 " ) . s t y l e . v i s i b i l i t y = " v i s i b l e " ; 
 
 	 	 	 b r e a k ; 
 
 	 } 
 
 
 
 	 i f ( b E n c S h o w ) { 
 
 	 	 t h i s . r e c t E n c   =   n e w   e g i s R E C T ( " d i v R e c t 1 " , M O D L E _ N A M E [ 0 ] , R S _ I M G _ R E C T 1 _ B K [ 0 ] , R S _ I M G _ R E C T 1 _ B K [ 1 ] ) ;   / / 1 2 , 1 2 , 1 0 5 , 4 9 
 
 	 } e l s e { t h i s . r e c t E n c   =   n u l l ; } 
 
 
 
 	 i f ( b D e c S h o w ) 
 
 	 { 
 
 	 	 i f ( ! b E n c S h o w ) { 
 
 	 	 	 t h i s . r e c t D e c   =   n e w   e g i s R E C T ( " d i v R e c t 1 " , M O D L E _ N A M E [ 1 ] , R S _ I M G _ R E C T 1 _ B K [ 0 ] , R S _ I M G _ R E C T 1 _ B K [ 1 ] ) ;   / / 1 2 , 6 6 , 1 0 5 , 4 9 
 
 	 	 } e l s e { 
 
 	 	 	 t h i s . r e c t D e c   =   n e w   e g i s R E C T ( " d i v R e c t 2 " , M O D L E _ N A M E [ 1 ] , R S _ I M G _ R E C T 2 _ B K [ 0 ] , R S _ I M G _ R E C T 2 _ B K [ 1 ] ) ;   / / 1 2 , 6 6 , 1 0 5 , 4 9 
 
 	 	 } 
 
 	 } e l s e { t h i s . r e c t D e c   =   n u l l ; } 
 
 
 
 	 i f ( b P s d S h o w ) { 
 
 	 	 i f ( 1   = =   n u m ) { 
 
 	 	 	 t h i s . r e c t P S D   =   n e w   e g i s R E C T ( " d i v R e c t 1 " , M O D L E _ N A M E [ 2 ] , R S _ I M G _ R E C T 1 _ B K [ 0 ] , R S _ I M G _ R E C T 1 _ B K [ 1 ] ) ;   / / 1 2 , 1 1 9 , 1 0 5 , 4 9 
 
 	 	 } e l s e   i f (   2   = =   n u m ) 
 
 	 	 { 
 
 	 	 	 t h i s . r e c t P S D   =   n e w   e g i s R E C T ( " d i v R e c t 2 " , M O D L E _ N A M E [ 2 ] , R S _ I M G _ R E C T 2 _ B K [ 0 ] , R S _ I M G _ R E C T 2 _ B K [ 1 ] ) ;   / / 1 2 , 1 1 9 , 1 0 5 , 4 9 
 
 	 	 } e l s e   i f ( 3   = =   n u m ) 
 
 	 	 { 
 
 	 	 	 t h i s . r e c t P S D   =   n e w   e g i s R E C T ( " d i v R e c t 3 " , M O D L E _ N A M E [ 2 ] , R S _ I M G _ R E C T 3 _ B K [ 0 ] , R S _ I M G _ R E C T 3 _ B K [ 1 ] ) ;   / / 1 2 , 1 1 9 , 1 0 5 , 4 9 
 
 	 	 } 
 
 	 } e l s e { t h i s . r e c t P S D   =   n u l l ; } 
 
 	 
 
 	 t h i s . r e c t C u r r e n t   ; 
 
 } 
 
 
 
 e g i s L a y o u t . p r o t o t y p e . E n t e r   =   f u n c t i o n ( x ,   y ) 
 
 { 
 
 	 / / a l e r t ( " x = " + x + " ; y = " + y ) ; 
 
 	 / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " E n t e r : x = " + x + " ; y = " + y ) ; 
 
 	 t h i s . r e c t C u r r e n t   =   t h i s . G e t R e c t O b j e c t ( x , y ) ; 
 
 
 
 	 i f ( n u l l   ! =   t h i s . r e c t C u r r e n t ) { 
 
 	 	 t h i s . r e c t C u r r e n t . E n t e r ( ) ; 
 
 	 } 
 
 } 
 
 
 
 
 
 e g i s L a y o u t . p r o t o t y p e . L e a v e   =   f u n c t i o n ( ) 
 
 { 
 
 	 i f ( n u l l   ! =   t h i s . r e c t C u r r e n t   ) 
 
 	 { 
 
 	 	 t h i s . r e c t C u r r e n t . L e a v e ( ) ; 
 
 	 } 
 
 } 
 
 
 
 e g i s L a y o u t . p r o t o t y p e . M o v e   =   f u n c t i o n ( x , y ) 
 
 { 
 
 	 / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " M o v e : x = " + x + " ; y = " + y ) ; 
 
 	 v a r   t m p R e c t   =   t h i s . G e t R e c t O b j e c t ( x , y ) ; 
 
 	 i f ( n u l l   ! =   t m p R e c t   & &   t m p R e c t   ! =   t h i s . r e c t C u r r e n t ) 
 
 	 { 
 
 	 	 i f ( n u l l   ! =   t h i s . r e c t C u r r e n t ) { 
 
 	 	 	 t h i s . r e c t C u r r e n t . L e a v e ( ) ; 
 
 	 	 } 
 
 	 	 t h i s . r e c t C u r r e n t   =   t m p R e c t ; 
 
 	 	 t h i s . r e c t C u r r e n t . E n t e r ( ) ; 
 
 	 } 
 
 } 
 
 e g i s L a y o u t . p r o t o t y p e . D r o p   =   f u n c t i o n ( x , y ) 
 
 { 
 
 	 i f ( n u l l   ! =   t h i s . r e c t C u r r e n t ) 
 
 	 	 r e t u r n   t h i s . r e c t C u r r e n t . N a m e ( ) ; 
 
 } 
 
 
 
 
 
 e g i s L a y o u t . p r o t o t y p e . G e t R e c t O b j e c t   =   f u n c t i o n ( x , y ) 
 
 { 
 
 	 i f ( n u l l ! = t h i s . r e c t E n c   & &   t h i s . r e c t E n c . C h e c k P o i n t ( x , y )   ) 
 
 	 { 
 
 	 	 / / a l e r t ( " r e c t E n c " ) ; 
 
 	 	 r e t u r n   t h i s . r e c t E n c ; 
 
 	 } e l s e   i f ( n u l l ! = t h i s . r e c t D e c   & &   t h i s . r e c t D e c . C h e c k P o i n t ( x , y )   ) 
 
 	 { 
 
 	 	 / / a l e r t ( " r e c t D e c " ) ; 
 
 	 	 r e t u r n   t h i s . r e c t D e c ; 
 
 	 } e l s e   i f ( n u l l ! = t h i s . r e c t P S D   & &   t h i s . r e c t P S D . C h e c k P o i n t ( x , y ) ) 
 
 	 { 
 
 	 	 / / a l e r t ( " r e c t P S D " ) ; 
 
 	 	 r e t u r n   t h i s . r e c t P S D ; 
 
 	 } 
 
 	 r e t u r n   n u l l ; 
 
 } 
 
 
 
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / G a d g e t   S e t t i n g / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / 
 
 
 
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / 
 
 / / 
 
 / /   s e t t i n g s   e v e n t   c l o s e d 
 
 / / 
 
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / 
 
 f u n c t i o n   s e t t i n g s C l o s e d ( e v e n t ) 
 
 { 
 
 	 i f   ( e v e n t . c l o s e A c t i o n   = =   e v e n t . A c t i o n . c o m m i t ) 
 
         { 
 
                 / / / / S y s t e m . D e b u g . o u t p u t S t r i n g ( " s e t t i n g s C l o s e d " ) ; 
 
 	 	 / / G e t   S e t t i n g ; 
 
 	 	 m y S e t t i n g . l o a d ( ) ; 
 
 	 	 / / l o a d S e t t i n g s ( ) ; 
 
 	 	 / / 
 
 	 	 u p d a t e L a y o u t ( ) ; 
 
         } 
 
 
 
 } 