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