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