  $(document).ready(function(){ 
   
      function Make_Tabsheet(){ 	
	  
          var i, j, k, iMax_height, iDT_height; 
          $('dl').each(function(i){ 
               iMax_height=0; 
               iDT_height=20; 
               //var bFirst_tab = true; 
               var bFirst_tab = false; 
			   
			$(this).children('dt').mousedown(function(){; 
               //$(this).children('dt').hover(function(){; 
			   
               Switch_sheet(this); 
               $('dl').removeAttr('id'); 
			   
		  
		  var div_height = $(".active .dd_center").outerHeight(true);
		  //$('#footer').attr('style', 'margin-top:' + i20 + 'px;');
		  //$('#footer').css('margin-top', '0px').css('position', 'absolute').css('left', '0px').css('top', (div_height + 451) + 'px');
		  //$('#footer').css('margin-top', '0px').css('position', 'absolute').css('margin-top', (div_height - 200) + 'px');
		  
		  $('#footer').css('position', 'absolute').css('margin-top', (div_height - 200) + 'px');
		/*  
		  if ($.browser.mozilla) {*/

		  
		  var dheight = $(document).height();
		  
			$('#mainbg').css('min-height', (dheight) + 'px');
			$('#test').css('min-height', (dheight + 20) + 'px');
/*
			$('#w3_i').css('min-height', (481 + div_height) + 'px');
			$('#test').css('min-height', (521 + div_height) + 'px');		  

		  }	*/	  
		  //
		 
		  
          }); 
          $(this).children('dd').each(function(j){ 
               if( $(this).height() > iMax_height ){ 
                   iMax_height = $(this).height(); 
               } 
               if( !bFirst_tab ){ 
                     $(this).addClass('inactive'); 
               }else{ 
                     $(this).addClass('active'); 
                     bFirst_tab = false; 
               } 
              }); 
              $(this).height((iMax_height + iDT_height)*1+'px'); 
              $(this).children('dd').height(iMax_height + 'px'); 
              return true; 
          }); 
      } 
            
      function Switch_sheet( dt ){ 		
          $(dt).siblings('dt').removeClass('on'); 
          var dd=$(dt).next('dd'); 
          $(dt).siblings('dd').not(dd).removeClass('active').addClass('inactive'); 
          $(dt).addClass('on'); 
          $(dd).removeClass('inactive').addClass('active'); 
		  
		  var div_height = $(".active .dd_center").outerHeight(true);
		//  if ($.browser.mozilla) {
		  var dheight = $(document).height();
/*
			$('#w3_i').css('min-height', (dheight) + 'px');
			$('#test').css('min-height', (dheight + 20) + 'px');
*/
			$('#mainbg').css('min-height', (481 + div_height) + 'px');
			$('#test').css('min-height', (521 + div_height) + 'px');		  

		  //}	
		  
		  //alert(div_height);
          return false; 	
      } 
            
      Make_Tabsheet(); 
            
  });
  
$(function () {
    var tabContainers = $('div.tabs > div'); // получаем массив контейнеров
    tabContainers.hide().filter(':last').show(); // прячем все, кроме первого
    // далее обрабатывается клик по вкладке
    $('div.tabs ul.tabNavigation a').click(function () {
        tabContainers.hide(); // прячем все табы
        tabContainers.filter(this.hash).show(); // показываем содержимое текущего
        $('div.tabs ul.tabNavigation a').removeClass('selected'); // у всех убираем класс 'selected'
        $(this).addClass('selected'); // текушей вкладке добавляем класс 'selected'
        return false;
    }).filter(':last').click();
});





function ind_h(){
//var cont = $(document).height();
//$('#footer').css("style", "margin-top:" cont "px");
}
  $(document).ready(function(){ 
   
      function Make_Tabsheet(){ 	
	  
          var i, j, k, iMax_height, iDT_height; 
          $('dl').each(function(i){ 
               iMax_height=0; 
               iDT_height=20; 
               //var bFirst_tab = true; 
               var bFirst_tab = false; 
			   
			$(this).children('dt').mousedown(function(){; 
               //$(this).children('dt').hover(function(){; 
			   
               Switch_sheet(this); 
               $('dl').removeAttr('id'); 
			   
		  
		  var div_height = $(".active .dd_center").outerHeight(true);
		  //$('#footer').attr('style', 'margin-top:' + i20 + 'px;');
		  //$('#footer').css('margin-top', '0px').css('position', 'absolute').css('left', '0px').css('top', (div_height + 451) + 'px');
		  //$('#footer').css('margin-top', '0px').css('position', 'absolute').css('margin-top', (div_height - 200) + 'px');
		  
		  $('#footer').css('position', 'absolute').css('margin-top', (div_height - 200) + 'px');
		/*  
		  if ($.browser.mozilla) {*/

		  
		  var dheight = $(document).height();
		  
			$('#mainbg').css('min-height', (dheight) + 'px');
			$('#test').css('min-height', (dheight + 20) + 'px');
/*
			$('#w3_i').css('min-height', (481 + div_height) + 'px');
			$('#test').css('min-height', (521 + div_height) + 'px');		  

		  }	*/	  
		  //
		 
		  
          }); 
          $(this).children('dd').each(function(j){ 
               if( $(this).height() > iMax_height ){ 
                   iMax_height = $(this).height(); 
               } 
               if( !bFirst_tab ){ 
                     $(this).addClass('inactive'); 
               }else{ 
                     $(this).addClass('active'); 
                     bFirst_tab = false; 
               } 
              }); 
              $(this).height((iMax_height + iDT_height)*1+'px'); 
              $(this).children('dd').height(iMax_height + 'px'); 
              return true; 
          }); 
      } 
            
      function Switch_sheet( dt ){ 		
          $(dt).siblings('dt').removeClass('on'); 
          var dd=$(dt).next('dd'); 
          $(dt).siblings('dd').not(dd).removeClass('active').addClass('inactive'); 
          $(dt).addClass('on'); 
          $(dd).removeClass('inactive').addClass('active'); 
		  
		  var div_height = $(".active .dd_center").outerHeight(true);
		//  if ($.browser.mozilla) {
		  var dheight = $(document).height();
/*
			$('#w3_i').css('min-height', (dheight) + 'px');
			$('#test').css('min-height', (dheight + 20) + 'px');
*/
			$('#mainbg').css('min-height', (481 + div_height) + 'px');
			$('#test').css('min-height', (521 + div_height) + 'px');		  

		  //}	
		  
		  //alert(div_height);
          return false; 	
      } 
            
      Make_Tabsheet(); 
            
  });
  
$(function () {
    var tabContainers = $('div.tabs > div'); // получаем массив контейнеров
    tabContainers.hide().filter(':last').show(); // прячем все, кроме первого
    // далее обрабатывается клик по вкладке
    $('div.tabs ul.tabNavigation a').click(function () {
        tabContainers.hide(); // прячем все табы
        tabContainers.filter(this.hash).show(); // показываем содержимое текущего
        $('div.tabs ul.tabNavigation a').removeClass('selected'); // у всех убираем класс 'selected'
        $(this).addClass('selected'); // текушей вкладке добавляем класс 'selected'
        return false;
    }).filter(':last').click();
});





function ind_h(){
//var cont = $(document).height();
//$('#footer').css("style", "margin-top:" cont "px");
}

