ÿþ/ / M a i n   f u n c t i o n s   f o r   a f t e r   p a g e   l o a d s  
 $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( )   {  
 	 $ ( " . m a i n _ i m a g e   . d e s c " ) . s h o w ( ) ;   / / S h o w   B a n n e r  
 	 $ ( " . m a i n _ i m a g e   . b l o c k " ) . a n i m a t e ( {   o p a c i t y :   1   } ,   1   ) ;   / / S e t   O p a c i t y  
 	  
 	 / / S e t   f i r s t   t h u m b n a i l   t o   ' a c t i v e '  
 	 $ ( " . i m a g e _ t h u m b   u l   l i : f i r s t " ) . a d d C l a s s ( ' a c t i v e ' ) ;    
 	  
 	 / / S e t   t h u m b n a i l   o p a c i t y  
 	 $ ( " . i m a g e _ t h u m b   u l   l i   a " ) . a n i m a t e ( {   o p a c i t y :   0 . 2 5   } ,   1   ) ;   / / S e t   O p a c i t y  
 	 $ ( " . i m a g e _ t h u m b   u l   l i   a : f i r s t " ) . a n i m a t e ( {   o p a c i t y :   1   } ,   1   ) ;   / / S e t   O p a c i t y  
 	  
 	 / / L o a d   i n i t i a l   d e s c r i p t i o n  
 	 v a r   I n i t i a l F e a t u r e d D e s c   =   $ ( " . i m a g e _ t h u m b   l i : f i r s t   . b l o c k " ) . h t m l ( ) ;  
 	 $ ( " . m a i n _ i m a g e   . d e s c   . b l o c k   " ) . h t m l ( I n i t i a l F e a t u r e d D e s c ) ;  
 	 v a r   I n i t i a l F e a t u r e d I m g   =   $ ( " . i m a g e _ t h u m b   l i : f i r s t   a " ) . a t t r ( " n a m e " ) ;  
 	 $ ( " . m a i n _ i m a g e   i m g " ) . a t t r ( {   s r c :   I n i t i a l F e a t u r e d I m g } )  
 	  
 	 / / S e t   s p e e d   &   s t a r t   t i m e r   f o r   t h u m b n a i l   r o t a t i o n  
 	 v a r   s p e e d   =   5 0 0 0 ;  
 	 v a r   r o t a t i o n   =   s e t I n t e r v a l ( ' T i m e d S w i t c h ( ) ' ,   s p e e d ) ;  
 	  
 	 	 / / S t o p   r o t a t i o n   w h e n   h o v e r i n g   o v e r   d e s c r i p t i o n  
 	 	 $ ( " d i v . d e s c " ) . h o v e r ( f u n c t i o n ( )   {    
 	 	 	 / / S t o p   t h e   r o t a t i o n  
 	 	 	 c l e a r I n t e r v a l ( r o t a t i o n ) ;  
 	 	 } ,   / / C l o s e   m o u s e o v e r   - -   S t a r t   m o u s e o u t  
 	 	 	 f u n c t i o n ( )   {  
 	 	 	 	 r o t a t i o n   =   s e t I n t e r v a l ( ' T i m e d S w i t c h ( ) ' ,   s p e e d ) ;  
 	 	 	 }   / / C l o s e   m o u s e o u t  
 	 	 ) ;  
 	 	 / / S t o p   r o t a t i o n   w h e n   h o v e r i n g   o v e r   d e s c r i p t i o n  
 	 	 $ ( " . i m a g e _ t h u m b   u l   l i " ) . h o v e r ( f u n c t i o n ( )   {    
 	 	 	 / / S t o p   t h e   r o t a t i o n  
 	 	 	 c l e a r I n t e r v a l ( r o t a t i o n ) ;  
 	 	 } ,   / / C l o s e   m o u s e o v e r   - -   S t a r t   m o u s e o u t  
 	 	 	 f u n c t i o n ( )   {  
 	 	 	 	 r o t a t i o n   =   s e t I n t e r v a l ( ' T i m e d S w i t c h ( ) ' ,   s p e e d ) ;  
 	 	 	 }   / / C l o s e   m o u s e o u t  
 	 	 ) ;  
 	  
 	 / / F i x   d e s c r i p t i o n   l i n k   o p a c i t y  
 	 $ ( " . i m a g e _ t h u m b   u l   l i   d i v . b l o c k   p   a " ) . a n i m a t e ( {   o p a c i t y :   1   } ,   1   ) ;  
 	  
 	 / / C l i c k   e v e n t s   f o r   t h u m b n a i l   l i s t  
 	 $ ( " . i m a g e _ t h u m b   u l   l i " ) . c l i c k ( f u n c t i o n ( )   {    
 	 	 i f   ( $ ( t h i s ) . i s ( " . a c t i v e " ) )   {     / / I f   i t ' s   a l r e a d y   a c t i v e ,   t h e n . . .  
 	 	 	 / / D o   n o t h i n g  
 	 	 }  
 	 	 e l s e   {  
 	 	 	 / / C h a n g e   t h u m b n a i l   s t y l i n g  
 	 	 	 $ ( " . i m a g e _ t h u m b   u l   l i " ) . r e m o v e C l a s s ( ' a c t i v e ' ) ;   / / R e m o v e   c l a s s   o f   ' a c t i v e '   o n   a l l   t h u m b n a i l s  
 	 	 	 $ ( t h i s ) . a d d C l a s s ( ' a c t i v e ' ) ;     / / A d d   c l a s s   o f   ' a c t i v e '   o n   t h i s   t h u m b n a i l   o n l y  
 	 	 	  
 	 	 	 / / S e t   t h u m b n a i l   o p a c i t y  
 	 	 	 $ ( " . i m a g e _ t h u m b   u l   l i   a " ) . a n i m a t e ( {   o p a c i t y :   0 . 2 5   } ,   1   ) ;  
 	 	 	 $ ( " . i m a g e _ t h u m b   u l   l i . a c t i v e   a " ) . a n i m a t e ( {   o p a c i t y :   1   } ,   1   ) ;  
 	 	 	  
 	 	 	 / / F i x   d e s c r i p t i o n   l i n k   o p a c i t y  
 	 	 	 $ ( " . i m a g e _ t h u m b   u l   l i   d i v . b l o c k   p   a " ) . a n i m a t e ( {   o p a c i t y :   1   } ,   1   ) ;  
 	 	 	  
 	 	 	 / / S e t   v a r i a b l e s  
 	 	 	 v a r   i m g A l t   =   $ ( t h i s ) . f i n d ( ' i m g ' ) . a t t r ( " a l t " ) ; 	 / / G e t   A l t   T a g   o f   I m a g e  
 	 	 	 v a r   i m g T i t l e   =   $ ( t h i s ) . f i n d ( ' a ' ) . a t t r ( " n a m e " ) ; 	 / / G e t   M a i n   I m a g e   U R L  
 	 	 	 v a r   i m g H 2   =   $ ( t h i s ) . f i n d ( ' . b l o c k   H 2 ' ) . h t m l ( ) ;   	 / / G e t   H T M L   o f   t h e   " b l o c k "   H 2   c o n t a i n e r  
 	 	 	 v a r   i m g P   =   $ ( t h i s ) . f i n d ( ' . b l o c k   p ' ) . h t m l ( ) ;   	 / / G e t   H T M L   o f   t h e   " b l o c k "   p   c o n t a i n e r  
 	 	 	 v a r   i m g D e s c H e i g h t   =   $ ( " . m a i n _ i m a g e " ) . f i n d ( ' . b l o c k ' ) . h e i g h t ( ) ;   / / C a l c u l a t e   h e i g h t   o f   " b l o c k "  
 	 	 	  
 	 	 	 / / A n i m a t e   t h e   i m a g e   &   d e s c r i p t i o n  
 	 	 	 $ ( " . m a i n _ i m a g e   i m g " ) . a n i m a t e ( {   o p a c i t y :   0 } ,   5 0 0 ) ;  
 	 	 	  
 	 	 	 $ ( " . m a i n _ i m a g e   p " ) . a n i m a t e ( {   o p a c i t y :   0   } ,   5 0 0 ,   f u n c t i o n ( )   {  
 	 	 	 	 $ ( " . m a i n _ i m a g e   p " ) . h t m l ( i m g P ) . a n i m a t e ( {   o p a c i t y :   1   } ,   5 0 0 ) ;  
 	 	 	 } ) ;  
 	 	 	  
 	 	 	 $ ( " . m a i n _ i m a g e   h 2 " ) . a n i m a t e ( {   o p a c i t y :   0   } ,   5 0 0 ,   f u n c t i o n ( )   {  
 	 	 	 	 $ ( " . m a i n _ i m a g e   h 2 " ) . h t m l ( i m g H 2 ) . a n i m a t e ( {   o p a c i t y :   1   } ,   5 0 0 ) ;  
 	 	 	 	 $ ( " . m a i n _ i m a g e   i m g " ) . a t t r ( {   s r c :   i m g T i t l e   ,   a l t :   i m g A l t } ) . a n i m a t e ( {   o p a c i t y :   1 } ,   5 0 0 ) ;  
 	 	 	 } ) ;  
 	 	 }  
 	 	  
 	 	 r e t u r n   f a l s e ;  
 	 } ) ; 	  
 } ) ;   / / C l o s e   m a i n   ' d o c u m e n t   r e a d y '   f u n c t i o n  
  
  
 / / A d d i t i o n a l   f u n c t i o n s  
 f u n c t i o n   T i m e d S w i t c h ( )   {  
 	 / / D e f i n e   n e w   ' a c t i v e '   t h u m b n a i l  
 	 v a r   $ a c t i v e   =   $ ( ' . i m a g e _ t h u m b   u l   l i . a c t i v e ' ) . n e x t ( ) ;  
 	 i f   (   $ a c t i v e . l e n g t h   = =   0   )   $ a c t i v e   =   $ ( ' . i m a g e _ t h u m b   u l   l i : f i r s t ' ) ;   / / g o e s   b a c k   t o   s t a r t   w h e n   f i n i s h e s  
 	  
 	 / / D e f i n e   p r e v i o u s   ' a c t i v e '   t h u m b n a i l  
 	 v a r   $ p r e v   =   $ ( ' . i m a g e _ t h u m b   u l   l i . a c t i v e ' ) ;  
 	  
 	 / / C h a n g e   t h u m b n a i l   s t y l i n g  
 	 $ p r e v . r e m o v e C l a s s ( ' a c t i v e ' ) ;  
 	 $ a c t i v e . a d d C l a s s ( ' a c t i v e ' ) ;  
 	  
 	 / / C h a n g e   t h u m b n a i l   o p a c i t y  
 	 $ ( " . i m a g e _ t h u m b   u l   l i   a " ) . a n i m a t e ( {   o p a c i t y :   0 . 2 5   } ,   1   ) ;  
 	 $ ( " . i m a g e _ t h u m b   u l   l i . a c t i v e   a " ) . a n i m a t e ( {   o p a c i t y :   1   } ,   1   ) ;  
 	  
 	 / / F i x   d e s c r i p t i o n   l i n k   o p a c i t y  
 	 $ ( " . i m a g e _ t h u m b   u l   l i   d i v . b l o c k   p   a " ) . a n i m a t e ( {   o p a c i t y :   1   } ,   1   ) ;  
 	  
 	 / / S e t   v a r i a b l e s  
 	 v a r   i m g A l t   =   $ a c t i v e . f i n d ( ' i m g ' ) . a t t r ( " a l t " ) ; 	 / / G e t   A l t   T a g   o f   I m a g e  
 	 v a r   i m g T i t l e   =   $ a c t i v e . f i n d ( ' a ' ) . a t t r ( " n a m e " ) ; 	 / / G e t   M a i n   I m a g e   U R L  
 	 v a r   i m g H 2   =   $ a c t i v e . f i n d ( ' . b l o c k   h 2 ' ) . h t m l ( ) ; 	 / / G e t   H T M L   o f   t h e   " b l o c k   H 2 "   c o n t a i n e r  
 	 v a r   i m g P   =   $ a c t i v e . f i n d ( ' . b l o c k   p ' ) . h t m l ( ) ; 	 	 / / G e t   H T M L   o f   t h e   " b l o c k   p "   c o n t a i n e r  
 	 v a r   i m g D e s c H e i g h t   =   $ ( " . m a i n _ i m a g e " ) . f i n d ( ' . b l o c k ' ) . w i d t h ( ) ;   / / C a l c u l a t e   h e i g h t   o f   " b l o c k "  
 	  
 	 i f   ( $ ( t h i s ) . i s ( " . a c t i v e " ) )   {   / / I f   t h e   l i s t   i t e m   i s   a c t i v e / s e l e c t e d ,   t h e n . . .  
 	 	 r e t u r n   f a l s e ;   / /   D o n ' t   c l i c k   t h r o u g h      P r e v e n t s   r e p e t i t i v e   a n i m a t i o n s   o n   a c t i v e / s e l e c t e d   l i s t - i t e m  
 	 }  
 	 e l s e   {   / / I f   n o t   a c t i v e   t h e n . . .  
 	 	 / / A n i m a t e   t h e   i m a g e   &   d e s c r i p t i o n  
 	 	 $ ( " . m a i n _ i m a g e   i m g " ) . a n i m a t e ( {   o p a c i t y :   0 } ,   5 0 0 ) ;  
 	 	  
 	 	 $ ( " . m a i n _ i m a g e   p " ) . a n i m a t e ( {   o p a c i t y :   0   } ,   5 0 0 ,   f u n c t i o n ( )   {  
 	 	 	 $ ( " . m a i n _ i m a g e   p " ) . h t m l ( i m g P ) . a n i m a t e ( {   o p a c i t y :   1   } ,   5 0 0 ) ;  
 	 	 } ) ;  
 	 	  
 	 	 $ ( " . m a i n _ i m a g e   h 2 " ) . a n i m a t e ( {   o p a c i t y :   0   } ,   5 0 0 ,   f u n c t i o n ( )   {  
 	 	 	 $ ( " . m a i n _ i m a g e   h 2 " ) . h t m l ( i m g H 2 ) . a n i m a t e ( {   o p a c i t y :   1   } ,   5 0 0 ) ;  
 	 	 	 $ ( " . m a i n _ i m a g e   i m g " ) . a t t r ( {   s r c :   i m g T i t l e   ,   a l t :   i m g A l t } ) . a n i m a t e ( {   o p a c i t y :   1 } ,   5 0 0 ) ;  
 	 	 } ) ;  
 	 }  
 	  
 	 r e t u r n   f a l s e ;  
 }  
 
