// Definition du no de version


var G_VERSION="3.500";
var BoucleMax=6;
		var G_VARCOMPAGNON="3.500";


// Gestion des langues

if (G_LANG=="FR")

		var G_VERDATE="Octobre 2011"
		
else

		var G_VERDATE="October 2011"
		


		
// Fonction de popup

function popitup(url){
	newwindow=window.open(url, 'name','height=380,width=770, screenX=5, screenY=100, left=5, top=100, location=no, toolbar=no');
		if(window.focus){
		newwindow.focus()
		}
}

function actuFR()
{
	setTimeout('fenetre.window.location = ("scripts_shell/tarifFR.txt");',15000);
}

function actuEN()
{
	setTimeout('fenetre.window.location = ("../scripts_shell/tarifEN.txt");',15000);
}



// Gestion des langues

if (G_LANG=="FR") 	codlang=0;

if (G_LANG=="EN") 	codlang=1;

// Gestion des boucles des menu
if (G_LANG=="FR") 	BoucleMax=6;

if (G_LANG=="EN") 	BoucleMax=5;

var menu =new Array(10);



function setMenu(idx,p1,p2,p3,p4,p5,p6) {

	menu[idx] = new Array(p1,p2,p3,p4,p5,p6);

}



setMenu(1,"Accueil","Home","index.html","index.html");

setMenu(2,"Tarifs","Rates","tarifs.htm","tariffs.htm");

setMenu(3,"Actualités","News","actualites.htm","news.htm");

// Pour le moment le compagnon n'est pas accessible en anglais
//Quand ca sera accessible il suffit de mettre supprimer la partie else et renumerotez la pages en anglais
if (codlang==0){
	setMenu(4,"E-compagnon","Companion","compagnon.htm","compagnon.htm");
	setMenu(5,"Contact","Contact","ecrivez.htm","contact.htm");
	setMenu(6,"Support","Support","support.htm","support_en.htm");

} else {
	setMenu(4,"Contact","Contact","ecrivez.htm","contact.htm");
	setMenu(5,"Support","Support","support.htm","support_en.htm");
	

}


if (codlang==0) {


// Rajout download des tarifs
document.write('<table bgcolor="#FFFFFF" color="#a0cbe3" width="760" border="0" cellspacing="0" cellpadding="0">');
document.write('<td bgcolor="#d7681a" class="grosblanc2" align="center" width="100%">&nbsp;<iframe src="scripts_shell/tarifFR.txt" name="fenetre" frameborder=no scrolling=no height=44  width="70%" onload=actuFR()></iframe></td>');
document.write('</table>');

document.write('<table width="760" border="0" cellspacing="0" cellpadding="0">');

document.write('<tr><td><img src="img/rien.gif" width="152" height="1"></td>');

document.write('<td><img src="img/rien.gif" width="30" height="1"></td>');

document.write('<td><img src="img/rien.gif" width="315" height="5"></td>');

document.write('<td colspan=2 width="100%"><img src="img/rien.gif" width="2" height="5"></td>');

document.write('</tr>');

document.write('<tr><td align="left"><a href="'+menu[1][codlang+2]+'"><img src="img/logo_inet.gif" width="152" height="44" border="0" Alt="Retour à la page d&acute;accueil"></a></td>');

document.write('<td>&nbsp;</td>');

document.write('<td>&nbsp;</td>');

document.write('<td valign="right" colspan=2><div align="center"><img src="img/coliposte2.gif" alt="ColiPoste Logo" width="114" height=40" align="right"></div></td>');

document.write('</tr>');

document.write('<tr>');

document.write('<td align="left"><img src="img/rien.gif" width="12" height="5"></td>');

document.write('<td>&nbsp;</td>');

document.write('<td><table width="100%" border="0" cellspacing="0" cellpadding="0">');

document.write('<tr>');

     	<!--- Onglet 1 Inactif --->	

for (i=1; i<=BoucleMax; i++) {

		if (G_MENU==i) {

			// onglet ACTIF
				//document.write('<td align="right" valign="bottom"><img src="img/ltab_bleu.gif" width="18" height="22"></td>');
				 document.write('<td align="right" valign="bottom"><img src="img/ltab_bleu.gif" width="18" height="30"></td>');
				
				 document.write('<td valign="middle" bgcolor="#005890" class="tabinactif" height="22" align="center">');

             document.write(menu[i][codlang]);

             document.write('</td>');

             document.write('<td valign="bottom" align="left"><img src="img/rtab_bleu.gif" width="18" height="30"></td>');

  	  	//  fin onglet 

		} else {

			// onglet INACTIF

				 document.write('<td align="right" valign="bottom"><img src="img/ltab.gif" width="18" height="30"></td>');

				 document.write('<td valign="middle" bgcolor="#a0cbe3" class="tab" align="center"> ');

  	           document.write('<b><a href='+menu[i][codlang+2]+'>'+menu[i][codlang]+'</a></b>');

  	           document.write('</td>');

    	         document.write('<td valign="bottom" align="left"><img src="img/rtab.gif" width="18" height="30"></td>');

    		//  fin onglet 

		}

}

document.write('</tr> </table> </td> <td>&nbsp;</td> </tr> <tr> <td align="left"><img src="img/nav1a.gif" width="152" height="23"></td> <td bgcolor="#005890" align="left">&nbsp;</td> <td bgcolor="#005890">&nbsp;</td> <td bgcolor="#005890">&nbsp;</td> <td bgcolor="#005890">&nbsp;</td> </tr> </table>');



} else {

// Rajout download des tarifs
document.write('<table bgcolor="#FFFFFF" color="#a0cbe3" width="760" border="0" cellspacing="0" cellpadding="0">');
document.write('<td bgcolor="#d7681a" class="grosblanc2" align="center" width="100%">&nbsp;<iframe src="../scripts_shell/tarifEN.txt" name="fenetre" frameborder=no scrolling=no height=44  width="70%" onload=actuEN()></iframe></td>');
document.write('</table>');

document.write('<table width="760" border="0" cellspacing="0" cellpadding="0">');

document.write('<tr><td><img src="../img/rien.gif" width="152" height="1"></td>');

document.write('<td><img src="../img/rien.gif" width="30" height="1"></td>');

document.write('<td><img src="../img/rien.gif" width="315" height="5"></td>');

document.write('<td colspan=2 width="100%"><img src="../img/rien.gif" width="2" height="5"></td>');

document.write('</tr>');

document.write('<tr>');

document.write('<td align="left"><a href="'+menu[1][codlang+2]+'"><img src="../img/logo_inet.gif" width="152" height="44" border="0" Alt="Back to Home page"></a></td>');

document.write('<td>&nbsp;</td>');

document.write('<td>&nbsp;</td>');

document.write('<td valign="right" colspan=2><div align="center"><img src="../img/coliposte2.gif" alt="ColiPoste Logo" width="114" height=40" align="right"></div></td>');

document.write('</tr>');

document.write('<tr>');

document.write('<td align="left"><img src="../img/rien.gif" width="12" height="5"></td>');

document.write('<td>&nbsp;</td>');

document.write('<td><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>');



<!--- Onglet 1 Inactif --->	

for (i=1; i<=BoucleMax; i++) {

	if (G_MENU==i) {

		// onglet ACTIF

			 document.write(' <td align="right" valign="bottom"><img src="../img/ltab_bleu.gif" width="18" height="22"></td>');

			 document.write('<td valign="middle" bgcolor="#005890" class="tabinactif" height="22" align="center"> ');

             document.write(menu[i][codlang]);

             document.write('</td>');

             document.write('<td valign="bottom" align="left"><img src="../img/rtab_bleu.gif" width="18" height="22"></td>');

    	//  fin onglet 

	} else {

		// onglet INACTIF

			 document.write(' <td align="right" valign="bottom"><img src="../img/ltab.gif" width="18" height="22"></td>');

			 document.write('<td valign="middle" bgcolor="#a0cbe3" class="tab" align="center"> ');

             document.write('<b><a href='+menu[i][codlang+2]+'>'+menu[i][codlang]+'</a></b></div>');

             document.write('</td>');

             document.write('<td valign="bottom" align="left"><img src="../img/rtab.gif" width="18" height="22"></td>');

    	//  fin onglet 

	}

}

document.write('</tr> </table> </td> <td colspan="2">&nbsp;</td> </tr> <tr> <td align="left"><img src="../img/nav1a.gif" width="152" height="23"></td> <td bgcolor="#005890" align="left">&nbsp;</td> <td bgcolor="#005890">&nbsp;</td> <td bgcolor="#005890" colspan=2>&nbsp;</td></tr> </table>');











}        




