function toggleFaq(obj){
	var parent = "question-" + obj;
	var child = "answer-" + obj;
	if(document.getElementById(parent).className=='faq-question collapse'){
		document.getElementById(parent).className='faq-question expand';
		document.getElementById(child).className='faq-answer';
	}
	else {
		document.getElementById(parent).className='faq-question collapse';
		document.getElementById(child).className='faq-answer hide';
	}
}

function toggleExpandAll(obj, count){
		var obj2 = obj + "-2";
		if(document.getElementById(obj).className=='faq-expand-all collapse-all'){
			document.getElementById(obj).className='faq-expand-all expand-all';
			document.getElementById(obj2).className='faq-expand-all expand-all';
			document.getElementById('expand-all-text').innerHTML="Collapse all questions";
			document.getElementById('expand-all-text-2').innerHTML="Collapse all questions";
			toggleFaqExpand(count);
		}
		else {
			document.getElementById(obj).className='faq-expand-all collapse-all';
			document.getElementById(obj2).className='faq-expand-all collapse-all';
			document.getElementById('expand-all-text').innerHTML="Expand all questions";
			document.getElementById('expand-all-text-2').innerHTML="Expand all questions";
			toggleFaqCollapse(count);
		}
}

function toggleFaqExpand(count){
	for(i=1; i<=count; i++){
		var parent = "question-" + i;
		var child = "answer-" + i;
		document.getElementById(parent).className='faq-question expand';
		document.getElementById(child).className='faq-answer';
	}
}

function toggleFaqCollapse(count){
	for(i=1; i<=count; i++){
		var parent = "question-" + i;
		var child = "answer-" + i;
		document.getElementById(parent).className='faq-question collapse';
		document.getElementById(child).className='faq-answer hide';
	}
}