
$(function(){
	$('.date-sidebar-year').click(function() {
		$(this).next().slideToggle();
		$('.date-sidebar-month').next().hide();
		$('.date-sidebar-month').addClass("date-sidebar-month-collapsed");
		$('.date-sidebar-month').removeClass("date-sidebar-month-expanded")
		$(this).toggleClass("date-sidebar-year-collapsed").toggleClass("date-sidebar-year-expanded");
		return false;
	}).next().hide();
});

$(function(){
	$('.date-sidebar-month').click(function() {
		$(this).next().slideToggle();
		$(this).toggleClass("date-sidebar-month-collapsed").toggleClass("date-sidebar-month-expanded");
		return false;
	}).next().hide();
});

$(function(){
	$('.sidebar-module-title').click(function() {
		$(this).next().slideToggle('slow');
		return false;
	})
});



/*
* The next code was wrote by 
*
* Author: Marco Kuiper (http://www.marcofolio.net/)
*/

$(document).ready(function()
{
	// Hide all the tooltips
	$("#social li").each(function() {
		$("a strong", this).css("opacity", "0");
	});
	
	$("#social li").hover(function() { // Mouse over
		$(this)
			.stop().fadeTo(500, 1)
			.siblings().stop().fadeTo(500, 0.3);
			
		$("a strong", this)
			.stop()
			.animate({
				opacity: 1,
				top: "-10px"
			}, 300);
		
	}, function() { // Mouse out
		$(this)
			.stop().fadeTo(500, 0.3)
			.siblings().stop().fadeTo(500, 0.3);
			
		$("a strong", this)
			.stop()
			.animate({
				opacity: 0,
				top: "-1px"
			}, 300);
	});
	
});

/*
* Author:      Marco Kuiper (http://www.marcofolio.net/)
*/

