var m4845_btnCount = 2;
var m4845_staCount = 3;
var m4845_btnImages = new Array();
for (i= 0; i< m4845_btnCount; i++)
{
	m4845_btnImages[i] = new Array();
	for (j= 0; j< m4845_staCount; j++)
	{
		m4845_btnImages[i][j] = new Image();
		m4845_btnImages[i][j].src = 'imagesmenu2parlerepreuves/m4845_mbtn' + i + '_' + j + '.gif';
	}
}
function m4845_btnMouseOut(img)
{
	document.images[img].src = m4845_btnImages[img.substring(img.indexOf('_mbtn')+5,img.length)][0].src;
};
function m4845_btnMouseOver(img)
{
	document.images[img].src = m4845_btnImages[img.substring(img.indexOf('_mbtn')+5,img.length)][1].src;
};
function m4845_btnMouseDown(img)
{
	document.images[img].src = m4845_btnImages[img.substring(img.indexOf('_mbtn')+5,img.length)][2].src;
};
var m4845_timerID = null;
var m4845_timerOn = false;
var m4845_timeCount = 1000;
var m4845_mnuCount = 2;
function m4845_showLayer(btntd,btnmnu,bdir,mdir,mpos,xoffset,yoffset)
{
	var td,layer;
	if (btnmnu==0) return;
	td = document.getElementById(btntd);
	layer = document.getElementById(btnmnu);
	if (bdir==0)
	{
		switch(mpos)
		{
			case 0:
			layer.style.left = xoffset;
			break;
			case 1:
			layer.style.left = td.offsetWidth/2 + xoffset;
			break;
			case 2:
			layer.style.left = td.offsetWidth+xoffset;
			break;
		}
		if (mdir==0)
			layer.style.top = td.offsetHeight+yoffset;
		else
			layer.style.top = -layer.offsetHeight-yoffset;
	}
	else
	{
		switch(mpos)
		{
			case 0:
			layer.style.top = yoffset;
			break;
			case 1:
			layer.style.top = td.offsetHeight/2 + yoffset;
			break;
			case 2:
			layer.style.top = td.offsetHeight+yoffset;
			break;
		}
		if (mdir==0)
			layer.style.left = td.offsetWidth+xoffset;
		else
			layer.style.left = -layer.offsetWidth-xoffset;
	}
	layer.style.visibility = "visible";
};
function m4845_hideLayer(btnmnu)
{
	var layer;
	if (btnmnu==0) return;
	layer = document.getElementById(btnmnu);
	layer.style.visibility = "hidden";
};
function m4845_hideAllLayers()
{
	for (i=0; i<m4845_mnuCount; i++)
		m4845_hideLayer("m4845_mbtn_mnu"+i);
};
function m4845_startTime()
{
	if (m4845_timerOn == false)
	{
 		m4845_timerID=setTimeout( "m4845_hideAllLayers()" , m4845_timeCount);
 		m4845_timerOn = true;
 	}
};
function m4845_stopTime()
{
	if (m4845_timerOn)
	{
 		clearTimeout(m4845_timerID);
 		m4845_timerID = null;
 		m4845_timerOn = false;
 	}
};
function m4845_get_menu_tb_css(iMIndex,bTbAutosize,iTbWidth,iTbHeight,bTbBgColor,TbBgColor,bTbBgImage,strTbBgImage,bTbBrSetParts,iTbBrSize,TbBrColor,strTbBrStyle,bTbBrLeft,iTbBrSizeLeft,TbBrColorLeft,strTbBrStyleLeft,bTbBrRight,iTbBrSizeRight,TbBrColorRight,strTbBrStyleRight,bTbBrTop,iTbBrSizeTop,TbBrColorTop,strTbBrStyleTop,bTbBrBottom,iTbBrSizeBottom,TbBrColorBottom,strTbBrStyleBottom)
{
str=".m4845_mnu"+iMIndex+"_tb {";
if(!bTbAutosize)
	str+="width:"+iTbWidth+"px;height:"+iTbHeight+"px;";
if(bTbBgColor)
	str+="background-color:#"+TbBgColor+";";
if(bTbBgImage)
	str+="background-image:url(imagesmenu2parlerepreuves/"+strTbBgImage+");"
if(!bTbBrSetParts)
	str+="border:"+iTbBrSize+"px #"+TbBrColor+" "+strTbBrStyle+";";
else{
	if(bTbBrLeft) str+="border-left:"+iTbBrSizeLeft+"px #"+TbBrColorLeft+" "+strTbBrStyleLeft+";";
	if(bTbBrRight) str+="border-right:"+iTbBrSizeRight+"px #"+TbBrColorRight+" "+strTbBrStyleRight+";";
	if(bTbBrTop) str+="border-top:"+iTbBrSizeTop+"px #"+TbBrColorTop+" "+strTbBrStyleTop+";";
	if(bTbBrBottom) str+="border-bottom:"+iTbBrSizeBottom+"px #"+TbBrColorBottom+" "+strTbBrStyleBottom+";";
};
str+="} ";
return str;
};
function m4845_get_menu_line_css(iMIndex,SeperateColor)
{
str=".m4845_mnu"+iMIndex+"_line {height:0px;background-color:#"+SeperateColor+"} ";
return str;
};
function m4845_get_menu_td_css(bNormal,iMIndex,iTdIndex,strTdHorizontal,strTdVertical,iTdPadding,fcolor,ffamily,fsize,fitalic,fbold,funderline,iTdBrSize,TdBrColor,strTdBrStyle,bTdBgColor,TdBgColor,bTdBgImage,strTdBgImage)
{
var sLink;
sLink="{display:block;";
sLink+="text-align:"+strTdHorizontal+";vertical-align:"+strTdVertical+";padding:"+iTdPadding+";";
sLink+="color:#"+fcolor+";font-family:"+ffamily+";font-size:"+fsize+";";
if(fitalic) sLink+="font-style:italic;"; else sLink+="font-style:normal;";
if(fbold) sLink+="font-weight:bold;"; else sLink+="font-weight:normal;";
if(funderline) sLink+="text-decoration:underline;"; else sLink+="text-decoration:none;";
sLink+="border:"+iTdBrSize+"px #"+TdBrColor+" "+strTdBrStyle+";";
if(bTdBgColor) sLink+="background-color:#"+TdBgColor+";";
if(bTdBgImage) sLink+="background-image:url(imagesmenu2parlerepreuves/"+strTdBgImage+");";
sLink+="} ";
if(bNormal) str=".m4845_mnu"+iMIndex+"_td"+iTdIndex+" a:link "+sLink+".m4845_mnu"+iMIndex+"_td"+iTdIndex+" a:visited "+sLink;
else str=".m4845_mnu"+iMIndex+"_td"+iTdIndex+" a:hover "+sLink+".m4845_mnu"+iMIndex+"_td"+iTdIndex+" a:active "+sLink;
return str;
};
function m4845_get_menu_tb_td(iMIndex,iTdIndex,bSetAsDivision,strTdLink,strTdTarget,strTdIcon,strTdText,iTdIconAlign)
{
if(bSetAsDivision) {
	str="<tr><td class=\"m4845_mnu"+iMIndex+"_line\"></td></tr>";
	return str;
};
str="<tr><td nowrap class=\"m4845_mnu"+iMIndex+"_td"+iTdIndex+"\">";
str+="<a href=\""+strTdLink+"\"";
if(strTdTarget.length>0) str+=" target=\""+strTdTarget+"\"";
str+=">";
if(strTdIcon.length>0){
if(iTdIconAlign==0) str+="<img src=\"imagesmenu2parlerepreuves/"+strTdIcon+"\" border=\"0\">"+strTdText;
else if(iTdIconAlign==1) str+=strTdText+"<img src=\"imagesmenu2parlerepreuves/"+strTdIcon+"\" border=\"0\">";
else if(iTdIconAlign==2) str+="<img src=\"imagesmenu2parlerepreuves/"+strTdIcon+"\" border=\"0\"><br>"+strTdText;
else if(iTdIconAlign==3) str+=strTdText+"<br><img src=\"imagesmenu2parlerepreuves/"+strTdIcon+"\" border=\"0\">";
}
else str+=strTdText;
str+="</a></td></tr>";
return str;
};
function m4845_get_menu(iMIndex)
{
str="<div style=\"position:relative;\">";
str+="<div id=\"m4845_mbtn_mnu"+iMIndex+"\" style=\"position:absolute;visibility:hidden;z-index:100;\">";
if(iMIndex==0) {
str+="<style type=\"text/css\">";str+=m4845_get_menu_tb_css(0,true,"0","0",true,"FFFFA2",false,"",false,"1","000000","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid");
str+=m4845_get_menu_line_css(0,"C0C0C0");
str+=m4845_get_menu_td_css(true,0,0,"Left","Middle","5","000000","Tahoma","11",false,true,false,"1","FFFF00","solid",true,"80FF00",false,"");
str+=m4845_get_menu_td_css(false,0,0,"Left","Middle","5","000000","Tahoma","11",false,true,true,"1","80FF00","solid",true,"FFFF00",false,"");
str+="</style>";
str+="<table class=\"m4845_mnu"+iMIndex+"_tb\" cellspacing=\"2\" cellpadding=\"0\" onMouseOver=\"m4845_stopTime();\" onMouseOut=\"m4845_startTime();\">";str+=m4845_get_menu_tb_td(0,0,false,"http://perso.orange.fr/laguenne.19/presselaguenne.htm","","","A La Une",0);
str+="</table>";
}
else if(iMIndex==1) {
str+="<style type=\"text/css\">";str+=m4845_get_menu_tb_css(1,true,"0","0",true,"FFFFA2",false,"",false,"1","000000","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid");
str+=m4845_get_menu_line_css(1,"C0C0C0");
str+=m4845_get_menu_td_css(true,1,0,"Left","Middle","5","000000","Tahoma","11",false,true,false,"1","FFFF00","solid",true,"80FF00",false,"");
str+=m4845_get_menu_td_css(false,1,0,"Left","Middle","5","000000","Tahoma","11",false,true,true,"1","80FF00","solid",true,"FFFF00",false,"");
str+="</style>";
str+="<table class=\"m4845_mnu"+iMIndex+"_tb\" cellspacing=\"2\" cellpadding=\"0\" onMouseOver=\"m4845_stopTime();\" onMouseOut=\"m4845_startTime();\">";str+=m4845_get_menu_tb_td(1,0,false,"http://perso.orange.fr/laguenne.19/inondations/inondation.htm","","","Inondations",0);
str+="</table>";
};
str+="</div></div>";
return str;
};
function m4845_get_menutd(iIndex,iMIndex,bOver,bdir,mdir,mpos,xoffset,yoffset,iWidth,iHeight,sHint) {
str="<td id=\"m4845_mbtn_td"+iIndex+"\">";
str+=m4845_get_menu(iMIndex);
str+="<a ";
if (bOver)
	str+="onMouseOver=\"m4845_btnMouseOver('m4845_mbtn"+iIndex+"');"
else
	str+="onMouseOver=\"m4845_btnMouseOver('m4845_mbtn"+iIndex+"');\" onclick=\"";
str+="m4845_hideAllLayers();m4845_showLayer('m4845_mbtn_td"+iIndex+"','m4845_mbtn_mnu"+iMIndex+"',"+bdir+","+mdir+","+mpos+","+xoffset+","+yoffset+");m4845_stopTime();\"";
str+=" onMouseOut=\"m4845_btnMouseOut('m4845_mbtn"+iIndex+"');m4845_startTime();\" onMouseDown=\"m4845_btnMouseDown('m4845_mbtn"+iIndex+"');\" href=\"javascript:void(null);\"";
str+=">";
str+="<img src=\"imagesmenu2parlerepreuves/m4845_mbtn"+iIndex+"_0.gif\" name=m4845_mbtn"+iIndex+" border=0 width=\""+iWidth+"\" height=\""+iHeight+"\" alt=\""+sHint+"\">";
str+="</a></td>";
return str;
};
function m4845_gen_td(iIndex,bOver,sLink,sTarget,iWidth,iHeight,sHint) {
str="<td id=\"m4845_mbtn_td"+iIndex+"\">";
str+="<a ";
if (bOver)
	str+="onMouseOver=\"m4845_btnMouseOver('m4845_mbtn"+iIndex+"');"
else
	str+="onMouseOver=\"m4845_btnMouseOver('m4845_mbtn"+iIndex+"');\" onclick=\"";
str+="m4845_hideAllLayers();m4845_stopTime();\" ";
str+="onMouseOut=\"m4845_btnMouseOut('m4845_mbtn"+iIndex+"');m4845_startTime();\" onMouseDown=\"m4845_btnMouseDown('m4845_mbtn"+iIndex+"');\" href=\""+sLink+"\"";
if (sTarget.length >0)
	str+=" target=\""+sTarget+"\"";
str+=">";
str+="<img src=\"imagesmenu2parlerepreuves/m4845_mbtn"+iIndex+"_0.gif\" name=m4845_mbtn"+iIndex+" border=0 width=\""+iWidth+"\" height=\""+iHeight+"\" alt=\""+sHint+"\">";
str+="</a></td>";
return str;
};
function m4845_get_table(bHor) {
str="<table id=\"m4845_mbtn_tb\" cellpadding=0 cellspacing=0 border=0>";
str+="<tr>";
str+=m4845_get_menutd(0,0,true,0,0,0,3,3,"111","36","Faire parler de soi");
if (bHor==false) str+="</tr><tr>";
str+=m4845_get_menutd(1,1,true,0,0,1,3,3,"145","36","Surmonter des épreuves");
str+="</tr>";
str+="</table>";
return str;
};
result=m4845_get_table(true);
document.getElementById("m4845_mtop").innerHTML=result;

