// JavaScript Document
var MaxEdito=2;
var NumEdito=MaxEdito;

function EffaceLien(SelectStyle,EffaceStyle)
{
	var i;
	for(i=0;i<document.links.length;i++) 
	{
		if (document.links(i).className==SelectStyle) document.links(i).className=EffaceStyle;
	}
}

function ActiveLien(lien,ActiveStyle,NormalStyle)
{
	EffaceLien(ActiveStyle,NormalStyle);
	lien.className=ActiveStyle;
}

function popup(NomPage,NomFenetre)
{
	var largeur=800;
	var hauteur=600;
	var px=(screen.width-largeur)/2;
	var py=(screen.height-hauteur)/2;
	window.open(NomPage,NomFenetre,"top="+py+" left="+px+" height="+hauteur+" width="+largeur+" menubar=no resizable=no scrollbars=no toolbar=no");
}

function zpopup(NomPage,NomFenetre)
{
	var largeur=712;
	var hauteur=332;
	var px=(screen.width-largeur)/2;
	var py=(screen.height-hauteur)/2;
	window.open(NomPage,NomFenetre,"top="+py+" left="+px+" height="+hauteur+" width="+largeur+" menubar=no resizable=no scrollbars=no toolbar=no");
}

function popupDim(NomPage,NomFenetre,largeur,hauteur)
{
	var px=(screen.width-largeur)/2;
	var py=(screen.height-hauteur)/2;
	window.open(NomPage,NomFenetre,"top="+py+" left="+px+" height="+hauteur+" width="+largeur+" menubar=no resizable=no scrollbars=no toolbar=no");
}

function editoprecedent()
{
	if(NumEdito>1)
	{
		NumEdito--; 
		document.cadreedito.location.href="edito/edito"+NumEdito+".htm";
	}
}

function editosuivant()
{
	if(NumEdito<MaxEdito)
	{
		NumEdito++;
		document.cadreedito.location.href="edito/edito"+NumEdito+".htm";
	}
}

