/**
 * Appel de la fonction actionDiv
 */
function LiveScroll(idDiv) {

	if (idDiv != '')	
		actionDiv(idDiv);
}

/**
 * actionDiv
 */
function actionDiv(idDiv) {

	var item = null;
	if (document.getElementById) {
		item = document.getElementById(idDiv);
	}
	else if (document.all){
		item = document.all[idDiv];
	}
	else if (document.layers){
		item = document.layers[idDiv];
	}

	if (!item) { // rien à faire
	}
	else if (item.style) {
		if (item.style.display == "none") {
			item.style.display = "";
		}
		else {
			item.style.display = "none";
		}
	}
	else {
		item.visibility = "show";
	}
}

function showAnswer()
{
	var url = document.location.href;
	var tmp_array = url.split('#q_');
	if ( tmp_array.length == 2 )
	{
		var idQ = 'qid_'+tmp_array[1];
		actionDiv(idQ);
	}
}

function setVisibility(idDiv, value)
{
	var div=document.getElementById(idDiv);
	if ( !idDiv )
		return ;
	div.style.visibility = value;
}


function filterActu()
{
	var sel_theme=document.getElementById('sel_theme');
	var sel_date =document.getElementById('sel_date');
	var url = sel_theme.options[sel_theme.selectedIndex].value;
	if ( sel_date.selectedIndex != 0 )
	{
		url += '/'+sel_date.options[sel_date.selectedIndex].value;
	}
	document.location.href = url;

}
