ÿþf u n c t i o n   c h a n g e S t y l e ( e )   {  
 	 v a r   o b j e c t ;  
 	 i f ( w i n d o w . e v e n t )  
 	 	 o b j e c t   =   e v e n t . s r c E l e m e n t ;  
 	 e l s e  
 	 	 o b j e c t   =   e . t a r g e t ;  
 	 	  
 	 	  
 	 i f   ( o b j e c t . c l a s s N a m e   = =   ' s u b O f f ' )  
 	 	 o b j e c t . c l a s s N a m e   =   ' s u b O v e r ' ;  
 	 e l s e   i f   ( o b j e c t . c l a s s N a m e   ! =   ' s u b O n ' )  
 	 	 o b j e c t . c l a s s N a m e   =   ' s u b O f f ' ;  
 }  
  
 f u n c t i o n   l o a d ( u r l )   {  
 	 i f ( g e t C o o k i e ( ' W E B S E S S I O N ' ,   ' I D ' ) )  
 	 	 d o c u m e n t . l o c a t i o n . h r e f   =   u r l ;  
 	 e l s e  
 	 	 i f ( u r l . i n d e x O f ( ' ? ' )   >   0 )  
 	 	 	 d o c u m e n t . l o c a t i o n . h r e f   =   u r l   +   ' & w e b s e s s i o n i d = '   +   w e b s e s s i o n i d ;  
 	 	 e l s e  
 	 	 	 d o c u m e n t . l o c a t i o n . h r e f   =   u r l   +   ' ? w e b s e s s i o n i d = '   +   w e b s e s s i o n i d ;  
 }  
  
 f u n c t i o n   c 4 l o a d ( u r l )   {  
 	 i f ( u r l . s u b s t r i n g ( 0 , 1 1 )   = =   ' j a v a s c r i p t : ' )  
 	         e v a l ( u n e s c a p e ( u r l . s u b s t r i n g ( 1 1 ) ) ) ;  
 	 e l s e  
 	         d o c u m e n t . l o c a t i o n . h r e f   =   u r l ;  
 }  
  
 f u n c t i o n   g e t C o o k i e ( n a m e ,   s u b n a m e )   {  
 	 v a r   c o o k i e   =   d o c u m e n t . c o o k i e ;    
 	 v a r   i n d e x   =   c o o k i e . i n d e x O f ( n a m e   +   " = " ) ;  
 	  
 	 i f   ( i n d e x   = =   - 1 )   r e t u r n   n u l l ;  
 	 i n d e x   =   c o o k i e . i n d e x O f ( " = " ,   i n d e x )   +   1 ;    
 	 v a r   e n d s t r   =   c o o k i e . i n d e x O f ( " ; " ,   i n d e x ) ;  
 	 i f   ( e n d s t r   = =   - 1 )   e n d s t r   =   c o o k i e . l e n g t h ;  
 	 c o o k i e   =   c o o k i e . s u b s t r i n g ( i n d e x ,   e n d s t r ) ;  
 	 i f   ( s u b n a m e )   {  
 	 	 i n d e x   =   c o o k i e . i n d e x O f ( s u b n a m e   +   " = " ) ;  
 	 	 i f   ( i n d e x   = =   - 1 )   r e t u r n   n u l l ;  
 	 	 i n d e x   =   c o o k i e . i n d e x O f ( " = " ,   i n d e x )   +   1 ;    
 	 	 e n d s t r   =   c o o k i e . i n d e x O f ( " & " ,   i n d e x ) ;  
 	 	 i f   ( e n d s t r   = =   - 1 )   e n d s t r   =   c o o k i e . l e n g t h ;  
 	 	 c o o k i e   =   c o o k i e . s u b s t r i n g ( i n d e x ,   e n d s t r ) ;  
 	 }  
 	  
 	 r e t u r n   u n e s c a p e ( c o o k i e ) ;  
 }  
  
 f u n c t i o n   w r i t e C o o k i e ( n a m e ,   v a l u e )   {  
 	 v a r   c C o o k i e ;  
 	 v a r   d a t e   =   n e w   D a t e ( ) ;  
 	 v a r   n e w D a t e   =   n e w   D a t e ( ( d a t e . g e t F u l l Y e a r ( ) + 1 ) , d a t e . g e t M o n t h ( ) , d a t e . g e t D a t e ( ) ) ;  
 	 c C o o k i e   =   n a m e   +   ' = '   +   v a l u e   +   ' ;   p a t h = / ' ;  
 	 d o c u m e n t . c o o k i e   =   c C o o k i e ;  
 }  
  
 f u n c t i o n   r e m o v e F r o m C o o k i e ( n a m e , s t r i n g )   {  
 	 v a r   c o o k i e   =   g e t C o o k i e ( ' C N P V o t e s ' ) ;  
 	 w r i t e C o o k i e ( n a m e , c o o k i e . r e p l a c e ( s t r i n g , ' ' ) ) ;  
 }  
  
 f u n c t i o n   i n i t P a g e ( )   {  
 	 / / C h e c k   i f   w e   s u p p o r t   c o o k i e s   o t h e r w i s e   t r y   t o   a d d   i t   t o   h r e f  
 	 i f   ( n u l l   = =   g e t C o o k i e ( ' W E B S E S S I O N ' ,   ' I D ' ) )  
 	 	 f o r ( i = 0 ;   i < d o c u m e n t . l i n k s . l e n g t h ;   i + + )   {  
 	 	 	 i f ( d o c u m e n t . l i n k s [ i ] . h r e f . s u b s t r i n g ( 0 , 4 ) = = ' h t t p ' )  
 	 	 	 	 i f ( d o c u m e n t . l i n k s [ i ] . h r e f . i n d e x O f ( ' ? ' )   >   0 )  
 	 	 	 	 	 d o c u m e n t . l i n k s [ i ] . h r e f   + =   ' & w e b s e s s i o n i d = '   +   w e b s e s s i o n i d ;  
 	 	 	 	 e l s e  
 	 	 	 	 	 d o c u m e n t . l i n k s [ i ] . h r e f   + =   ' ? w e b s e s s i o n i d = '   +   w e b s e s s i o n i d ;  
 	 	 }  
 }  
  
 f u n c t i o n   p o p u p ( u r l ,   w i d t h ,   h e i g h t ,   s c r o l l b a r s ,   e x t r a s )   {  
 	 i f ( e x t r a s ! = n u l l )  
 	 	 e x t r a s   =   ' , '   +   e x t r a s ;  
 	 e l s e  
 	 	 e x t r a s   =   ' , '   +   ' l o c a t i o n b a r = 0 , m e n u b a r = 0 , s t a t u s b a r = 0 , t o o l b a r = 0 , s t a t u s = 0 , l o c a t i o n = 0 , r e s i z a b l e = n o ' ;  
 	 n e w w i n   =   w i n d o w . o p e n ( u r l ,   ' ' , ' w i d t h = '   +   w i d t h   + ' , h e i g h t = '   +   h e i g h t   +   ' ,   s c r o l l b a r s = '   +   s c r o l l b a r s   +   e x t r a s ) ;  
 	 n e w w i n . f o c u s ( ) ;  
 }  
  
 f u n c t i o n   s e t F o r m V a l u e ( f o r m ,   i t e m ,   v a l u e )   {  
 	 d o c u m e n t . f o r m s [ f o r m ] . e l e m e n t s [ i t e m ] . v a l u e   =   v a l u e ;  
 }  
  
 f u n c t i o n   s e t F o r m F o c u s ( f o r m ,   i t e m )   {  
 	 d o c u m e n t . f o r m s [ f o r m ] . e l e m e n t s [ i t e m ] . f o c u s ( ) ;  
 }  
  
 f u n c t i o n   u n i D e c o d e ( s t r )   {  
 	 / / C o n v e r t   2 - b y t e   c h a r s   t o   o n e   b y t e   ( n e e d e d   b e c a u s 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   c a n n o t   h a n d l e   U n i c o d e   s t r i n g s   i n   J a v a S c r i p t )  
 	 v a r   r e ;  
 	 r e = / Ã œ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " Ü " ) ;  
 	 r e = / Ã ¼ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " ü " ) ;  
 	 r e = / Ã ‰ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " É " ) ;  
 	 r e = / Ã © / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " é " ) ;  
 	 r e = / Ã ¥ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " å " ) ;  
 	 r e = / Ã – / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " Ö " ) ;  
 	 r e = / Ã „ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " Ä " ) ;  
 	 r e = / Ã ¶ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " ö " ) ;  
 	 r e = / Ã … / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " Å " ) ;  
 	 r e = / Ã ¤ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " ä " ) ;  
 	 r e = / Ã ˜ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " Ø " ) ;  
 	 r e = / Ã ¸ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " ø " ) ;  
 	 r e = / Ã † / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " Æ " ) ;  
 	 r e = / Ã ¦ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " æ " ) ;  
 	  
 	 r e t u r n   s t r ;  
 }  
  
 f u n c t i o n   c r e a t e F l a s h ( f l a s h P a t h ,   w i d t h ,   h e i g h t , u r l )   {  
  
 	 i f ( u r l ! = n u l l   & &   u r l ! = ' ' )   {  
 	 	 d o c u m e n t . w r i t e ( ' < a   h r e f = " '   +   u r l   +   ' "   t a r g e t = " _ b l a n k " > ' ) ;  
 	 	 d o c u m e n t . w r i t e ( ' < o b j e c t   c l a s s i d = " c l s i d : D 2 7 C D B 6 E - A E 6 D - 1 1 c f - 9 6 B 8 - 4 4 4 5 5 3 5 4 0 0 0 0 "   c o d e b a s e = " h t t p : / / d o w n l o a d . m a c r o m e d i a . c o m / p u b / s h o c k w a v e / c a b s / f l a s h / s w f l a s h . c a b # v e r s i o n = 7 , 0 , 1 9 , 0 "   w i d t h = " ' +   w i d t h   + ' "   h e i g h t = " ' +   h e i g h t   + ' "   i d = " c a s e _ s m o o t h "   a l i g n = " m i d d l e " > '   +  
 	 	 ' < p a r a m   n a m e = " a l l o w S c r i p t A c c e s s "   v a l u e = " s a m e D o m a i n "   / > '   +  
 	 	 ' < p a r a m   n a m e = " m o v i e "   v a l u e = " ' +   f l a s h P a t h   + ' "   / > '   +  
 	 	 ' < p a r a m   n a m e = " q u a l i t y "   v a l u e = " b e s t "   / > '   +  
 	 	 ' < p a r a m   n a m e = " b g c o l o r "   v a l u e = " # f f f f f f "   / > '   +  
 	 	 ' < e m b e d   s r c = " ' +   f l a s h P a t h   + ' "   q u a l i t y = " b e s t "   b g c o l o r = " # f f f f f f "   w i d t h = " ' +   w i d t h   + ' "   h e i g h t = " ' +   h e i g h t   + ' "   n a m e = " c a s e _ s m o o t h "   a l i g n = " m i d d l e "   a l l o w S c r i p t A c c e s s = " s a m e D o m a i n "   t y p e = " a p p l i c a t i o n / x - s h o c k w a v e - f l a s h "   p l u g i n s p a g e = " h t t p : / / w w w . m a c r o m e d i a . c o m / g o / g e t f l a s h p l a y e r "   / > '   +  
 	 	 ' < / o b j e c t > \ n ' ) ;  
 	 	 d o c u m e n t . w r i t e ( ' < / a > ' ) ;  
 	 }  
 	 e l s e   {  
       	 	   d o c u m e n t . w r i t e ( ' < o b j e c t   c l a s s i d = " c l s i d : D 2 7 C D B 6 E - A E 6 D - 1 1 c f - 9 6 B 8 - 4 4 4 5 5 3 5 4 0 0 0 0 "   c o d e b a s e = " h t t p : / / d o w n l o a d . m a c r o m e d i a . c o m / p u b / s h o c k w a v e / c a b s / f l a s h / s w f l a s h . c a b # v e r s i o n = 7 , 0 , 1 9 , 0 "   w i d t h = " ' +   w i d t h   + ' "   h e i g h t = " ' +   h e i g h t   + ' "   i d = " c a s e _ s m o o t h "   a l i g n = " m i d d l e " > '   +  
 	 	 ' < p a r a m   n a m e = " a l l o w S c r i p t A c c e s s "   v a l u e = " s a m e D o m a i n "   / > '   +  
 	 	 ' < p a r a m   n a m e = " m o v i e "   v a l u e = " ' +   f l a s h P a t h   + ' "   / > '   +  
 	 	 ' < p a r a m   n a m e = " q u a l i t y "   v a l u e = " b e s t "   / > '   +  
 	 	 ' < p a r a m   n a m e = " b g c o l o r "   v a l u e = " # f f f f f f "   / > '   +  
 	 	 ' < e m b e d   s r c = " ' +   f l a s h P a t h   + ' "   q u a l i t y = " b e s t "   b g c o l o r = " # f f f f f f "   w i d t h = " ' +   w i d t h   + ' "   h e i g h t = " ' +   h e i g h t   + ' "   n a m e = " c a s e _ s m o o t h "   a l i g n = " m i d d l e "   a l l o w S c r i p t A c c e s s = " s a m e D o m a i n "   t y p e = " a p p l i c a t i o n / x - s h o c k w a v e - f l a s h "   p l u g i n s p a g e = " h t t p : / / w w w . m a c r o m e d i a . c o m / g o / g e t f l a s h p l a y e r "   / > '   +  
 	 	 ' < / o b j e c t > \ n ' ) ;  
 	 }  
  
 }  
  
 
