
ddaccordion.init({
headerclass: "submenuheader-bf", //Shared CSS class name of headers group
contentclass: "submenu-bf", //Shared CSS class name of contents group
revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover"
mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
collapseprev: false, //Collapse previous content (so only one open at any time)? true/false 
defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content.
onemustopen: false, //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: ["menuclosed-bf", "menuopened-bf"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
togglehtml: ["suffix", "<img src='/myImages/2008_arrow_4_sidemenu.gif' class='statusicon-bf' />", "<img src='/myImages/2008_arrow_6_sidemenu.gif' class='statusicon-bf' />"], //Additional HTML added to the header when it's collapsed and expanded
animatespeed: "normal", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
oninit:function(expandedindices){ //custom code to run when headers have initalized
 /*if (expandedindices.length==0) {//if no expanded headers found in array
  alert(expandedindices.length);
 }else{
  for (var i=0; i<expandedindices.length; i++){ //loop through each expanded header and alert their contents
   alert(headers[expandedindices[i]].innerHTML);
  }
 }*/
	var strLinkPath = "";
	var strTopLinkPath = "";
	var strURLPath = jQuery.url.attr("path");
	var iCount = 0;
	 
	$('.submenu-bf').each(function() {
			
		$(this).find("a").each(function() {
					
			if ($.browser.mozilla!=true) {
				strLinkPath = '/'+ $(this)[0].pathname;
			} else {
				strLinkPath = $(this)[0].pathname;
			}
			
			if (strLinkPath==strURLPath) {
				ddaccordion.expandone("submenuheader-bf",iCount);
				$(this).css("background","#333333");
				$(this).css("background-image","url(/myImages/2008_fleche_orange.jpg)");
				$(this).css("background-repeat","no-repeat");
			}
		
		});
		
		iCount++;
		
	});
	
	$('.accordeonmenu').each(function() {
		 $(this).find("a").each(function() {
										 
			if ($.browser.mozilla!=true) {
				strTopLinkPath = '/'+ $(this)[0].pathname;
			} else {
				strTopLinkPath = $(this)[0].pathname;
			}
			
			if (strTopLinkPath==strURLPath) {
				$(this).css("background","#000000");
			}
			
		 });
	});
	
},
onopenclose:function(header, index, state, isclicked){ //custom code to run whenever a header is opened or closed
  //alert(index);
}
});

	



