$(document).ready(function() {

	stri = "info";
	strin = "marcobauli";
	stri = stri+"@"+strin+".com";
	stri = "<a href=\"mailto:"+stri+"\">"+stri+"</a>";
	$("#email").html(stri);
	$("#email2").html(stri);
	
	/*$("a#vcard img").hover (
	function () {
		$(this).stop().animate({opacity: 1.0},"slow");			
	},
	function () {
		$(this).stop().animate({opacity: 0.0},"slow");	
	});*/
	
	$(".iconlist a").hover (
		function () {
			$(this).stop().animate({paddingLeft: "35px", color: "#EAF83B"},"fast");
			$(this).parent().stop().animate({backgroundPosition: "10px 3px"},"fast");			
		},
		function () {
			$(this).stop().animate({paddingLeft: "25px", color: "#eee"},"fast");
			$(this).parent().stop().animate({backgroundPosition: "0px 3px"},"fast");	
		}
	);
	
	$(".clientlist a").hover (
		function () {
			$(this).stop().animate({color: "#EAF83B"},"fast");		
		},
		function () {
			$(this).stop().animate({color: "#fff"},"fast");
		}
	);
	
	$("#footer #info-btn a").click(function () {
	      $("#info").each(function() {
	        vis = $(this).css("visible");
	        if(vis == "visible") {
	          $(this).fadeOut('slow',function() {
	            $(this).css("visible","hidden");
	          });
	        } else {
	          $(this).css("visible","visible");
	          $(this).fadeIn('slow');
	        }
	      });
	    });
	
	$(".navigation ul").tabs("div.description", {
	event:'mouseover',
	effect:'fade',
	fadeInSpeed:'1000'
	});
	
	$.tools.addTipEffect("slidedown",  
		function() { 
			var opacity = this.getConf().opacity;
			this.getTip().css({opacity:0}).animate({top: '+=15', opacity:opacity}, 300).show();
		}, 
		function() {
			this.getTip().animate({top: '+=15', opacity:0}, 300, function() { 
					$(this).hide().animate({top: '+=30'}, 0);
			});
		}
	);
	$("#vcard").tooltip({effect: 'slidedown'});

	
});