$(function() {
	$("#footer").hide();
	load();
	$(".navigation:first").css("borderLeft", "none");
	$(".navigation:last").css("borderRight", "none");
	$('.content').hide();
	$('.content:first').show();
	$('.header').hide();
	$('.header:first').show();
	Cufon.replace(".menu-btn");
	$("#menu a:last").css("border", "none");
});
function load()
{
	$("#loading").fadeOut("slow", function() {
	$("#loading").css("display","none");
	$("#body").fadeIn("slow");
	$("#body").css("display", "block");
	$("#container").fadeIn("slow");
	$("#container").css("display", "block");
	$("#footer").show();
	});
}
function change(project) {
	$('.content').hide();
	$('.header').hide();
	return false;
}
$(function () {
	$(".grayimg").hover(function() {
		var alt = $(this).attr("alt");
		if (alt == "Favit")
		{
			$(this).attr("src", "templates/v8/images/favit-hover.png");
		}
		else
		{
			$(this).attr("src", "templates/v8/images/edno23-hover.png");
		}
	}, function () {
		var alt = $(this).attr("alt");
		if (alt == "Favit")
		{
			$(this).attr("src", "templates/v8/images/favit.png");
		}
		else
		{
			$(this).attr("src", "templates/v8/images/edno23.png");
		}
	});
});
