$(document).ready(function() { 

	/*$(".top-head").each(function(){
		$(this).fadeTo(0, 0.75);
	});*/

	$(".menu a").each(function(){
		$(this).fadeTo(0, 0.90);
	});


	$(".menu a").click(function(){
		$(this).blur();	
	});
	$(".img-control").each(function(){
		$(this).fadeTo(0, 0.60);
	});
	$("#prod-desc").each(function(){
		$(this).fadeTo(0, 0.70);
	});

	$(".subcategories .img").mouseover(function(){
		var t = $(this);
		t.attr("src", t.attr("src").replace(".jpg", "_over.jpg"));
	});
	$(".subcategories .img").mouseout(function(){
		var t = $(this);
		t.attr("src", t.attr("src").replace("_over.jpg", ".jpg"));
	});

	$(".other-categories .img").mouseover(function(){
		var t = $(this);
		t.attr("src", t.attr("src").replace(".jpg", "_over.jpg"));
	});
	$(".other-categories .img").mouseout(function(){
		var t = $(this);
		t.attr("src", t.attr("src").replace("_over.jpg", ".jpg"));
	});

	$("#products-images").mouseover( function(){showImageControls();});
	$("#products-images").mouseout( function(){hideImageControls();});

	$("#go-next").mouseover( function(){showImageControls();});
	$("#go-next").mouseout( function(){hideImageControls();});

	$("#go-prev").mouseover( function(){showImageControls();});
	$("#go-prev").mouseout( function(){hideImageControls();});

	
	$("#poza-harta").lightBox();

}); 

function showImageControls()
{
	$("#go-prev").css("display", "block");
	$("#go-next").css("display", "block");
}

function hideImageControls()
{
	$("#go-prev").css("display", "none");
	$("#go-next").css("display", "none");
}
