
$(function() {
    $(".carousel_popular").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
        visible: 4,
        auto: 1500,
        speed: 1500
    });

$('.announce_block').click(function(){
$('.small_announce',this).toggle();
$('.announce_big',this).toggle();

}
);

$('#discount_a').click(function(){
$(".carousel_block").hide();
$(".carousel_block2").css("right","17px");
$(".carousel_block2_wrap").show();
$('#popular_a').removeClass('act');
$('#discount_a').addClass('act');
return false;
});

$('#popular_a').click(function(){
$(".carousel_block2_wrap").hide();
$(".carousel_block").show();
$('#discount_a').removeClass('act');
$('#popular_a').addClass('act');
return false;
});

$('.menu_item').hover(
function(){
   $(this).find(".pink_l").addClass('act');
   $(this).find(".pink_r").addClass('act');
   $(this).find("a").addClass('uz_item_active');
   },
function(){
   $(this).find(".pink_l").removeClass('act');
   $(this).find(".pink_r").removeClass('act');
   $(this).find("a").removeClass('uz_item_active');
}
);
$('.carousel_popular .special_img_wrap').hover(
function(){ 

$('.carousel_hov_body').html($(this).find(".tip").html());
var dlgheight = $('.this').find('.small_special_img').height();
var left_offset_position = $(this).offset().left; 
var top_offset_position = $(this).offset().top+dlgheight+150; 

$('.carousel_hov').css("top",top_offset_position+'px');
$('.carousel_hov').css("left",left_offset_position+'px');
$('.carousel_hov').show();
$('.carousel_hov_body .tip').show();
},
function(){
$('.carousel_hov').hide();
$('.carousel_hov_body').html('');
});

$('.question1').click(function(){
$('.announce_block1_wrap').show();
});

$('.announce_block1_wrap').click(function(){
$(this).hide();
});
});


