ÿþv a r   u a   =   n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) ; 
 v a r   d i v w = 0 ; 
 v a r   d i v h = 0 ; 
 v a r   h = 0 ; 
 v a r   w = 0 ; 
 v a r   t ; 
 
 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 o c u m e n t . a l l ) 
 	 d o c u m e n t . w r i t e ( ' < d i v   i d = " i m g t r a i l e r "   s t y l e = " p o s i t i o n : a b s o l u t e ; v i s i b i l i t y : h i d d e n ; " > < / d i v > ' ) 
 
 f u n c t i o n   g e t t r a i l o b j e c t ( ) 
 	 { 
 	 i f   ( d o c u m e n t . g e t E l e m e n t B y I d ) 
 	 	 r e t u r n   d o c u m e n t . g e t E l e m e n t B y I d ( " i m g t r a i l e r " ) 
 	 e l s e   i f   ( d o c u m e n t . a l l ) 
 	 	 r e t u r n   d o c u m e n t . a l l . t r a i l i m a g i d 
 	 } 
 
 f u n c t i o n   g e t t r a i l o b j ( ) 
 	 { 
 	 i f   ( d o c u m e n t . g e t E l e m e n t B y I d ) 
 	 	 r e t u r n   d o c u m e n t . g e t E l e m e n t B y I d ( " i m g t r a i l e r " ) . s t y l e 
 	 e l s e   i f   ( d o c u m e n t . a l l ) 
 	 	 r e t u r n   d o c u m e n t . a l l . t r a i l i m a g i d . s t y l e 
 	 } 
 
 f u n c t i o n   t r u e b o d y ( ) 
 	 { 
 	 r e t u r n   ( ! w i n d o w . o p e r a   & &   d o c u m e n t . c o m p a t M o d e   & &   d o c u m e n t . c o m p a t M o d e ! = " B a c k C o m p a t " ) ?   d o c u m e n t . d o c u m e n t E l e m e n t   :   d o c u m e n t . b o d y 
 	 } 
 
 f u n c t i o n   h i d e o r v i e w t r a i l ( t y p e ) 
 	 { 
 	 i f   ( t y p e   = =   ' 0 ' ) { 
 	 c l e a r T i m e o u t ( t ) 
 	 v a r   v a r i a b l e s l i d e = 3 0 0 0 ; 
         t = s e t T i m e o u t ( " f u l l h i d e ( ) " , v a r i a b l e s l i d e )  
         / / a l e r t ( " f o r   h i d e " )  
         }  
         e l s e   {  
         / / g e t t r a i l o b j ( ) . h e i g h t = " 3 5 0 p x " ; 
 	 / / g e t t r a i l o b j ( ) . w i d t h = " 3 5 0 p x " ;  
         / / g e t t r a i l o b j ( ) . v i s i b i l i t y = " v i s i b l e " ;  
         c l e a r T i m e o u t ( t )  
 	 / / a l e r t ( " i t s   f o r   v i e w " ) 
 	  
         }  
 	 / / d o c u m e n t . o n m o u s e m o v e = ' ' ; 
 	 / / g e t t r a i l o b j ( ) . v i s i b i l i t y = " h i d d e n " ; 
 	 } 
 	 
 f u n c t i o n   f u l l h i d e ( ) 
 	 { 
 	 d o c u m e n t . o n m o u s e m o v e = ' ' ; 
 	 g e t t r a i l o b j ( ) . v i s i b i l i t y = " h i d d e n " ; 
 	 / / t r a i l O n ( , , , , , , , , 0 , 0 ) ; 
 	 g e t t r a i l o b j ( ) . l e f t = " 0 p x " ; 
 	 g e t t r a i l o b j ( ) . t o p = " 0 p x " ; 
 	 g e t t r a i l o b j ( ) . h e i g h t = " 0 p x " ; 
 	 g e t t r a i l o b j ( ) . w i d t h = " 0 p x " ; 
 	 } 	 
 
 f u n c t i o n   t r a i l O n ( i d , t h u m b i m g , i m g t i t l e , i m g s c r i p t i o n , i m g s i z e , f i l e s i z e , c r e d i t , l e v e l , t h w , t h h ) 
 	 { 
 	 c l e a r T i m e o u t ( t ) 
         g e t t r a i l o b j ( ) . h e i g h t = " 3 5 0 p x " ; 
 	 g e t t r a i l o b j ( ) . w i d t h = " 3 5 0 p x " ; 
 	 i f ( u a . i n d e x O f ( ' o p e r a ' )   = =   - 1   & &   u a . i n d e x O f ( ' s a f a r i ' )   = =   - 1 ) 
 	 	 { 
 	 	 
 	 	 / / a l e r t ( e v e n t . c l i e n t X ) ; 
 	 	 g e t t r a i l o b j ( ) . l e f t = " 5 0 0 p x " ; 
 	 	 d i v t h w   =   p a r s e I n t ( t h w )   +   2 ; 
 	 	 / / a l e r t ( d i v t h w ) ; 
 	 	 / / g e t t r a i l o b j e c t ( ) . i n n e r H T M L   =   ' < t a b l e   o n m o u s e o u t = " h i d e o r v i e w t r a i l ( 0 ) ; "   o n m o u s e o v e r = " h i d e o r v i e w t r a i l ( 1 ) ; "   b o r d e r = " 1 "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   s t y l e = " b o r d e r - c o l l a p s e :   c o l l a p s e "   w i d t h = " 2 5 0 p x "   d i r = " r t l "   h e i g h t = " 2 5 0 p x " > < t r > < t d   h e i g h t = " 2 5 0 " > < f o n t   f a c e = " T a h o m a "   s t y l e = " f o n t - s i z e :   8 p t " > < d i v   s t y l e = " b a c k g r o u n d - c o l o r :   # 0 0 0 0 0 0 ;   l a y e r - b a c k g r o u n d - c o l o r :   # 0 0 0 0 0 0 ;   b o r d e r :   0 p t   n o n e   # 0 0 0 0 0 0 ;   p a d d i n g :   0 p t ;   w i d t h : ' + d i v t h w + ' p x ; " > < d i v   s t y l e = " b a c k g r o u n d - c o l o r :   # F F F F F F ;   l a y e r - b a c k g r o u n d - c o l o r :   # F F F F F F ;   b o r d e r :   1 p x   s o l i d   # 0 0 0 0 0 0 ;   b a c k g r o u n d - i m a g e :   u r l ( i m a g e s / i m g _ l o a d . g i f ) ;   b a c k g r o u n d - r e p e a t :   n o - r e p e a t ; " > < c e n t e r > < i m g   s r c = " ' + t h u m b i m g + ' "   b o r d e r = " 0 "   w i d t h = " ' + t h w + ' "   h e i g h t = " ' + t h h + ' " > < / c e n t e r > < d i v   s t y l e = " p a d d i n g : 3 p x " > < b > T i t l e :   < / b > ' + i m g t i t l e + ' < b r > < b > D e s c r i p t i o n :   < / b > ' + i m g s c r i p t i o n + ' < b r > < / d i v > < / d i v > < / d i v > < / t d > < / t r > < / t a b l e > ' ; 
 	 	 / / g e t t r a i l o b j e c t ( ) . i n n e r H T M L   =   ' < t a b l e   v a l i g n = " t o p "   o n m o u s e o u t = " h i d e o r v i e w t r a i l ( 0 ) ; "   o n m o u s e o v e r = " h i d e o r v i e w t r a i l ( 1 ) ; "   b o r d e r = " 0 "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   s t y l e = " b o r d e r - c o l l a p s e :   c o l l a p s e "   w i d t h = " 3 5 0 p x "   d i r = " r t l "   h e i g h t = " 2 0 0 p x " > < t r > < t d   b g c o l o r = " # f f f f f f "   h e i g h t = " 2 0 " > < i f r a m e   s t y l e = " b o r d e r - s t y l e :   s o l i d ;   b o r d e r - w i d t h :   1 "   w i d t h = " 3 5 0 "   h e i g h t = " 2 0 0 "   i d = " t e m p i f r a m e "   n a m e = " t e m p i f r a m e "   s r c = " d e t a i l s . a s p x ? i d = ' + i d + ' " > < / i f r a m e > < f o n t   c o l o r = " # 0 0 0 0 0 0 "   f a c e = " T a h o m a "   s t y l e = " f o n t - s i z e :   8 p t " > < c e n t e r > ' + i m g s i z e + ' < / c e n t e r > < / t d > < / t r > < t r > < t d   h e i g h t = " 1 8 0 "   b a c k - c o l o r = " # 0 0 0 0 0 0 "   v a l i g n = " t o p " > < f o n t   f a c e = " T a h o m a "   s t y l e = " f o n t - s i z e :   8 p t " > < d i v   s t y l e = " b a c k g r o u n d - c o l o r :   # f f f f f f ;   l a y e r - b a c k g r o u n d - c o l o r :   # f f f f f f ;   b o r d e r :   0 p t   n o n e   # 0 0 0 0 0 0 ;   p a d d i n g :   0 p t ;   w i d t h : ' + d i v t h w + ' p x ;   h e i g h t : 1 8 0 p x ;   " > < d i v   s t y l e = " b a c k g r o u n d - c o l o r :   # F F F F F F ;   l a y e r - b a c k g r o u n d - c o l o r :   # F F F F F F ;   b o r d e r :   0 p x   s o l i d   # 0 0 0 0 0 0 ; " > < c e n t e r > < i m g   s r c = " ' + t h u m b i m g + ' "   b o r d e r = " 0 "   v s p a c e = " 1 0 " > < / c e n t e r > < d i v   a l i g n = " l e f t "   s t y l e = " p a d d i n g : 3 p x " > < l e f t > < a   h r e f = " d e t a i l s . a s p x ? i d = ' + i m g t i t l e + ' " > < b > E4'G/G  *H6Ì-'*< / b > < / a > < b r > < a   h r e f = " a r t i c l e s . a s p x ? i d = ' + i m g s c r i p t i o n + ' " > < b > E4'G/G  EB'DG< / b > < / a > < b r > < / l e f t > < / d i v > < / d i v > < / d i v > < / t d > < / t r > < / t a b l e > ' ; 
 	 	 g e t t r a i l o b j e c t ( ) . i n n e r H T M L   =   ' < t a b l e   v a l i g n = " t o p "   o n m o u s e o u t = " h i d e o r v i e w t r a i l ( 0 ) ; "   o n m o u s e o v e r = " h i d e o r v i e w t r a i l ( 1 ) ; "   b o r d e r = " 1 "   b g c o l o r = " # f f f f f f "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   s t y l e = " b o r d e r - c o l l a p s e :   c o l l a p s e "   w i d t h = " 3 5 0 p x "   d i r = " r t l " > < t r > < t d   b g c o l o r = " # f f f f f f " > < i f r a m e   s t y l e = " b o r d e r - r i g h t :   b l a c k   0 p x   s o l i d ;   b o r d e r - t o p :   b l a c k   0 p x   s o l i d ;   m a r g i n :   0 p x ;   b o r d e r - l e f t :   b l a c k   0 p x   s o l i d ;   b o r d e r - b o t t o m :   b l a c k   0 p x   s o l i d ; "   f r a m e b o r d e r = " 0 "   m a r g i n w i d t h = " 1 0 "   m a r g i n h e i g h t = " 1 0 "   w i d t h = " 3 5 0 "   h e i g h t = " 3 5 0 "   i d = " t e m p i f r a m e "   n a m e = " t e m p i f r a m e "   s r c = " d e t a i l s . a s p x ? i d = ' + i d + ' "   s c r o l l i n g = " n o " > < / i f r a m e > < f o n t   c o l o r = " # 0 0 0 0 0 0 "   f a c e = " T a h o m a "   s t y l e = " f o n t - s i z e :   8 p t " > < / t d > < / t r > < / t a b l e > ' ; 
 	 	 g e t t r a i l o b j ( ) . v i s i b i l i t y = " v i s i b l e " ; 
 	 	 d i v w   =   p a r s e I n t ( t h w ) + 7 5 ; 
 	 	 d i v h   =   p a r s e I n t ( t h h ) + 1 0 0 ; 
 	 	 f o l l o w m o u s e ( ) ; 
 	 	 / / d o c u m e n t . o n m o u s e m o v e = f o l l o w m o u s e ; 
 	 	 
 	 	 } 
 	 } 
 
 f u n c t i o n   f o l l o w m o u s e ( e ) 
 	 { 
 	 v a r   d o c w i d t h = d o c u m e n t . a l l ?   t r u e b o d y ( ) . s c r o l l L e f t + t r u e b o d y ( ) . c l i e n t W i d t h   :   p a g e X O f f s e t + w i n d o w . i n n e r W i d t h - 1 5 
 	 v a r   d o c h e i g h t = d o c u m e n t . a l l ?   M a t h . m i n ( t r u e b o d y ( ) . s c r o l l H e i g h t ,   t r u e b o d y ( ) . c l i e n t H e i g h t )   :   M a t h . m i n ( d o c u m e n t . b o d y . o f f s e t H e i g h t ,   w i n d o w . i n n e r H e i g h t ) 
 	 v a r   d o c w i d t h = t r u e b o d y ( ) . c l i e n t W i d t h ; 
 	 v a r   d o c h e i g h t = t r u e b o d y ( ) . c l i e n t H e i g h t ; 
 i f ( t y p e o f   e   ! =   " u n d e f i n e d " ) 
 	 { 
 	 a l e r t ( ' o n e ' ) ; 
 	 / / w = ' o n e ' ; 
 	 i f ( d o c w i d t h   <   e . p a g e X + d i v w ) 
 	 	 x c o o r d   =   e . p a g e X - d i v w ; 
 	 e l s e 
 	 	 x c o o r d   =   e . p a g e X ; 
 	 i f ( d o c h e i g h t   <   e . p a g e Y + d i v h ) 
 	 	 / / y c o o r d   =   e . p a g e Y - M a t h . m a x ( 0 , ( d i v h   +   e . p a g e Y   -   d o c h e i g h t   -   t r u e b o d y ( ) . s c r o l l T o p   -   3 0 ) ) ; 
 	 	 y c o o r d   =   e . p a g e Y - d i v h ; 
 	 e l s e 
 	 	 y c o o r d   =   e . p a g e Y ; 
 	 } 
 e l s e   i f   ( t y p e o f   w i n d o w . e v e n t   ! =   " u n d e f i n e d " ) 
         / / a l e r t ( ' t w o ' ) ; 
 	 { 
 	 / / t r u e b o d y ( ) . s c r o l l L e f t + e v e n t . c l i e n t X + d i v w 
 	 w = t r u e b o d y ( ) . s c r o l l L e f t + e v e n t . c l i e n t X + d i v w ; 
 	 h = e v e n t . c l i e n t Y + d i v h ; / / t r u e b o d y ( ) . s c r o l l T o p + 
 	 / / w = ' t w o ' ; 
 	 / / t r u e b o d y ( ) . s c r o l l L e f t + 
 	 i f ( d o c w i d t h   <   t r u e b o d y ( ) . s c r o l l L e f t +   e v e n t . c l i e n t X + d i v w ) 
 	 	 / / x c o o r d   =   t r u e b o d y ( ) . s c r o l l L e f t - 5 + e v e n t . c l i e n t X - d i v w ; 
 	 	 / / / / x c o o r d   =   t r u e b o d y ( ) . s c r o l l L e f t   +   e v e n t . c l i e n t X + 5 ; 
 	 	 x c o o r d   =   t r u e b o d y ( ) . s c r o l l L e f t   +   e v e n t . c l i e n t X - d i v w - 5 ; 
 	 e l s e 
 	 	 / / x c o o r d   =   t r u e b o d y ( ) . s c r o l l L e f t + 1 5 + e v e n t . c l i e n t X ; 
 	 	 x c o o r d   =   t r u e b o d y ( ) . s c r o l l L e f t + e v e n t . c l i e n t X - d i v w - 5 ; 
 / / t r u e b o d y ( ) . s c r o l l T o p + 
 / / y c o o r d   =   e v e n t . c l i e n t Y -   t r u e b o d y ( ) . s c r o l l T o p   +   d i v h   +   5 0 
 	 i f ( d o c h e i g h t   <   t r u e b o d y ( ) . s c r o l l T o p + e v e n t . c l i e n t Y + d i v h ) 
 	 y c o o r d   =   5 + t r u e b o d y ( ) . s c r o l l T o p + e v e n t . c l i e n t Y - M a t h . m a x ( 0 , ( d i v h   +   e v e n t . c l i e n t Y   -   d o c h e i g h t   -   3 0 ) ) ; 
 	 	 / / y c o o r d   =   e v e n t . c l i e n t Y - d i v h - 5 0   - t r u e b o d y ( ) . s c r o l l T o p   ;   / / + d i v h ;   / / d i v h ; 
 	 e l s e 
 	 y c o o r d   =   t r u e b o d y ( ) . s c r o l l T o p + 5 + e v e n t . c l i e n t Y ; 
 	 	 / / y c o o r d   = e v e n t . c l i e n t Y   +   5 0 ;   / / d i v h ; 
 	 } 
 	 g e t t r a i l o b j ( ) . l e f t = x c o o r d + " p x " 
 	 g e t t r a i l o b j ( ) . t o p = y c o o r d + " p x " 
 / / a l e r t ( w ) ; 
 / / a l e r t ( d o c w i d t h ) ; 	 
 / / a l e r t ( x c o o r d ) ; 
 / / a l e r t ( e v e n t . c l i e n t X ) ; 
 / / h = e v e n t . c l i e n t Y 
 / / a l e r t ( h ) ; 
 
 / / a l e r t ( t r u e b o d y ( ) . s c r o l l T o p ) ; 
 / / a l e r t ( e v e n t . c l i e n t Y ) ; 
 / / a l e r t ( d i v h ) ; 
 
 / / a l e r t ( d o c h e i g h t ) ; 
 / / a l e r t ( y c o o r d ) ; 
 	 } 
 
