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