
var oe_boites_accordion;

window.addEvent('load', function() {
	
	var hs = $$('.oe_boite_hideshow');
	var c = $$('.oe_boite_content');
	
	if(hs && hs.length>0 && c && c.length>0) {
		oe_boites_accordion = new Fx.Accordion(hs, c, { display: false, alwaysHide: true, opacity: false
			, onBackground: function(tog, i) {
				tog.className = 'oe_boite_hideshow';
				oe_boites_onClose(tog, i)
			}
			, onActive: function(tog, i) {
				tog.className = 'oe_boite_hideshow active';
				this.completed = i;
				this.currentTog = tog;
				this.currentI = i;
			}
			, onComplete: function() {
				if(this.completed != null) {
					oe_boites_onOpen(this.currentTog, this.currentI)
					this.completed = null;
				}
			}
		});
	}

});


function oe_boites_onOpen(tog, i) {
}
function oe_boites_onClose(tog, i) {
}
