ÿþd o c u m e n t . o n k e y d o w n = r e f r e s h S e l f ;  
 f u n c t i o n   r e f r e s h S e l f ( e v e n t ) {  
         i f ( ! e v e n t )   e v e n t = w i n d o w . e v e n t ;  
 	 i f ( e v e n t . k e y C o d e = = 1 2 2   | |   e v e n t . k e y C o d e = = 1 1 4 ) {  
 	 	 t r y { e v e n t . k e y C o d e = 0 ; } c a t c h ( e ) { }  
 	 	 e v e n t . r e t u r n V a l u e = f a l s e ;  
 	 }  
  
 	 i f   ( e v e n t . k e y C o d e = = 1 1 6 ) {  
 	 	 s e l f . l o c a t i o n . r e l o a d ( t r u e ) ;  
 	 	 t r y { e v e n t . k e y C o d e = 0 ; } c a t c h ( e ) { }  
 	 	 e v e n t . c a n c e l B u b b l e = t r u e ;  
 	 	 e v e n t . r e t u r n V a l u e = f a l s e ;  
 	 }  
 	 v a r   f n k e y s = n e w   A r r a y ( 6 6 , 6 8 , 6 9 , 7 2 , 7 3 , 7 6 , 7 8 , 7 9 , 8 0 , 8 2 , 8 7 ) ;  
 	 i f ( e v e n t . c t r l K e y ) {  
 	         v a r   i f n k e y ;  
 	 	 f o r ( i f n k e y = 0 ; i f n k e y < f n k e y s . l e n g t h ; i f n k e y + + ) {  
 	 	 	 i f ( e v e n t . k e y C o d e = = f n k e y s [ i f n k e y ] ) {  
 	 	 	 	 t r y { e v e n t . k e y C o d e = 0 ; } c a t c h ( e ) { }  
 	 	 	 	 e v e n t . r e t u r n V a l u e = f a l s e ;  
 	 	 	 	 r e t u r n   f a l s e ;  
 	 	 	 	 b r e a k ;  
 	 	 	 }  
 	 	 }  
 	 }  
 	 i f ( e v e n t . k e y C o d e = = 9   & &   e v e n t . c t r l K e y ) {  
 	 	 i f   ( p a r e n t . D e a l W i t h C t r l T a b ) {  
 	 	 	 p a r e n t . w i n d o w . b C t r l D o w n = t r u e ; 	  
 	 	 	 p a r e n t . D e a l W i t h C t r l T a b ( ) ;  
 	 	 } e l s e   i f   ( p a r e n t . p a r e n t . D e a l W i t h C t r l T a b ) {  
 	 	 	 p a r e n t . p a r e n t . w i n d o w . b C t r l D o w n = t r u e ;  
 	 	 	 p a r e n t . p a r e n t . D e a l W i t h C t r l T a b ( ) ; 	  
 	 	 } 	 	  
 	 }  
 	 i f ( e v e n t . k e y C o d e = = 6 9   & &   e v e n t . c t r l K e y   & &   e v e n t . s h i f t K e y ) {  
 	 	 i f   ( p a r e n t . t o p m e n u B a r H i d e L e f t ) {  
 	 	 	 p a r e n t . t o p m e n u B a r H i d e L e f t ( ) ;  
 	 	 } e l s e   i f ( p a r e n t . p a r e n t . t o p m e n u B a r H i d e L e f t ) {  
 	 	 	 p a r e n t . p a r e n t . t o p m e n u B a r H i d e L e f t ( ) ;  
 	 	 }  
 	 }  
 	  
 	 / * / C t r l   T a b * /  
 	 i f ( e v e n t . k e y C o d e = = 9   & &   e v e n t . c t r l K e y ) {  
 	 	 i f ( p a r e n t . D e a l W i t h C t r l T a b ) {  
 	 	 	 p a r e n t . b C t r l D o w n = t r u e ;  
 	 	 	 p a r e n t . D e a l W i t h C t r l T a b ( ) ;  
 	 	 } e l s e   i f   ( p a r e n t . p a r e n t . D e a l W i t h C t r l T a b ) {  
 	 	 	 p a r e n t . p a r e n t . b C t r l D o w n = t r u e ;  
 	 	 	 p a r e n t . p a r e n t . D e a l W i t h C t r l T a b ( ) ;  
 	 	 }  
 	 }  
 	  
 } 	    
  
 d o c u m e n t . o n m o u s e d o w n = d e a l W i t h M o u s e D o w n ;  
 f u n c t i o n   d e a l W i t h M o u s e D o w n ( ) {  
 	 i f ( p a r e n t . a c t i v e S u b w i n F r o m C h i l d ) {  
 	 	 p a r e n t . a c t i v e S u b w i n F r o m C h i l d ( w i n d o w ) ;  
 	 } e l s e   i f ( p a r e n t . p a r e n t . a c t i v e S u b w i n F r o m C h i l d ) {  
 	 	 p a r e n t . p a r e n t . a c t i v e S u b w i n F r o m C h i l d ( p a r e n t ) ;  
 	 }  
 }  
  
 / / d o c u m e n t . o n m o u s e m o v e = d e a l W i t h M o u s e M o v e ;  
 f u n c t i o n   d e a l W i t h M o u s e M o v e ( e v e n t ) {  
         i f ( ! e v e n t )   e v e n t   = w i n d o w . e v e n t ;  
 	 i f ( p a r e n t . S u b W i n M o v e ) {  
 	 	 p a r e n t . S u b W i n M o v e ( e v e n t . b u t t o n , e v e n t . c l i e n t X , e v e n t . c l i e n t Y ) ;  
 	 } e l s e   i f ( p a r e n t . p a r e n t . S u b W i n M o v e ) {  
 	 	 p a r e n t . p a r e n t . S u b W i n M o v e ( e v e n t . b u t t o n , e v e n t . c l i e n t X , e v e n t . c l i e n t Y ) ;  
 	 }  
 }  
 / / d o c u m e n t . o n m o u s e u p = d e a l W i t h M o u s e U p ;  
 f u n c t i o n   d e a l W i t h M o u s e U p ( ) {  
 	 i f ( p a r e n t . c a p t u r e ) {  
 	 	 p a r e n t . c a p t u r e = " " ; 	  
 	 } e l s e   i f ( p a r e n t . p a r e n t . c a p t u r e ) {  
 	 	 p a r e n t . p a r e n t . c a p t u r e = " " ; 	  
 	 }  
 } 
