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