$(document).ready(function(){

	//Header SlideShow
	zi=1;
	
	$(".fade-menu a").bind("mouseenter",function(){
		caller_id = $(this).parent().parent().parent().attr("id");
		zi++;
		$("."+($(this).attr("id"))).css('z-index',zi);
		cur_id=$(this).attr("id");
		$("."+cur_id).fadeIn({
			duration:1000,
			easing: 'easeInOutCirc',
			complete: function(){
				$("."+caller_id).each(function(){
					if( !($(this).hasClass(cur_id))){
						$(this).hide();
	      			}
				})
			}
		});
	})
	//END Header SlideShow

	//Produs Culori

	$(".fade-menu-click .culori-thumb").click(function(){
		caller_id = $(this).parent().parent().parent().attr("id");
		zi++;
		$("."+($(this).attr("id"))).css('z-index',zi);
		cur_id=$(this).attr("id");
		$("."+cur_id).fadeIn({
			duration:1000,
			easing: 'easeInOutCirc',
			complete: function(){
				$("."+caller_id).each(function(){
					if( !($(this).hasClass(cur_id))){
						$(this).hide();
	      			}
				})
			}
		});
	})
	
	//END Produs Culori

	//Product Menu Actions
	//$(".product-pane").hide();
	$("#descriere").show();

	$(".product-cat-link").click(function(){
		curr = $(this);
		$(".product-pane").hide();
		$(curr.attr('href')).fadeIn();

		$(".product-cat-link").removeClass("active");
		$(this).addClass("active");
		$(this).blur();
		
		return false;

	})

	$(".logo-46").bind("mouseenter",function(){
		$(this).animate({opacity: 1}, 300);
	}).bind("mouseleave",function(){
		$(this).animate({opacity: 0.4}, 300);
	});
	
	//END Product Menu Actions

	$(".lightbox").lightbox();
	
})