
// jquery
$(document).ready(function() {
	
	$('blockquote.clickable')
		.css('cursor', 'pointer')
		.click(function() {
			var url = $(this).find('a:first').attr("href");
			window.location = url;
			return false;
		});
	
	$('table.sortable tbody tr').hover(
		function () {
			$(this).stop();
			$(this).animate(
				{ backgroundColor: '#f5f5f5' },
				{ duration: 150, easing: "easeOutCubic" });
		}, function () {
			$(this).stop();
			$(this).animate(
				{ backgroundColor: '#ffffff' },
				{ duration: 1500, easing: "easeOutCubic" });
		}
	);
	
});

// general-purpose helpers
var qt = {
	confirm: function(msg) {
		if (window.confirm(msg))
			return true;
		return false;
	}
};