ÿþf u n c t i o n   i m a g e h o l d e r c l a s s ( ) {  
 	 t h i s . o v e r = n e w   A r r a y ( ) ;  
 	 t h i s . d o w n = n e w   A r r a y ( ) ;  
 	 t h i s . s r c = n e w   A r r a y ( ) ;  
 	 t h i s . s t o r e = s t o r e ;  
 	  
 	 f u n c t i o n   s t o r e ( s r c ,   d o w n ,   o v e r ) {  
 	 	 v a r   A L = t h i s . s r c . l e n g t h ;  
 	 	 t h i s . s r c [ A L ] = n e w   I m a g e ( ) ;   t h i s . s r c [ A L ] . s r c = s r c ;  
 	 	 t h i s . o v e r [ A L ] = n e w   I m a g e ( ) ;   t h i s . o v e r [ A L ] . s r c = o v e r ;  
 	 	 t h i s . d o w n [ A L ] = n e w   I m a g e ( ) ;   t h i s . d o w n [ A L ] . s r c = d o w n ;  
 	 }  
 }  
  
 v a r   i h   =   n e w   i m a g e h o l d e r c l a s s ( ) ;  
 v a r   m o u s e i s d o w n = 0 ;  
  
 f u n c t i o n   p r e l o a d e r ( t ) {  
 	 f o r ( i = 0 ; i < t . l e n g t h ; i + + ) {  
 	 	 i f ( t [ i ] . g e t A t t r i b u t e ( ' s r c o v e r ' ) | | t [ i ] . g e t A t t r i b u t e ( ' s r c d o w n ' ) ) {  
 	 	 	  
 	 	 	 s t o r e i m a g e s ( t [ i ] ) ;  
 	 	 	 v a r   c h e c k e r = ' ' ;  
 	 	 	 c h e c k e r = ( t [ i ] . g e t A t t r i b u t e ( ' s r c o v e r ' ) ) ? c h e c k e r + ' A ' : c h e c k e r + ' ' ;  
 	 	 	 c h e c k e r = ( t [ i ] . g e t A t t r i b u t e ( ' s r c d o w n ' ) ) ? c h e c k e r + ' B ' : c h e c k e r + ' ' ;  
 	 	 	  
 	 	 	 s w i t c h ( c h e c k e r ) {  
 	 	 	 c a s e   ' A '   :   m o u s e o v e r ( t [ i ] ) ; m o u s e o u t ( t [ i ] ) ;   b r e a k ;  
 	 	 	 c a s e   ' B '   :   m o u s e d o w n ( t [ i ] ) ;   m o u s e u p 2 ( t [ i ] ) ;   b r e a k ;  
 	 	 	 c a s e   ' A B '   :   m o u s e o v e r ( t [ i ] ) ; m o u s e o u t ( t [ i ] ) ;   m o u s e d o w n ( t [ i ] ) ;   m o u s e u p ( t [ i ] ) ;   b r e a k ;  
 	 	 	 d e f a u l t   :   r e t u r n ; 	 	 	  
 	 	 	 }  
 	 	 	  
 	 	 	 i f ( t [ i ] . s r c ) { t [ i ] . s e t A t t r i b u t e ( " o l d s r c " , t [ i ] . s r c ) ; }  
 	 	 }  
 	 }  
 }  
 f u n c t i o n   m o u s e u p ( t ) {  
 	 v a r   n e w m o u s e u p ;  
 	 i f ( t . o n m o u s e u p ) {  
 	 	 t . o l d m o u s e u p = t . o n m o u s e u p ;  
 	 	 n e w m o u s e u p = f u n c t i o n ( ) { m o u s e i s d o w n = 0 ; t h i s . s r c = t h i s . g e t A t t r i b u t e ( " s r c o v e r " ) ; t h i s . o l d m o u s e u p ( ) ; }  
  
 	 }  
 	 e l s e { n e w m o u s e u p = f u n c t i o n ( ) { m o u s e i s d o w n = 0 ; t h i s . s r c = t h i s . g e t A t t r i b u t e ( " s r c o v e r " ) ; } }  
 	 t . o n m o u s e u p = n e w m o u s e u p ;  
 }  
  
 f u n c t i o n   m o u s e u p 2 ( t ) {  
 	 v a r   n e w m o u s e u p ;  
 	 i f ( t . o n m o u s e u p ) {  
 	 	 t . o l d m o u s e u p = t . o n m o u s e u p ;  
 	 	 n e w m o u s e u p = f u n c t i o n ( ) { m o u s e i s d o w n = 0 ; t h i s . s r c = t h i s . g e t A t t r i b u t e ( " o l d s r c " ) ; t h i s . o l d m o u s e u p ( ) ; }  
 	 	 }  
 	 e l s e { n e w m o u s e u p = f u n c t i o n ( ) { m o u s e i s d o w n = 0 ; t h i s . s r c = t h i s . g e t A t t r i b u t e ( " o l d s r c " ) ; } }  
 	 t . o n m o u s e u p   =   n e w m o u s e u p ;  
 }  
  
 f u n c t i o n   m o u s e d o w n ( t ) {  
 	 v a r   n e w m o u s e d o w n ;  
 	 i f ( t . o n m o u s e d o w n ) {  
 	 	 t . o l d m o u s e d o w n = t . o n m o u s e d o w n ;  
 	 	 n e w m o u s e d o w n = f u n c t i o n ( ) { i f ( m o u s e i s d o w n = = 0 ) { t h i s . s r c = t h i s . g e t A t t r i b u t e ( " s r c d o w n " ) ; t h i s . o l d m o u s e d o w n ( ) ; } }  
 	 }  
 	 e l s e { n e w m o u s e d o w n = f u n c t i o n ( ) { i f ( m o u s e i s d o w n = = 0 ) { t h i s . s r c = t h i s . g e t A t t r i b u t e ( " s r c d o w n " ) ; } } }  
 	 t . o n m o u s e d o w n = n e w m o u s e d o w n ;  
 }  
  
 f u n c t i o n   m o u s e o v e r ( t ) {  
 	 v a r   n e w m o u s e o v e r ;  
 	 i f ( t . o n m o u s e o v e r ) {  
 	 	 t . o l d m o u s e o v e r = t . o n m o u s e o v e r ;  
 	 	 n e w m o u s e o v e r = f u n c t i o n ( ) { t h i s . s r c = t h i s . g e t A t t r i b u t e ( " s r c o v e r " ) ; t h i s . o l d m o u s e o v e r ( ) ; }  
 	 }  
 	 e l s e { n e w m o u s e o v e r = f u n c t i o n ( ) { t h i s . s r c = t h i s . g e t A t t r i b u t e ( " s r c o v e r " ) ; } }  
 	 t . o n m o u s e o v e r = n e w m o u s e o v e r ;  
 }  
  
 f u n c t i o n   m o u s e o u t ( t ) {  
 	 v a r   n e w m o u s e o u t ;  
 	 i f ( t . o n m o u s e o u t ) {  
 	 	 t . o l d m o u s e o u t = t . o n m o u s e o u t ;  
 	 	 n e w m o u s e o u t = f u n c t i o n ( ) { t h i s . s r c = t h i s . g e t A t t r i b u t e ( " o l d s r c " ) ; t h i s . o l d m o u s e o u t ( ) ; }  
 	 }  
 	 e l s e { n e w m o u s e o u t = f u n c t i o n ( ) { t h i s . s r c = t h i s . g e t A t t r i b u t e ( " o l d s r c " ) ; } }  
 	 t . o n m o u s e o u t = n e w m o u s e o u t ;  
 }  
  
 f u n c t i o n   s t o r e i m a g e s ( t ) {  
 	 v a r   s = ( t . g e t A t t r i b u t e ( ' s r c ' ) ) ? t . g e t A t t r i b u t e ( ' s r c ' ) : ' ' ;  
 	 v a r   d = ( t . g e t A t t r i b u t e ( ' s r c d o w n ' ) ) ? t . g e t A t t r i b u t e ( ' s r c d o w n ' ) : ' ' ;  
 	 v a r   o = ( t . g e t A t t r i b u t e ( ' s r c o v e r ' ) ) ? t . g e t A t t r i b u t e ( ' s r c o v e r ' ) : ' ' ;  
 	 i h . s t o r e ( s , d , o ) ;  
 }  
  
 f u n c t i o n   p r e l o a d i m g s r c ( ) {  
 	 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 ;  
 	 v a r   i t = d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( ' I M G ' ) ;  
 	 v a r   i t 2 = d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( ' I N P U T ' ) ;  
 	 p r e l o a d e r ( i t ) ;  
 	 p r e l o a d e r ( i t 2 ) ;  
 }  
  
 i f ( w i n d o w . a d d E v e n t L i s t e n e r ) { w i n d o w . a d d E v e n t L i s t e n e r ( " l o a d " ,   p r e l o a d i m g s r c ,   f a l s e ) ; }    
 e l s e {  
 	 i f ( w i n d o w . a t t a c h E v e n t ) { w i n d o w . a t t a c h E v e n t ( " o n l o a d " ,   p r e l o a d i m g s r c ) ; }  
 	 e l 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 ) { w i n d o w . o n l o a d = p r e l o a d i m g s r c ; } }  
 } 
