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