var a;

function GetVisuelHome(id_langue)
{
	/*if (Tvisuel[0][0] !=  0) {
		val = Math.floor(Math.random()*Tvisuel[0].length)
		document.Visuel.src= Tvisuel[1][val];
		document.getElementById("Vlien").href = Tvisuel[3][val] ;
		document.getElementById("Vinfo").innerHTML = Tvisuel[2][val] ;
	
			$("#zone_contenu .image a").tooltip({ 
				bodyHandler: function() { 
					return $($(this).attr("name")).html(); 
				}, 
				track: true,
				showURL: false,
			});
		clearTimeout(a);
	}*/
	document.location = "home-" + id_langue + ".html";
}

function ChangeVisuelHome(id_langue)
{
	a = setTimeout("GetVisuelHome('" + id_langue + "')",5000);
	

}


function HDIV2(val)
{
	var version_nav,largeur;
	
	version_nav = navigator.appVersion;
	if (version_nav.indexOf("Safari") != -1) largeur = document.body.scrollHeight
	else largeur = document.documentElement.scrollHeight
	document.getElementById("zone_central").style.height=(largeur+val) + 'px';
	if (navigator.appName == "Microsoft Internet Explorer") document.getElementById("adresses2").style.top = (document.documentElement.clientHeight-120);
	else {
		document.getElementById("adresses2").style.top= (window.innerHeight-120) + 'px';
		//document.getElementById("zone_central").style.minHeight= (window.innerHeight-120) + 'px';
	}
	document.getElementById("adresses2").style.display='block';
}

function LoadFile(save_file,save_file_field,id_probox,id_user_photo,id_photo)
{
	/*if (id_probox != 0) document.Fprobox.id_probox.value = id_probox;
	document.Fprobox.save_file.value = save_file;
	document.Fprobox.save_file_field.value = save_file_field;*/
	document.location = "sources/save_file.php?link=" + save_file + "&id_probox=" + id_probox + "&save_file_field=" + save_file_field + "&id_user_photo=" + id_user_photo + "&id_photo=" + id_photo;
	//document.Fprobox.submit();
	
}
