document.write("<tr><td colspan=10 align=right valign=bottom><H4>accélérateur de projets communautaires</H4><hr></hr></td></tr>")
document.write("<tr width=100% bgcolor=DimGray>")

rubPos=document.location.href.search('rub')
Query = document.location.href.substring(rubPos+3,rubPos+4)
Query2 = document.location.href.substring(rubPos+4,rubPos+5)

GenerateBarItem("rub11_fr.htm","à propos",Query,Query2,"1")
GenerateBarItem("rub21_fr.htm","activités",Query,Query2,"2")
GenerateBarItem("rub31_fr.htm","actualités",Query,Query2,"3")
GenerateBarItem("rub41_fr.htm","contact",Query,Query2,"4")

document.write("		<td align=center height=30 colspan=2>")
document.write("			<a href=javascript:switch_language('en')><b>EN</b></a>")
document.write("			<a href=javascript:switch_language('fr')><b>FR</b></a>")
document.write("		</td>")
document.write("		</tr>")

document.write("		<tr>")
document.write("		<td>")

switch(Query) {
case "1": {
	SubMenuPlaceHolder(0)
	AddMenuItem("<a href=rub11_fr.htm>mission</a>",Query2,"1")
	AddMenuItem("<a href=rub12_fr.htm>identité et engagement</a>",Query2,"2")
	CloseSubMenu(1)
	break
	}
case "2": {
	SubMenuPlaceHolder(2)
	AddMenuItem("<a href=rub21_fr.htm>associations</a>",Query2,"1")
	AddMenuItem("<a href=rub22_fr.htm>entreprises et donateurs</a>",Query2,"2")
	AddMenuItem("<a href=rub23_fr.htm>réalisations</a>",Query2,"3")
	CloseSubMenu(3)
	break
	}
case "3": {
	SubMenuPlaceHolder(4)
	CloseSubMenu(6)
	break
	}
case "4": {
	SubMenuPlaceHolder(6)
	AddMenuItem("<a href=rub41_fr.htm>équipe</a>",Query2,"1")
	AddMenuItem("<a href=rub42_fr.htm>partenaires</a>",Query2,"2")
	CloseSubMenu(4)
	break
	}

default: {
	}
}

function StartSubMenu(text,column_count) {

document.write("<tr heigth=30 bgcolor=white><td height=30 colspan=" + column_count + "></td>")
}

function SubMenuPlaceHolder(column_count) {

document.write("<tr heigth=30 bgcolor=white>")
if (column_count>0) {
document.write("<td height=30 colspan=" + column_count + "></td>")
}

}


function CloseSubMenu(column_count) {
	
document.write("<td heigth=5 colspan=" + column_count + " border=0></td></tr>")
	
document.write("</table>")
	
	
document.write("<table width=750 border=0 align=center cellspacing=0 cellpadding=20 bgcolor=white>")
	
document.write("<tr><td>")

}

function AddMenuItem(text,active_pos,item_pos) {
	if (active_pos==item_pos) {
		
document.write("<td height=30 bgcolor=lightgrey colspan=2><b><center>")
	} else {
		
document.write("<td height=30 bgcolor=white colspan=2><center>")
	}
	
document.write(text)
	
document.write("</td>")
}

function GenerateBarItem(url,text,active_pos,active_sub_pos,item_pos) {
	if (active_pos!=item_pos) {
		
document.write("<td align=center colspan=2>")
		
document.write("<A href=" + url + "><font color=white>" +  text + "</A>")
	} else {
		if (active_sub_pos=="_") {
			
document.write("<td align=center bgcolor=lightgrey colspan=2>")
			
document.write("<A href=" + url + "><font color=black><b>" + text + "</A>")
		} else {
			
document.write("<td align=center bgcolor=lightgrey colspan=2>")
			
document.write("<A href=" + url + "><font color=black>" + text + "</A>")
		}
	}
	
document.write("</td>")	
}
