var nomfenetre;
function MM_openBrWindow(theURL,winName,features) { //v2.0
  nomfenetre=window.open(theURL,winName,features);
}


function MM_closeBrWindow() { //v2.0
  window.nomfenetre.close();
}

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {		
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



//window.onload=montre;
function montre(id,ss) {

for (var i = 1; i<=10; i++) {
	if (document.getElementById('smenu'+i)) {
		document.getElementById('smenu'+i).style.display='none';
	//	alert('oui sousmenu smenu'+i+' existe');
		}
}

//	var num = id.substr(id.length-1, id.length);
	var num = id.substr(5, id.length);
//	alert('dans rub num '+num);
	
	
if ((id != 'smenu1') && ( ss != '' )){
	if ( ss != '0'){
	   var d = document.getElementById(id);	
	   if (d) {
		   d.style.display='block';
		   document.getElementById('SBmenu'+num).className = 'thisorange'; 
		   document.getElementById('bordBas'+num).className = 'bordBasOr'; 
		   document.getElementById('ss'+num+ss).className = 'thisSS'; 
		   }	
	} // fin if	(ss != 0)

	else {
  		document.getElementById('SBmenu'+num).className = 'thisorange'; 
		document.getElementById('bordBas'+num).className = 'bordBasOr'; 
		}

} // fin smenu1


if ( ss == '0') {
	if (document.getElementById(id)){
	document.getElementById(id).style.display='block';
	}
}

if ((id != 'smenu1') &&( ss == '' )) {
document.getElementById('SBmenu'+num).className = 'thisorange'; 
document.getElementById('bordBas'+num).className = 'bordBasOr';
}
	
} //fin function

// fonction GetHeight DIV
var finHeight = '</DIV>';
var startHeight = '';
var test = '';
var total;

	function getHeight () {  
		var ghC = document.getElementById('central').offsetHeight;
		var ghG = document.getElementById('gauche').offsetHeight;
		var ghD = document.getElementById('droite').offsetHeight;
		var High = ghC;
	if (ghC < ghG) { 
		if ( ghG > ghD ){High = ghG; }
		if ( ghG < ghD ){High = ghD; }
	}
	if (ghC < ghD) { 
		if ( ghG > ghD ){High = ghG; }
		if ( ghG < ghD ){High = ghD; }
	}
	total = High+130;
	document.write('<DIV style="position:absolute;top:'+total+'px;margin:0;padding:0;">');
		}
		
		
			function getHeightPDF () {  
		var ghC = document.getElementById('centralPDF').offsetHeight;
		var ghG = document.getElementById('gauche').offsetHeight;
	if (ghC < ghG) { 
		High = ghG; 
	}
	else {High = ghC; }
		
	total = High+130;
	document.write('<DIV style="position:absolute;top:'+total+'px;margin:0;padding:0;">');
		}

	function getHeightHP () {  
		var ghC = document.getElementById('centralHP').offsetHeight;
		var ghG = document.getElementById('gaucheHP').offsetHeight;
		var ghD = document.getElementById('droiteHP').offsetHeight;
		var High = ghC;
	if (ghC < ghG) { 
		if ( ghG > ghD ){High = ghG; }
		if ( ghG < ghD ){High = ghD; }
	}
	if (ghC < ghD) { 
		if ( ghG > ghD ){High = ghG; }
		if ( ghG < ghD ){High = ghD; }
	}
	total = High+270;
	document.write('<DIV style="position:absolute;top:'+total+'px;margin:0;padding:0;">');
		}
// fin fonction GetHeight DIV


function EmailThisLink() {
var lien = window.location;
window.location="mailto:?subject=A colleague has sent you a link to www.atosworldline.com&body="+lien;
}

function EmailThisLinkFR() {
var lien = window.location;
window.location="mailto:?subject=Un ami vous a envoyé ce lien : www.atosworldline.com&body="+lien;
}






//// Script pour déployer les listes à puces ////

var Tabinit = new Array();
for (i=0;i<20;i++){
	Tabinit[i]=0;
}

function affiche(idpar,i) {
if ( Tabinit[(i-1)] == 0) {
	document.getElementById(idpar).style.display='block';
	Tabinit[(i-1)] = 1;
	}
else {document.getElementById(idpar).style.display='none'; Tabinit[(i-1)] = 0;}

}



