$(function() {
	$( "#post-wrapper" ).accordion({ header: 'h2', autoHeight: false,collapsible: false,  });
	$('.social-bar').tipsy({gravity: 's', fade: true});
	$(".social-bar").animate({ opacity: '.6'},300);
	$(".social-bar").hover(
	function () {
   		$(this).stop().animate({ opacity: '1'},300);
   	}, 
   	function () {
		$(this).stop().animate({ opacity: '.6'},300);
	}
);
});
jQuery(function($){
     $(".tweet").tweet({
        username: "jonasethomsen",
        join_text: "",
        count: 5,
    	loading_text: "loading tweets..."
	});
});

function initFancybox() {
   	$(".image-container a").fancybox({
	'overlayShow'	: false,
   	'transitionIn'	: 'elastic',
   	'transitionOut'	: 'elastic'
	});
	$("div.post").each(function () {
		$(".image-container:nth-child(7n)").addClass("no-margin");
	});
};

