	// gestion des elements survolés a la sourie sur le blocs images
	function set(img,text){
		document.getElementById('flash').src = img;
		document.getElementById('anim_textcontent').innerHTML = text;
	}
	
	// gestion des messages d'aide ou de promotion au survol de la sourie
	function setpromo(id){
		var xhr=null;
		
		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) {
			xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}

		xhr.open("GET", "http://www.imperial-abri.com/content-promo.php?id=" + id, false);
		xhr.send(null);
		
		obj = document.getElementById("promo");
		obj.innerHTML = xhr.responseText;
	}
	
	// vidage du cadre de promo
	function unsetpromo(){
		var xhr=null;
		
		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) {
			xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}

		xhr.open("GET", "http://www.imperial-abri.com/content-promo.php?id=1", false);
		xhr.send(null);
		
		obj = document.getElementById("promo");
		obj.innerHTML = xhr.responseText;
	}

	// cacher tous les onglets si ils existent et laisser le premier visible
	function initonglet(){
		document.getElementById('onglet1').style.display='block';
		document.getElementById('ongletlink1').style.backgroundImage = 'url(http://www.imperial-abri.com/images/ongletover.gif)';
		for (var i = 2; i<=20; i++) {
			if (document.getElementById('onglet'+i)){
				document.getElementById('onglet'+i).style.display='none';
			}
		}
	}

	// gestion des onglets
	function setonglet(x){
		for (var i = 1; i<=20; i++) {
			if (document.getElementById('onglet'+i)){
				document.getElementById('onglet'+i).style.display='none';
				document.getElementById('ongletlink'+i).style.backgroundImage = 'url(http://www.imperial-abri.com/images/onglet.gif)';
			}
		}
		document.getElementById('onglet'+x).style.display='block';
		document.getElementById('ongletlink'+x).style.backgroundImage = 'url(http://www.imperial-abri.com/images/ongletover.gif)';
	}