/*
	Objet :
		Factorisation du code correspondant à la barre
		de navigation ainsi qu'à tous ses menus contextuels.
	Date de création :
		Janvier 2003
	Auteur :
		Tuan TRAN
*/


var path_i_ico = '/ilib/';
var path_ico = '/lib/';
var path_img = '/img/';
var path_link = '/english/';
var path_french = '/accueil/';
var path_img_school = path_img + "school/";

var xCss ='';
xCss += '<link' + ' rel="stylesheet" href="' + path_i_ico + id_rub + 'v4sheet.css" type="text/css">\n';
xCss += '<script language="JavaScript" type="text/JavaScript">\n';
xCss += '<!--\n';
xCss += "P7_StyleLoader('"+id_rub+"w3csheet.css');\n";
xCss += 'MM_reloadPage(true);\n';
xCss += '//-->\n';
xCss += '</' + 'script>\n';

// par laurent pour rappel ( [i][14] =  multiple / 3 du nombre de ligne de liens)
var bandeau = 
[
	[	
		'dm51.gif', 'dm51x.gif', 'dm51o.gif', 'dm51ox.gif',
		76, 12, 14, 12, 'm21',
		70, 48, 185, 100, 25, 21, 'm1.jpg', 'childTbl',
		[	/* tableau des sous-rubriques de 'ABOUT ENPC' */
		path_link + 'enpc/welcome.htm', 'Welcome to &Eacute;cole des Ponts', 'fm11',
		path_link + 'enpc/apply.htm', 'Who can apply', 'fm12',
		path_link + 'enpc/features.htm', 'Main features of &Eacute;cole des Ponts', 'fm13',
		path_link + 'enpc/studies.htm', 'Training', 'fm14',
		path_link + 'research/labo.htm', 'Research', 'fm15',
		path_link + 'enpc/int_exposure.htm', 'International exposure', 'fm16',
		path_link + 'enpc/figures.htm', 'Facts and figures', 'fm17',
		]
	],
	[	
		'dm53.gif', 'dm53x.gif', 'dm53o.gif', 'dm53ox.gif',
		147, 13, 5, 12, 'm23',
		170, 48, 185, 100, 27, 12, 'm3.jpg', 'childTblc'
		,
		[
		path_link + 'academics/mast_pres.htm', 'Master programmes', 'fm31',
		path_link + 'academics/phd_presentation.htm', 'PhD', 'fm32',
		path_link + 'academics/prof_prog.htm', 'Professional programmes', 'fm33',
		path_link + 'academics/service1.htm', 'Services', 'fm34'
		]
	],
	[
		'dm54.gif', 'dm54x.gif', 'dm54o.gif', 'dm54ox.gif',
		80, 12, 9, 12, 'm24',
		343, 48, 185, 100, 28, 3, 'm4.jpg', 'childTbld'
		,
		[
		path_link + 'faculty/fac_memb1.htm', 'Faculty members', 'fm41'
		]
	],
	[
		'dm55.gif', 'dm55x.gif', 'dm55o.gif', 'dm55ox.gif',
		61, 12, 9, 12, 'm25',
		443, 48, 185, 100, 29, 9, 'm5.jpg', 'childTble'
		,
		[
		path_link + 'research/res_act2.htm', 'Research at ENPC', 'fm51',
		path_link + 'research/res_net.htm', 'Research networks', 'fm52',
		path_link + 'research/labo.htm', 'Laboratories', 'fm53'
		]
	],
	[
		'dm61.gif', 'dm61x.gif', 'dm61o.gif', 'dm61ox.gif',
		133, 12, 14, 12, 'm31',
		168, 61, 130, 100, 18, 18, 'm6.jpg', 'childTblf'
		,
		[
		path_link + 'industry/chair.htm', 'Endowed chair', 'fm62',
		path_link + 'industry/corporate.htm', 'Student sponsorship ', 'fm63',
		path_link + 'industry/internships.htm', 'Internships', 'fm64',
		path_link + 'industry/jobs_offer.htm', 'Careers', 'fm65',
		path_link + 'industry/continuing.htm', 'Continuing education', 'fm66',
		path_link + 'industry/foundation.htm', 'Foundation', 'fm67',
		]
	],
	[
		'dm62.gif', 'dm62x.gif', 'dm62o.gif', 'dm62ox.gif',
		140, 12, 6, 12, 'm32',
		339, 61, 130, 100, 21, 18, 'm7.jpg', 'childTblg'
		,
		[
		path_link + 'partnerships/paristech.htm', 'ParisTech', 'fm71',
		path_link + 'partnerships/paris-est.htm', 'Universit&eacute; Paris-est', 'fm72',
		path_link + 'partnerships/mba_network.htm', 'ENPC MBA network', 'fm73',
		path_link + 'partnerships/univ_abroad3.htm', 'Universities abroad', 'fm74',
		path_link + 'partnerships/socrates.htm', 'European programmes', 'fm75',
		path_link + 'partnerships/ifcim.htm', 'Partnerships in Asia', 'fm76'
		]
	],
	[	
		'dm63.gif', 'dm63x.gif', 'dm63o.gif', 'dm63ox.gif',
		50, 12, 6, 12, 'm33',
		498, 61, 185, 100, 22, 3, 'm8.jpg', 'childTblh'
		,
		[
		path_link + 'documentation/presentation.htm', 'Presentation', 'fm81'
		]
	],
	[
		'dm64.gif', 'dm64x.gif', 'dm64o.gif', 'dm64ox.gif',
		70, 12, 7, 12, 'm34',
		524, 61, 185, 100, 23, 14, 'm9.jpg', 'childTbli'
		,
		[
		path_link + 'campus/accs.htm', 'Access', 'fm91',
		path_link + 'campus/alumni.htm', 'Alumni and foundation', 'fm92',
		path_link + 'campus/Catering.htm', 'Catering', 'fm93',
		path_link + 'campus/guide_before_leaving.htm', 'Pratical information', 'fm94',
		path_link + 'campus/club_sport.htm', 'Clubs and sports', 'fm95'
		]
	]	
];


var xDiv = '';
xDiv += '<div id="cache" style="position:absolute; left:41; top:1px; width:737px; height:300px; z-index:9; visibility: hidden;">\n';
xDiv += '<a href="javascript:;" onMouseOver="P7_autoLayers(0)"><img src="' + path_ico +'s.gif" alt="" name="cacheimg" width="737" height="300" border="0" id="cacheimg"></a></div>\n';

xDiv += '<div id="d3" style="position:absolute; left:53; top:36px; width:687px; height:12px; z-index:12"> \n';
xDiv += '<table width="487" border="0" cellpadding="0" cellspacing="0" background="' + path_i_ico + 'd5.jpg" summary="Tableau de mise en page">\n';
xDiv += '<tr> \n';
xDiv += '<td><table width="457" height="12" border="0" cellpadding="0" cellspacing="0" background="" summary="Tableau de mise en page">\n';
xDiv += '<tr> \n';
for ( var i=0; i<4; i++ )
{
	var libel = bandeau[i][0];
	var arrow = bandeau[i][2];
	if ( id_rub == i+1 )
	{
		libel = bandeau[i][1];
		arrow = bandeau[i][3];
	}
	xDiv += '<td><img src="' + path_ico + 's.gif" width=' + bandeau[i][6] + ' height=' + bandeau[i][7]+' alt=""></td>\n';
	xDiv += '<td><img src="' + path_i_ico + arrow + '" width=13 height=12 border="0" alt=""></td>\n';
	xDiv += '<td><a href="javascript:;" onMouseOver="P7_autoLayers(0,\'cache\',\'' + bandeau[i][8] + '\')">\n';
	xDiv += '<img src="' + path_i_ico + libel + '" width=' + bandeau[i][4] + ' height=' + bandeau[i][5] + ' border="0" alt=""></a></td>\n';
}
xDiv += '</tr>\n</table></td>\n</tr>\n</table>\n</div>\n';

xDiv += '<div id="d4" style="position:absolute; left:151px; top:49px; width:511px; height:12px; z-index:10"> \n';
xDiv += '<table width=511 border="0" cellpadding=0 cellspacing=0 background="' + path_i_ico + 'd6.jpg" summary="Tableau de mise en page">\n';
xDiv += '<tr> \n <td>\n';
xDiv += '<table width=488 border="0" cellspacing=0 cellpadding=0 background="" summary="Tableau de mise en page">\n';
xDiv += '<tr> \n';
for ( var i=4; i<8; i++ )
{
	var libel = bandeau[i][0];
	var arrow = bandeau[i][2];
	if ( id_rub == i+1 )
	{
		libel = bandeau[i][1];
		arrow = bandeau[i][3];
	}
	xDiv += '<td><img src="' + path_ico + 's.gif" width=' + bandeau[i][6] + ' height=' + bandeau[i][7]+' alt=""></td>\n';
	xDiv += '<td><img src="' + path_i_ico + arrow + '" width=13 height=12 border="0" alt=""></td>\n';
	xDiv += '<td><a href="javascript:;" onMouseOver="P7_autoLayers(0,\'cache\',\'' + bandeau[i][8] + '\')">\n';
	xDiv += '<img src="' + path_i_ico + libel + '" width=' + bandeau[i][4] + ' height=' + bandeau[i][5] + ' border="0" alt=""></a></td>\n';
}
xDiv += '</tr>\n</table></td>\n</tr>\n</table>\n</div>\n';

/* boucle pour tous les calques */
for ( var i=0; i<8; i++ )
{
	var  id_cm = bandeau[i][8];
	var  left = bandeau[i][9];
	var  top = bandeau[i][10];
	var  width = bandeau[i][11];
	var  height = bandeau[i][12];
	var  z_val = bandeau[i][13];
	var  bgd = bandeau[i][15];
	var  style = bandeau[i][16];
	
	
	xDiv += '<div id="' + id_cm + '" style="position:absolute; left:' + left + 'px; top:' + top + 'px; width:' + width + 'px; height:' + height + 'px; z-index:' + z_val + '; visibility: hidden;">\n';
	xDiv += '<TABLE cellSpacing=0 cellPadding=3  border=0 width='+ width +'summary="Tableau de mise en page">\n';
	
	var dim = bandeau[i][14] / 3;
	for ( var j=0; j<dim; j++ )
	{
      xDiv += '<TR><TD background="' + path_i_ico + bgd + '" class=' + style + '><A ';
	  xDiv += 'href="' + bandeau[i][17][j*3] + '" target="_top" ';
	  var choix = bandeau[i][17][j*3+1];
	  var id_fm = bandeau[i][17][j*3+2];
      xDiv += 'onMouseOver="MM_swapImage(\'' + id_fm + '\',\'\',\'' + path_ico + 'fo.gif\',1)" onMouseOut="MM_swapImgRestore()">';
	  if ( id_rub == i+1 && id_ss_rub == j+1 )
	  	xDiv += '<img src="' + path_ico + 'fo.gif" name="' + id_fm + '" width=7 height=5 border="0" id="' + id_fm + '" alt=""><span class=Cmenu>' + choix + '</span>';
	  else
	  	xDiv += '<img src="' + path_ico + 'f.gif" name="' + id_fm + '" width=7 height=5 border="0" id="' + id_fm + '" alt="">' + choix;
	  xDiv += '</A></TD></TR>\n';
	}
	
	xDiv += '</TABLE>\n</div>\n';
}


var f_img1 = path_i_ico + id_rub + "_f.gif";
var f_img2 = path_i_ico + id_rub + "_u.gif";
var pg_foot = '';

pg_foot += '<table width=721 border="0" cellspacing=0 cellpadding=0 summary="Tableau de mise en page">\n';
pg_foot += '<tr> \n';
pg_foot += '<td width=30 rowspan=4>&nbsp;</td>\n';
pg_foot += '<td width=157>&nbsp;</td>\n';
pg_foot += '<td width=22 rowspan=4>&nbsp;</td>\n';
pg_foot += '<td width=512 height=14 colspan=2><spacer type=block width=1 height=14></td>\n';
pg_foot += '</tr>\n';
pg_foot += '<tr> \n';
pg_foot += '<td height=1 class=ligm><spacer type=block width=1 height=1></td>\n';
pg_foot += '<td height=1 colspan=2 class=liga><spacer type=block width=1 height=1></td>\n';
pg_foot += '</tr>\n';
pg_foot += '<tr> \n';
pg_foot += '<td class=finavg><img src="'+path_ico+'0_f.gif" name="f3" width="11" height="11" id="f3" alt="">\n';
pg_foot += '&nbsp;<a href="javascript:window.print()" onMouseOver="MM_swapImage(\'f3\',\'\',\''+ path_ico+'0_fo.gif\',1)" \n';
pg_foot += 'onMouseOut="MM_swapImgRestore()">print</a></td>\n';

pg_foot += '<td width=256 class=finav>\n';
/*
Ces 3 lignes sont remplacées par la ligne de code précédente
pg_foot += '<td width=256 class=finav><img src="'+f_img1+'" name="f1" width="11" height="11" id="f1" alt="">\n';
pg_foot += '&nbsp;<a href="#top" onMouseOver="MM_swapImage(\'f1\',\'\',\''+path_ico+'0_fo.gif\',1)" \n';
pg_foot += 'onMouseOut="MM_swapImgRestore()">help</a>&nbsp;&nbsp;&nbsp;&nbsp; \n';
*/
pg_foot += '<img src="'+f_img1+'" name="f2" width="11" height="11" id="f2" alt="">\n';
//pg_foot += '&nbsp;<a href=' + path_french + 'index.htm target="_top" ';
pg_foot += '&nbsp;<a href=http://www.enpc.fr target="_top" ';
pg_foot += 'onMouseOver="MM_swapImage(\'f2\',\'\',\''+path_ico+'0_fo.gif\',1)" \n';
pg_foot += 'onMouseOut="MM_swapImgRestore()">site fran&ccedil;ais</a></td>\n';
pg_foot += '<td width=256 align=right class=finav><a href="#top" ';
pg_foot += 'onMouseOver="MM_swapImage(\'f4\',\'\',\''+path_ico+'0_uo.gif\',1)" \n';
pg_foot += 'onMouseOut="MM_swapImgRestore()">top</a>&nbsp;&nbsp;\n';
pg_foot += '<img src="'+f_img2+'" name="f4" width="9" height="11" id="f4" alt="">';
pg_foot += '</td>\n';
pg_foot += '</tr>\n';
pg_foot += '<tr> \n';
pg_foot += '<td>&nbsp;</td>\n';
pg_foot += '<td height=64 colspan=2><spacer type=block width=1 height=64></td>\n';
pg_foot += '</tr></table>\n';

