/**
*
*	contient les fonctions du site
*
*/


/**
*
*	ouvre la popup de visualaisation d'une fiche
*
*	@
*	@author sgaudin
*/
function show_fiche(ficheId) {
var posX = (screen.width / 2) - (604 / 2);
var posY = (screen.height / 2) - (429 / 2);

    window.open(SITE_HOST + 'fiche_auteur.php?objId=' + ficheId, 
    			"",
    			"left = " + posX + ", top = " + posY + ",menubar=no, status=no, scrollbars=yes, menubar=no, width=607, height=429"
    			);
}


function showDiv(list,nb,num)
{
	var d = document.getElementById(list);
	
	// je met tous les onglets par defaut
	for (i=0; i<d.childNodes.length; i++)
	{
		if (d.childNodes[i].nodeName == "LI"){d.childNodes[i].className = "";}
	}
	// je met la classe "onglet_current" sur l'onglet choisi
	document.getElementById('onglet_'+num).className = "onglet_current";


	// je cache tous les div de contenu
	for(j = 0 ; j <= nb ; j++){document.getElementById('content_0'+j).style.display = "none";}
	// j affiche le div qui me concerne
	document.getElementById('content_'+num).style.display = "block";
};
