novUtils.addEvent(window,'load',caracInit);

function caracInit() {
	initFaq();
}


function nextTag(objDepart){
	var suiv;
	for(suiv=objDepart.nextSibling;suiv.nodeType!=1;suiv=suiv.nextSibling);
	return suiv;
}

/************/
/* initFAQ */
/************/
function initFaq() {
	
	var divQuestion=novUtils.$('question')
	if (divQuestion)
	{ 	
		var tagsQuestions=novUtils.getElementsByClassName('question','dt','question');
		
		var tagsQuestionsLength=tagsQuestions.length;
		//console.log(tagsQuestionsLength);
		for(var i=0;i<tagsQuestionsLength;i++)
		{
			tagsQuestions[i].style['cursor']='pointer';
			tagsQuestions[i].onmouseover = function(){ this.style['textDecoration']='underline'; return false;}
			tagsQuestions[i].onmouseout = function(){ this.style['textDecoration']=''; return false;}
			var nextdd=nextTag(tagsQuestions[i]);
			nextdd.style['display']='none';
			tagsQuestions[i].onclick=function() {
				var nextdd=nextTag(this);
				nextdd.style['display']=(nextdd.style['display']=='block')?'none':'block'; 
				return false;	
			}
		}
	}
}