ÿþ$ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( )   {  
         s e t L i n k I c o n ( " . p d f " ,   " l i n k _ p d f . g i f " ) ;  
         s e t L i n k I c o n ( " . d o c " ,   " l i n k _ w o r d . p n g " ) ;  
         s e t L i n k I c o n ( " . d o c x " ,   " l i n k _ w o r d . p n g " ) ;  
         s e t L i n k I c o n ( " . x l s " ,   " l i n k _ e x c e l . p n g " ) ;  
         s e t L i n k I c o n ( " . x l s x " ,   " l i n k _ e x c e l . p n g " ) ;  
         s e t L i n k I c o n ( " . p p t " ,   " l i n k _ p o w e r p o i n t . p n g " ) ;  
         s e t L i n k I c o n ( " . p p t x " ,   " l i n k _ p o w e r p o i n t . p n g " ) ;  
         s e t L i n k I c o n ( " . z i p " ,   " l i n k _ p i c t u r e . p n g " ) ;  
         s e t L i n k I c o n ( " . r a r " ,   " l i n k _ p i c t u r e . p n g " ) ;  
         s e t L i n k I c o n ( " . b m p " ,   " l i n k _ p i c t u r e . p n g " ) ;  
         s e t L i n k I c o n ( " . j p g " ,   " l i n k _ p i c t u r e . p n g " ) ;  
         s e t L i n k I c o n ( " . p n g " ,   " l i n k _ p i c t u r e . p n g " ) ;  
         s e t L i n k I c o n ( " . g i f " ,   " l i n k _ p i c t u r e . p n g " ) ;  
         s e t L i n k I c o n ( " . i c o " ,   " l i n k _ p i c t u r e . p n g " ) ;  
  
         $ ( " a [ h r e f ^ = ' h t t p : / / ' ] " ) . a t t r ( " t a r g e t " ,   " _ b l a n k " ) ;  
         $ ( " a [ h r e f ^ = ' h t t p s : / / ' ] " ) . a t t r ( " t a r g e t " ,   " _ b l a n k " ) ;  
 } ) ;  
  
 f u n c t i o n   s e t L i n k I c o n ( t y p e ,   i m g )   {  
     / /     $ ( " a [ h r e f $ = ' "   +   t y p e   +   " ' ] : n o t ( [ c l a s s * = ' n o i c o n ' ] ) " ) . a t t r ( " s t y l e " ,   " b a c k g r o u n d : u r l ( ' / c o n t e n t / i m a g e s / "   +   i m g   +   " ' )   n o - r e p e a t   l e f t   c e n t e r ; p a d d i n g - l e f t :   2 0 p x ; l i n e - h e i g h t :   1 6 p x ; " ) ;  
 }  
  
 f u n c t i o n   i n i t _ v i d e o P l a y e r ( v i d e o _ c o n t a i n e r ,   v i d e o _ u r l ,   v i d e o _ a u t o p l a y ,   v i d e o _ b a s e U r l ,   v i d e o _ i t e m s )   {  
         i f   ( v i d e o _ i t e m s . l e n g t h   = =   0 )   {  
                 i n i t _ f l o w p l a y e r ( v i d e o _ c o n t a i n e r ,   v i d e o _ u r l ,   v i d e o _ a u t o p l a y ) ;  
         }   e l s e   {  
                 i n i t _ f l o w p l a y e r _ b w c h e c k ( v i d e o _ c o n t a i n e r ,   v i d e o _ u r l ,   v i d e o _ a u t o p l a y ,   v i d e o _ b a s e U r l ,   v i d e o _ i t e m s ) ;  
         }  
 }  
  
 f u n c t i o n   i n i t _ f l o w p l a y e r ( v i d e o _ c o n t a i n e r ,   v i d e o _ u r l ,   v i d e o _ a u t o p l a y )   {  
         f l o w p l a y e r ( v i d e o _ c o n t a i n e r ,  
                         {  
                                 s r c :   " / C o n t e n t / f l o w p l a y e r / f l o w p l a y e r - 3 . 2 . 5 . s w f " ,  
                                 w m o d e :   " t r a n s p a r e n t "  
                         } ,  
                         {  
                                 c l i p :   {  
                                          
                                         u r l :   v i d e o _ u r l ,  
                                         a u t o B u f f e r i n g :   t r u e ,  
                                         a u t o P l a y :   v i d e o _ a u t o p l a y  
                                 } ,  
                                 p l u g i n s :   {  
                                         c o n t r o l s :   {  
                                                 a u t o H i d e :   f a l s e  
                                         }  
                                 }  
                         }  
                 ) ;  
 }  
  
 f u n c t i o n   i n i t _ f l o w p l a y e r _ b w c h e c k ( v i d e o _ c o n t a i n e r ,   v i d e o _ u r l ,   v i d e o _ a u t o p l a y ,   v i d e o _ b a s e U r l ,   v i d e o _ i t e m s )   {  
         f l o w p l a y e r ( v i d e o _ c o n t a i n e r ,  
                                 {  
                                         s r c :   " / C o n t e n t / f l o w p l a y e r / f l o w p l a y e r - 3 . 2 . 5 . s w f " ,  
                                         w m o d e :   " t r a n s p a r e n t "  
                                 } ,    
                                 {  
                                         c l i p :   {  
                                                 u r l R e s o l v e r s :   ' b w c h e c k ' ,  
                                                 a u t o B u f f e r i n g :   t r u e ,  
                                                 a u t o P l a y :   v i d e o _ a u t o p l a y ,  
                                                 b a s e U r l :   v i d e o _ b a s e U r l ,  
                                                 b i t r a t e s :   v i d e o _ i t e m s  
                                         } ,  
                                         p l u g i n s :   {  
                                                 b w c h e c k :   {  
                                                         u r l :   ' / c o n t e n t / f l o w p l a y e r / f l o w p l a y e r . b w c h e c k - 3 . 2 . 3 . s w f ' ,  
                                                         n e t C o n n e c t i o n U r l :   v i d e o _ b a s e U r l   +   ' c o n t e n t / f l o w p l a y e r / f l o w p l a y e r - 3 . 2 . 5 . s w f '  
                                                 } ,  
                                                 p s e u d o s t r e a m i n g :   {  
                                                         u r l :   ' / c o n t e n t / f l o w p l a y e r / f l o w p l a y e r . p s e u d o s t r e a m i n g - 3 . 2 . 5 . s w f '  
                                                 } ,  
                                                 c o n t r o l s :   {  
                                                         a u t o H i d e :   f a l s e  
                                                 }  
                                         }  
                                 } ) ;  
 }  
  
  
  
 f u n c t i o n   g a l l e r y V i e w _ c a l l b a c k ( i ,   c u r r e n t _ p a n e l ,   c a l l b a c k )   {  
         v a r   p a n e l   =   j Q u e r y ( " # p h o t o s   . p a n e l " ) [ i ] ;  
         i f   ( c u r r e n t _ p a n e l )   {  
                 v a r   i m g   =   j Q u e r y ( " i m g [ s r c ] " ,   p a n e l ) ;  
                 i f   ( i m g . l e n g t h   = =   1   & &   i m g . a t t r ( " s r c " )   = =   " " )   {  
                         c u r r e n t _ p a n e l . h i d e ( ) ;  
                 }  
         }  
         j Q u e r y ( p a n e l ) . a j a x I m a g e L o a d ( j Q u e r y ( " # i m g l o a d i n g " ) ,   f a l s e ,   f u n c t i o n ( )   {  
                 j Q u e r y ( " # i m g l o a d i n g " ) . f a d e O u t ( 6 0 0 ) ;  
                 c a l l b a c k ( ) ;  
         } ) ;          
 } 
