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