ÿþv a r   i L a n g u a g e   =   0 ;  
 v a r   s S i l v e r ,   s G o l d ,   s B l a c k G o l d ,   s B r u s h e d ,   s B r o n z e ,   s B l a c k  
 v a r   s F r a m e  
  
 / /   N a s t a v e n i e   f a r i e b  
 / /   S t r a n k a   s a   n a s t a v i   p o d l a   t y c h t o ,   a j   k e d   v & n b s p ; p r e h l i a d a c i   b u d e   n a s t a v e n e   n i e c o   i n e  
 d o c u m e n t . b g C o l o r   =   " b l a c k " ;  
 d o c u m e n t . f g C o l o r   =   " # B F A 9 8 1 " ;  
 d o c u m e n t . a l i n k C o l o r   =   " # A 9 8 E 4 B " ;  
 d o c u m e n t . v l i n k C o l o r   =   " # A 9 8 E 4 B " ;  
 d o c u m e n t . l i n k C o l o r   =   " # A 9 8 E 4 B " ;  
  
  
  
  
 / /   i L a n g   -   0   =   s l o v e n s k y ,   1   =   a n g l i c k y ,   2   =   n e m e c k y ,   3   =   t a l i a n s k y ,   4   =   r u s k y  
 f u n c t i o n   s e t l a n g u a g e ( i ) {  
     i f (   i   < =   4   & &   i > =   0   ) {  
         i L a n g u a g e   =   i ;  
     }  
  
     i f (   i L a n g u a g e   = =   0   ) {  
         s S i l v e r   =   ' L e at e n ý   n e r e z ' ;  
         s G o l d   =   ' Z l a t á ' ;  
         s B l a c k G o l d   =   ' i e r n e   z l a t o ' ;  
         s B r u s h e d   =   ' B r ú s e n ý   n e r e z ' ;  
         s B r o n z e   =   ' B r o n z o v á ' ;  
         s B l a c k   =   ' i e r n a   f a r b a ' ;  
         s G o l d B l a c k G o l d   =   ' i e r n e   z l a t o   s o   z l a t o u ' ;  
         s G o l d S i l v e r   =   ' L e at e n ý   n e r e z   s o   z l a t o u ' ;  
         s F r a m e   =   ' R á m i k ' ;  
  
     }   e l s e   i f (   i L a n g u a g e   = =   1 ) {  
         s S i l v e r   =   ' P o l i s h e d   S t a i n l e s s   S t e e l ' ;  
         s G o l d   =   ' G o l d ' ;  
         s B l a c k G o l d   =   ' B l a c k   G o l d ' ;  
         s B r u s h e d   =   ' B r u s h e d   S t a i n l e s s   S t e e l ' ;  
         s B r o n z e   =   ' B r o n z e ' ;  
         s B l a c k   =   ' P o w d e r   C o a t i n g   B l a c k ' ;  
         s G o l d B l a c k G o l d   =   ' B l a c k   G o l d   w i t h   G o l d ' ;  
         s G o l d S i l v e r   =   ' P o l i s h e d   S t a i n l e s s   S t e e l   w i t h   G o l d ' ;  
         s F r a m e   =   ' F r a m e ' ;  
  
     }   e l s e   i f (   i L a n g u a g e   = =   2 ) {  
         s S i l v e r   =   ' A n t i k o r ' ;  
         s G o l d   =   ' G o l d ' ;  
         s B l a c k G o l d   =   ' S c h w a r t z   G o l d ' ;  
         s B r u s h e d   =   ' B r u s h e d   S t a i n l e s s   S t e e l ' ;  
         s B r o n z e   =   ' B r o n z e ' ;  
         s B l a c k   =   ' S c h w a r t z ' ;  
         s G o l d B l a c k G o l d   =   ' S c h w a r t z   G o l d   u n d   G o l d ' ;  
         s G o l d S i l v e r   =   ' A n t i k o r   u n d   G o l d ' ;  
         s F r a m e   =   ' R a h m e n ' ;  
  
     }   e l s e   i f (   i L a n g u a g e   = =   3 ) {  
         s S i l v e r   =   ' A n t i c o r o ' ;  
         s G o l d   =   ' O r o ' ;  
         s B l a c k G o l d   =   ' N e r o   o r o ' ;  
         s B r u s h e d   =   ' B r u s h e d   S t a i n l e s s   S t e e l ' ;  
         s B r o n z e   =   ' B r o n z o ' ;  
         s B l a c k   =   ' N e r o ' ;  
         s G o l d B l a c k G o l d   =   ' N e r o   o r o   +   o r o ' ;  
         s G o l d S i l v e r   =   ' A n t i c o r o   +   o r o ' ;  
         s F r a m e   =   ' F r a m e ' ;  
  
     }   e l s e   i f (   i L a n g u a g e   = =   4 ) {  
         s S i l v e r   =   ' ?>;8@>20==0O  =5@6025NI0O  AB0;L' ;  
         s G o l d   =   ' 7>;>B0O' ;  
         s B l a c k G o l d   =   ' G5@=>5  7>;>B>' ;  
         s B r u s h e d   =   ' H;8D>20==0O  =5@6025NI0O  AB0;L' ;  
         s B r o n z e   =   ' 1@>=7>20O' ;  
         s B l a c k   =   ' G5@=0O' ;  
         s G o l d B l a c k G o l d   =   ' GQ@=>5  7>;>B>  +   7>;>B0O' ;  
         s G o l d S i l v e r   =   ' ?>;8@>20==0O  =5@57  +   7>;>B0O' ;  
         s F r a m e   =   '  0<8:' ;  
  
     }  
  
 }  
  
  
  
  
 / /   c o d e   -   k o d   v y r o b k u  
 / /   s i z e   -   r o z m e r y   v y r o b k u  
 / /   s u r f a c e   -   1   =   n e r e z ,   2   =   z l a t o ,   3   =   c i e r n e   z l a t o ,   4   =   b r u s e n y   n e r e z ,   5   =   b r o n z ,   6   =   c i e r n a  
 / /                       2 1   =   z l a t o   +   n e r e z ,   2 3   =   z l a t o   +   c i e r n e   z l a t o  
 / /   [ t h u m b ]   -   n a z o v   n a h l a d o v e h o   o b r a z k u  
 / /   [ p i c t ]   -   o b r a z o k ,   k t o r y   s a   m a   z v a c s i t  
 / /   [ h e i g h t ]   -   v y s k a   t e x t o v e h o   p o l a   ( i m p l i c .   8 0 p x )  
 f u n c t i o n   s h o w p r o d u c t ( c o d e , s i z e , s u r f a c e , t h u m b , p i c t , h e i g h t ) {  
 v a r   s S u r f a c e ,   s M a r k ,   s H e i g h t ;  
  
     i f   ( s u r f a c e   = =   1 ) { s S u r f a c e   =   s S i l v e r ;   s M a r k   =   ' m a r k s i l v e r . g i f ' ;   }  
     e l s e   i f   ( s u r f a c e   = =   2 ) {   s S u r f a c e   =   s G o l d ;   s M a r k   =   ' m a r k g o l d . g i f ' ;   }  
     e l s e   i f   ( s u r f a c e   = =   3 ) {   s S u r f a c e   =   s B l a c k G o l d ;   s M a r k   =   ' m a r k b l a c k g o l d . g i f ' ;   }  
     e l s e   i f   ( s u r f a c e   = =   4 ) {   s S u r f a c e   =   s B r u s h e d ;   s M a r k   =   ' m a r k b r u s h e d . g i f ' ;   }  
     e l s e   i f   ( s u r f a c e   = =   5 ) {   s S u r f a c e   =   s B r o n z e ;   s M a r k   =   ' m a r k b r o n z e . g i f ' ;   }  
     e l s e   i f   ( s u r f a c e   = =   6 ) {   s S u r f a c e   =   s B l a c k ;   s M a r k   =   ' m a r k b l a c k . g i f ' ;   }  
     e l s e   i f   ( s u r f a c e   = =   2 1 ) {   s S u r f a c e   =   s G o l d S i l v e r ;   s M a r k   =   ' m a r k g o l d s i l v e r . g i f ' ;   }  
     e l s e   i f   ( s u r f a c e   = =   2 3 ) {   s S u r f a c e   =   s G o l d B l a c k G o l d ;   s M a r k   =   ' m a r k g o l d b l a c k g o l d . g i f ' ;   }  
     e l s e   { s S u r f a c e   =   ' ' ;   s M a r k   =   ' ' ;   }  
  
     i f   ( h e i g h t   = =   n u l l )   {   s H e i g h t   =   '   s t y l e = " h e i g h t :   8 0 p x ; " '   }  
     e l s e   i f   ( h e i g h t   = =   0 )   {   s H e i g h t   =   ' '   }  
     e l s e   {   s H e i g h t   =   '   s t y l e = " h e i g h t :   '   +   H e i g h t . t o S t r i n g ( )   +   ' p x ; " '   }  
  
  
     w i t h   ( d o c u m e n t ) {  
         w r i t e ( ' < T A B L E > < T R > < T D > ' ) ;  
  
             i f   ( t h u m b   ! =   n u l l )   {  
                   i f   ( p i c t   ! =   n u l l )   {   w r i t e ( ' < A   h r e f = " v i e w p h o t o . h t m l ? . . / p h o t o s / '   +   p i c t   +   ' "   t a r g e t = " v i e w p h o t o " > ' ) ;   }  
                   w r i t e ( ' < C E N T E R > < I M G   s r c = " . . / t h u m b s / '   +   t h u m b   +   ' "   b o r d e r = " 0 "   a l i g n = " T O P "   h s p a c e = " 0 " > < / C E N T E R > ' ) ;  
                   i f   ( p i c t   ! =   n u l l )   {   w r i t e ( ' < / A > ' ) ;   }  
             }  
  
             i f   ( c o d e + s i z e + s S u r f a c e   ! =   ' ' )   {  
                   w r i t e ( ' < T A B L E   w i d t h = " 1 0 0 % "   s t y l e = " b a c k g r o u n d - i m a g e :   u r l ( . . / g r a p h i c s / P u r p l e S h a d o w . j p g ) ; b a c k g r o u n d - r e p e a t :   r e p e a t - x ; " > < T R   v a l i g n = " T O P " > ' ) ;  
                   w r i t e ( ' < T D   w i d t h = " 2 5 " > ' ) ;  
                       i f   ( s M a r k   ! =   ' ' )   {   w r i t e ( ' < I M G   s r c = " . . / g r a p h i c s / '   +   s M a r k   +   ' "   w i d t h = " 1 5 "   h e i g h t = " 2 5 "   h s p a c e = " 8 "   v s p a c e = " 1 3 "   a l i g n = " l e f t "   a l t = " '   +   s S u r f a c e   +   ' " > ' ) ;   }  
                   w r i t e ( ' < / T D > < T D > ' ) ;  
                       w r i t e ( ' < P   i d = " l a b e l " '   +   s H e i g h t   +   ' > '   +   c o d e   +   ' < B R > '   +   s i z e   +   ' < / P > ' ) ;  
                   w r i t e ( ' < / T D > < / T R > < / T A B L E > ' ) ;  
             }  
  
         w r i t e ( ' < / T D > < / T R > < / T A B L E > ' ) ;  
  
     }  
 }  
  
  
  
  
 / /   Z o b r a z e n i e   z a v e r e c n y c h   l i n k o v :  
 / /   o p e n e d   -   p o r a d i e   a k t u a l n e   o t v o r e n e j   s t r a n k y   ( p .   i t e m s )  
 / /   l a n g u a g e   -   a k t u a l n y   j a z y k  
 f u n c t i o n   l a s t l i n k s ( o p e n e d , l a n g u a g e ) {  
 v a r   i t e m s ,   p a g e s ,   i ;  
  
     i f   ( l a n g u a g e   = =   n u l l )   l a n g u a g e   =   i L a n g u a g e ;  
     i f   ( o p e n e d   = =   n u l l )   o p e n e d   =   0 ;  
  
  
     i f   ( l a n g u a g e   = =   0 )   { 	 	 / /   s l o v e n s k y  
           i t e m s   =   n e w   A r r a y ( ' Ú v o d , ' ,   ' O & n b s p ; n á s , ' ,   ' F o t o g a l é r i a , ' ,   ' M a t e r i á l , ' ,   ' V ý r o b k y ' ,  
                                               ' L i s o v a n é & n b s p ; l a m p á ae & n b s p ; 1 , ' ,   ' L i s o v a n é & n b s p ; l a m p á ae & n b s p ; 2 , ' ,  
                                               ' L i s o v a n é & n b s p ; v á z y , ' ,   ' O d l i e v a n é & n b s p ; m o s a d z n é & n b s p ; l a m p á ae , ' ,    
                                               ' O d l i e v a n é & n b s p ; m o s a d z n é & n b s p ; v á z y , ' ,    
                                               ' V ý r o b k y & n b s p ; z & n b s p ; ea ~k é h o & n b s p ; a n t i k o r u , ' ,  
                                               ' K r í ~e , ' ,   ' P l a s t i k y , ' ,   ' P í s m o   a   r á m i k y , ' ,   ' K o m p l e t n é & n b s p ; v y b a v e n i e & n b s p ; n a & n b s p ; m o n t á ~& n b s p ; p í s m a ' ) ;  
  
     }   e l s e   i f   ( l a n g u a g e   = =   2 )   { 	 / /   n e m e c k y  
           i t e m s   =   n e w   A r r a y ( ' E i n l e i t u n g , ' ,   ' P r o f i l & n b s p ; d e r & n b s p ; f i r m a , ' ,   ' F o t o g a l e r i e , ' ,   ' M a t e r i a l , ' ,   ' E r z e u g n i s s e ' ,  
                                               ' P r e s s e d & n b s p ; l a n t e r n s & n b s p ; 1 , ' ,   ' P r e s s e d & n b s p ; l a n t e r n s & n b s p ; 2 , ' ,  
                                               ' P r e s s e d & n b s p ; v a s e s , ' ,   ' C a s t & n b s p ; b r a s s & n b s p ; l a n t e r n s , ' ,    
                                               ' C a s t & n b s p ; b r a s s & n b s p ; v a s e s , ' ,    
                                               ' H e a v y & n b s p ; s t a n l e s s & n b s p ; s t e e l , ' ,   ' C r o s s e s , ' ,   ' S c u l p t u r e s , ' ,    
                                               ' L e t t e r s & n b s p ; a n d & n b s p ; f r a m e s , ' ,   ' T e c h n i c a l & n b s p ; a c c e s s o r i e s ' ) ;  
  
     }   e l s e   i f   ( l a n g u a g e   = =   3 )   { 	 / /   t a l i a n s k y  
           i t e m s   =   n e w   A r r a y ( ' I n t r o d u z i o n e , ' ,   " P r o f i l o & n b s p ; d i & n b s p ; d i t t a , " ,   ' F o t o g a l e r i a , ' ,   ' M a t e r i a l , ' ,   ' P r o d o t t i ' ,  
                                               ' P r e s s e d & n b s p ; l a n t e r n s & n b s p ; 1 , ' ,   ' P r e s s e d & n b s p ; l a n t e r n s & n b s p ; 2 , ' ,  
                                               ' P r e s s e d & n b s p ; v a s e s , ' ,   ' C a s t & n b s p ; b r a s s & n b s p ; l a n t e r n s , ' ,    
                                               ' C a s t & n b s p ; b r a s s & n b s p ; v a s e s , ' ,    
                                               ' H e a v y & n b s p ; s t a n l e s s & n b s p ; s t e e l , ' ,   ' C r o s s e s , ' ,   ' S c u l p t u r e s , ' ,    
                                               ' L e t t e r s & n b s p ; a n d & n b s p ; f r a m e s , ' ,   ' T e c h n i c a l & n b s p ; a c c e s s o r i e s ' ) ;  
  
     }   e l s e   i f   ( l a n g u a g e   = =   4 )   { 	 / /   r u s k y  
           i t e m s   =   n e w   A r r a y ( ' 545=85, ' ,   " & n b s p ; =0A, " ,   ' $>B>30;5@5O, ' ,   ' 0B5@8a ;, ' ,   ' 745;8O' ,  
                                               ' @5AA>20==K5& n b s p ; D>=0@8& n b s p ; 1 , ' ,   ' @5AA>20==K5& n b s p ; D>=0@8& n b s p ; 2 , ' ,  
                                               ' @5AA>20==K5& n b s p ; 207K, ' ,    
                                               ' B;820==K5& n b s p ; ;0BC==K5& n b s p ; D>=0@8, ' ,   ' B;82=K5& n b s p ; ;0BC==K5& n b s p ; 207K, ' ,    
                                               ' 745;8O& n b s p ; 87& n b s p ; BO6Q;>3>& n b s p ; 0=B8:>@0, ' ,   ' @5ABK, ' ,   ' ;0AB8:8, ' ,    
                                               ' C:20& n b s p ; 8& n b s p ; @0<8:8, ' ,   ' K ><?;5:B=>5& n b s p ; >1>@C4>20=85& n b s p ; 4;O& n b s p ; CAB0=>2:8& n b s p ; 1C:28' ) ;  
  
     }   e l s e   { 	 	 	 / /   a n g l i c k y  
           i t e m s   =   n e w   A r r a y ( ' I n t r o d u c t i o n , ' ,   " A b o u t & n b s p ; u s , " ,   ' P h o t o & n b s p ; G a l l e r y , ' ,   ' R o w & n b s p ; m a t e r i a l , ' ,   ' P r o d u c t s ' ,  
                                               ' P r e s s e d & n b s p ; l a n t e r n s & n b s p ; 1 , ' ,   ' P r e s s e d & n b s p ; l a n t e r n s & n b s p ; 2 , ' ,  
                                               ' P r e s s e d & n b s p ; v a s e s , ' ,   ' C a s t & n b s p ; b r a s s & n b s p ; l a n t e r n s , ' ,    
                                               ' C a s t & n b s p ; b r a s s & n b s p ; v a s e s , ' ,    
                                               ' H e a v y & n b s p ; s t a n l e s s & n b s p ; s t e e l , ' ,   ' C r o s s e s , ' ,   ' S c u l p t u r e s , ' ,    
                                               ' L e t t e r s & n b s p ; a n d & n b s p ; f r a m e s , ' ,   ' T e c h n i c a l & n b s p ; a c c e s s o r i e s ' ) ;  
     }  
  
     p a g e s   =   n e w   A r r a y ( ' i n t r o d u c t i o n . h t m l ' ,   ' i n f o . h t m l ' ,   ' p h o t o . h t m l ' ,   ' m a t e r i a l . h t m l ' ,   ' p r o d u c t s . h t m l ' ,    
                                         ' p r e s s e d _ l a m p s _ 1 . h t m l ' ,   ' p r e s s e d _ l a m p s _ 2 . h t m l ' ,   ' p r e s s e d _ v a s e s . h t m l ' ,  
                                         ' c a s t _ l a m p s . h t m l ' ,   ' c a s t _ v a s e s . h t m l ' ,   ' h e a v y _ s t e e l . h t m l ' ,   ' c r o s s e s . h t m l ' ,    
                                         ' s c u l p t u r e s . h t m l ' ,   ' l e t t e r s . h t m l ' ,   ' a c c e s s o r i e s . h t m l ' ) ;  
  
  
     w i t h   ( d o c u m e n t ) {  
         w r i t e ( ' < T A B L E   w i d t h = " 4 8 0 "   a l i g n = " C E N T E R " > ' ) ;  
             w r i t e ( ' < T R   h e i g h t = " 3 5 " > < T D   b a c k g r o u n d = " . . / g r a p h i c s / L i n k T o p . j p g " > < B R > < / T D > < / T R > ' ) ;  
             w r i t e ( ' < T R > < T D > < C E N T E R > ' ) ;  
                 w r i t e ( ' < P   i d = " l i n k s " > ' ) ;  
  
                     f o r   ( i   =   0 ;   i   <   5 ;   i + + ) {  
                           i f   ( o p e n e d   = =   i + 1 )   w r i t e ( i t e m s [ i ]   +   '   ' )  
                           e l s e   w r i t e ( ' < A   h r e f = " '   +   p a g e s [ i ]   +   ' " > '   +   i t e m s [ i ]   +   ' < / A >   ' ) ;  
                     }  
  
                 w r i t e ( ' < B R > ' ) ;  
  
                     f o r   ( i   =   5 ;   i   <   i t e m s . l e n g t h ;   i + + ) {  
                           i f   ( o p e n e d   = =   i + 1 )   w r i t e ( i t e m s [ i ]   +   '   ' )  
                           e l s e   w r i t e ( ' < A   i d = " p r o d u c t s "   h r e f = " '   +   p a g e s [ i ]   +   ' " > '   +   i t e m s [ i ]   +   ' < / A >   ' ) ;  
                     }  
  
                 w r i t e ( ' < / P > ' ) ;  
             w r i t e ( ' < / C E N T E R > < / T D > < / T R > ' ) ;  
             w r i t e ( ' < T R   h e i g h t = " 3 0 " > < T D   b a c k g r o u n d = " . . / g r a p h i c s / L i n k B o t t o m . j p g " > < B R > < / T D > < / T R > ' ) ;  
         w r i t e ( ' < / T D > < / T R > < / T A B L E > ' ) ;  
  
     }  
 }  
 
