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