ÿþ  $ ( d o c u m e n t ) . r e a d y (   f u n c t i o n ( ) {  
        
     v a r   v i e w p o r t w i d t h ;  
   v a r   v i e w p o r t h e i g h t ;  
    
   / /   t h e   m o r e   s t a n d a r d s   c o m p l i a n t   b r o w s e r s   ( m o z i l l a / n e t s c a p e / o p e r a / I E 7 )   u s e   w i n d o w . i n n e r W i d t h   a n d   w i n d o w . i n n e r H e i g h t  
    
   i f   ( t y p e o f   w i n d o w . i n n e r W i d t h   ! =   ' u n d e f i n e d ' )  
   {  
             v i e w p o r t w i d t h   =   w i n d o w . i n n e r W i d t h ,  
             v i e w p o r t h e i g h t   =   w i n d o w . i n n e r H e i g h t  
   }  
    
 / /   I E 6   i n   s t a n d a r d s   c o m p l i a n t   m o d e   ( i . e .   w i t h   a   v a l i d   d o c t y p e   a s   t h e   f i r s t   l i n e   i n   t h e   d o c u m e n t )  
    
   e l s e   i f   ( t y p e o f   d o c u m e n t . d o c u m e n t E l e m e n t   ! =   ' u n d e f i n e d '  
           & &   t y p e o f   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h   ! =  
           ' u n d e f i n e d '   & &   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h   ! =   0 )  
   {  
               v i e w p o r t w i d t h   =   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h ,  
               v i e w p o r t h e i g h t   =   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t  
   }  
    
   / /   o l d e r   v e r s i o n s   o f   I E  
    
   e l s e  
   {  
               v i e w p o r t w i d t h   =   d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( ' b o d y ' ) [ 0 ] . c l i e n t W i d t h ,  
               v i e w p o r t h e i g h t   =   d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( ' b o d y ' ) [ 0 ] . c l i e n t H e i g h t  
   }  
    
  
       v a r   n u m b e r I m a g e s   =   p a r s e I n t ( ( v i e w p o r t w i d t h   -   3 0 0 )   /   1 5 0 ) ;  
        
       f o r   ( v a r   i   =   0 ;   i   <   n u m b e r I m a g e s ;   i + + )   {  
             v a r   c o n t e n t   =   ' < a   h r e f = " '   +   i m g A r r a y [ i ]   +   ' " > < i m g   i d = " i m g _ '   +   i   +   ' "   s r c = " '   +   i m g A r r a y [ i ]   +   ' "   w i d t h = " 1 0 0 "   c l a s s = " h e a d e r _ t h u m b "   / > < / a > ' ;  
  
                 $ ( " # h e a d e r   >   i m g " ) . a f t e r ( c o n t e n t ) ;  
       }  
        
         $ ( " # h e a d e r   >   *   > : h i d d e n " ) . e a c h ( f u n c t i o n   ( )   {  
                       $ ( t h i s ) . l o a d ( ) . f a d e I n ( 3 0 0 0 ) ;  
             } ) ;  
  
       $ ( ' # h e a d e r   >   a ' ) . f o x i s l i d e ( ) ;  
  
   } ) ; 
