﻿<!-- Меняющиеся картинки справа в хэдэре -->
CurrentImage = 0;           
function DisplayImages(path1, path2, path3)
{   
    p1 = path1;
    p2 = path2;
    p3 = path3;
    ImageArr = new Array (p1, p2, p3);    
    if (document.images)
    {
       CurrentImage++;
       if (CurrentImage == ImageArr.length)
       {                    
          CurrentImage = 0;
       }
       document.curImage.src = ImageArr[CurrentImage];       
       setTimeout('DisplayImages(p1, p2, p3)', 4000);
    }
}    

//$(function(){
//$(window).resize(function(){
//  var $ctl00= $("#ctl00_Div");
//  if ($ctl00.length>0){
//    var $tr1=$("table:eq(0)>tbody>tr:eq(0)")
//    var $tr2=$("table:eq(0)>tbody>tr:eq(1)")
//    var topheight=$tr1.height()+$tr2.height()+22;
//    $ctl00.height($(this).height()-topheight);
//    $('body').css("overflow","hidden");
//  }
//}).trigger("resize");

//})

