$(document).ready(function() {
	//$("#menu ul ul").parent().find('.right_shadow').append('<div class="subm_ind"></div>');
	$(".op_50").css('opacity',0.3);
	$(".op_50").click(function(){return false});
	
	
	$(".clickMenu").click(function(){
		window.location.href = $(this).find('a').attr('href');
	});
	
    $("#menu ul li.clickMenu").hover(function(){
    	$(this).addClass("act");
    }, function() {
		$(this).removeClass("act");
	});
    
	$("#menu>ul>li").hover(function(){
		if (!$(this).hasClass('disabled')) {
			if ($(this).hasClass('last')) {
                $('#menu_right').addClass('actright');
            }
            $(this).addClass("act");
			$(this).find('ul').stop();
			$(this).find('ul').css('opacity',0.98);
			$(this).find('ul').fadeIn(200);
			$(this).find('ul').css('left',this.offsetLeft);
		}
	}, function(){
			if (!$(this).hasClass('disabled')) {	
                $('#menu_right').removeClass('actright');            
				$(this).find('ul').stop();
				$(this).removeClass("act");
				$(this).find('ul').fadeOut(200);
			}
	});

	$(".clickSlide").click(function(){
		if ($(this).parent().hasClass('end')){/*$(".clickSlide").parent().css({'height':'auto'});*/}else{
			if ($(this).hasClass('down'))
		{
			$(this).removeClass('down');
			$(this).parent().css({height:'auto'});
			height=$(this).parent().height();
			$(this).parent().css({height:'13px'});
			$(this).parent().animate({height: height},200);
		}else{
		$(this).parent().animate({height: 13},200);
		$(this).addClass('down');}					}
									});

	$("#body .lay_203_sub div.p").mouseenter(function(kmouse) {
		$(this).find(".popup").stop();
		$(this).find(".popup").css('opacity',1);
		$(this).find(".popup").fadeIn(200);
		$(this).find(".pop_space").height($(this).find(".popup ul").height()-40);
		$(this).find(".popup").css({left:kmouse.pageX+10, top:kmouse.pageY-$(this).find(".popup ul").height()+40});									  
	}).mouseleave(function() {
		$(this).find(".popup").stop();
		$(this).find(".popup").fadeOut(200);
	});
	
	$('.flash1 .prodBlock').mouseenter(function () {
		$(this).find('.products').show();
		$(this).find('.productsBack').show();
	}).mouseleave(function () {
		$(this).find('.products').hide();
		$(this).find('.productsBack').hide();
	});
});

function Restore_image()
{
   $('#system').attr('src','/img/Anti-Age_System.gif');
}
