


$(document).ready(function() {
						   
	$('.by_item .h a').click(function () {
									   
      	$(this).parents('.by_item').toggleClass('by_item_active');
		$(this).blur();
		return false;
    });

    $(".rating_table tr").hover(
      function () {
        $(this).addClass('tr_hover');
      }, 
      function () {
        $(this).removeClass('tr_hover');
      }
    );

	$('.opinion .readmore a').click(function () {
		detail_obj	=	$(this).parent().prev('.details');
		
		if (detail_obj.css('display')=='none') {
			detail_obj.show();
			$(this).text('Скрыть подробности');
		}
		else {
			detail_obj.hide();
			$(this).text('Читать дальше');
		}
      	
		$(this).blur();
		return false;
    });
	
	
	
	$('.predpos .h').click(function () {
		
		obj	=	$(this).next('.desc');
		
		if (obj.css('display')=='none') {
			$('.predpos .short_h').hide();
			$('.predpos .full_h').show();
			
			$('.predpos .desc').hide();
			obj.show();
			
		}
		else {
			$('.predpos .short_h').show();
			$('.predpos .full_h').hide();
			
			obj.hide();
			
		}
      	
		$(this).blur();
		return false;
    });
	
	
	
});  




