/* 
 * Article list functions
 */

/* Set the right height for articleList
 * We use window.load instead of document.ready
 * because we want all images loaded before 
 * the code is executed
 */

// we add another 20 px because #articleHead has a top margin
disp = 20

// Is taken from css
right_icon_position = 49

$(window).load(function() {
	
	heightLeft = $('#articleHead').height() + $('#articleBody').height();
	heightRight = $('#articleList').height();
	
	if (heightRight > heightLeft) {
		$('#articleList').css('height', heightLeft+disp);
	} else {
		$('#articleList').css('overflow-y', 'auto');
	}
	
});
