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