- 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 - 23
 - 24
 - 25
 - 26
 - 27
 - 28
 - 29
 - 30
 - 31
 - 32
 - 33
 - 34
 - 35
 - 36
 - 37
 - 38
 - 39
 - 40
 - 41
 - 42
 - 43
 - 44
 - 45
 - 46
 - 47
 - 48
 - 49
 - 50
 - 51
 - 52
 - 53
 - 54
 - 55
 - 56
 - 57
 - 58
 - 59
 - 60
 - 61
 - 62
 - 63
 - 64
 - 65
 - 66
 - 67
 - 68
 - 69
 - 70
 - 71
 - 72
 - 73
 - 74
 - 75
 - 76
 - 77
 - 78
 - 79
 - 80
 - 81
 - 82
 - 83
 
                        /*
     * BANERS
     */
    $IMG="<div class=\"tovMain\" id=\"bnList1_imgBlock\"></div>
          <script type=\"text/javascript\">
            var bnList1_images=[";
    $banerId=$res->show1Var("s_rzd","page='".PAGE_BANER."'","id");
    $imgPreRes=$res->showTabAsPage("s_cnt","rzdId='".$banerId."' AND image>'' AND `show`='Y'","image","id",0);
    foreach($imgPreRes as $imgRes){
        $IMG.="'{ROOTPATH}images/".$imgRes["image"]."',";
    }
    $IMG=substr($IMG,0,-1);
    $IMG.="];
            var bnList1_old_image='';
            var bnList1_x=10;
            var bnList1_y=3;
            var bnList1_mercaniy=2;
            var bnList1_speed=500;
            var bnList1_speed1=800;
            var bnList1_w=Math.round(document.getElementById(\"bnList1_imgBlock\").offsetWidth/bnList1_x);
            var bnList1_h=Math.round(document.getElementById(\"bnList1_imgBlock\").offsetHeight/bnList1_y);
        
            var tek=0;
            bnList1Listing(bnList1_images[tek]);
            setInterval(\"tek=(bnList1_images.length>(tek+1)?tek+1:0);bnList1Listing(bnList1_images[tek]);\",5000);
            
            for(var i=1;i<=bnList1_x;i++){
                for(var j=1;j<=bnList1_y;j++){
                    bnList1CreateBlocks(\"bnList1_block_\"+i+\"_\"+j+\"_1\",bnList1_w,bnList1_h,bnList1_w*(i-1),bnList1_h*(j-1));
                    bnList1CreateBlocks(\"bnList1_block_\"+i+\"_\"+j+\"_2\",bnList1_w,bnList1_h,bnList1_w*(i-1),bnList1_h*(j-1));
                }
            }
        </script>";
    /*$rndBanerId=array_rand($imgPreRes);
    $img=$imgPreRes[$rndBanerId]["image"];
    $IMG="<div class=\"tovMain\" id=\"slideshow\">
            <img src=\"{ROOTPATH}images/empty.gif\" alt=\"\" />
            <img src=\"{ROOTPATH}img.php?image=".$img."&w=656&h=189\" alt=\"\" />
          </div>"; // Простая сквозная картинка
    //$HD_IMG="<div class=\"tovMain\">".($cntRes->hdImg())."</div>"; // Сменяющиеся картинки
     * s
     */
    $BANER=$cntRes->site_simpleStr(PAGE_BANER,"text");
        $content=str_replace("{BANER}",$BANER,$content);
        $content=str_replace("{IMG}",$IMG,$content);
    
    /*
     * IMAG
     */
    $TOVMAIN=$imagRes->showAsTovList("main");
        $content=str_replace("{TOVMAIN}",$TOVMAIN,$content);
    unset($TOVMAIN);
        
    /*
     * CONTENT
     */
    
    $NAV_ROW=$cntRes->site_nav();
    $STR=$cntRes->site_pageHd();
    $STR.=$cntRes->site_imagFilter();
    $STR.=$cntRes->site_cont();
    $SUB_STR=$cntRes->commonStr();
        $content=str_replace("{NAV_ROW}",$NAV_ROW,$content);
        $content=str_replace("{STR}",$STR,$content);
        $content=str_replace("{SUB_STR}",$SUB_STR,$content);
    unset($STR,$SUB_STR);
            $content=str_replace("{BACK}",BACK,$content);
            $content=str_replace("{UP}",UP,$content);
            $content=str_replace("{SEND}",SEND,$content);
            $content=str_replace("{FORM_SEND_ZAG}",FORM_SEND_ZAG,$content);
            $content=str_replace("{FORM_NAME}",FORM_NAME,$content);
            $content=str_replace("{FORM_POSTADDR}",FORM_POSTADDR,$content);
            $content=str_replace("{FORM_PHONE}",FORM_PHONE,$content);
            $content=str_replace("{FORM_EML}",FORM_EML,$content);
            $content=str_replace("{FORM_MSG}",FORM_MSG,$content);
            $content=str_replace("{FORM_SEND_SUCCESS}",FORM_SEND_SUCCESS,$content);
            $content=str_replace("{FORM_SEND_ERROR}",FORM_SEND_ERROR,$content);
            $content=str_replace("{REQUIRED_FIELDS}",REQUIRED_FIELDS,$content);
            $content=str_replace("{MAIN}",MAIN,$content);
  if(__lang=="en"){
    $content=str_replace("logo.png","logo_en.png",$content);
  }