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