$(document).ready(function() {

	stri = "jonas";
	strin = "lekevicius";
	stri = stri+"@"+strin+".com";
	stri = "<a href=\"mailto:"+stri+"\">"+stri+"</a>";
	
	$("#email").html(stri);
	
	$(".iconlist a").hover (
		function () {
			$(this).stop().animate({paddingLeft: "35px", width: "125px", color: "#dea700"},"fast");
			$(this).parent().stop().animate({backgroundPosition: "10px 4px"},"fast");			
		},
		function () {
			$(this).stop().animate({paddingLeft: "25px", width: "135px", color: "#777777"},"fast");
			$(this).parent().stop().animate({backgroundPosition: "0px 4px"},"fast");	
		}
	);
	
	$(".iconlist a").hover (
	function () {
		$(this).find("strong").stop().animate({color: "#dea700"},"fast");			
	},
	function () {
		$(this).find("strong").stop().animate({color: "#999999"},"fast");	
	});
	
	$("#picture img").hover (
	function () {
		$(this).parent().css("background-image", "url(images/photo_color.png)");
		$(this).stop().animate({opacity: 0.0},"slow");			
	},
	function () {
		$(this).stop().animate({opacity: 1.0},"slow", function () {
			$(this).parent().css("background-image", "none");
		});	
	});
	
	$("#logo h1 a").hover (
	function () {
		$(this).stop().animate({opacity: 1.0},"slow");			
	},
	function () {
		$(this).stop().animate({opacity: 0.0},"slow");	
	});
	
	$("#footer #info-button a").click ( function () {
		$("#footer #info-button").fadeOut("slow", function () {
			$("#footer #info").fadeIn("slow");
		});
	});
	
});