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