// alert("WORK!!!");

 $(document).ready(function(){



 $('.text_left_block_name').mouseover(function(){
    $(this).css('overflow','visible');
    $(this).css('position','absolute');
    $(this).css('height',$(this).children().css('height'));
  });
  $('.text_left_block_name').mouseout(function(){
    $(this).css('overflow','hidden');
    $(this).css('position','static');
    $(this).css('height','16px');
  });
 
 
  $('.catalog_bg').mouseover(function(){
  	$(this).children('img').attr('src','/img/str_top.gif');
  	$(this).children('div').css('display','block');
  });

  $('.catalog_bg').mouseout(function(){
  	$(this).children('img').attr('src','/img/str_bottom.gif');
  	$(this).children('div').css('display','none');
  });


  $('.catalog_bg_here').mouseover(function(){
  	$(this).children('img').attr('src','/img/str_top.gif');
  	$(this).children('div').css('display','block');
  });

  $('.catalog_bg_here').mouseout(function(){
  	$(this).children('img').attr('src','/img/str_bottom.gif');
  	$(this).children('div').css('display','none');
  });

 
 });


 $(window).resize(function(){
	
	resize_div();

 });

 function resize_div(){
 
 	var w = $('.global').width();

 	if(w>998){
 		if(w<1200){
 			width_ = w-300;
 			$('.content_div').css('width',width_+'px');
 			$('.content_div2').css('width',width_+'px');
 		}
 	}
 }




 function turn_left(){
 
 	$('.left_block_overflow').animate({'scrollLeft':'-=184'},500);
 
 }
 function turn_right(){
 
 	$('.left_block_overflow').animate({'scrollLeft':'+=184'},500);
 
 }

  function a_plus_minus(th,t_id,t_id2){
    if($('#'+t_id).css('display')=='none'){
      $('#'+t_id).show(200);
      $('#'+t_id2).show(200);
      $(th).children('img').attr('src','/img/minus.gif');
    } else {
      $('#'+t_id).hide(200);
      $('#'+t_id2).hide(200);
      $(th).children('img').attr('src','/img/plus.gif');
    }
  }
  
  function filt_cont(filt_cont_id,str){
    if($('#'+filt_cont_id).css('display')=='none'){
      $('#'+filt_cont_id).show(100);
      $('#'+str).attr('src','/img/str_top.gif');
    } else {
      $('#'+filt_cont_id).hide(100);
      $('#'+str).attr('src','/img/str_bottom.gif');
    }
  }

