var thisurl=window.location.href;
if(thisurl.search("garage-quebec")>-1) {var indexexp="1";}
else if(thisurl.search("garage-laval")>-1) {var indexexp="2";}
else if(thisurl.search("garage-montreal")>-1) {var indexexp="0";}
else if(thisurl.search("-monteregie")>-1) {var indexexp="3";}
else if(thisurl.search("-sherbrooke")>-1) {var indexexp="4";}
else if(thisurl.search("-laurentides")>-1) {var indexexp="5";}
else if(thisurl.search("-gaspesie")>-1) {var indexexp="6";}
else if(thisurl.search("-lanaudiere")>-1) {var indexexp="7";}
else if(thisurl.search("-gatineau")>-1) {var indexexp="8";}
else if(thisurl.search("-drummondville")>-1) {var indexexp="9";}
else if(thisurl.search("-centre-du-quebec")>-1) {var indexexp="9";}
else if(thisurl.search("-saguenay")>-1) {var indexexp="10";}
else if(thisurl.search("-rive-sud")>-1) {var indexexp="11";}
else if(thisurl.search("-trois")>-1) {var indexexp="12";}
else if(thisurl.search("-cote-nord")>-1) {var indexexp="13";}
else if(thisurl.search("-abitibi")>-1) {var indexexp="14";}
var delay=200;
ddaccordion.init({
	headerclass: "submenuheader", //Shared CSS class name of headers group
	contentclass: "submenu", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
	mouseoverdelay: delay, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [indexexp], //index of content(s) open by default [index1, index2, etc] [] denotes no content
	onemustopen: true, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: true, //Should contents open by default be animated into view?
	persiststate: false, //persist state of opened contents within browser session?
	toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["suffix", "<img src='plus.gif' class='statusicon' />", "<img src='minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	}
})
