$(document).ready(function()
{
	/*
	var ml = $('#information-ministry').height();
	var il = $('#introduction').height();
	
	if(ml > il) {
		$('#introduction').height(ml);
	} else if(il > ml) {
		$('#information-ministry').height(il);
	}
	*/
	
	$('#currentQuestion').listen('click', 'a.answer', function() {
		$('#currentQuestion').load(this.href);
		return false;
	});


	$('#reloadQuote').click(function() {
		var elm = this;
		$('#quote').slideUp('fast', function() {
			$(this).load(elm.href, function() {
				$(this).slideDown('fast');
			});			
		})
		return false;
	});
	
	
	// Load my ranking
	$('#myRanking').load("/ranking/my/format/html");

	// Load current question.
	$('#currentQuestion').load("/question/current/format/html");
	
	$('#quote').load("/quote/random");

	$('#columnRankings').accordion({
				clearStyle: false,
				header: "h3",
				autoHeight: false
	});
	
		
});

