﻿animatedcollapse.addDiv('theatres', 'fade=1')
animatedcollapse.addDiv('spectaclevivant', 'fade=1')
animatedcollapse.addDiv('musique', 'fade=1')
animatedcollapse.addDiv('musees', 'fade=1')
animatedcollapse.addDiv('festivals', 'fade=1')
animatedcollapse.addDiv('loisirs', 'fade=1')
animatedcollapse.addDiv('mairies', 'fade=1')
animatedcollapse.addDiv('commerces', 'fade=1')

animatedcollapse.addDiv('theatres', 'fade=0,speed=400,group=univers')
animatedcollapse.addDiv('spectaclevivant', 'fade=0,speed=400,group=univers,persist=1,hide=1')
animatedcollapse.addDiv('musique', 'fade=0,speed=400,group=univers,hide=1')
animatedcollapse.addDiv('musees', 'fade=0,speed=400,group=univers')
animatedcollapse.addDiv('festivals', 'fade=0,speed=400,group=univers,persist=1,hide=1')
animatedcollapse.addDiv('loisirs', 'fade=0,speed=400,group=univers,hide=1')
animatedcollapse.addDiv('mairies', 'fade=0,speed=400,group=univers')
animatedcollapse.addDiv('commerces', 'fade=0,speed=400,group=univers,persist=1,hide=1')

animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted
	//$: Access to jQuery
	//divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
	//state: "block" or "none", depending on state
}


animatedcollapse.init()
