//
// Fonctions javascript pour le site csduroy.qc.ca
// Simon - egzakt.com
// 2003-09-17
// 2008-10-09		Mise a jour complete

function document_ready() {
	var tr = 1;
	$(".fcktexte table tbody").each(function() {
		tr = 1;
		
		$(this).children("tr").not(".header").each(function() {
			if ((tr % 2) == 0)
				$(this).addClass("paire");
			tr++;
		});
	});
	$(".fcktexte table tbody tr:first-child td, .fcktexte table tbody tr:first-child th").addClass("premier_ligne");
	$(".fcktexte table tbody tr td:first-child, .fcktexte table tbody tr th:first-child").addClass("premier_colonne");
	
	$(".fcktexte table.tableau_T").attr("cellSpacing","0").attr("border","0");
	$(".fcktexte table.tableau_C").attr("cellSpacing","2").attr("border","0");
	
	// A enlever sur le site en production!!
// 	$(".fcktexte a").each(function() {
// 		if ($(this).attr('href').match(/(.*)csduroy.qc.ca(.*)/i)) {
// 			$(this).attr('href',$(this).attr('href').replace(/^http:\/\/(www.)?csduroy.qc.ca/i,'http://csduroy.egzakt.com'));
// 		}
// 	});
}