/*
 * custom.js
 * requiert jQuery - http://jquery.com
 */

$(document).ready(function() {
	
	// Trois colonnes #docHeader
	var dhcfm = $('#docHeaderColumnsForMika');
	dhcfm.children().height(dhcfm.height());
	
	// Appels de notes
	$('a[@class$=notecall]').each(function() {
		$(this).text('[' + $(this).text() + ']');
	});
	
	// Notes de bas de page
	$('div[@id^=note] a[@class*=ootnote]').each(function() {
		$(this).text('[' + $(this).text() + ']');
	});
	
	// Recherche
	var q = $('#search #q').val();
	$('#search #q')
		.focus(function(){$(this).val('');})
		.blur(function(){$(this).val(q);});
	
});
