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