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