ÿþ/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *   D H T M L   A d   B o x   ( B y   M a t t   G a b b e r t   a t   h t t p : / / w w w . n o l a g . c o m )  
 *   V i s i t   h t t p : / / w w w . d y n a m i c d r i v e . c o m /   f o r   f u l l   s c r i p t  
 *   T h i s   n o t i c e   m u s t   s t a y   i n t a c t   f o r   u s e  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 a d T i m e = 5 . 5 ;     / /   s e c o n d s   a d   r e m i n d e r   i s   s h o w n  
 c h a n c e A d = 1 ;   / /   a d   w i l l   b e   s h o w n   1   i n   X   t i m e s   ( p u t   1   f o r   e v e r y t i m e )  
  
 v a r   n s = ( d o c u m e n t . l a y e r s ) ;  
 v a r   i e = ( d o c u m e n t . a l l ) ;  
 v a r   w 3 = ( d o c u m e n t . g e t E l e m e n t B y I d   & &   ! i e ) ;  
 v a r   c a l u n i t = n s ?   " "   :   " p x "  
 a d C o u n t = 0 ;  
 f u n c t i o n   i n i t A d ( ) {  
 	 i f ( ! n s   & &   ! i e   & &   ! w 3 )   r e t u r n ;  
 	 i f ( i e ) 	 	 a d D i v = e v a l ( ' d o c u m e n t . a l l . s p o n s o r A d D i v . s t y l e ' ) ;  
 	 e l s e   i f ( n s ) 	 a d D i v = e v a l ( ' d o c u m e n t . l a y e r s [ " s p o n s o r A d D i v " ] ' ) ;  
 	 e l s e   i f ( w 3 ) 	 a d D i v = e v a l ( ' d o c u m e n t . g e t E l e m e n t B y I d ( " s p o n s o r A d D i v " ) . s t y l e ' ) ;  
 	 r a n d A d = M a t h . c e i l ( M a t h . r a n d o m ( ) * c h a n c e A d ) ;  
                 i f   ( i e | | w 3 )  
                 a d D i v . v i s i b i l i t y = " v i s i b l e " ;  
                 e l s e  
                 a d D i v . v i s i b i l i t y   = " s h o w " ;  
 	 i f ( r a n d A d = = 1 )   s h o w A d ( ) ;  
 }  
 f u n c t i o n   s h o w A d ( ) {  
 i f ( a d C o u n t < a d T i m e * 1 0 ) { a d C o u n t + = 1 ;  
 	 i f   ( i e ) { d o c u m e n t W i d t h     = t r u e b o d y ( ) . o f f s e t W i d t h / 2 + t r u e b o d y ( ) . s c r o l l L e f t - 2 0 ;  
 	 d o c u m e n t H e i g h t   = t r u e b o d y ( ) . o f f s e t H e i g h t / 2 + t r u e b o d y ( ) . s c r o l l T o p - 2 0 ; } 	  
 	 e l s e   i f   ( n s ) { d o c u m e n t W i d t h = w i n d o w . i n n e r W i d t h / 2 + w i n d o w . p a g e X O f f s e t - 2 0 ;  
 	 d o c u m e n t H e i g h t = w i n d o w . i n n e r H e i g h t / 2 + w i n d o w . p a g e Y O f f s e t - 2 0 ; }    
 	 e l s e   i f   ( w 3 ) { d o c u m e n t W i d t h = s e l f . i n n e r W i d t h / 2 + w i n d o w . p a g e X O f f s e t - 2 0 ;  
 	 d o c u m e n t H e i g h t = s e l f . i n n e r H e i g h t / 2 + w i n d o w . p a g e Y O f f s e t - 2 0 ; }    
 	 a d D i v . l e f t = d o c u m e n t W i d t h - 2 0 0 + c a l u n i t ; a d D i v . t o p   = d o c u m e n t H e i g h t - 2 0 0 + c a l u n i t ;  
 	 s e t T i m e o u t ( " s h o w A d ( ) " , 1 0 0 ) ; } e l s e   c l o s e A d ( ) ;  
 }  
 f u n c t i o n   c l o s e A d ( ) {  
 i f   ( i e | | w 3 )  
 a d D i v . d i s p l a y = " n o n e " ;  
 e l s e  
 a d D i v . v i s i b i l i t y   = " h i d e " ;  
 }  
  
 f u n c t i o n   t r u e b o d y ( ) {  
 r e t u r n   ( d o c u m e n t . c o m p a t M o d e   & &   d o c u m e n t . c o m p a t M o d e ! = " B a c k C o m p a t " ) ?   d o c u m e n t . d o c u m e n t E l e m e n t   :   d o c u m e n t . b o d y  
 }  
  
 o n l o a d = i n i t A d ;  
 / / E n d - - > 
