ÿþj Q u e r y . f n . c e n t e r   =   f u n c t i o n ( ) {  
 	 v a r   w   =   $ ( w i n d o w ) ;  
 	 t h i s . c s s ( " p o s i t i o n " , " a b s o l u t e " ) ;  
 	 t h i s . c s s ( " t o p " , ( w . h e i g h t ( ) - t h i s . h e i g h t ( ) ) / 2 + w . s c r o l l T o p ( )   +   " p x " ) ;  
 	 t h i s . c s s ( " l e f t " , ( w . w i d t h ( ) - t h i s . w i d t h ( ) ) / 2 + w . s c r o l l L e f t ( )   +   " p x " ) ;  
 	 r e t u r n   t h i s ;  
 }  
 f u n c t i o n   d o C e n t e r ( s p e e d )   {  
 	 v a r   w   =   $ ( w i n d o w ) ;  
 	 v a r   x x   =   ( w . w i d t h ( ) - $ ( ' # b o x ' ) . w i d t h ( ) ) / 2 + w . s c r o l l L e f t ( ) ;  
 	 v a r   y y   =   ( w . h e i g h t ( ) - $ ( ' # b o x ' ) . h e i g h t ( ) ) / 2 + w . s c r o l l T o p ( ) ;  
 	 $ ( ' # b o x ' ) . a n i m a t e ( { " l e f t " :   x x , " t o p " :   y y } , s p e e d , " e a s e O u t B o u n c e " ) ;  
 }  
  
 f u n c t i o n   s h o w _ c o u n t e r ( )   {      
 	 $ . a j a x ( {      
 	 	 u r l :   " c o u n t e r . p h p " ,      
 	 	 c a c h e :   f a l s e ,      
 	 	 s u c c e s s :   f u n c t i o n ( h t m l ) {      
 	 	 	 $ ( " # c o u n t e r " ) . h t m l ( h t m l ) ;      
 	 	 }      
 	 } ) ;      
 }      
      
 $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( ) {  
  
 	 v a r   r e s i z e T i m e r   =   n u l l ;  
 	 $ ( w i n d o w ) . b i n d ( ' r e s i z e ' ,   f u n c t i o n ( )   {  
 	 	 i f   ( r e s i z e T i m e r )   c l e a r T i m e o u t ( r e s i z e T i m e r ) ;  
 	 	 r e s i z e T i m e r   =   s e t T i m e o u t ( d o C e n t e r ( 2 0 0 0 ) ,   5 0 0 ) ;  
 	 } ) ;  
 	  
 	 $ ( " # b o x " ) . c e n t e r ( ) ; 	  
 	 $ ( " b o d y " ) . h i d e ( ) ;    
  
 	 $ ( " # b o x " ) . d r a g g a b l e ( {    
 	 	 d e l a y :   1 0 0 ,  
 	 	 s t o p :   f u n c t i o n ( )   {   d o C e n t e r ( 1 0 0 0 ) ;   }  
 	 } ) ;  
  
  
 	 $ ( ' b o d y ' ) . a n i m a t e ( {   o p a c i t y :   " s h o w "   } ,   2 0 0 0 ) ;  
 	  
 } ) ; 
