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