function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->


// **** BoTTom BaR ****

// PARAMETRAGE DU SCRIPT
var tjs_delai=30;
var tjs_max=50;
var tjs_mode=1; // 0 - calque toujours en haut de page / 1 - calque en bas

// LE RESTE NE CHANGE PAS
var tjs_hauteur=0;
function PrintCalque() {
	tjs_hauteur=27;
	if ((document.all)||(document.getElementById)) {
		var Z="<DIV id='tomber' style='position:absolute;left:0;top:1200;width:100%;height:27'><TABLE width='100%' HEIGHT='27' BORDER='0' CELLPADDING='0' CELLSPACING='0'><TR  valign='bottom'><TD width='42' height='27' ALIGN='left' VALIGN='bottom' BACKGROUND='http://techno.prologue.fr/Chartes/GroupePrologue_Techno/Images/h_bas_Dupli.jpg'><IMG SRC='http://techno.prologue.fr/Chartes/GroupePrologue_Techno/Images/spacer.gif' width='10' BORDER='0' /><a href='/redirect.asp?IdObj=-2&amp;{getsid}' target='_self'><img src='http://techno.prologue.fr/Chartes/GroupePrologue_Techno/Images/h_map.gif' alt='Plan du site' width='22' height='22' border='0'></a><IMG SRC='http://techno.prologue.fr/Chartes/GroupePrologue_Techno/Images/spacer.gif' width='10' BORDER='0' /></TD><TD WIDTH='100' background='http://techno.prologue.fr/Chartes/GroupePrologue_Techno/Images/h_basSousSymb.gif'><a href='/redirect.asp?IdObj=-3&amp;{getsid}' target='_self'><img src='http://techno.prologue.fr/Chartes/GroupePrologue_Techno/Images/h_mention.gif' alt='Mentions L&eacute;gales' width='22' height='22' border='0'></a></TD><TD background='http://techno.prologue.fr/Chartes/GroupePrologue_Techno/Images/h_basBordDupli.gif'>&nbsp;</TD></TR></TABLE></DIV>";
	} else {
		var Z="<LAYER name='tomber' left='0' top='1200' width='100%' height='27'><TABLE width='100%' HEIGHT='27' BORDER='0' CELLPADDING='0' CELLSPACING='0'><TR  valign='bottom'><TD width='42' height='27' ALIGN='left' VALIGN='bottom' BACKGROUND='http://techno.prologue.fr/Chartes/GroupePrologue_Techno/Images/h_bas_Dupli.jpg'><IMG SRC='http://techno.prologue.fr/Chartes/GroupePrologue_Techno/Images/spacer.gif' width='10' BORDER='0' /><a href='/redirect.asp?IdObj=-2&amp;{getsid}' target='_self'><img src='http://techno.prologue.fr/Chartes/GroupePrologue_Techno/Images/h_map.gif' alt='Plan du site' width='22' height='22' border='0'></a><IMG SRC='http://techno.prologue.fr/Chartes/GroupePrologue_Techno/Images/spacer.gif' width='10' BORDER='0' /></TD><TD WIDTH='100' background='http://techno.prologue.fr/Chartes/GroupePrologue_Techno/Images/h_basSousSymb.gif'><a href='/redirect.asp?IdObj=-3&amp;{getsid}' target='_self'><img src='http://techno.prologue.fr/Chartes/GroupePrologue_Techno/Images/h_mention.gif' alt='Mentions L&eacute;gales' width='22' height='22' border='0'></a></TD><TD background='http://techno.prologue.fr/Chartes/GroupePrologue_Techno/Images/h_basBordDupli.gif'>&nbsp;</TD></TR></TABLE></LAYER>";
	}
	document.write(Z);
	setTimeout("Start()",tjs_delai);
}
function Start() {
	MoveLayer("tomber",GetTop("tomber"));
	setTimeout("Start()",tjs_delai);
}
function Debug() {
	var obj=document.body
	var Z="";
	for (var i in obj) {
		Z+=i+"="+obj[i]+"\n";
	}
	alert(Z);
}
function MoveLayer(nom,top) {
	if (document.getElementById) { //IE5 et NS6
		document.getElementById(nom).style.top=top;
	}
	if ((document.all)&&(!document.getElementById)) { //IE4 seul
		document.all[nom].style.top=top;
	}
	if (document.layers) { //NS4.X seul
		document.layers[nom].top=top;
	}
}
function GetTop(nom) {
	// Partie 1 : Récupération de la position du calque et de la page
	if (document.getElementById) { //IE5 
		var pos=parseInt(document.getElementById(nom).style.top);
		var wintop=parseInt(document.body.scrollTop);
		var avail=document.body.clientHeight;
	}
	if ((document.getElementById)&&(!document.all)) { //NS6
		var pos=parseInt(document.getElementById(nom).style.top);
		var wintop=parseInt(window.pageYOffset);
		var avail=window.innerHeight;
	}
	if ((document.all)&&(!document.getElementById)) { //IE4 seul
		var pos=parseInt(document.all[nom].style.top);
		var wintop=parseInt(document.body.scrollTop);
		var avail=document.body.clientHeight;
	}
	if (document.layers) { //NS4.X seul
		var pos=parseInt(document.layers[nom].top);
		var wintop=parseInt(window.pageYOffset);
		var avail=window.innerHeight;
	}

	// Partie 2 : Traitement de la position
	if (tjs_mode==0) { // toujours en haut
		var delta=Math.ceil((pos-wintop)/3);
		if (delta>tjs_max) {delta=tjs_max;}
		if (delta<-1*tjs_max) {delta=-1*tjs_max;}
		var top=pos-delta;
	}
	if (tjs_mode==1) {// toujours en bas
		var delta=Math.ceil((pos-(wintop+avail-tjs_hauteur)));
		if (delta>tjs_max) {delta=tjs_max;}
		if (delta<-1*tjs_max) {delta=-1*tjs_max;}
		var top=pos-delta;
	}
	return top;
}