ÿþv a r   _ _ U p l o a d   =   {  
         C o n t r o l   :   f u n c t i o n   ( v , n , a c t i o n ) {  
                 v a r   s   =   n e w   A r r a y ( ) ;  
                 s . p u s h ( ' < d i v   i d = " a j a x U p l o a d C o n t r o l I t e m s " > ' ) ;  
                 f o r ( v a r   i   =   0 ;   i <   p a r s e I n t ( n ) ;   i + + )  
                 {  
                         s . p u s h ( ' < d i v   c l a s s = " i t e m "   i d = " a j a x U p l o a d P a n e l " > ' ) ;  
                        
                         s . p u s h ( ' < p   s t y l e = " t e x t - a l i g n : l e f t ; " > < i m g   s r c = " . . / i m a g e s / n o p i c . g i f "   a l t = " þVGr„˜È‰"   i d = " a j a x R e s u l t V i e w '   +   i   +   ' "   c l a s s = " i m g "       w i d t h = " 1 0 0 p x " ;   h e i g h t = " 1 0 0 p x " / > < / p > ' ) ;  
 / /                         s . p u s h ( ' < p > < i m g   s r c = " / i m a g e s / u p s m . g i f "   i d = " b t n A j a x U p l o a d B o t t o m '   +   i   +   ' "   a l t = " 
N OþVGr"   t i t l e = " 
N OþVGr"   c l a s s = " h a n d "   / >   < / p > ' ) ;  
                         s . p u s h ( " < p     s t y l e = \ " t e x t - a l i g n : l e f t ;   m a r g i n - t o p : - 1 5 p x ; \ " > < i f r a m e   s r c = \ " . . / u p l o a d . a s p x ? i d = " +   i   +   " & a c t i o n = t r u e \ "   i d = \ " i f U p l o a d "   +   i   +   " \ "   f r a m e b o r d e r = \ " n o \ "   s c r o l l i n g = \ " n o \ "   s t y l e = \ " w i d t h : 4 0 0 p x ;   h e i g h t : 2 8 p x ; \ " > < / i f r a m e > < d i v   c l a s s = \ " u p l o a d i n g \ "   i d = \ " u p l o a d i n g " +   i   +   " \ "   s t y l e = \ " d i s p l a y : n o n e ; \ "   > < / d i v >   < / p > " ) ;  
                         s . p u s h ( ' < i n p u t   i d = " a j a x H i d d e n R e s u l t U r l '   +   i   +   ' "   n a m e = " a j a x H i d d e n R e s u l t U r l '   +   i   +   ' "   t y p e = " h i d d e n "   r u n a t = " s e r v e r "   / > < / d i v > ' ) ;  
                 }  
               / /   s . p u s h ( ' < d i v   i d = " a j a x U p l o a d C o n t r o l "   s t y l e = \ "   m a r g i n - t o p : - 4 0 p x ; \ " > Øž¤‹
N OþVGr<h_ÿ< f o n t   c o l o r = " r e d " > j p g < / f o n t >   |   < f o n t   c o l o r = " r e d " > j p e g < / f o n t >   |   < f o n t   c o l o r = " r e d " > g i f < / f o n t >   ÿ'Y\åN5 0 0 K åN…Q:Nœ[0< / d i v > < / d i v > ' ) ;  
                 $ ( " # "   +   v ) . h t m l ( s . j o i n ( " " ) ) . s h o w ( " s l o w " ) ;  
                 v a r   m e   =   t h i s ;  
                 f o r ( v a r   i   =   0 ;   i   <   p a r s e I n t ( n ) ;   i + + )  
                         $ ( " # b t n A j a x U p l o a d B o t t o m "   +   i ) . b i n d ( " c l i c k " ,    
                         f u n c t i o n ( )  
                         {  
                         v a r   u r l   =   n e w   m e . O p e r a t i o n ( ) ; u r l . C r e a t e ( t h i s . i d . r e p l a c e ( " b t n A j a x U p l o a d B o t t o m " , " " ) , a c t i o n ) ;  
                         }  
                   ) ;  
                          
                         v a r   h i d I m g   =   d o c u m e n t . g e t E l e m e n t B y I d ( " c t l 0 0 _ C o n t e n t P l a c e H o l d e r 1 _ h i d I m g " ) ;  
                    
                 i f ( h i d I m g . v a l u e = = " " ) r e t u r n ;  
                
                  
                 v a r   A r y I m g   =   h i d I m g . v a l u e ;  
              
          
          
          
                 f o r ( v a r   i = 0 ; i < A r y I m g . l e n g t h ; + + i )  
                 {  
                         $ ( " # a j a x R e s u l t V i e w L i n k "   +   i ) . a t t r ( " h r e f " , A r y I m g . r e p l a c e ( " s _ " , " " ) ) ;  
                         $ ( " # a j a x R e s u l t V i e w "   +   i ) . a t t r ( " s r c " , A r y I m g ) ;  
                         $ ( " # a j a x H i d d e n R e s u l t U r l "   +     i ) . v a l ( A r y I m g ) ;  
                 }  
          
                      
                        
         } ,  
         O p e r a t i o n   :   f u n c t i o n ( ) {  
                 v a r   c u r r I t e m I D   =   1 ;    
                 v a r   l o a d i n g U r l   =   " . . / i m a g e s / l o a d i n g . g i f " ;  
                 v a r   m e   =   t h i s ;  
                 t h i s . C r e a t e   =   f u n c t i o n ( i t e m i d , a c t i o n )  
                 {  
                         c u r r I t e m I D   + + ;  
                         i f ( i t e m i d   = =   n u l l )   i t e m i d   =   c u r r e n t I t e m I D ;  
                         $ ( " # a j a x U p l o a d C o n t r o l " ) . h t m l ( a c t i o n   ?   " < i f r a m e   s r c = \ " / u p l o a d . a s p x ? i d = "   +   i t e m i d   +   " & a c t i o n = t r u e \ "   i d = \ " i f U p l o a d "   +   i t e m i d   +   " \ "   f r a m e b o r d e r = \ " n o \ "   s c r o l l i n g = \ " n o \ "   s t y l e = \ " w i d t h : 4 0 0 p x ;   h e i g h t : 2 8 p x ; \ " > < / i f r a m e > < d i v   c l a s s = \ " u p l o a d i n g \ "   i d = \ " u p l o a d i n g "   +   i t e m i d   +   " \ "   s t y l e = \ " d i s p l a y : n o n e ; \ "   > < / d i v > "   :   " < i f r a m e   s r c = \ " / u p l o a d . a s p x ? i d = "   +   i t e m i d   +   " & a c t i o n = \ "   i d = \ " i f U p l o a d "   +   i t e m i d   +   " \ "   f r a m e b o r d e r = \ " n o \ "   s c r o l l i n g = \ " n o \ "   s t y l e = \ " w i d t h : 4 0 0 p x ;   h e i g h t : 2 8 p x ; \ " > < / i f r a m e > < d i v   c l a s s = \ " u p l o a d i n g \ "   i d = \ " u p l o a d i n g "   +   i t e m i d   +   " \ "   s t y l e = \ " d i s p l a y : n o n e ; \ "   > < / d i v > " ) ;  
                 }  
                 t h i s . u p l o a d i n g   =   f u n c t i o n ( i m g s r c , i t e m i d )  
                 {  
                         v a r   e l   =   $ ( " # u p l o a d i n g "   +   i t e m i d ) ;  
                         $ ( " # i f U p l o a d "   +   i t e m i d ) . f a d e O u t ( " f a s t " ) ;  
                         e l . f a d e I n ( " f a s t " ) ;  
                         e l . h t m l ( " < i m g   s r c = ' "   +   l o a d i n g U r l   +   " '   a l i g n = ' a b s m i d d l e '   / >   
N O-N. . . " ) ;  
                         r e t u r n   e l ;  
                 }  
                 t h i s . u p l o a d S u c c e s s   =   f u n c t i o n ( S o u r c e I m a g e , T h u m b n a i l I m a g e , W a t e r A n d F o n t I m a g e , W a t e r F o n t I m a g e , W a t e r I m a g e , i t e m i d , a c t i o n )  
                 {  
                         $ ( " # u p l o a d i n g "   +   i t e m i d ) . h t m l ( " 
N ObŸR.   < a   h r e f = ' j a v a s c r i p t : v o i d ( 0 ) ; '   i d = ' a j a x U p l o a d A r g i n "   +   i t e m i d   +   " ' > [ < f o n t   c o l o r = ' r e d '   t i t l e = ' Í‘°e
N O' > Í‘°e
N O< / f o n t > ] < / a > " ) ;  
                         $ ( " # a j a x U p l o a d A r g i n "   +   i t e m i d ) . b i n d ( " c l i c k " ,   f u n c t i o n ( ) { m e . u p l o a d A r g i n ( i t e m i d ) ; } ) ;  
                         t h i s . R e s u l t ( S o u r c e I m a g e , T h u m b n a i l I m a g e , W a t e r A n d F o n t I m a g e , W a t e r F o n t I m a g e , W a t e r I m a g e , i t e m i d , a c t i o n )  
                 }  
                 t h i s . u p l o a d E r r o r   =   f u n c t i o n ( i t e m i d )  
                 {  
                         a l e r t ( " e r r o r :   "   +   i t e m i d   +   "   u p l o a d   e r r o r " ) ;  
                         t h i s . u p l o a d A r g i n ( i t e m i d ) ;  
                 }  
                 t h i s . u p l o a d A r g i n   =   f u n c t i o n ( i t e m i d )  
                 {  
                         c u r r I t e m I D   + + ;  
                         $ ( " # u p l o a d i n g "   +   i t e m i d ) . f a d e O u t ( " f a s t " , f u n c t i o n ( ) { $ ( " # i f U p l o a d "   +   i t e m i d ) . f a d e I n ( " f a s t " ) ; $ ( " # p a n e l V i e w P i c "   +   i t e m i d ) . f a d e O u t ( " f a s t " ) ; } ) ;  
                 }  
                 t h i s . R e s u l t   =   f u n c t i o n ( S o u r c e I m a g e , T h u m b n a i l I m a g e , W a t e r A n d F o n t I m a g e , W a t e r F o n t I m a g e , W a t e r I m a g e , i t e m i d , a c t i o n )  
                 {  
                         v a r   p i c u r l   =   " " ;  
                         v a r   r e   =   / ^ . + . ( g i f | j p g | j p e g ) $ / i ;    
                         i f ( r e . t e s t ( S o u r c e I m a g e ) )  
                                 p i c u r l   =   S o u r c e I m a g e ;  
                         e l s e   i f ( r e . t e s t ( T h u m b n a i l I m a g e ) )  
                                 p i c u r l   =   T h u m b n a i l I m a g e ;  
                         e l s e   i f ( r e . t e s t ( W a t e r A n d F o n t I m a g e ) )  
                                 p i c u r l   =   W a t e r A n d F o n t I m a g e ;  
                         e l s e   i f ( r e . t e s t ( W a t e r F o n t I m a g e ) )  
                                 p i c u r l   =   W a t e r F o n t I m a g e ;  
                         e l s e   i f ( r e . t e s t ( W a t e r I m a g e ) )  
                                 p i c u r l   =   W a t e r I m a g e ;  
                         e l s e  
                                 p i c u r l   =   " / t h e m e s / d e e p b l u e / n o p i c . g i f " ;  
                         i f ( a c t i o n   = =   " t r u e " )  
                         {  
                                 S o u r c e I m a g e   =   r e . t e s t ( S o u r c e I m a g e )   ?   S o u r c e I m a g e   :   " . . / i m a g e s / n o p i c . g i f " ;  
                                 $ ( " # a j a x R e s u l t V i e w "   +   i t e m i d ) . a t t r ( " s r c " , S o u r c e I m a g e ) ;  
                                 v a r   o   =   d o c u m e n t . g e t E l e m e n t B y I d ( " P i c U r l " ) ;  
                                 i f ( o )   $ ( " # P i c U r l " ) . v a l ( S o u r c e I m a g e ) ;  
                                 $ ( " # a j a x H i d d e n R e s u l t U r l "   +     i t e m i d ) . v a l ( S o u r c e I m a g e ) ;  
                                
                                     v a r   h i d I m g   =   d o c u m e n t . g e t E l e m e n t B y I d ( " c t l 0 0 _ C o n t e n t P l a c e H o l d e r 1 _ h i d I m g " ) ;  
                                         h i d I m g . v a l u e   =   " " ;  
                                   h i d I m g . v a l u e + =   d o c u m e n t . a l l ( " a j a x H i d d e n R e s u l t U r l "   +     i t e m i d ) . v a l u e ;  
                                
                                        
                         }  
                         e l s e  
                         {  
                                 T h u m b n a i l I m a g e   =   r e . t e s t ( T h u m b n a i l I m a g e )   ?   T h u m b n a i l I m a g e   :   " " ;  
                                 S o u r c e I m a g e   =   r e . t e s t ( S o u r c e I m a g e )   ?   S o u r c e I m a g e   :   " " ;  
                                 W a t e r A n d F o n t I m a g e   =   r e . t e s t ( W a t e r A n d F o n t I m a g e )   ?   W a t e r A n d F o n t I m a g e   :   " " ;  
                                 W a t e r F o n t I m a g e   =   r e . t e s t ( W a t e r F o n t I m a g e )   ?   W a t e r F o n t I m a g e   :   " " ;  
                                 $ ( " # a j a x R e s u l t V i e w "   +   i t e m i d ) . a t t r ( " s r c " , p i c u r l ) ;  
                                 $ ( " # a j a x H i d d e n R e s u l t U r l "   +     i t e m i d ) . v a l ( T h u m b n a i l I m a g e   +   " | "   +   S o u r c e I m a g e   +   " | "   +   W a t e r A n d F o n t I m a g e   +   " | "   +   W a t e r F o n t I m a g e ) ;  
                                     v a r   h i d I m g   =   d o c u m e n t . g e t E l e m e n t B y I d ( " c t l 0 0 _ C o n t e n t P l a c e H o l d e r 1 _ h i d I m g " ) ;  
                                       h i d I m g . v a l u e   =   " " ;  
                                 h i d I m g . v a l u e + =   d o c u m e n t . a l l ( " a j a x H i d d e n R e s u l t U r l "   +     i t e m i d ) . v a l u e ;  
                              
                         }  
                 }  
                  
                  
         }  
 } 
