ÿþ
 v a r   $ m e s s a g e   =   n u l l ; 
 v a r   a j a x _ c o n t a i n e r   =   n u l l ; 
 v a r   T I D   =   n u l l ; 
 v a r   c a n _ l e a v e   =   t r u e ; 
 v a r   l e a v e _ h r e f   =   " " ; 
 
 f u n c t i o n   g e t _ e l ( e l ) 
 { 
 	 i f ( e l . j q u e r y ) 
 	 	 e l   =   e l [ 0 ] ; 
 	 e l s e   i f ( t y p e o f   e l   = =   " s t r i n g "   & &   / ^ # . * / . t e s t ( e l ) ) 
 	 	 e l   =   e l . s l i c e ( 1 ) ; 
 	 i f ( t y p e o f   e l   = =   " s t r i n g " ) 
 	 	 e l   =   d o c u m e n t . g e t E l e m e n t B y I d ( e l ) ; 
 	 r e t u r n   e l ; 
 } 
 
 f u n c t i o n   a l i g n _ e l ( e l ) 
 { 
 	 v a r   w w   =   $ ( w i n d o w ) . w i d t h ( ) ; 
 	 v a r   w h   =   $ ( w i n d o w ) . h e i g h t ( ) ; 
 	 v a r   e l   =   g e t _ e l ( e l ) ; 
 	 v a r   l e f t p   =   ( ( w w   -   e l . o f f s e t W i d t h )   /   2 ) + ' p x ' ; 
 	 v a r   t o p p   =   ( ( w h   -   e l . o f f s e t H e i g h t )   /   2 ) + ' p x ' ; 
 	 $ ( e l ) . c s s ( ' p o s i t i o n ' ,   ' f i x e d ' ) ; 
 	 $ ( e l ) . c s s ( ' l e f t ' ,   l e f t p ) ; 
 	 $ ( e l ) . c s s ( ' t o p ' ,   t o p p ) ; 
 } 
 
 f u n c t i o n   r e m o v e _ e l ( e l ) 
 { 
 	 v a r   $ e l   =   $ ( g e t _ e l ( e l ) ) ; 
 	 $ e l . r e m o v e ( ) ; 
 	 $ m e s s a g e   =   n u l l ; 
 	 $ ( " b o d y " ) . r e m o v e C l a s s ( " d i s a b l e " ) . f i n d ( " # d i s a b l e " ) . a d d C l a s s ( " h d " ) ; 
 } 
 
 f u n c t i o n   s h o w _ m e s s a g e ( 
 	 m e s s _ t y p e ,                       / /   t y p e   o f   m e s s a g e   { c a n c e l , o k , n o t e } 
 	 m e s s _ o k _ t x t ,                   / /   o k   b u t t o n   t e x t 
 	 m e s s _ c n _ t x t ,                   / /   c a n c e l   b u t t o n   t e x t   i f   e m p t y   t h e r e   w i l l   b e   o n l y   o k   b u t t o n 
 	 m e s s _ h d r ,                         / /   h e a d e r   t e x t   i f   e m p t y   w i l l   b e   o n l y   t e x t   m e s s a g e 
 	 m e s s _ t x t ,                         / /   m e s s a g e 
 	 m e s s _ o k _ f u n c ,                 / /   b i n d   t o   o k 
 	 m e s s _ o k _ f u n c _ a r g s ,       / /   b i n d   t o   o k 
 	 m e s s _ c n _ f u n c ,                 / /   b i n d   t o   c a n c e l 
 	 m e s s _ c n _ f u n c _ a r g s ,       / /   b i n d   t o   c a n c e l 
 	 m e s s _ s t _ f u n c ,                 / /   a d d   s e t T i m e o u t 
 	 m e s s _ s t _ f u n c _ a r g s ,       / /   a d d   s e t T i m e o u t 
 	 m e s s _ s t _ f u n c _ m s             / /   m i l e s e c o n d s   f o r   s e t T i m e o u t 
 ) 
 { 
 	 i f ( n u l l   ! =   $ m e s s a g e ) 
 	 	 r e t u r n ; 
 	 $ ( " b o d y " ) . a d d C l a s s ( " d i s a b l e " ) . f i n d ( " # d i s a b l e " ) . r e m o v e C l a s s ( " h d " ) ; 
 	 $ m e s s a g e   =   $ ( " # m e s s a g e " ) . c l o n e ( ) . p r e p e n d T o ( $ ( " b o d y " ) ) ; 
 	 i f ( m e s s _ h d r   ! =   ' ' ) 
 	 { 
 	 	 $ m e s s a g e . f i n d ( " . c o n t a i n e r   . h e a d e r _ t e x t " ) . t e x t ( m e s s _ h d r ) ; 
 	 	 $ m e s s a g e . f i n d ( " . c o n t a i n e r   . m e s s a g e _ t e x t " ) . t e x t ( m e s s _ t x t ) ; 
 	 	 i f ( m e s s _ t y p e   = =   ' c a n c e l ' ) 
 	 	 	 $ m e s s a g e . f i n d ( " . c o n t a i n e r   . h e a d e r _ t e x t " ) . a d d C l a s s ( " c R e d " ) ; 
 	 	 e l s e   i f ( m e s s _ t y p e   = =   ' n o t e ' ) 
 	 	 	 $ m e s s a g e . f i n d ( " . c o n t a i n e r   . h e a d e r _ t e x t " ) . a d d C l a s s ( " c B l u e " ) ; 
 	 	 e l s e 
 	 	 	 $ m e s s a g e . f i n d ( " . c o n t a i n e r   . h e a d e r _ t e x t " ) . a d d C l a s s ( " c G r e e n " ) ; 
 	 } 
 	 e l s e 
 	 { 
 	 	 $ m e s s a g e . f i n d ( " . c o n t a i n e r " ) . t e x t ( m e s s _ t x t ) ; 
 	 	 i f ( m e s s _ t y p e   = =   ' c a n c e l ' ) 
 	 	 	 $ m e s s a g e . f i n d ( " . c o n t a i n e r " ) . a d d C l a s s ( " c R e d " ) ; 
 	 	 e l s e   i f ( m e s s _ t y p e   = =   ' n o t e ' ) 
 	 	 	 $ m e s s a g e . f i n d ( " . c o n t a i n e r " ) . a d d C l a s s ( " c B l u e " ) ; 
 	 	 e l s e 
 	 	 	 $ m e s s a g e . f i n d ( " . c o n t a i n e r " ) . a d d C l a s s ( " c G r e e n " ) ; 
 	 } 
 	 $ m e s s a g e . f i n d ( " . o k " ) . v a l ( m e s s _ o k _ t x t ) ; 
 	 i f ( m e s s _ c n _ t x t . l e n g t h   >   0 ) 
 	 	 $ m e s s a g e . f i n d ( " . c n " ) . v a l ( m e s s _ c n _ t x t ) . r e m o v e C l a s s ( " h d " ) ; 
 	 i f ( $ . i s F u n c t i o n ( m e s s _ o k _ f u n c ) ) 
 	 	 $ m e s s a g e . f i n d ( " . o k " ) . b i n d ( " c l i c k " ,   f u n c t i o n ( ) { 
 	 	 	 m e s s _ o k _ f u n c _ a r g s [ ' m e s s a g e ' ]   =   $ m e s s a g e ; 
 	 	 	 m e s s _ o k _ f u n c ( m e s s _ o k _ f u n c _ a r g s ) ; 
 	 	 } ) ; 
 	 i f ( m e s s _ c n _ t x t . l e n g t h   >   0   & &   $ . i s F u n c t i o n ( m e s s _ o k _ f u n c ) ) 
 	 	 $ m e s s a g e . f i n d ( " . c n " ) . b i n d ( " c l i c k " ,   f u n c t i o n ( ) { 
 	 	 	 m e s s _ c n _ f u n c _ a r g s [ ' m e s s a g e ' ]   =   $ m e s s a g e ; 
 	 	 	 m e s s _ c n _ f u n c ( m e s s _ c n _ f u n c _ a r g s ) ; 
 	 	 } ) ; 
 	 i f ( m e s s _ s t _ f u n c . l e n g t h   >   0   & &   m e s s _ s t _ f u n c _ m s . l e n g t h   >   0 ) 
 	 	 w i n d o w . s e t T i m e o u t ( f u n c t i o n ( ) { 
 	 	 	 m e s s _ s t _ f u n c _ a r g s [ ' m e s s a g e ' ]   =   $ m e s s a g e ; 
 	 	 	 m e s s _ s t _ f u n c ( m e s s _ s t _ f u n c _ a r g s ) ; 
 	 	 } ,   m e s s _ s t _ f u n c _ m s ) ; 
 	 $ m e s s a g e . r e m o v e C l a s s ( " h d " ) ; 
 	 a l i g n _ e l ( $ m e s s a g e ) ; 
 } 
 
 f u n c t i o n   u r l e n c o d e ( s t r ) 
 { 
         s t r   =   ( s t r + ' ' ) . t o S t r i n g ( ) ; 
         i f ( $ . b r o w s e r . m s i e ) 
         	 r e t u r n   s t r . r e p l a c e ( /   / g ,   ' + ' ) 
 	         	 . r e p l a c e ( / ! / g ,   ' % 2 1 ' ) . r e p l a c e ( / ' / g ,   ' % 2 7 ' ) 
 	         	 . r e p l a c e ( / \ ( / g ,   ' % 2 8 ' ) . r e p l a c e ( / \ ) / g ,   ' % 2 9 ' ) 
 	         	 . r e p l a c e ( / \ * / g ,   ' % 2 A ' ) . r e p l a c e ( / % 2 0 / g ,   ' + ' ) ; 
         e l s e 
 	         r e t u r n   e n c o d e U R I C o m p o n e n t ( s t r ) 
 	         	 . r e p l a c e ( / ! / g ,   ' % 2 1 ' ) . r e p l a c e ( / ' / g ,   ' % 2 7 ' ) 
 	         	 . r e p l a c e ( / \ ( / g ,   ' % 2 8 ' ) . r e p l a c e ( / \ ) / g ,   ' % 2 9 ' ) 
 	         	 . r e p l a c e ( / \ * / g ,   ' % 2 A ' ) . r e p l a c e ( / % 2 0 / g ,   ' + ' ) ; 
 } 
 
 $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( ) { $ ( ' . p n g 2 4 ' ) . i f i x p n g ( ' / b i t r i x / j s / p i x e l . g i f ' ) ; } ) ; 
 
 $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( ) { 
 	 $ ( " a . t o o l t i p [ t i t l e ] " ) . q t i p ( { 
 	 	 p o s i t i o n :   { c o r n e r :   { t a r g e t :   ' r i g h t M i d d l e ' ,   t o o l t i p :   ' l e f t M i d d l e ' } ,   a d j u s t :   { x :   1 0 } } , 
 	 	 s t y l e :   { n a m e :   ' c r e a m ' ,   t i p :   t r u e ,   c o l o r :   ' # 5 5 5 5 5 5 ' ,   b a c k g r o u n d :   ' # f e f e e 9 ' , 
 	 	 	 b o r d e r :   { w i d t h :   1 ,   r a d i u s :   1 ,   c o l o r :   ' # f e e 0 b c ' } 
 	 	 } 
 	 } ) ; 
 } ) ; 
 
 $ ( " # f o o t e r _ l a y o u t " ) . r e a d y ( f u n c t i o n ( ) { 
 	 $ ( " # f o o t e r _ h e i g h t _ f i x " ) . h e i g h t ( ( $ ( " # f o o t e r _ l a y o u t " ) . h e i g h t ( ) + 6 0 ) ) ; 
 } ) ; 
