


	/************************** CREATION DE L'OBJET XMLHTTPREQUEST ***************************/
	/*****************************************************************************************/
	
	var xhr = null; 
	 
	function getXhr(){
		if(window.XMLHttpRequest) // Firefox et autres
			xhr = new XMLHttpRequest(); 
		else if(window.ActiveXObject){ // Internet Explorer 
			try {
				xhr = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
			    xhr = new ActiveXObject("Microsoft.XMLHTTP");
			}
			}
			else { // XMLHttpRequest non supporté par le navigateur 
				alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
				xhr = false; 
		} 
	}
	
	
	/************** AFFICHAGE DES FONDS/PICTOS DANS LES DIVS "fonds" ET "pictos" *****************/
	/*********************************************************************************************/
	
	function filblog(blog){
	
		getXhr();
				
		xhr.onreadystatechange = function(){
			
			if(xhr.readyState == 4){
			
				document.getElementById('filsrss').innerHTML = xhr.responseText;
				
			}
		}

		var url = "ressources/rss/rss.php?&blogname="+blog; 
		xhr.open("GET",url,true);
		xhr.send(null); 
		
	}
	
	
	/************** FONCTION  D'AFFICHAGE DES IMAGES ET FILS BLOGS ***********************/
	/*************************************************************************************/	
	
	function cacheimage(id) {
	
		var a=document.getElementById(id);
		a.style.display='block';
		document.getElementById('imagechoix').style.display='none';
	
	}

	function displayfilblog(id) {
	
		//if (id!= '') { 
	
			for(i = 0; i <= 16; i++){
				var div = 'filsrss_'+i;
				if(document.getElementById(div)){
					if(id != i)document.getElementById(div).style.display = 'none';
					else document.getElementById(div).style.display = 'block';
				}
			//}
			
			//if(id == 'aeiou')document.getElementById('filsrss_aeiou').style.display = 'block';
			//else document.getElementById('filsrss_aeiou').style.display = 'none';
			
			//filblog(id);
			//document.getElementById('imagechoix').style.display='block';
			//document.getElementById('listeblogs').style.display='none';
		}
	
	}
	
	
	
	