ÿþ
 
 $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( ) 
 	 { 
 	 	 l i k e _ b u t t o n _ s o m e t i m e s ( ) ; 
 	 	 $ ( ' . l o a d e d - i m a g e 1 - i m g ' ) . l i v e ( ' m o u s e o v e r ' ,   f u n c t i o n ( ) 
 	 	 { 
 	 	 	 i f ( ! i e 6 ( ) ) 
 	 	 	 	 $ ( ' . l o a d e d - i m a g e 1 - o p a q u e ' ) . f a d e I n ( 3 0 0 ) ; 
 	 	 	 e l s e 
 	 	 	 	 $ ( ' . l o a d e d - i m a g e 1 - o p a q u e ' ) . c s s ( ' d i s p l a y ' ,   ' b l o c k ' ) ; 
 	 	 } ) ; 
 	 	 $ ( ' . l o a d e d - i m a g e 1 - o p a q u e ' ) . l i v e ( ' m o u s e o u t ' ,   f u n c t i o n ( ) 
 	 	 { 
 	 	 	 i f ( ! i e 6 ( ) ) 
 	 	 	 	 $ ( ' . l o a d e d - i m a g e 1 - o p a q u e ' ) . f a d e O u t ( 3 0 0 ) ; 
 	 	 	 e l s e 
 	 	 	 	 $ ( ' . l o a d e d - i m a g e 1 - o p a q u e ' ) . c s s ( ' d i s p l a y ' ,   ' n o n e ' ) ; 
 	 	 } ) ; 
 	 	 $ ( ' . l o a d e d - i m a g e 2 - i m g ' ) . l i v e ( ' m o u s e o v e r ' ,   f u n c t i o n ( ) 
 	 	 { 
 	 	 	 i f ( ! i e 6 ( ) ) 
 	 	 	 	 $ ( ' . l o a d e d - i m a g e 2 - o p a q u e ' ) . f a d e I n ( 3 0 0 ) ; 
 	 	 	 e l s e 
 	 	 	 	 $ ( ' . l o a d e d - i m a g e 2 - o p a q u e ' ) . c s s ( ' d i s p l a y ' ,   ' b l o c k ' ) ; 
 	 	 } ) ; 
 	 	 $ ( ' . l o a d e d - i m a g e 2 - o p a q u e ' ) . l i v e ( ' m o u s e o u t ' ,   f u n c t i o n ( ) 
 	 	 { 
 	 	 	 i f ( ! i e 6 ( ) ) 
 	 	 	 	 $ ( ' . l o a d e d - i m a g e 2 - o p a q u e ' ) . f a d e O u t ( 3 0 0 ) ; 
 	 	 	 e l s e 
 	 	 	 	 $ ( ' . l o a d e d - i m a g e 2 - o p a q u e ' ) . c s s ( ' d i s p l a y ' ,   ' n o n e ' ) ; 
 	 	 } ) ; 
 	 	 $ ( ' # m a i l ' ) . c l i c k ( f u n c t i o n ( ) 
 	 	 { 
 	 	 	 / / ( $ ( ' # l o a d e d - i m a g e s ' ) . d a t a ( ' j c a r o u s e l ' ) . f i r s t ) ; 
 	 	 	 m a i l _ s h o w ( ) ; 
 	 	 	 r e t u r n   f a l s e ; 
 	 	 } ) ; 
 	 	 $ ( ' h t m l ' ) . c l i c k ( f u n c t i o n ( e ) 
 	 	 { 
 	 	 	 v a r   i d   =   e . t a r g e t . i d ; 
 	 	 	 i f ( $ ( ' # m a i l - w i n d o w ' ) . c s s ( ' d i s p l a y ' )   = =   ' b l o c k '   & &   i d   ! =   ' m a i l '   & &   i d   ! =   ' m a i l - w i n d o w '   & &   i d   ! =   ' m a i l - o k '   & &   i d   ! =   ' m a i l - i n p u t ' ) 
 	 	 	 { 
 	 	 	 	 m a i l _ h i d e ( ) ; 
 	 	 	 } 
 	 	 	 i f ( $ ( ' # e m a i l - w i n d o w ' ) . c s s ( ' d i s p l a y ' )   = =   ' b l o c k '   & &   i d   ! =   ' s e n d - e m a i l '   & &   i d   ! =   ' e m a i l - w i n d o w '   & &   i d   ! =   ' e m a i l - o k '   & &   i d   ! =   ' e m a i l - f r o m - i n p u t '   & &   i d   ! =   ' e m a i l - s u b j e c t - i n p u t '   & &   i d   ! =   ' e m a i l - m e s s a g e - i n p u t ' ) 
 	 	 	 { 
 	 	 	 	 e m a i l _ h i d e ( ) ; 
 	 	 	 } 
 	 	 } ) ; 
 	 	 $ ( ' # m a i l - o k ' ) . c l i c k ( f u n c t i o n ( ) 
 	 	 { 
 	 	 	 a j a x _ m a i l ( ) ; 
 	 	 } ) ; 
 	 	 $ ( ' # s e n d - e m a i l ' ) . c l i c k ( f u n c t i o n ( ) 
 	 	 { 
 	 	 	 e m a i l _ s h o w ( ) ; 
 	 	 	 r e t u r n   f a l s e ; 
 	 	 } ) ; 
 	 	 $ ( ' # e m a i l - o k ' ) . c l i c k ( f u n c t i o n ( ) 
 	 	 { 
 	 	 	 a j a x _ e m a i l ( ) ; 
 	 	 } ) ; 
 	 	 $ ( ' # l i k e ' ) . m o u s e o v e r ( f u n c t i o n ( ) 
 	 	 { 
 	 	 	 s h o w _ l i k e _ b u t t o n ( ) ; 
 	 	 } ) ; 
 	 	 $ ( ' # l i k e - b u t t o n ' ) . m o u s e o u t ( f u n c t i o n ( ) 
 	 	 { 
 	 	 	 h i d e _ l i k e _ b u t t o n ( ) ; 
 	 	 } ) ; 
 	 	 $ ( ' # l i k e ' ) . c l i c k ( f u n c t i o n ( ) 
 	 	 { 
 	 	 	 a j a x _ r a t e ( ) ; 
 	 	 } ) ; 
 	 	 $ ( ' # l i k e - b u t t o n ' ) . c l i c k ( f u n c t i o n ( ) 
 	 	 { 
 	 	 	 a j a x _ r a t e ( ) ; 
 	 	 } ) ; 
 	 	 s e t I n t e r v a l ( l i k e _ b u t t o n _ s o m e t i m e s ,   6 0 0 0 0 ) ; 
 	 } ) ; 
 
 
 f u n c t i o n   a j a x _ m a i l ( ) 
 { 
 	 $ . a j a x ( { 
 	 	 t y p e :   ' P O S T ' , 
 	 	 u r l :   ' s e n d - w a l l p a p e r . p h p ' , 
 	 	 d a t a :   ' e m a i l = '   +   $ ( ' # m a i l - i n p u t ' ) . v a l ( )   +   ' & i d = '   +   $ ( ' # l o a d e d - i m a g e s ' ) . d a t a ( ' j c a r o u s e l ' ) . f i r s t   +   ' & b d _ i d = '   +   $ ( ' # l o a d e d - i m a g e 2 '   +   $ ( ' # l o a d e d - i m a g e s ' ) . d a t a ( ' j c a r o u s e l ' ) . l a s t   +   ' - o p a q u e ' )   .   d a t a ( ' i d ' ) , 
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) 
 	 	 	 { 
 	 	 	 	 i f ( r e s p o n s e   = = =   ' d o n e ' ) 
 	 	 	 	 { 
 	 	 	 	 	 $ ( ' # m a i l - w i n d o w ' ) . a n i m a t e ( { ' t o p ' : ' 1 % ' } ,   ' f a s t ' ,   f u n c t i o n ( ) { m a i l _ h i d e ( ) ; s e t T i m e o u t ( f u n c t i o n ( ) { $ ( ' # m a i l - w i n d o w ' ) . c s s ( ' t o p ' ,   ' 5 0 % ' ) } ,   1 0 0 0 ) ; } ) ; 
 	 	 	 	 	 $ ( ' # m a i l - o k ' ) . a n i m a t e ( { ' t o p ' : ' 1 % ' } ,   ' f a s t ' ,   f u n c t i o n ( ) { s e t T i m e o u t ( f u n c t i o n ( ) { $ ( ' # m a i l - o k ' ) . c s s ( ' t o p ' ,   ' 5 0 % ' ) } ,   1 0 0 0 ) ; } ) ; 
 	 	 	 	 	 $ ( ' # m a i l - c a n c e l ' ) . a n i m a t e ( { ' t o p ' : ' 1 % ' } ,   ' f a s t ' ,   f u n c t i o n ( ) { s e t T i m e o u t ( f u n c t i o n ( ) { $ ( ' # m a i l - c a n c e l ' ) . c s s ( ' t o p ' ,   ' 5 0 % ' ) } ,   1 0 0 0 ) ; } ) ; 
 	 	 	 	 	 $ ( ' # m a i l - i n p u t ' ) . a n i m a t e ( { ' t o p ' : ' 1 % ' } ,   ' f a s t ' ,   f u n c t i o n ( ) { s e t T i m e o u t ( f u n c t i o n ( ) { $ ( ' # m a i l - i n p u t ' ) . c s s ( ' t o p ' ,   ' 5 0 % ' ) } ,   1 0 0 0 ) ; } ) ; 
 	 	 	 	 } 
 	 	 	 	 e l s e 
 	 	 	 	 { 
 	 	 	 	 	 $ ( ' # m a i l - i n p u t ' ) . v a l ( ' ' ) ; 
 	 	 	 	 	 $ ( ' # m a i l - i n p u t ' ) . v a l ( r e s p o n s e ) ; 
 	 	 	 	 } 
 	 	 	 } 
 	 	 } ) ; 
 } 
 
 f u n c t i o n   a j a x _ e m a i l ( ) 
 { 
 	 $ . a j a x ( { 
 	 	 t y p e :   ' P O S T ' , 
 	 	 u r l :   ' s e n d - e m a i l . p h p ' , 
 	 	 d a t a :   ' f r o m = '   +   $ ( ' # e m a i l - f r o m - i n p u t ' ) . v a l ( )   +   ' & s u b j e c t = '   +   $ ( ' # e m a i l - s u b j e c t - i n p u t ' ) . v a l ( )   +   ' & m e s s a g e = '   +   $ ( ' # e m a i l - m e s s a g e - i n p u t ' ) . v a l ( ) , 
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) 
 	 	 	 { 
 	 	 	 	 i f ( r e s p o n s e   = = =   ' d o n e ' ) 
 	 	 	 	 { 
 	 	 	 	 	 $ ( ' # e m a i l - w i n d o w ' ) . a n i m a t e ( { ' t o p ' : ' 1 % ' } ,   ' f a s t ' ,   f u n c t i o n ( ) { e m a i l _ h i d e ( ) ; s e t T i m e o u t ( f u n c t i o n ( ) { $ ( ' # e m a i l - w i n d o w ' ) . c s s ( ' t o p ' ,   ' 5 0 % ' ) } ,   1 0 0 0 ) ; } ) ; 
 	 	 	 	 	 $ ( ' # e m a i l - o k ' ) . a n i m a t e ( { ' t o p ' : ' 1 % ' } ,   ' f a s t ' ,   f u n c t i o n ( ) { s e t T i m e o u t ( f u n c t i o n ( ) { $ ( ' # e m a i l - o k ' ) . c s s ( ' t o p ' ,   ' 5 0 % ' ) } ,   1 0 0 0 ) ; } ) ; 
 	 	 	 	 	 $ ( ' # e m a i l - c a n c e l ' ) . a n i m a t e ( { ' t o p ' : ' 1 % ' } ,   ' f a s t ' ,   f u n c t i o n ( ) { s e t T i m e o u t ( f u n c t i o n ( ) { $ ( ' # e m a i l - c a n c e l ' ) . c s s ( ' t o p ' ,   ' 5 0 % ' ) } ,   1 0 0 0 ) ; } ) ; 
 	 	 	 	 	 $ ( ' # e m a i l - f r o m - i n p u t ' ) . a n i m a t e ( { ' t o p ' : ' 1 % ' } ,   ' f a s t ' ,   f u n c t i o n ( ) { s e t T i m e o u t ( f u n c t i o n ( ) { $ ( ' # e m a i l - f r o m - i n p u t ' ) . c s s ( ' t o p ' ,   ' 5 0 % ' ) } ,   1 0 0 0 ) ; } ) ; 
 	 	 	 	 	 $ ( ' # e m a i l - s u b j e c t - i n p u t ' ) . a n i m a t e ( { ' t o p ' : ' 1 % ' } ,   ' f a s t ' ,   f u n c t i o n ( ) { s e t T i m e o u t ( f u n c t i o n ( ) { $ ( ' # e m a i l - s u b j e c t - i n p u t ' ) . c s s ( ' t o p ' ,   ' 5 0 % ' ) } ,   1 0 0 0 ) ; } ) ; 
 	 	 	 	 	 $ ( ' # e m a i l - m e s s a g e - i n p u t ' ) . a n i m a t e ( { ' t o p ' : ' 1 % ' } ,   ' f a s t ' ,   f u n c t i o n ( ) { s e t T i m e o u t ( f u n c t i o n ( ) { $ ( ' # e m a i l - m e s s a g e - i n p u t ' ) . c s s ( ' t o p ' ,   ' 5 0 % ' ) } ,   1 0 0 0 ) ; } ) ; 
 	 	 	 	 } 
 	 	 	 	 e l s e   i f ( r e s p o n s e   = = =   ' e m a i l - e r r o r ' ) 
 	 	 	 	 { 
 	 	 	 	 	 $ ( ' # e m a i l - f r o m - i n p u t ' ) . v a l ( ' ' ) ; 
 	 	 	 	 	 $ ( ' # e m a i l - f r o m - i n p u t ' ) . v a l ( ' 5?@028;L=K9  D>@<0B  e - m a i l ' ) ; 
 	 	 	 	 } 
 	 	 	 } 
 	 	 } ) ; 
 } 
 
 f u n c t i o n   a j a x _ r a t e ( ) 
 { 
 	 $ . a j a x ( { 
 	 	 t y p e :   ' P O S T ' , 
 	 	 u r l :   ' r a t e . p h p ' , 
 	 	 d a t a :   ' i d = '   +   $ ( ' # l o a d e d - i m a g e 2 '   +   $ ( ' # l o a d e d - i m a g e s ' ) . d a t a ( ' j c a r o u s e l ' ) . l a s t   +   ' - o p a q u e ' )   .   d a t a ( ' i d ' ) , 
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) 
 	 	 	 { 
 	 	 	 	 i f ( r e s p o n s e   = =   ' d o n e ' ) 
 	 	 	 	 { 
 	 	 	 	 	 v a r   i n d e x   =   $ ( ' b o d y ' ) . d a t a ( ' c u r r e n t ' ) ; 
 
 	 	 	 	 	 $ ( ' # c a r o u s e l - c o n t r o l - i t e m - '   +   i n d e x ) . r e m o v e C l a s s ( ' a c t i v e ' ) ; 
 
 	 	 	 	 	 i n d e x + + ; 
 
 	 	 	 	 	 i f ( i n d e x   >   ( $ ( ' # l o a d e d - i m a g e s ' ) . j c a r o u s e l ( ' s i z e ' ) / 2 ) )   i n d e x   =   1 ; 
 
 	 	 	 	 	 $ ( ' b o d y ' ) . d a t a ( ' c u r r e n t ' ,   i n d e x ) 
 
 	 	 	 	 	 v a r   i n d e x   =   $ ( ' b o d y ' ) . d a t a ( ' c u r r e n t ' ) ; 
 
 	 	 	 	 	 $ ( ' # c a r o u s e l - c o n t r o l - i t e m - '   +   i n d e x ) . a d d C l a s s ( ' a c t i v e ' ) ; 
 
 	 	 	 	 	 $ ( ' # l o a d e d - i m a g e 2 '   +   $ ( ' # l o a d e d - i m a g e s ' ) . d a t a ( ' j c a r o u s e l ' ) . l a s t ) . f a d e O u t ( 1 5 0 0 ,   f u n c t i o n ( ) { 
 	 	 	 	 	 j Q u e r y ( ' # l o a d e d - i m a g e s ' ) . j c a r o u s e l ( ' n e x t ' ) ; 
 	 	 	 	 	 } ) ; 
 	 	 	 	 	 $ ( ' # l o a d e d - i m a g e 1 '   +   $ ( ' # l o a d e d - i m a g e s ' ) . d a t a ( ' j c a r o u s e l ' ) . f i r s t ) . f a d e O u t ( 1 5 0 0 ) ; 
 	 	 	 	 } 
 	 	 	 } 
 	 	 } ) ; 
 } 
 
 f u n c t i o n   l i k e _ b u t t o n _ s o m e t i m e s ( ) 
 { 
 	 s h o w _ l i k e _ b u t t o n ( ) ; 
 	 s e t T i m e o u t ( h i d e _ l i k e _ b u t t o n ,   2 0 0 0 ) ; 
 } 
 
 f u n c t i o n   e m a i l _ s h o w ( ) 
 { 
 	 i f ( ! i e 6 ( ) ) 
 	 { 
 	 	 $ ( ' # e m a i l - w i n d o w ' ) . f a d e I n ( ) ; 
 	 	 $ ( ' # e m a i l - o k ' ) . f a d e I n ( ) ; 
 	 	 $ ( ' # e m a i l - c a n c e l ' ) . f a d e I n ( ) ; 
 	 	 $ ( ' # e m a i l - f r o m - i n p u t ' ) . f a d e I n ( ) ; 
 	 	 $ ( ' # e m a i l - s u b j e c t - i n p u t ' ) . f a d e I n ( ) ; 
 	 	 $ ( ' # e m a i l - m e s s a g e - i n p u t ' ) . f a d e I n ( ) ; 
 	 } 
 	 e l s e 
 	 { 
 	 	 $ ( ' # e m a i l - w i n d o w ' ) . c s s ( ' d i s p l a y ' , ' b l o c k ' ) ; 
 	 	 $ ( ' # e m a i l - o k ' ) . c s s ( ' d i s p l a y ' , ' b l o c k ' ) ; 
 	 	 $ ( ' # e m a i l - c a n c e l ' ) . c s s ( ' d i s p l a y ' , ' b l o c k ' ) ; 
 	 	 $ ( ' # e m a i l - f r o m - i n p u t ' ) . c s s ( ' d i s p l a y ' , ' b l o c k ' ) ; 
 	 	 $ ( ' # e m a i l - s u b j e c t - i n p u t ' ) . c s s ( ' d i s p l a y ' , ' b l o c k ' ) ; 
 	 	 $ ( ' # e m a i l - m e s s a g e - i n p u t ' ) . c s s ( ' d i s p l a y ' , ' b l o c k ' ) ; 
 	 } 
 } 
 
 f u n c t i o n   e m a i l _ h i d e ( ) 
 { 
 	 i f ( ! i e 6 ( ) ) 
 	 { 
 	 	 $ ( ' # e m a i l - w i n d o w ' ) . f a d e O u t ( ) ; 
 	 	 $ ( ' # e m a i l - o k ' ) . f a d e O u t ( ) ; 
 	 	 $ ( ' # e m a i l - c a n c e l ' ) . f a d e O u t ( ) ; 
 	 	 $ ( ' # e m a i l - f r o m - i n p u t ' ) . f a d e O u t ( ) ; 
 	 	 $ ( ' # e m a i l - s u b j e c t - i n p u t ' ) . f a d e O u t ( ) ; 
 	 	 $ ( ' # e m a i l - m e s s a g e - i n p u t ' ) . f a d e O u t ( ) ; 
 	 } 
 	 e l s e 
 	 { 
 	 	 $ ( ' # e m a i l - w i n d o w ' ) . c s s ( ' d i s p l a y ' , ' n o n e ' ) ; 
 	 	 $ ( ' # e m a i l - o k ' ) . c s s ( ' d i s p l a y ' , ' n o n e ' ) ; 
 	 	 $ ( ' # e m a i l - c a n c e l ' ) . c s s ( ' d i s p l a y ' , ' n o n e ' ) ; 
 	 	 $ ( ' # e m a i l - f r o m - i n p u t ' ) . c s s ( ' d i s p l a y ' , ' n o n e ' ) ; 
 	 	 $ ( ' # e m a i l - s u b j e c t - i n p u t ' ) . c s s ( ' d i s p l a y ' , ' n o n e ' ) ; 
 	 	 $ ( ' # e m a i l - m e s s a g e - i n p u t ' ) . c s s ( ' d i s p l a y ' , ' n o n e ' ) ; 
 	 } 
 } 
 
 f u n c t i o n   s h o w _ l i k e _ b u t t o n ( ) 
 { 
 	 $ ( ' # l i k e ' ) . c s s ( ' b a c k g r o u n d P o s i t i o n ' ,   ' 1 3 p x   - 5 5 p x ' ) ; 
 	 i f ( ! i e 6 ( ) ) 
 	 { 
 	 	 $ ( ' # l i k e - b u t t o n ' ) . f a d e I n ( ) ; 
 	 } 
 	 e l s e 
 	 { 
 	 	 $ ( ' # l i k e - b u t t o n ' ) . c s s ( ' d i s p l a y ' ,   ' b l o c k ' ) ; 
 	 } 
 } 
 
 f u n c t i o n   h i d e _ l i k e _ b u t t o n ( ) 
 { 
 	 $ ( ' # l i k e ' ) . c s s ( ' b a c k g r o u n d P o s i t i o n ' ,   ' 1 3 p x   2 p x ' ) ; 
 	 i f ( ! i e 6 ( ) ) 
 	 { 
 	 	 $ ( ' # l i k e - b u t t o n ' ) . f a d e O u t ( ) ; 
 	 } 
 	 e l s e 
 	 { 
 	 	 $ ( ' # l i k e - b u t t o n ' ) . c s s ( ' d i s p l a y ' ,   ' n o n e ' ) ; 
 	 } 
 } 
 
 
 
 f u n c t i o n   m y c a r o u s e l _ i n i t C a l l b a c k ( c a r o u s e l )   { 
 
         $ ( ' # c a r o u s e l - c o n t r o l   a ' ) . l i v e ( ' c l i c k ' ,   f u n c t i o n ( )   
 	 { 
 	 	 v a r   i n d e x   =   $ ( ' b o d y ' ) . d a t a ( ' c u r r e n t ' ) ; 
 
 	 	 $ ( ' # c a r o u s e l - c o n t r o l - i t e m - '   +   i n d e x ) . r e m o v e C l a s s ( ' a c t i v e ' ) ; 
 
 	 	 i f ( $ ( t h i s ) . t e x t ( )   < =   ( c a r o u s e l . s i z e ( )   /   2 ) ) 
 	 	 { 
 	 	 	 $ ( ' b o d y ' ) . d a t a ( ' c u r r e n t ' ,   $ ( t h i s ) . t e x t ( ) ) ; 
 	 	 } 
 	 	 e l s e 
 	 	 { 
 	 	 	 $ ( ' b o d y ' ) . d a t a ( ' c u r r e n t ' ,   ( c a r o u s e l . s i z e ( )   /   2 ) ) ; 
 	 	 } 
 	 	 
 	 	 v a r   i n d e x   =   $ ( ' b o d y ' ) . d a t a ( ' c u r r e n t ' ) ; 
 
 	 	 $ ( ' # c a r o u s e l - c o n t r o l - i t e m - '   +   i n d e x ) . a d d C l a s s ( ' a c t i v e ' ) ; 
 
 	 	 i n d e x   =   ( i n d e x * 2 ) - 1 ; 
 	 	 
 	 	 c a r o u s e l . s c r o l l ( i n d e x ) ; 
 	 	 
                 r e t u r n   f a l s e ; 
         } ) ; 
 
         $ ( ' # n e x t ' ) . b i n d ( ' c l i c k ' ,   f u n c t i o n ( )   
 	 { 
                 c a r o u s e l . n e x t ( ) ; 
 
 	 	 v a r   i n d e x   =   $ ( ' b o d y ' ) . d a t a ( ' c u r r e n t ' ) ; 
 
 	 	 $ ( ' # c a r o u s e l - c o n t r o l - i t e m - '   +   i n d e x ) . r e m o v e C l a s s ( ' a c t i v e ' ) ; 
 
 	 	 i f ( i n d e x   > =   ( c a r o u s e l . s i z e ( )   /   2   ) ) 
 	 	 { 
 	 	 	 $ ( ' b o d y ' ) . d a t a ( ' c u r r e n t ' ,   1 ) ; 
 	 	 } 
 	 	 e l s e 
 	 	 { 
 	 	 	 $ ( ' b o d y ' ) . d a t a ( ' c u r r e n t ' ,   + + i n d e x ) ; 
 	 	 } 
 
 	 	 v a r   i n d e x   =   $ ( ' b o d y ' ) . d a t a ( ' c u r r e n t ' ) ; 
 
 	 	 i f ( $ ( ' # c a r o u s e l - c o n t r o l - i t e m - '   +   i n d e x ) . l e n g t h   < =   0 ) 
 	 	 	 $ ( ' # c a r o u s e l - c o n t r o l ' ) . a p p e n d ( '   < a   h r e f = " # "   i d = " c a r o u s e l - c o n t r o l - i t e m - '   +   i n d e x   +   ' "   c l a s s = " p n g f i x " > '   +   i n d e x   +   ' < / a >   ' ) ; 
 
 	 	 $ ( ' # c a r o u s e l - c o n t r o l - i t e m - '   +   i n d e x ) . a d d C l a s s ( ' a c t i v e ' ) ; 
 	 
                 r e t u r n   f a l s e ; 
         } ) ; 
 
         $ ( ' # p r e v i o u s ' ) . b i n d ( ' c l i c k ' ,   f u n c t i o n ( )   
 	 { 
                 c a r o u s e l . p r e v ( ) ; 
 	 	 v a r   i n d e x   =   $ ( ' b o d y ' ) . d a t a ( ' c u r r e n t ' ) ; 
 
 	 	 $ ( ' # c a r o u s e l - c o n t r o l - i t e m - '   +   i n d e x ) . r e m o v e C l a s s ( ' a c t i v e ' ) ; 
 
 	 	 i f ( i n d e x   < =   1 ) 
 	 	 { 
 	 	 	 $ ( ' b o d y ' ) . d a t a ( ' c u r r e n t ' ,   ( c a r o u s e l . s i z e ( )   /   2   ) ) ; 
 	 	 } 
 	 	 e l s e 
 	 	 { 
 	 	 	 $ ( ' b o d y ' ) . d a t a ( ' c u r r e n t ' ,   - - i n d e x ) ; 
 	 	 } 
 
 	 	 v a r   i n d e x   =   $ ( ' b o d y ' ) . d a t a ( ' c u r r e n t ' ) ; 
 
 	 	 $ ( ' # c a r o u s e l - c o n t r o l - i t e m - '   +   i n d e x ) . a d d C l a s s ( ' a c t i v e ' ) ; 
 
 	 
 
                 r e t u r n   f a l s e ; 
         } ) ; 
 
 	 / / $ ( ' # c a r o u s e l - c o n t r o l - i t e m - 1 ' ) . a d d C l a s s ( ' a c t i v e ' ) ; 
 	 $ ( ' b o d y ' ) . d a t a ( ' c u r r e n t ' ,   1 ) ; 	 
 
 } 
 
 
 
 f u n c t i o n   m y c a r o u s e l _ i t e m L o a d C a l l b a c k ( c a r o u s e l ,   s t a t e ) 
 	 { 
 	 
         / /   C h e c k   i f   t h e   r e q u e s t e d   i t e m s   a l r e a d y   e x i s t 
 	 
         i f   ( c a r o u s e l . h a s ( c a r o u s e l . f i r s t ,   c a r o u s e l . l a s t ) )   
 	 { 
 	 	 v a r   z i p   =   ( $ ( " # l o a d e d - i m a g e 2 "   +   c a r o u s e l . l a s t   +   " - o p a q u e " )   .   d a t a ( " z i p " ) ) ; 
 	 	 $ ( ' # d o w n l o a d ' )   .   a t t r ( ' h r e f ' ,   z i p ) ; 
 	 	 $ ( ' # f a c e b o o k ' )   .   a t t r ( ' h r e f ' ,   ' h t t p : / / w w w . f a c e b o o k . c o m / s h a r e r . p h p ? u = h t t p : / / w w w . w a l l 4 i p h o n e . r u / ? i d = '   +   c a r o u s e l . f i r s t ) ; 
 	 	 $ ( ' # t w i t t e r ' )   .   a t t r ( ' h r e f ' ,   ' h t t p : / / t w i t t e r . c o m / h o m e / ? s t a t u s = + B;8G=K5+ >1>8+ 4;O+ i P h o n e + - + h t t p : / / w w w . w a l l 4 i p h o n e . r u / ? i d = '   +   c a r o u s e l . f i r s t ) ; 
                 r e t u r n ; 
         } 
 
         $ . g e t ( 
                 ' g e t - i m a g e s . p h p ' , 
                 { 
                         f i r s t :   c a r o u s e l . f i r s t , 
                         l a s t :   c a r o u s e l . l a s t 
                 } , 
                 f u n c t i o n ( x m l )   
 	 	 { 
 	 	 	 
                         m y c a r o u s e l _ i t e m A d d C a l l b a c k ( c a r o u s e l ,   c a r o u s e l . f i r s t ,   c a r o u s e l . l a s t ,   x m l ) ; 	 
 	 	 	 v a r   z i p   =   ( $ ( " # l o a d e d - i m a g e 2 "   +   c a r o u s e l . l a s t   +   " - o p a q u e " )   .   d a t a ( " z i p " ) ) ; 
 	 	 	 $ ( ' # d o w n l o a d ' )   .   a t t r ( ' h r e f ' ,   z i p ) ; 
 	 	 	 $ ( ' # f a c e b o o k ' )   .   a t t r ( ' h r e f ' ,   ' h t t p : / / w w w . f a c e b o o k . c o m / s h a r e r . p h p ? u = h t t p : / / w w w . w a l l 4 i p h o n e . r u / ? i d = '   +   c a r o u s e l . f i r s t ) ; 
 	 	 	 $ ( ' # t w i t t e r ' )   .   a t t r ( ' h r e f ' ,   ' h t t p : / / t w i t t e r . c o m / h o m e / ? s t a t u s = + B;8G=K5+ >1>8+ 4;O+ i P h o n e + - + h t t p : / / w w w . w a l l 4 i p h o n e . r u / ? i d = '   +   c a r o u s e l . f i r s t ) ; 
                 } , 
                 ' x m l ' 
         ) ; 
 	 / / p a u s e ( 3 0 0 ) ; 
 	 
 	 
 } 
 
 f u n c t i o n   p a u s e ( m i l l i s ) 
 { 
 	 v a r   d a t e   =   n e w   D a t e ( ) ; 
 	 v a r   c u r D a t e   =   n u l l ; 
 
 	 d o   {   c u r D a t e   =   n e w   D a t e ( ) ;   } 
 	 w h i l e ( c u r D a t e - d a t e   <   m i l l i s ) ; 
 }   
 
 f u n c t i o n   m y c a r o u s e l _ i t e m A d d C a l l b a c k ( c a r o u s e l ,   f i r s t ,   l a s t ,   x m l ) 
 { 
         / /   S e t   t h e   s i z e   o f   t h e   c a r o u s e l 
         c a r o u s e l . s i z e ( p a r s e I n t ( $ ( ' t o t a l ' ,   x m l ) . t e x t ( ) ) ) ; 
 	 / / c a r o u s e l . s i z e ( 1 4 0 ) ; 
 
         $ ( ' w a l l p a p e r ' ,   x m l ) . e a c h ( f u n c t i o n ( i )   
 	 { 
 	 	 v a r   a r r   =   ( $ ( ' i m a g e ' ,   t h i s ) . t e x t ( ) . s p l i t ( ' | | ' ) ) ; 
 	 	 v a r   l i n k   =   $ ( ' z i p ' ,   t h i s ) . t e x t ( ) ; 
 	 	 v a r   i d   =   $ ( ' i d ' ,   t h i s ) . t e x t ( ) ; 
 
 	 	 
                 c a r o u s e l . a d d ( f i r s t   +   i ,   m y c a r o u s e l _ g e t I t e m H T M L ( a r r [ 0 ] ,   f i r s t   +   i ) ) ; 
 	 	 
 	 	 c a r o u s e l . a d d ( f i r s t   +   i   +   1 ,   m y c a r o u s e l _ g e t I t e m H T M L ( a r r [ 1 ] ,   f i r s t   +   i   +   1 ) ) ; 
 	 	 
 	 	 $ ( ' # l o a d e d - i m a g e 1 '   +   ( f i r s t   +   i )   +   ' - o p a q u e ' ) . h i d e ( ) ; 
 	 	 $ ( ' # l o a d e d - i m a g e 2 '   +   ( f i r s t   +   i   +   1 )     +   ' - o p a q u e ' ) . h i d e ( ) ; 
 	 	 
 	 	 $ ( " # l o a d e d - i m a g e 2 "   +   ( f i r s t   +   i   +   1 )   +   " - o p a q u e " )   .   d a t a ( " z i p " ,     l i n k ) ; 
 	 	 $ ( " # l o a d e d - i m a g e 2 "   +   ( f i r s t   +   i   +   1 )   +   " - o p a q u e " )   .   d a t a ( " i d " ,     i d ) ; 
         } ) ; 
 
 	 v a r   j   =   1 ; 
 
 	 f o r ( v a r   i   =   1 ;   i   < =   ( c a r o u s e l . s i z e ( ) / 2 ) ;   i + +   ) 
 	 { 
 	 	 i f ( i   %   4 1   = =   0 )   
 	 	 { 
 	 	 	 j + + ; 
 	 	 	 $ ( ' # c a r o u s e l - c o n t r o l ' ) . a p p e n d ( ' < d i v   c l a s s = " b l o c k - l e f t "   i d = " b l o c k - l e f t - '   +   j   +   ' " > < / d i v > ' ) ; 
 	 	 } 
 	 	 i f ( $ ( ' # c a r o u s e l - c o n t r o l - i t e m - '   +   i ) . l e n g t h   < =   0 ) 
 	 	 $ ( ' # c a r o u s e l - c o n t r o l   # b l o c k - l e f t - '   +   j ) . a p p e n d ( '   < a   h r e f = " # "   i d = " c a r o u s e l - c o n t r o l - i t e m - '   +   i   +   ' "   c l a s s = " p n g f i x " > '   +   i   +   ' < / a >   ' ) ; 
 	 } 
 } 
 
 / * * 
   *   I t e m   h t m l   c r e a t i o n   h e l p e r . 
   * / 
 
 
 
 f u n c t i o n   m y c a r o u s e l _ g e t I t e m H T M L ( u r l ,   i ) 
 { 
         i f ( i % 2 ! = 0 )   
 	 { 
 	 	 r e t u r n   ' < i m g   s r c = " '   +   u r l   +   ' "   w i d t h = " 3 2 0 "   h e i g h t = " 4 8 0 "   a l t = " "   c l a s s = " l o a d e d - i m a g e 1 - i m g "   i d = " l o a d e d - i m a g e 1 '   +   i   +   ' "   / > < i m g   o n c o n t e x t m e n u = " r e t u r n   f a l s e ; "   i d = " l o a d e d - i m a g e 1 '   +   i   +   ' - o p a q u e "   c l a s s = " l o a d e d - i m a g e 1 - o p a q u e   p n g f i x "   s r c = " i m a g e s / i m a g e 1 - o p a q u e . p n g "   a l t = " "   u n s e l e c t a b l e = " o n "   o n m o u s e d o w n = " r e t u r n   f a l s e ; "   / > ' ; 
 	 } 
 	 e l s e 
 	 { 
 	 	 r e t u r n   ' < i m g   s r c = " '   +   u r l   +   ' "   w i d t h = " 3 2 0 "   h e i g h t = " 4 8 0 "   a l t = " "   c l a s s = " l o a d e d - i m a g e 2 - i m g "   i d = " l o a d e d - i m a g e 2 '   +   i   +   ' "   / > < i m g   o n c o n t e x t m e n u = " r e t u r n   f a l s e ; "   i d = " l o a d e d - i m a g e 2 '   +   i   +   ' - o p a q u e "   c l a s s = " l o a d e d - i m a g e 2 - o p a q u e   p n g f i x "   s r c = " i m a g e s / i m a g e 2 - o p a q u e . p n g "   a l t = " "   u n s e l e c t a b l e = " o n "   o n m o u s e d o w n = " r e t u r n   f a l s e ; "   / > ' ; 
 	 } 
 } 
 
 f u n c t i o n   m y c a r o u s e l _ i t e m V i s i b l e I n C a l l b a c k B e f o r e A n i m a t i o n ( c a r o u s e l ,   i t e m ,   i d x ,   s t a t e )   { 
         $ ( ' # l o a d e d - i m a g e 1 ' + i d x ) . f a d e T o ( 5 0 0 ,   1 . 0 ) ; 
 	 $ ( ' # l o a d e d - i m a g e 2 ' + i d x ) . f a d e T o ( 5 0 0 ,   1 . 0 ) ; 
 } ; 
 
 
 
 
 f u n c t i o n   m a i l _ s h o w ( ) 
 { 
 	 i f ( ! i e 6 ( ) ) 
 	 { 
 	 	 $ ( ' # m a i l - w i n d o w ' ) . f a d e I n ( ) ; 
 	 	 $ ( ' # m a i l - o k ' ) . f a d e I n ( ) ; 
 	 	 $ ( ' # m a i l - c a n c e l ' ) . f a d e I n ( ) ; 
 	 	 $ ( ' # m a i l - i n p u t ' ) . f a d e I n ( ) ; 
 	 } 
 	 e l s e 
 	 { 
 	 	 $ ( ' # m a i l - w i n d o w ' ) . c s s ( ' d i s p l a y ' , ' b l o c k ' ) ; 
 	 	 $ ( ' # m a i l - o k ' ) . c s s ( ' d i s p l a y ' , ' b l o c k ' ) ; 
 	 	 $ ( ' # m a i l - c a n c e l ' ) . c s s ( ' d i s p l a y ' , ' b l o c k ' ) ; 
 	 	 $ ( ' # m a i l - i n p u t ' ) . c s s ( ' d i s p l a y ' , ' b l o c k ' ) ; 
 	 } 
 } 
 
 f u n c t i o n   m a i l _ h i d e ( ) 
 { 
 	 i f ( ! i e 6 ( ) ) 
 	 { 
 	 	 $ ( ' # m a i l - w i n d o w ' ) . f a d e O u t ( ) ; 
 	 	 $ ( ' # m a i l - o k ' ) . f a d e O u t ( ) ; 
 	 	 $ ( ' # m a i l - c a n c e l ' ) . f a d e O u t ( ) ; 
 	 	 $ ( ' # m a i l - i n p u t ' ) . f a d e O u t ( ) ; 
 	 } 
 	 e l s e 
 	 { 
 	 	 $ ( ' # m a i l - w i n d o w ' ) . c s s ( ' d i s p l a y ' , ' n o n e ' ) ; 
 	 	 $ ( ' # m a i l - o k ' ) . c s s ( ' d i s p l a y ' , ' n o n e ' ) ; 
 	 	 $ ( ' # m a i l - c a n c e l ' ) . c s s ( ' d i s p l a y ' , ' n o n e ' ) ; 
 	 	 $ ( ' # m a i l - i n p u t ' ) . c s s ( ' d i s p l a y ' , ' n o n e ' ) ; 
 	 } 
 } 
 
 
 f u n c t i o n   g e t I D ( e v t )   
 { 
 	 e v t   =   ( e v t )   ?   e v t   :   ( ( w i n d o w . e v e n t )   ?   w i n d o w . e v e n t   :   n u l l ) ; 
 	 i f ( e v t )   
 	 { 
 	 	 v a r   g e t I D   =   ( e v t . t a r g e t )   ?   e v t . t a r g e t   :   e v e n t . s r c E l e m e n t ; 
 	 	 r e t u r n   g e t I D . i d ; 
 	 } 
 } 
 
 
 f u n c t i o n   i e 6 ( ) 
 { 
 	 v a r   b r o w s e r   =   n a v i g a t o r . a p p N a m e ; 
 	 i f ( b r o w s e r   = =   " M i c r o s o f t   I n t e r n e t   E x p l o r e r " ) 
 	 { 
 	 	 v a r   b _ v e r s i o n   =   n a v i g a t o r . a p p V e r s i o n ; 
 	 	 v a r   r e   =   / \ M S I E \ s + ( \ d \ . \ d \ b ) / ; 
 	 	 v a r   r e s   =   b _ v e r s i o n . m a t c h ( r e ) ; 
 	 	 i f   ( r e s [ 1 ]   < =   6 ) 
 	 	 { 
 	 	 	 r e t u r n   t r u e ; 
 	 	 } 
 	 	 } 
 	 r e t u r n   f a l s e ; 
 } 
 
 
 f u n c t i o n   c h e c k ( ) 
 { 
 	 i 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   < =   ' 5 5 0 '   & &   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   < =   ' 7 5 0 ' ) 
 	 { 
 	 	 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 ' ) . s t y l e . l e f t   =   ' 0 p x ' ; 
 	 	 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 ' ) . s t y l e . m a r g i n L e f t   =   ' 0 p x ' ; 
 	 	 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 ' ) . s t y l e . t o p   =   ' 0 p x ' ; 
 	 	 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 ' ) . s t y l e . m a r g i n T o p   =   ' 0 p x ' ; 
 	 	 $ ( ' # t e x t u r e - s h a d o w - b o t t o m ' ) . c s s ( ' b o t t o m ' , ' 0 p x ' ) ; 
 	 } 
 	 e l s e   i 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   >   ' 5 5 0 '   & &   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   < =   ' 7 5 0 ' ) 
 	 { 
 	 	 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 ' ) . s t y l e . l e f t   =   ' 5 0 % ' ; 
 	 	 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 ' ) . s t y l e . m a r g i n L e f t   =   ' - 3 3 5 p x ' ; 
 	 	 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 ' ) . s t y l e . t o p   = ' 0 p x ' ; 
 	 	 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 ' ) . s t y l e . m a r g i n T o p   =   ' 0 p x ' ; 
 	 	 / / $ ( ' # t e x t u r e ' ) . c s s ( ' t o p ' ,   ( 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   -   3 7 1 )   +   ' p x ' ) ; 
 	 	 
 	 	 $ ( ' # t e x t u r e - s h a d o w - b o t t o m ' ) . c s s ( ' b o t t o m ' , ' - 3 0 0 p x ' ) ; 
 	 } 
 	 e l s e   i 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   < =   ' 5 5 0 '   & &   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   >   ' 7 5 0 ' ) 
 	 { 
 	 	 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 ' ) . s t y l e . l e f t   =   ' 0 p x ' ; 
 	 	 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 ' ) . s t y l e . m a r g i n L e f t   =   ' 0 p x ' ; 
 	 	 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 ' ) . s t y l e . t o p   =   ' 5 0 % ' ; 
 	 	 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 ' ) . s t y l e . m a r g i n T o p   =   ' - 3 5 8 p x ' ; 
 	 	 $ ( ' # t e x t u r e - s h a d o w - b o t t o m ' ) . c s s ( ' b o t t o m ' , ' 0 p x ' ) ; 
 	 } 
 	 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 ( ' c o n t a i n e r ' ) . s t y l e . l e f t   =   ' 5 0 % ' ; 
 	 	 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 ' ) . s t y l e . t o p   =   ' 5 0 % ' ; 
 	 	 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 ' ) . s t y l e . m a r g i n L e f t   =   ' - 3 3 5 p x ' ; 
 	 	 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 ' ) . s t y l e . m a r g i n T o p   =   ' - 3 5 8 p x ' ; 
 	 	 $ ( ' # t e x t u r e - s h a d o w - b o t t o m ' ) . c s s ( ' b o t t o m ' , ' 0 p x ' ) ; 
 	 } 
 } 
 
 w i n d o w . o n l o a d = c h e c k ; 
 w i n d o w . o n r e s i z e   =   c h e c k ; 
 
