var border = function(){
	var containerH = document.getElementById('spr_container_div').offsetHeight;
	document.getElementById('spr_container_div_right_repeat').style.height = containerH+'px';
	document.getElementById('spr_container_div_left_repeat').style.height = containerH+'px';
};

if(window.attachEvent){
	window.attachEvent('onload', border);
};var d = null;
var delais = 500;
var timeOut = null;

function montre(id) {
	annulerCache();
	var tmp = null;
	if (d) {
		tmp = d;
		d.style.display = 'none';
	}
	d = document.getElementById(id);
	if(tmp != d){
		var tmp2 = d;
		d = tmp;
		cacheMenu();
		d = tmp2;
	}
	if (d) {
		d.style.display = 'block';
	}
}

function cacheDelais(id){
	timeOut = setTimeout('cacheMenu()', delais);
}

function cacheMenu(){
	if (d) {
		var dt = d.parentNode.getElementsByTagName('dt');
		if(dt.length){
			clear_hover(dt[0], 1);
		}
		d.style.display='none';
	}
}

function annulerCache(){
	if(timeOut){
		clearTimeout(timeOut);
	}
}

function clear_hover(html_obj, indice){
	html_obj.className = 'niv'+indice ;
}

function set_hover(html_obj, indice){
	if(html_obj.tagName == 'LI'){
		var dt = html_obj.parentNode.parentNode.parentNode.getElementsByTagName('dt');
		if(dt.length){
			set_hover(dt[0], 1);
		}
	}
	html_obj.className = 'niv'+indice+'_on' ;
}

function clic_hover(html_obj){
	table_html_a = html_obj.getElementsByTagName("a");
	window.location.replace(table_html_a[0].getAttribute("href"));
};
