
var jds_boites_accordion;

window.addEvent('load', function() {
	
	var hs = $$('.jds_boite_hideshow');
	var c = $$('.jds_boite_content');
	
	if(hs && hs.length>0 && c && c.length>0) {
		jds_boites_accordion = new Accordion(hs, c, { display: false, alwaysHide: true, opacity: false
			, onBackground: function(tog, i) {
				tog.className = 'jds_boite_hideshow';
				jds_boites_onClose(tog, i)
			}
			, onActive: function(tog, i) {
				tog.className = 'jds_boite_hideshow active';
				this.completed = i;
				this.currentTog = tog;
				this.currentI = i;
			}
			, onComplete: function() {
				if(this.completed != null) {
					jds_boites_onOpen(this.currentTog, this.currentI)
					this.completed = null;
				}
			}
		});
	}

});


function jds_boites_onOpen(tog, i) {
}
function jds_boites_onClose(tog, i) {
}
