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