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