function afficheBulle(idelem){
		   document.getElementById(idelem).style.display = "block";

		   }


function cacheBulle(idelem){
		   document.getElementById(idelem).style.display = "none";}

		   if (window.attachEvent) window.attachEvent("onload", sfHover);

function linkList() {
  var x = this.elements['list_theme1'];
  document.location=x.options[x.selectedIndex].value;

}


function DivStatus( nom )
{
	var divID = nom;
	if ( document.getElementById && document.getElementById( divID ) ) // Pour les navigateurs récents
	{
		Pdiv = document.getElementById( divID );
		PcH = true;
	}
	else if ( document.all && document.all[ divID ] ) // Pour les veilles versions
	{
		Pdiv = document.all[ divID ];
		PcH = true;
	}
	else if ( document.layers && document.layers[ divID ] ) // Pour les très veilles versions
	{
		Pdiv = document.layers[ divID ];
		PcH = true;
	}
	else
	{
		PcH = false;
	}
	if ( PcH )
	{
		Pdiv.className = ( Pdiv.className == 'cachediv' ) ? '' : 'cachediv';
	}
}
function open_image (width,height,url,title)
{

    /*  var winl = (screen.width-width)/2;

      var wint = (screen.height-height)/2;

      var settings = "width="+width+",height="+height+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top="+wint+",left="+winl;

      var win_video = window.open(url,"Image"+width+"_"+height+"",settings);

      win_video.window.focus(); */
   var winl = (screen.width-width)/2;

      var wint = (screen.height-height)/2;
   html = '<html><head><title>'+title+'</title></head><body style="text-align:center;vertical-align:center;" onBlur="top.close()"><IMG src="'+url+'" BORDER=0 NAME=ImageMax onLoad="window.resizeTo(document.ImageMax.width+50, document.ImageMax.height+85)"></body></html>';
   popupImage =    window.open('','_blank','toolbar=0, location=0, directories=0, menuBar=0, scrollbars=0, resizable=1,top="'+wint+'",left="'+winl);
   popupImage.document.open();
   popupImage.document.write(html);
   popupImage.document.close()

}

function changeVisibility(id)
{
	var element ;
	element = document.getElementById(id) ;
	if (element.style.display == "none" )
	{
		element.style.display = "" ;
	}
	else
	{
		element.style.display = "none" ;
	}
}

function showComment()
{
	if( document.getElementById( 'comment_area' ) )
	{
		if( document.getElementById( 'comment_area' ).style.display == 'none')
		{
			document.getElementById( 'comment_area' ).style.display = '';

		}
		else
		{
			document.getElementById( 'comment_area' ).style.display = 'none';
		}

	}
	return false;
}



 function changeHeight(id1,id2)
 {
	 var c1 = document.getElementById(id1);
	 if (c1)
	 {
		var c2 = document.getElementById(id2);
		if (c2)
		{
			if(c1.offsetHeight && c2.offsetHeight  ){
				maxheight=Math.max(c1.offsetHeight,c2.offsetHeight);
			}
			c1.style.height = maxheight+8+'px';
			c2.style.height = maxheight-3+'px' ;
		}
	}
}
