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