ÿþ/ / * * * * * * * * * * * * * * * * * * * * * * * * * *   U n i c o d e   * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 / /   [ Ç á %Ó ü í 4%ß é ó ,%Ô â ú %Ò ä ú  %õ à Ñ <%Õ å ã µ ç Ã ¼øê ¿ Z%× ë ® T%Ú è ¬ i%Û ï ½ f%Ù î ¼ `%ì 1¡ P%ÿ Ä « l%¯ Å » ¤ ]  
 / /   [ ´ É ‘%º ­ æ ’%ª ± Æ “%Ê ½øô %Ë ¾ ö $%È ¶ ò Á »ø§ Â Í ÷ ù À Î ¸ 0© Ï ° Ö c%%¨ Ü Q%%· ø W%ˆ%¹ £ ]%„%³ Ø ¢ ¦ ² ^¥ Ì  %_%€%  ]  
 / / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *    
 / /   J S c r i p t   F i l e  
 f u n c t i o n   u n u _ t a b _ c l i c k ( o A N ) {  
 / / ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~  
 / / 	 F i n d   t h e   I D   o f   U L   e l e m e n t   w h i c h   i s   t h e   g r a n d p a r e n t   o f   t h i s   a n c h o r  
         i f   ( o A N . p a r e n t N o d e . c l a s s N a m e   ! =   " s e l e c t e d " )  
         {  
 	         v a r   u l i d = o A N . p a r e n t N o d e . p a r e n t N o d e . i d  
         / / 	 a l e r t ( " a c t i v a t i n g   t a b   a r e a =   " + u l i d ) ;  
         / / 	 C r e a t e   a n   a r r a y   c o n t a i n i n g   t h e   L I   e l e m e n t s   w i t h i n   t h i s   U L  
 	         v a r   u l l i s t = d o c u m e n t . g e t E l e m e n t B y I d ( u l i d ) . g e t E l e m e n t s B y T a g N a m e ( " l i " )  
         / / 	 C y c l e   t h r o u g h   e a c h   L I   e l e m e n t ,   d e s e l e c t   a l l   t a b s   a n d   h i d e   a l l   t a b   c o n t e n t s  
 	         f o r   ( v a r   i = 0 ;   i < u l l i s t . l e n g t h ;   i + + ) {  
 	 	         u l l i s t [ i ] . c l a s s N a m e = " "  
 	 	         v a r   n a m e D i v = u l l i s t [ i ] . g e t E l e m e n t s B y T a g N a m e ( " a " ) [ 0 ] . g e t A t t r i b u t e ( " r e l " )  
 	 	         i f ( ! ( n a m e D i v = = ' ' ) ) {  
         / / 	 	 	 a l e r t ( " c l e a r i n g   t a b =   " + n a m 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 ( n a m e 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 a m e D i v ) . s t y l e . d i s p l a y = " n o n e "  
 	 	 	         }  
 	 	         }  
 	         }  
         / / 	 H i g h l i g h t   c u r r e n t l y   c l i c k e d   o n   t a b  
 	         o A N . p a r e n t N o d e . c l a s s N a m e = " s e l e c t e d "  
         / / 	 S h o w   t h e   c o n t e n t   o f   c o r r e s p o n d i n g   t a b  
 	         v a r   e   =   d o c u m e n t . g e t E l e m e n t B y I d ( o A N . g e t A t t r i b u t e ( " r e l " ) ) ;  
 	         i f   ( e )  
 	 	         e . s t y l e . d i s p l a y = " b l o c k "  
         }  
 }  
  
 f u n c t i o n   p o s i t i v e I n t I n p u t ( e )   {   / /   K E Y P R E S S   e v e n t  
 / /   r e t u r n s   t r u e   i f   0 - 9   o r   B S   h i t ,   o r   c a n ' t   g e t   k e y   v a l u e ;   o t h e r w i s e   f a l s e  
  
     v a r   k   =   - 1 ;  
  
     i f   ( e   & &   e . w h i c h )    
         k   =   e . w h i c h ;   / /   N S  
     e l s e   i f   ( w i n d o w . e v e n t   & &   w i n d o w . e v e n t . k e y C o d e )   / /   I E  
         k   =   w i n d o w . e v e n t . k e y C o d e ;  
  
     r e t u r n   ( k   >   - 1   ?   ( ( k   >   4 7   & &   k   <   5 8 )   | |   k   = =   8 )   :   t r u e ) ;  
  
 }   / /   p o s i t i v e I n t I n p u t ( )  
  
                  
 f u n c t i o n   C o n f i r m S u b m i t ( e ,   p r o m p t )    
 {        
       v a r   r e s u l t   =   c o n f i r m ( p r o m p t ) ;  
        
       i f   ( w i n d o w . e v e n t )  
           w i n d o w . e v e n t . r e t u r n V a l u e   =   r e s u l t ;  
       e l s e   i f   ( ! r e s u l t )  
       {  
           e . p r e v e n t D e f a u l t ( ) ;    
       }  
 }                  
  
 v a r   M e m b e r C t r l   =   n u l l ;  
 v a r   M e m b e r L a b e l   =   n u l l ;  
  
 f u n c t i o n   f i n d P o s X ( o b j )  
     {  
         v a r   c u r l e f t   =   0 ;  
         i f ( o b j . o f f s e t P a r e n t )  
                 w h i l e ( 1 )    
                 {  
                     c u r l e f t   + =   o b j . o f f s e t L e f t ;  
                     i f ( ! o b j . o f f s e t P a r e n t )  
                         b r e a k ;  
                     o b j   =   o b j . o f f s e t P a r e n t ;  
                 }  
         e l s e   i f ( o b j . x )  
                 c u r l e f t   + =   o b j . x ;  
         r e t u r n   c u r l e f t ;  
     }  
  
     f u n c t i o n   f i n d P o s Y ( o b j )  
     {  
         v a r   c u r t o p   =   0 ;  
         i f ( o b j . o f f s e t P a r e n t )  
                 w h i l e ( 1 )  
                 {  
                     c u r t o p   + =   o b j . o f f s e t T o p ;  
                     i f ( ! o b j . o f f s e t P a r e n t )  
                         b r e a k ;  
                     o b j   =   o b j . o f f s e t P a r e n t ;  
                 }  
         e l s e   i f ( o b j . y )  
                 c u r t o p   + =   o b j . y ;  
         r e t u r n   c u r t o p ;  
     }  
  
  
 f u n c t i o n   P o p u p M e m b e r S e a r c h ( o ,   c t l I d ,   l b l I d )  
 {  
         v a r   P o p u p W i n = n u l l ;  
         v a r   l   =   2 8 0 ;  
         v a r   t   =   2 0 0 ;  
         v a r   w   =   6 2 0 ;  
         v a r   h   =   4 3 0 ;  
          
         i f ( o )  
         {  
             l = f i n d P o s X ( o ) + 2 0 ;  
             t = f i n d P o s Y ( o ) - 1 2 0 ;  
         }  
          
         M e m b e r C t r l   =   c t l I d ;  
         M e m b e r L a b e l   =   l b l I d ;  
         s e t t i n g s = ' s c r o l l b a r s = y e s , w i d t h = ' + w + ' , h e i g h t = ' + h + ' , l e f t = ' + l + ' , t o p = ' + t ;  
         P o p u p W i n = w i n d o w . o p e n ( ' M e m b e r S e a r c h . a s p x ? N N = 1 ' , ' M e m b e r S e a r c h ' , s e t t i n g s ) ;  
         P o p u p W i n . f o c u s ( ) ;  
 }  
  
 f u n c t i o n   U p d a t e M e m b e r N o ( r e t u r n V a l u e ,   m e m b e r N a m e )  
 {  
         i f   ( M e m b e r C t r l )  
         {  
                 v a r   c t r l   =   d o c u m e n t . g e t E l e m e n t B y I d ( M e m b e r C t r l ) ;  
                 i f   ( c t r l )  
                 {  
                         c t r l . v a l u e   =   r e t u r n V a l u e ;  
                         c t r l . f o c u s ( ) ;  
                 }  
         }  
         i f   ( M e m b e r L a b e l )  
         {  
                 v a r   c t r l   =   d o c u m e n t . g e t E l e m e n t B y I d ( M e m b e r L a b e l ) ;  
                 i f   ( c t r l )  
                 {  
                         c t r l . i n n e r H T M L   =   m e m b e r N a m e ;  
                 }  
         }  
 }  
  
 v a r   h e l p W n d ;  
 f u n c t i o n   p o p u p h e l p ( u r l ,   n a m e ,   w ,   h )  
 {  
 / /   h t t p : / / w w w . b o u t e l l . c o m / n e w f a q / c r e a t i n g / w i n d o w c e n t e r . h t m l  
     w   + =   3 2 ;  
     h   + =   9 6 ;  
     w l e f t   =   ( s c r e e n . w i d t h   -   w )   /   2 ;  
     w t o p   =   ( s c r e e n . h e i g h t   -   h )   /   2 ;  
     / /   I E 5   a n d   o t h e r   o l d   b r o w s e r s   m i g h t   a l l o w   a   w i n d o w   t h a t   i s  
     / /   p a r t i a l l y   o f f s c r e e n   o r   w i d e r   t h a n   t h e   s c r e e n .   F i x   t h a t .  
     / /   ( N e w e r   b r o w s e r s   f i x   t h i s   f o r   u s ,   b u t   l e t ' s   b e   t h o r o u g h . )  
     i f   ( w l e f t   <   0 )   {  
         w   =   s c r e e n . w i d t h ;  
         w l e f t   =   0 ;  
     }  
     i f   ( w t o p   <   0 )   {  
         h   =   s c r e e n . h e i g h t ;  
         w t o p   =   0 ;  
     }  
  
 	 h e l p W n d = w i n d o w . o p e n ( u r l ,   n a m e  
 	 , ' w i d t h = '   +   w   +   ' ,   h e i g h t = '   +   h   +   ' ,   '   +  
         ' l e f t = '   +   w l e f t   +   ' ,   t o p = '   +   w t o p   +   ' ,   '   +  
         ' t o o l b a r = n o , l o c a t i o n = n o , d i r e c t o r i e s = n o , s t a t u s = n o , m e n u b a r = n o , s c r o l l b a r s = Y e s , r e s i z a b l e = n o , c o p y h i s t o r y = n o ' ) ;  
         / /   J u s t   i n   c a s e   w i d t h   a n d   h e i g h t   a r e   i g n o r e d  
         h e l p W n d . r e s i z e T o ( w ,   h ) ;  
         / /   J u s t   i n   c a s e   l e f t   a n d   t o p   a r e   i g n o r e d  
         h e l p W n d . m o v e T o ( w l e f t ,   w t o p ) ;          
 	 i f   ( w i n d o w . f o c u s )    
 	 {  
 	         h e l p W n d . f o c u s ( )  
 	 }  
 }  
  
 f u n c t i o n   p o p u p i n f o ( u r l )  
 {  
         m = w i n d o w . o p e n ( u r l , ' m ' , ' w i d t h = 7 5 0 , h e i g h t = 6 5 0 ' ) ;  
         m . f o c u s ( ) ;  
 }  
  
 f u n c t i o n   u n u _ p o r t l e t _ c l i c k ( i t e m I d ) {  
 / / ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~  
 / /   e x p a n d i t   f u n c t i o n   c a l l s   t o g g l e S e c t i o n   f u n c t i o n   a f t e r   a  
 / /       s h o r t   d e l a y   s o   t h a t   i m a g e s   d i s p l a y   c o r r e c t l y  
 / / 	 a l e r t ( " w a i t   1 0   u n i t s   f o r   i d =   "   +   i t e m I d ) ;  
 	 w i n d o w . s e t T i m e o u t ( " t o g g l e S e c t i o n ( ' "   +   i t e m I d   +   " ' ) " , 1 0 ) ;  
 }  
  
 f u n c t i o n   t o g g l e S e c t i o n ( i t e m I d ) {  
 / / ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~  
 / /   t o g g l e S e c t i o n   f u n c t i o n   o p e n s   o r   c l o s e s   m e n u   s e c t i o n    
 	 v a r   o p e n D i s p l a y   =   " i n l i n e " ;  
 	 v a r   c l o s e d D i s p l a y   =   " n o n e " ;  
 	 v a r   a r r o w I d   =   i t e m I d . r e p l a c e ( " S e c t i o n P a n e l " ,   " A r r o w I m a g e " ) ;  
 	 v a r   a r r o w ,   i t e m ;  
                 	  
 / / 	 a l e r t ( " i d =   "   +   i t e m I d   +   "   a r r o w =   "   +   a r r o w I d ) ;  
 	 i f   ( d o c u m e n t . a l l )   {  
 	 	 i t e m   =   d o c u m e n t . a l l [ i t e m I d ] ;  
 	 	 a r r o w   =   d o c u m e n t . a l l [ a r r o w I d ] ;  
 	 }  
 	 i f   ( ! d o c u m e n t . a l l   & &   d o c u m e n t . g e t E l e m e n t B y I d )   {  
 	 	 i t e m   =   d o c u m e n t . g e t E l e m e n t B y I d ( i t e m I d ) ;  
 	 	 a r r o w   =   d o c u m e n t . g e t E l e m e n t B y I d ( a r r o w I d ) ;  
 	 }  
 	  
 	 i f   ( i t e m . s t y l e . d i s p l a y   = =   c l o s e d D i s p l a y )   {  
 	         a r r o w . s r c   =   a r r o w . s r c . r e p l a c e ( " D . " ,   " U . " ) ;  
 	 	 i t e m . s t y l e . d i s p l a y   =   o p e n D i s p l a y ;  
 	 }  
 	 e l s e   {  
 	         a r r o w . s r c   =   a r r o w . s r c . r e p l a c e ( " U . " ,   " D . " ) ;  
 	 	 i t e m . s t y l e . d i s p l a y   =   c l o s e d D i s p l a y ; 	 	  
 	 }  
 }  
  
 f u n c t i o n   P o p U p W i n d o w ( u r l ,   n a m e ,   w ,   h )  
 {  
     v a r   w n d ;  
 / /   h t t p : / / w w w . b o u t e l l . c o m / n e w f a q / c r e a t i n g / w i n d o w c e n t e r . h t m l  
     w   + =   3 2 ;  
     h   + =   9 6 ;  
     w l e f t   =   ( s c r e e n . w i d t h   -   w )   /   2 ;  
     w t o p   =   ( s c r e e n . h e i g h t   -   h )   /   2 ;  
     / /   I E 5   a n d   o t h e r   o l d   b r o w s e r s   m i g h t   a l l o w   a   w i n d o w   t h a t   i s  
     / /   p a r t i a l l y   o f f s c r e e n   o r   w i d e r   t h a n   t h e   s c r e e n .   F i x   t h a t .  
     / /   ( N e w e r   b r o w s e r s   f i x   t h i s   f o r   u s ,   b u t   l e t ' s   b e   t h o r o u g h . )  
     i f   ( w l e f t   <   0 )   {  
         w   =   s c r e e n . w i d t h ;  
         w l e f t   =   0 ;  
     }  
     i f   ( w t o p   <   0 )   {  
         h   =   s c r e e n . h e i g h t ;  
         w t o p   =   0 ;  
     }  
  
 	 w n d = w i n d o w . o p e n ( u r l ,   n a m e  
 	 , ' w i d t h = '   +   w   +   ' ,   h e i g h t = '   +   h   +   ' ,   '   +  
         ' l e f t = '   +   w l e f t   +   ' ,   t o p = '   +   w t o p   +   ' ,   '   +  
         ' t o o l b a r = n o , l o c a t i o n = y e s , d i r e c t o r i e s = n o , s t a t u s = n o , m e n u b a r = n o , s c r o l l b a r s = Y e s , r e s i z a b l e = n o , c o p y h i s t o r y = n o ' ) ;  
         / /   J u s t   i n   c a s e   w i d t h   a n d   h e i g h t   a r e   i g n o r e d  
         w n d . r e s i z e T o ( w ,   h ) ;  
         / /   J u s t   i n   c a s e   l e f t   a n d   t o p   a r e   i g n o r e d  
         w n d . m o v e T o ( w l e f t ,   w t o p ) ;          
 	 i f   ( w i n d o w . f o c u s )    
 	 {  
 	         w n d . f o c u s ( )  
 	 }  
 }  
  
 f u n c t i o n   C l o s e P o p U p W i n d o w ( )  
 {  
         i f   ( w i n d o w . d i a l o g A r g u m e n t s )    
         {  
                     w i n d o w . d i a l o g A r g u m e n t s . d o P o s t B a c k ( ) ;  
         }  
         e l s e   i f   ( o p e n e r )  
         {  
                     o p e n e r . d o P o s t B a c k ( ) ;  
                     o p e n e r . f o c u s ( ) ;  
         }  
         e l s e   i f   ( w i n d o w . o p e n e r )  
 	 {  
                 w i n d o w . o p e n e r . d o P o s t B a c k ( ) ;  
                 w i n d o w . o p e n e r . f o c u s ( ) ; 	          
 	 }  
 	 / /   c l o s e   t h i s   p o p u p  
 	 s e l f . c l o s e ( ) ;  
 } 
