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