/*
 * custom.js
 * requiert jQuery - http://jquery.com
 */

$(document).ready(function() {
	
	// Appels de notes
	$('a[@class$=notecall]')
		.prepend('[').append(']')
		.bind('click', function() {
			$('a#' + $(this).attr('id').substr(4))
				.parent().adCdlass('noteHighlight')
				.siblings().removeClass('noteHighlight');
		});
		
	// Notes de bas de page
	$('div[@id^=note] a[@class*=note]')
		.prepend('[').append(']')
		.bind('click', function() {
			$(this).parent().removeClass('noteHighlight');
		});
		
	// Min-height du contenu
	if ($.browser.msie) {
		var h = $('#nav').height() + $('#search').height();
		if ($('#main').height() < h) {
			$('#main').height(h + $('#main > div[@id$=Header]').height());
		}
	}
	
});
