/* auteur: DABET Florent */
/* Date de création: 25/04/2003 */
Htarget = '_self';/*open in the same window*/


Hcouleur = new Array();
Hcouleur[0] = "#F5F8FF";/*fond*/
Hcouleur[1] = "#990000";/*page correspondant au menu*/
Hcouleur[2] = "#000000";
Hcouleur[3] = "#AABBEE";/*titre*/

logo = "../images/logo_mini.gif";
logoWidth = 150;
logoHeight = 39;

flagfr = "../images/flag_fr_transparent.png";
flagen = "../images/flag_en_transparent.png";

var bild = new Array();
bild[0] = "../images/logo_menu_5.gif";
bild[1] = "../images/logo_menu_5_surbrillant.gif";

var bildWidth = 110;
var bildHeight = 24;

var menuHTitre = new Array();
var menuHLien = new Array();

menuHTitre[0] = new Array();  	
menuHTitre[1] = new Array();
menuHLien[0] = new Array();		
menuHLien[1] = new Array();

menuHTitre[0][0]= 'Accueil';
menuHLien[0][0]= 'accueil.html';
menuHTitre[0][1]= 'Présentation';
menuHLien[0][1]= 'mission.html';
menuHTitre[0][2]= 'Modélisation 3D';
menuHLien[0][2]= 'numerisation.html';
menuHTitre[0][3]= 'Corrections';
menuHLien[0][3]= 'applications.html';
menuHTitre[0][4]= 'Usinage';
menuHLien[0][4]= 'fraiseuse.html';
/*menuHTitre[0][5]= 'Télécharger';
menuHLien[0][5]= '../users/restricted/Francais/telechargements.html';*/
menuHTitre[0][5]= 'Contacts';
menuHLien[0][5]= 'contacts.html';

menuHTitre[1][0]= 'Home page';
menuHLien[1][0]= 'accueil.html';
menuHTitre[1][1]= 'Presentation';
menuHLien[1][1]= 'mission.html';
menuHTitre[1][2]= '3D Modeling';
menuHLien[1][2]= 'numerisation.html';
menuHTitre[1][3]= 'Modifications';
menuHLien[1][3]= 'applications.html';
menuHTitre[1][4]= 'Carving';
menuHLien[1][4]= 'fraiseuse.html';
/*menuHTitre[1][5]= 'Download';
menuHLien[1][5]= '../users/restricted/English/telechargements.html';*/
menuHTitre[1][5]= 'Contacts';
menuHLien[1][5]= 'contacts.html';


function dateMiseAJour()
{
	elt_maj = document.getElementById('date_maj');
	elt_maj.innerHTML = "<h5><font color=\"#808080\" face=\"Arial\">Copyright © 2010 Orten</font><br></h5>";
}


function afficheHMenu(id1, fr_en) {/*0:fr, 1:en*/
	var Hcouleur0;
	var Hcouleur1;
	var dist;
	var nbild;
			
	document.write('<SPAN ID=Hmenu>');
	document.write('<table bgcolor='+Hcouleur[0]+' border=0 cellspacing=3 cellpadding=3 WIDTH=100%><tr><td><table border="0" cellpadding="0" cellspacing="0" summary="" width="173"><tr> <td align="center"><a href="../index.html"> <img border="0" src="'+logo+'" alt="ORTEN Welcome" width="'+logoWidth+'" height="'+logoHeight+'"></a></td></tr> </table></td><td>');

	/*debut table des bouttons-menus*/
	document.write('<table bgcolor='+Hcouleur[0]+' border=0 cellspacing=2 cellpadding=0 width="'+((bildWidth+4)*menuHTitre[fr_en].length)+'"><tr>');

	for(a=0;a<menuHLien[fr_en].length;a++)
	{
		if (id1!=a)
			{nbild = 0;		}
		else
			{nbild = 1;		}
	
		document.write('<td width="'+(bildWidth+2)+'" height="'+(bildHeight+4)+'"onMouseOver="this.style.background=\'url('+bild[1]+') '+Hcouleur[0]+' center center no-repeat\'; window.status=\''+menuHTitre[fr_en][a]+'\'; return true" onMouseOut="this.style.background=\'url('+bild[nbild]+') '+Hcouleur[0]+' center center no-repeat\'; window.status=\' \'; return true" onClick="window.open(\''+menuHLien[fr_en][a]+'\',\''+target+'\')" style="background: url('+bild[nbild]+') '+Hcouleur[0]+' center center no-repeat; text-align: center; ');
		if (id1!=a) {
			document.write('cursor:pointer;"><A HREF="'+menuHLien[fr_en][a]+'" TARGET="'+Htarget+'" style="text-decoration:none; color:'+Hcouleur[2]+';">');
		}
		else {
			document.write('cursor:default; color:'+Hcouleur[1]+';">');
		}
		document.write('<p class="textMenuHaut">'+menuHTitre[fr_en][a]+'</p>');
		
		if (id1!=a) {
			document.write('</A></td>');
		}
	}
	document.write('</tr></table>');
	/*fin table des bouttons-menus*/
	document.write('</td><td align="right">');
	if (fr_en==0)
	{
		document.write('<a href="../site_en/accueil.html"><img border="0" src="'+flagen+'" alt="English" align="middle" onMouseOut="window.status=\' \'; return true" onMouseOver="window.status=\'Access to the site in English\'; return true">');
	}
	else
	{
		document.write('<a href="../site_fr/accueil.html"><img border="0" src="'+flagfr+'" alt="Francais" align="middle" onMouseOut="window.status=\' \'; return true" onMouseOver="window.status=\'Accès au site en Français\'; return true">');
	}

	document.write('</a></td></TR></TABLE></SPAN>');
}
