ÿþD a t e . p r o t o t y p e . g e t D a y N a m e   =   f u n c t i o n ( )  
 {  
         s w i t c h ( t h i s . g e t D a y ( ) )   {  
                 c a s e   0 :   r e t u r n   " C h ç  n h ­t " ;  
                 c a s e   1 :   r e t u r n   " T h é  h a i " ;  
                 c a s e   2 :   r e t u r n   " T h é  b a " ;  
                 c a s e   3 :   r e t u r n   " T h é  t °" ;  
                 c a s e   4 :   r e t u r n   " T h é  n m " ;  
                 c a s e   5 :   r e t u r n   " T h é  s á u " ;  
                 c a s e   6 :   r e t u r n   " T h é  b £y " ;  
         }  
 }  
 $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( ) {  
         v a r   $ d t   =   $ ( " # n a v   . d a t e " ) ;  
         v a r   d t ;  
         t r y   {  
                 d t   =   n e w   D a t e ( $ d t . h t m l ( ) ) ;  
         }   c a t c h ( e ) {  
                 d t   =   n e w   D a t e ( ) ;  
         }  
         / / v a r   d t   =   n e w   D a t e ( ) ;  
         v a r   f   =   f u n c t i o n ( n ) {  
                 i f   ( n   <   1 0 )   {  
                         n   =   " 0 "   +   n ;  
                 }  
                 r e t u r n   n ;  
         }  
         f u n c t i o n   s i m p l e C l o c k ( )  
         {  
                 v a r   h t m l   =   " { d a y } ,   n g à y   { d d } / { m m } / { y y y y }   { H } : { i } : { s } " ;  
                 h t m l   =   h t m l . r e p l a c e ( " { d a y } " ,   d t . g e t D a y N a m e ( ) ) ;  
                 h t m l   =   h t m l . r e p l a c e ( " { d d } " ,   f ( d t . g e t D a t e ( ) ) ) ;  
                 h t m l   =   h t m l . r e p l a c e ( " { m m } " ,   f ( d t . g e t M o n t h ( ) + 1 ) ) ;  
                 h t m l   =   h t m l . r e p l a c e ( " { y y y y } " ,   d t . g e t F u l l Y e a r ( ) ) ;  
                 h t m l   =   h t m l . r e p l a c e ( " { H } " ,   f ( d t . g e t H o u r s ( ) ) ) ;  
                 h t m l   =   h t m l . r e p l a c e ( " { i } " ,   f ( d t . g e t M i n u t e s ( ) ) ) ;  
                 h t m l   =   h t m l . r e p l a c e ( " { s } " ,   f ( d t . g e t S e c o n d s ( ) ) ) ;  
                 $ d t . h t m l ( h t m l ) ;  
                 $ d t . c s s ( " v i s i b i l i t y " ,   " v i s i b l e " ) ;  
                 d t . s e t T i m e ( d t . g e t T i m e ( ) + 1 0 0 0 ) ;  
                 w i n d o w . s e t T i m e o u t ( s i m p l e C l o c k ,   1 0 0 0 ) ;  
         }  
         s i m p l e C l o c k ( ) ;  
 } ) ; 
