    
    function one_catatalog(strChildPar){
             
             document.write('<Table Border=0 Width=100% CellPadding=0 CellSpacing=3 style="font-family:tahoma;font-size:12px;color:#FFFFFF">');
             
             if(strChildPar != ""){ 
                var promm1 = strChildPar.split(';;');
                for(var i = 0; i < promm1.length; i++) document.write(one_vitrina_child(promm1[i]));         
             }
             
             document.write('</Table>');
    }
    
    function one_vitrina_child(strPar,bgCol){
             var promm = strPar.split('::');
             
             var bgCol = "";
             if(curIdCat == promm[0]) bgCol = ' bgColor=#990000 style="padding:5px"';    
                 if(promm[2] > 0)
                    return '<Tr><Td Width=1% VAlign=top>-</Td><Td '+bgCol+'><A style="color:#FFFFFF;" Href="?id_categories='+promm[0]+'" onMouseOver="this.style.color=\''+curHrefCol+'\'" onMouseOut="this.style.color=\'FFFFFF\'">'+promm[1]+'</A> <font color=#'+curHrefCol+'>('+promm[2]+')</font></Td></Tr>';
                 else
                    return '<Tr><Td Width=1% VAlign=top>-</Td><Td><font color=#999999>'+promm[1]+'</font></Td></Tr>';   
    }
    
    function one_vitrina(curHH,namePhoto,nameTit,strChildPar){
             if(namePhoto == '') {
                document.write('<Td>&nbsp;</Td>');
                return 0;
             }   
             
             document.write('<Td VAlign=top BgColor=#bf0909 Width=50%><Table Border=0 Width=100% Cellpadding=0 CellSpacing=0 BgColor=#bf0909><Tr><Td RowSpan=2 VAlign=top Width=129>'+
                            '<Table Border=0 Width=129 Height=121 Cellpadding=0 CellSpacing=0 BackGround="images/'+curIdStyle+'/vitrina_photo_bg.gif"><Tr><Td VAlign=top style="padding-left:18px;padding-top:17px">'+
                            '<Img Src="'+namePhoto+'" Border=0 Width=92 Height=92 Alt="">'+
                            '</Td></Tr></Table>'+
                            '</Td>'+
                            '<Td Width=90% Height=40 BackGround="images/vitrina_top_bg.gif" style="font-family:tahoma;font-size:12px;color:#FFFFFF"><b>'+nameTit+'</b></Td>'+
                            '<Td RowSpan=2 VAlign=top Width=9><Img Src="images/vitrina_top_end.gif" Border=0 Width=9 Height=40 Alt=""></Td>'+
                            '</Tr>'+
                            '<Tr><Td Height='+curHH+' VAlign=top><Table Border=0 Width=100% CellPadding=0 CellSpacing=3 style="font-family:tahoma;font-size:12px;color:#FFFFFF">');
             
             if(strChildPar != ""){ 
                var promm1 = strChildPar.split(';;');
                for(var i = 0; i < promm1.length; i++) document.write(one_vitrina_child(promm1[i]));         
             }
             
             document.write('</Table></Td></Tr>'+
                            '<Tr>'+
                            '<Td><Img Src="images/vitrina_bot_start.gif" Border=0 Width=9 Height=9 Alt=""></Td>'+
                            '<Td ColSpan=2 Align=right><Img Src="images/vitrina_bot_end.gif" Border=0 Width=9 Height=9 Alt=""></Td>'+
                            '</Tr>'+
                            '</Table></Td>');
    }
    
    
    function one_topmenu(menuUrl,menuTxt,curOv,okRazd){
             document.write('<Th Width=13%>');
             if(curOv){
                document.write('<Table Height=36 CellPadding=0 CellSpacing=0 Border=0>'+
                               '<Tr>'+
                               '<Td Width=12><Img Src="images/'+curIdStyle+'/topmenu_ov_start.gif" Border=0 Alt="" Width=12 Height=36></Td>'+
                               '<Td Align=center BackGround="images/'+curIdStyle+'/topmenu_ov_bg.gif" style="font-family:tahoma;font-size:12px;padding-left:5px;padding-right:5px;color:#FFFFFF"><nobr>'+menuTxt+'</nobr></Td>'+
                               '<Td Width=12><Img Src="images/'+curIdStyle+'/topmenu_ov_end.gif" Border=0 Alt="" Width=12 Height=36></Td>'+
                               '</Tr>'+
                               '</Table>');
             } else {
                document.write('<A Href="'+menuUrl+'" style="font-family:tahoma;font-size:12px;padding-left:5px;padding-right:5px;color:#FFFFFF">'+menuTxt+'</A>');
             }              
             document.write('</Th>');
             if(okRazd)
             document.write('<Th><Img Src="images/'+curIdStyle+'/topmenu_razd.gif" Border=0 Alt="" Width=1 Height=20></Th>');
    }
    
    function logo_and_search_form(titSearchForm,valSearchForm){
             document.write('<div style="position:absolute;width:100%;height:75;z-index:2"><Table Border=0 CellPadding=0 CellSpacing=0 Width=100%><Tr>'+
                            '<Td><A Href="?check=home"><Img Src="images/'+curIdStyle+'/logo.gif" Border=0 Alt="" Width=350 Height=70></A></Td>'+
                            '<Td Align=right><Table Border=0 CellPadding=0 CellSpacing=0 Width=289 Height=70 BackGround="images/'+curIdStyle+'/search_bg.gif">'+
                            '<Tr><Td ColSpan=2><Img Src="images/pixel.gif" Border=0 Width=289 Height=1 Alt=""></Td></Tr>'+
                            '<Tr Height=20 style="padding-left:15px"><Td ColSpan=2 style="font-family:tahoma;font-size:12px;color:#FFFFFF">'+titSearchForm+':</Td></Tr>'+
                            '<Tr VAlign=top>'+
                            '<form action="?check=search" method="post">'+
                            '<Td style="padding-left:20px"><input type=text name=search_txt value="'+valSearchForm+'" style="width:170px;height:22px;border:0px;background:#EEEEEE"></Td>'+
                            '<Td style="padding-right:30px"><input type=image src="images/pixel.gif" Alt="Поиск" Width=50 Height=22></Td></Tr>'+
                            '</form>'+
                            '</Table></Td>'+
                            '</Tr>'+
                            '<Tr><Td ColSpan=2><Img Src="images/pixel.gif" Border=0 Width=980 Height=1 Alt=""></Td></Tr>'+
                            '</Table></div>');
    }
