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