$(document).ready(function(){

	//$(document).pngFix(); 

	$('a.preview').lightBox({
		overlayOpacity: 0.5,
		txtImage: 'Фото',
		txtOf: 'из'
	});
	
	$("#menu_btn a img").mouseover(function(){
		var btn_img = $(this).attr("id");
		$(this).attr("src","images/" + btn_img + "_over.jpg")
	}).mouseout(function(){
		var btn_img = $(this).attr("id");
		$(this).attr("src","images/" + btn_img + ".jpg")
	});
	
	$('a.preview_menu').lightBox({
		overlayOpacity: 0.5,
		txtImage: 'Меню. Фото',
		txtOf: 'из'
	});
	
	$('a.menu').lightBox({
		overlayOpacity: 0.5,
		txtImage: 'Меню. Фото',
		txtOf: 'из'
	});
	
	$("a").css("outline","none");
	$("input").css("outline","none");

	$("#author").fadeOut(1);
	$("a[href='#author']").animate({opacity: 0.7}, 1);
	$("#icons a").animate({opacity: 0.7}, 1);
	$("#icons img").animate({opacity: 0.7}, 1);

	$("a[href='#author']").mouseover(function(){
		$(this).animate({opacity: 1}, 200);
	}).mouseout(function(){
		$(this).animate({opacity: 0.7}, 200);
	});

	$("#icons a").mouseover(function(){
		$(this).animate({opacity: 1}, 200);
	}).mouseout(function(){
		$(this).animate({opacity: 0.7}, 200);
	});

	$("#icons img").mouseover(function(){
		$(this).animate({opacity: 1}, 200);
	}).mouseout(function(){
		$(this).animate({opacity: 0.7}, 200);
	});

	$("a[href='#author']").toggle(
		function () {
			$("#author").fadeIn(300);
			return false;
		},
		function () {
			$("#author").fadeOut(300);
			return false;
		}
	);
})