þÿ v a r   l a n g   =   " i t a " ;  
 v a r   i m g   =   n u l l ;  
  
 f u n c t i o n   s e t L a n g u a g e ( t m p )   {  
 	 l a n g   =   t m p ;  
 	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " s e s s i o n . p h p " ,  
 	 	 d a t a :   " l a n g = " + l a n g  
 	 } ) ;  
 }  
  
 f u n c t i o n   j d e f a u l t ( d h )   {  
 	 p a g e = ' # p a g e ' + d h ;  
   	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " s u b d e f a u l t . p h p " ,  
 	 	 d a t a :   " i d h = " + d h ,  
 	 	 a s y n c :   f a l s e ,  
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) {  
 	 	 	 $ ( p a g e ) . h t m l ( r e s p o n s e ) ;  
 	 	 	 $ ( p a g e ) . f a d e I n ( 5 0 0 ) ;  
 	 	 	 i f ( d h < 3 )   j d e f a u l t ( d h + 1 ) ;  
 	 	 }  
 	 } ) ;  
 }  
  
 f u n c t i o n   j m e n u ( p a g e )   {  
   	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " s u b d e f a u l t m e n u . p h p " ,  
 	 	 d a t a :   " p a g e = " + p a g e ,  
 	 	 a s y n c :   f a l s e ,  
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) {  
 	 	 	 $ ( " # m e n u " ) . h t m l ( r e s p o n s e ) ;  
 	 	 }  
 	 } ) ;  
 }  
  
 f u n c t i o n   j g a l ( )   {  
   	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " s u b g a l l e r y . p h p " ,  
 	 	 a s y n c :   f a l s e ,  
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) {  
 	 	 	 $ ( " # j g a l " ) . h t m l ( r e s p o n s e ) ;  
 	 	 }  
 	 } ) ;  
 }  
  
 f u n c t i o n   j v g a l ( )   {  
   	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " s u b v g a l l e r y . p h p " ,  
 	 	 a s y n c :   f a l s e ,  
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) {  
 	 	 	 $ ( " # j v g a l " ) . h t m l ( r e s p o n s e ) ;  
 	 	 }  
 	 } ) ;  
 }  
  
 f u n c t i o n   j v t e a m ( )   {  
   	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " s u b v g a l l e r y . p h p " ,  
 	 	 a s y n c :   f a l s e ,  
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) {  
 	 	 	 $ ( " # j v t e a m " ) . h t m l ( r e s p o n s e ) ;  
 	 	 	 j m e n u ( 1 ) ;  
 	 	 	 s e t e x t ( ) ;  
 	 	 }  
 	 } ) ;  
 }  
  
 f u n c t i o n   j h o m e ( i d )   {  
 	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " h o m e p o s . p h p " ,  
 	 	 d a t a :   " p o s = " + 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 ) {  
 	 	 }  
 	 } ) ;  
 }  
  
 f u n c t i o n   j l i s t ( d i r , n a m 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 c r o l l L e f t   =   0 ;  
 	 $ ( " # p s c r o l l e r " ) . f a d e I n ( 5 0 0 ) ;  
 	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " s u b l i s t . p h p " ,  
 	 	 d a t a :   " i d = " + d i r + " & n a m e = " + n a m e ,  
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) {  
 	 	 	 $ ( " # s c r o l l e r " ) . h t m l ( r e s p o n s e ) ;  
 	 	 	 $ ( " # m o d e l " ) . h t m l ( d i r ) ;  
 	 	 	 $ ( " # i T o p " ) . f a d e I n ( 5 0 0 ) ;  
 	 	 	 c a r o u s e l ( 5 ) ;  
 	 	 }  
 	 } ) ;  
 }  
  
 f u n c t i o n   j p h o t o ( i d , n a m e )   {  
 	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " s u b p h o t o . p h p " ,  
 	 	 d a t a :   " i d = " + i d + " & e l e = " + n a m e + " & t h = " + t h + " & t w = " + t w ,  
 	 	 c o m p l e t e :   f u n c t i o n ( ) {    
 	 	 / / 	 i f ( i d = = 0   & &   t i m e r v a l = = n u l l )   j p h o t o g a l ( n a m e ) ;  
 	 	 } ,  
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) {  
 	 	 	 $ ( " # i T o p " ) . h t m l ( r e s p o n s e ) ;  
 	 	 	 $ ( " # i T o p " ) . f a d e I n ( 5 0 0 ) ;  
 	 	 	 i f ( d o c u m e n t . g e t E l e m e n t B y I d ( ' t e x t ' ) ! =   n u l l ) 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' t e x t ' ) . s t y l e . d i s p l a y   =   ' b l o c k ' ;  
 	 	 	 i f ( i d = = 0   & &   t i m e r v a l = = n u l l )   j p h o t o g a l ( n a m e ) ;  
 	 	 }  
 	 } ) ;  
 }  
  
 f u n c t i o n   j p h o t o g a l ( n a m e )   {  
 	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " s u b p h o t o g a l . p h p " ,  
 	 	 d a t a :   " n a m e = " + n a m e ,  
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) {  
 	 	 	 $ ( " # p h s c r o l l e r " ) . h t m l ( r e s p o n s e ) ;  
 	 	 	 c a r o u s e l ( 5 ) ;  
 	 	 	 t i m e r v a l   =   s e t I n t e r v a l ( ' g a l l e r y ( " ' + n a m e + ' " ) ' , 5 0 0 0 ) ;  
 	 	 	 $ ( " # p h s c r o l l e r " ) . f a d e I n ( 5 0 0 ) ;  
 	 	 }  
 	 } ) ;  
 }  
  
 f u n c t i o n   j p r o j e c t ( i d , i n d )   {  
 	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " s u b p r o j e c t . p h p " ,  
 	 	 d a t a :   " i d = " + i d + " & t h = " + t h + " & t w = " + t w ,  
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) {  
 	 	 	 $ ( " # i T o p " ) . h t m l ( r e s p o n s e ) ;  
 	 	 	 i f ( i d = = 0   & &   t i m e r v a l = = n u l l )   {  
 	 	 	 	 j p r o j e c t g a l ( ) ;  
 	 	 	 }  
 	 	 }  
 	 } ) ;  
 }  
  
 f u n c t i o n   j p r o j e c t g a l ( )   {  
 	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " s u b p r o j e c t g a l . p h p " ,  
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) {  
 	 	 	 $ ( " # s c r o l l e r " ) . h t m l ( r e s p o n s e ) ;  
 	 	 	 t i m e r v a l   =   s e t I n t e r v a l ( ' p g a l l e r y ( ) ' , 5 0 0 0 ) ;  
 	 	 	 s e t S t e p ( 2 ) ;  
 	 	 	 c a r o u s e l ( 3 0 ) ;  
 	 	 }  
 	 } ) ;  
 }  
  
 f u n c t i o n   j p t x t ( i d )   {  
 	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " s u b p r o j e c t x t . p h p " ,  
 	 	 d a t a :   " i d = " + i d + " & l a n g = " + l a n g ,  
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) {  
 	 	 	 $ ( " # t e x t " ) . h t m l ( r e s p o n s e ) ;  
 	 	 	 / / c a r o u s e l ( 5 ) ;  
 	 	 }  
 	 } ) ;  
 }  
  
 f u n c t i o n   j e v e n t s l i s t ( )   {  
 	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " s u b e v e n t s l i s t . p h p " ,  
 	 	 d a t a :   " l a n g = " + l a n g ,  
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) {  
 	 	 	 $ ( " # l i s t " ) . h t m l ( r e s p o n s e ) ;  
 	 	 	 i f ( d o c u m e n t . g e t E l e m e n t B y I d ( " d t a b l e " ) . o f f s e 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 B y I d ( " t e x t " ) . c l i e n 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 B y I d ( ' u p ' ) . s t y l e . d i s p l a y   =   ' b l o c k ' ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' d o w n ' ) . s t y l e . d i s p l a y   =   ' b l o c k ' ;  
 	 	 	 }  
 	 	 }    
 	 } ) ;  
 }  
  
 f u n c t i o n   j e v e n t s ( i d )   {  
 	 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 c r o l l L e f t   =   ' 0 p x ' ;  
 	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " s u b e v e n t s . p h p " ,  
 	 	 d a t a :   " i d = " + 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 ) {  
 	 	 	 $ ( " # s c r o l l e r " ) . h t m l ( r e s p o n s e ) ;  
 	 	 	 c a r o u s e l ( 5 ) ;  
 	 	 }  
 	 } ) ;  
 }  
  
 f u n c t i o n   j p u b l i ( p i c )   {  
 	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " s u b p u b l i . p h p " ,  
 	 	 d a t a :   " i m g = " + p i c + " & l a n g = " + l a n g ,  
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) {  
 	 	 	 $ ( " # i t x t " ) . h t m l ( r e s p o n s e ) ;  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' i t x t ' ) . s t y l e . d i s p l a y   =   ' b l o c k ' ;  
 	 	 }  
 	 } ) ;  
 }  
  
 f u n c t i o n   j p u b l i p h o t o ( i d , n a m e , t m p )   {  
 	 $ . a j a x ( {  
 	 	 t y p e :   " G E T " ,  
 	 	 u r l :   " s u b p u b l i p h o t o . p h p " ,  
 	 	 d a t a :   " i d = " + i d + " & e l e = " + n a m e + " & t h = " + t h + " & t w = " + t w + " & p i c = " + t m p ,  
 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) {  
 	 	 	 $ ( " # i T o p " ) . h t m l ( r e s p o n s e ) ;  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' T o p _ ' ) . s t y l e . d i s p l a y   =   ' b l o c k ' ;  
 	 	 / / 	 i m g   =   t m p ;  
 	 	 / / 	 j p u b l i ( t m p ) ;  
 	 	 }  
 	 } ) ;  
 }  
  
 f u n c t i o n   j p a g e p ( p r e v )   {  
 	 i f ( p r e v   = =   p r e v i e w )   r e t u r n ;  
 	 e l s e   i f ( p r e v   = =   " " )   {  
 	 	 $ ( " # p a g e p " ) . h t m l ( " " ) ;  
 	 	 p r e v i e w   =   n u l l ;  
 	 }  
 	 e l s e   {  
 	 	 p r e v i e w   =   p r e v ;  
 	 	 $ . a j a x ( {  
 	 	 	 t y p e :   " G E T " ,  
 	 	 	 u r l :   p r e v i e w ,  
 	 	 	 a s y n c :   f a l s e ,  
 	 	 	 s u c c e s s :   f u n c t i o n ( r e s p o n s e ) {  
 	 	 	 	 $ ( " # p a g e p " ) . h t m l ( r e s p o n s e + ' < d i v   i d = " c l s "   o n c l i c k = " j p a g e p ( \ ' \ ' ) " > x < / d i v > ' ) ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' d b o d y ' ) . s t y l e . w i d t h   =   ' 2 5 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 ( ' d b o d y ' ) . s t y l e . h e i g h t   =   ' 1 3 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 ( ' d b o d y ' ) . o n m o u s e o v e r   =   ;  
 	 	 	 / / 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' d b o d y ' ) . o n m o u s e o u t   =   j p a g e p ( ' ' ) ;  
 	 	 	 	 r e s e t h ( ) ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' d r o w ' ) . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' t a b m e n ' ) . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 	 	 	 	 $ ( " # p a g e p " ) . f a d e I n ( 5 0 0 ) ; 	  
 	 	 	 }  
 	 	 } ) ;  
 	 }  
 }
