window.addEvent('domready', function() {
	var posts = $$('div.post');
	var dates = $$('div.postdate');
	
	var fx = new Fx.Elements(dates, {wait: false, duration: 500, transition: Fx.Transitions.Back.easeOut});
	posts.each(function(post, i) {
		post.addEvent("mouseenter", function(event) {
			var o = {};
			dates.each(function(other, j) {
				if(i == j) {
					o[j] = {top: [40, 5], opacity: [0, 1]};
				}
				if(i != j) {
					var w = other.getStyle("top").toInt();
					var wo = other.getStyle("opacity").toInt();
					o[j] = {top: [w, 40], opacity: [wo, 0]};
				}
			});
			fx.start(o);
		});
	});
	
	$("content").addEvent("mouseleave", function(event) {
		var o = {};
		dates.each(function(date, i) {
			o[i] = {top: [date.getStyle("top").toInt(), 40], opacity: [date.getStyle("opacity").toInt(), 0]}
		});
		fx.start(o);
	});
	
	loadLinkPrefs();
});