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