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