ÿþ/ / < ! - -   p o p u p   l o g i n   w i n d o w   c o l o r b o x   - - >  
 f u n c t i o n   l o g i n b o x ( u r l )   {  
         u r l   + =   " ? R e t u r n U r l = "   +   e n c o d e U R I C o m p o n e n t ( t o p . l o c a t i o n . h r e f . r e p l a c e ( " # " ,   " " ) ) ;  
         j Q u e r y . c o l o r b o x ( {  
                 w i d t h :   " 6 0 0 p x " ,   h e i g h t :   " 4 0 0 p x " ,  
                 i f r a m e :   t r u e ,  
                 t i t l e :   " M e m b e r s h i p " ,   h r e f :   u r l ,  
                 c l o s e :   ' < t a b l e > < t r > < t d > < f o n t   c o l o r = " # 9 9 0 0 3 3 " > < b > X   c l o s e < / b > < / f o n t > < / t d > < / t r > < / t a b l e > ' ,  
                 o n O p e n :   f u n c t i o n ( )   {   } ,   o n L o a d :   f u n c t i o n ( )   {   } ,   o n C o m p l e t e :   f u n c t i o n ( )   {   } ,  
                 o n C l e a n u p :   f u n c t i o n ( )   {   } ,   o n C l o s e d :   f u n c t i o n ( )   {   }  
         } ) ;  
 }  
 / / < ! - -   p o p u p   l o g i n   w i n d o w   c o l o r b o x   - - >  
  
 / /   U R L   e n c o d e   / d e c o d e   u n i c o d e  
 f u n c t i o n   u r l e n c o d e ( u r l )   {   r e t u r n   e n c o d e U R I C o m p o n e n t ( u r l )   }  
 f u n c t i o n   u r l d e c o d e ( u r l )   {   r e t u r n   d e c o d e U R I C o m p o n e n t ( u r l )   }  
 / /   U R L   e n c o d e   / d e c o d e   u n i c o d e  
  
 / / < ! - -   J a v a s c r i p t   T r i m   F u n c t i o n s - - >  
 f u n c t i o n   t r i m ( s t r i n g T o T r i m )   {  
         i f   ( s t r i n g T o T r i m   = =   ' u n d e f i n e d '   | |   s t r i n g T o T r i m   = =   n u l l )   r e t u r n   ' ' ;  
         r e t u r n   s t r i n g T o T r i m . r e p l a c e ( / ^ \ s + | \ s + $ / g ,   " " ) ;  
 }  
 f u n c t i o n   l t r i m ( s t r i n g T o T r i m )   {  
         i f   ( s t r i n g T o T r i m   = =   ' u n d e f i n e d '   | |   s t r i n g T o T r i m   = =   n u l l )   r e t u r n   ' ' ;  
         r e t u r n   s t r i n g T o T r i m . r e p l a c e ( / ^ \ s + / ,   " " ) ;  
 }  
 f u n c t i o n   r t r i m ( s t r i n g T o T r i m )   {  
         i f   ( s t r i n g T o T r i m   = =   ' u n d e f i n e d '   | |   s t r i n g T o T r i m   = =   n u l l )   r e t u r n   ' ' ;  
         r e t u r n   s t r i n g T o T r i m . r e p l a c e ( / \ s + $ / ,   " " ) ;  
 }  
 / / < ! - -   J a v a s c r i p t   T r i m   F u n c t i o n s - - >  
  
 / / < ! - -   T e x t   S e c m e y i   e n g e l l e   - - >  
 f u n c t i o n   d i s a b l e S e l e c t i o n ( t a r g e t )   {  
         i f   ( t y p e o f   t a r g e t . o n s e l e c t s t a r t   ! =   " u n d e f i n e d " )   / / I E   r o u t e  
                 t a r g e t . o n s e l e c t s t a r t   =   f u n c t i o n ( )   {   r e t u r n   f a l s e   }  
         e l s e   i f   ( t y p e o f   t a r g e t . s t y l e . M o z U s e r S e l e c t   ! =   " u n d e f i n e d " )   / / F i r e f o x   r o u t e  
                 t a r g e t . s t y l e . M o z U s e r S e l e c t   =   " n o n e "  
         e l s e   / / A l l   o t h e r   r o u t e   ( i e :   O p e r a )  
                 t a r g e t . o n m o u s e d o w n   =   f u n c t i o n ( )   {   r e t u r n   f a l s e   }  
         t a r g e t . s t y l e . c u r s o r   =   " d e f a u l t "  
 }  
 / / < ! - -   T e x t   S e c m e y i   e n g e l l e   - - >  
  
 / /   m a k e   f r a m e s   t r a n s p a r e n t   c a l l   i t   a f t e r   d o c u m e n t   f u l l   l o a d e d ! ! !  
 f u n c t i o n   T r a n s p a r e n t F r a m e s ( )   {  
         v a r   t h e f r a m e s   =   d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( ' i f r a m e ' ) ;  
         f o r   ( v a r   i   =   0 ;   i   <   t h e f r a m e s . l e n g t h ;   i + + )   {  
                 t h e f r a m e s [ i ] . s e t A t t r i b u t e ( " a l l o w T r a n s p a r e n c y " ,   " t r u e " ) ;  
         }  
 }  
 v a r   $   =   j Q u e r y ;  
  
 $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( )   {  
         / * g o t o   t o p   o f   t h e   p a g e * /  
         $ ( w i n d o w ) . s c r o l l ( f u n c t i o n ( )   {  
                 i f   ( $ ( d o c u m e n t ) . s c r o l l T o p ( )   > =   1 0 )   {  
                         $ ( " # g o t o t o p " ) . f a d e I n ( " s l o w " ) ;  
                         $ ( " # g o t o t o p " ) . c s s ( " v i s i b i l i t y " ,   " v i s i b l e " ) ;   / /   i e   f i x  
                 }   e l s e   {   $ ( " # g o t o t o p " ) . f a d e O u t ( " f a s t " ) ;   }  
         } ) ;  
 } ) ;  
  
  
 / * G e t   s e t   C o o k i e * /  
 f u n c t i o n   s e t _ c o o k i e ( n a m e ,   v a l u e ,   d a y s )   {  
         i f   ( d a y s )   {  
                 v a r   d a t e   =   n e w   D a t e ( ) ;  
                 d a t e . s e t T i m e ( d a t e . g e t T i m e ( )   +   ( d a y s   *   2 4   *   6 0   *   6 0   *   1 0 0 0 ) ) ;  
                 v a r   e x p i r e s   =   " ;   e x p i r e s = "   +   d a t e . t o G M T S t r i n g ( ) ;  
         }  
         e l s e   v a r   e x p i r e s   =   " " ;  
         d o c u m e n t . c o o k i e   =   n a m e   +   " = "   +   v a l u e   +   e x p i r e s   +   " ;   p a t h = / " ;  
 }  
 f u n c t i o n   g e t _ c o o k i e ( n a m e )   {  
         v a r   n a m e E Q   =   n a m e   +   " = " ;  
         v a r   c a   =   d o c u m e n t . c o o k i e . s p l i t ( ' ; ' ) ;  
         f o r   ( v a r   i   =   0 ;   i   <   c a . l e n g t h ;   i + + )   {  
                 v a r   c   =   c a [ i ] ;  
                 w h i l e   ( c . c h a r A t ( 0 )   = =   '   ' )   c   =   c . s u b s t r i n g ( 1 ,   c . l e n g t h ) ;  
                 i f   ( c . i n d e x O f ( n a m e E Q )   = =   0 )   r e t u r n   c . s u b s t r i n g ( n a m e E Q . l e n g t h ,   c . l e n g t h ) ;  
         }  
         r e t u r n   n u l l ;  
 }  
 f u n c t i o n   e r a s e _ c o o k i e ( n a m e )   {  
         s e t _ c o o k i e ( n a m e ,   " " ,   - 1 ) ;  
 }  
  
  
 f u n c t i o n   i s I E ( )   {  
         v a r   r v   =   - 1 ;   / /   R e t u r n   v a l u e   a s s u m e s   f a i l u r e .  
         i f   ( n a v i g a t o r . a p p N a m e   = =   ' M i c r o s o f t   I n t e r n e t   E x p l o r e r ' )   {  
                 v a r   u a   =   n a v i g a t o r . u s e r A g e n t ;  
                 v a r   r e   =   n e w   R e g E x p ( " M S I E   ( [ 0 - 9 ] { 1 , } [ \ . 0 - 9 ] { 0 , } ) " ) ;  
                 i f   ( r e . e x e c ( u a )   ! =   n u l l )  
                         r v   =   p a r s e F l o a t ( R e g E x p . $ 1 ) ;  
         }  
         r e t u r n   r v ;  
 }  
 / * c l e a r   e s c a p e * /  
 f u n c t i o n   c l r ( e ,   e l )   {  
         v a r   t ;  
         i f   ( i s I E ( )   ! =   - 1 )   {  
                 i f   ( e . k e y C o d e   = =   2 7 )   {   t   =   s e t T i m e o u t ( f u n c t i o n ( )   {   e l . v a l u e   =   ' ' ;   c l e a r T i m e o u t ( t ) ;   } ,   1 0 ) ;   }   / / I E  
         }   e l s e   {  
                 i f   ( e . w h i c h   = = =   2 7 )   {   t   =   s e t T i m e o u t ( f u n c t i o n ( )   {   e l . v a l u e   =   ' ' ;   c l e a r T i m e o u t ( t ) ;   } ,   1 0 ) ;   }       / / f i r e f o x  
         }  
 }  
 
