function OpenWindow(Page,Largeur,Hauteur,Scrollbar, Resizable){
	var opt = "toolbar=no, location=no, directories=no, status=no, scrollbars="+Scrollbar+", resizable="+Resizable+", copyhistory=no, width="+Largeur+", height="+Hauteur;
	window.open(Page, '01', opt)	;
}

function RunVideo(fichier,width,height)
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="Pronote" align="middle">\n');
	document.write('<param name="movie" value="'+fichier+'.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<embed src="'+fichier+'.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"  width="'+width+'" height="'+height+'" wmode="transparent"></embed>\n');
	document.write('</object>\n');
}

function showNovo(nbElts,n){
	var i = 1;
	
	while(i <= nbElts){
	valtxt = "document.getElementById('novo"+i+"')";
	valimg = "document.getElementById('imgNovo"+i+"')";
	objtxt = eval(valtxt);
	objimg = eval(valimg);
	if (i == n){
		objtxt.style.display="block";
		objimg.style.display="block";
		}
	else{
		objtxt.style.display="none";
		objimg.style.display="none";
	}
	i = i+1;
	}		
}

function hideNovo(nbElts){
	var i = 1;
	
	while(i <= nbElts){
	valtxt = "document.getElementById('novo"+i+"')";
	valimg = "document.getElementById('imgNovo"+i+"')";
	objtxt = eval(valtxt);
	objimg = eval(valimg);
	objtxt.style.display="none";
	objimg.style.display="none";
	i = i+1;
	}		
}


function showNovo2(RepImg,nbElts,n){
		var i = 1;
	while(i <= nbElts){
	valtxt = "document.getElementById('novo"+i+"')";
	valimg1 = "document.getElementById('img"+i+"')";
	valimg2 = "document.getElementById('imgNovo"+i+"')";
	objtxt = eval(valtxt);
	objimg1 = eval(valimg1);
	objimg2 = eval(valimg2);
	if (i == n){
		objtxt.style.display="block";
		objimg2.style.display="block";
		}
	else{
		objtxt.style.display="none";
		objimg2.style.display="none";
	}
	objimg1.src=RepImg+i+"-"+n+".png";
	i = i+1;
	}
	

}


function hideNovo2(RepImg,nbElts){
	var i = 1;
	
	while(i <= nbElts){
	valtxt = "document.getElementById('novo"+i+"')";
	valimg1 = "document.getElementById('img"+i+"')";
	valimg2 = "document.getElementById('imgNovo"+i+"')";
	objtxt = eval(valtxt);
	objimg1 = eval(valimg1);
	objimg2 = eval(valimg2);
	objtxt.style.display="none";
	objimg2.style.display="none";
	objimg1.src=RepImg+i+".png";
	i = i+1;
	}		
	
}



function AffBulle(texte) {
  contenu="<TABLE border=0 cellspacing=0 cellpadding="+IB.NbPixel+"><TR bgcolor='"+IB.ColContour+"'><TD><TABLE border=0 cellpadding=2 cellspacing=0 bgcolor='"+IB.ColFond+"'><TR><TD><FONT size='-1' face='arial' color='"+IB.ColTexte+"'>"+texte+"</FONT></TD></TR></TABLE></TD></TR></TABLE>&nbsp;";
  var finalPosX=posX-xOffset;
  if (finalPosX<0) finalPosX=0;
  if (document.layers) {
    document.layers["bulle"].document.write(contenu);
    document.layers["bulle"].document.close();
    document.layers["bulle"].top=posY+yOffset;
    document.layers["bulle"].left=finalPosX;
    document.layers["bulle"].visibility="show";}
  if (document.all) {
    //var f=window.event;
    //doc=document.body.scrollTop;
    bulle.innerHTML=contenu;
    document.all["bulle"].style.top=posY+yOffset;
    document.all["bulle"].style.left=finalPosX;//f.x-xOffset;
    document.all["bulle"].style.visibility="visible";
  }
  //modif CL 09/2001 - NS6 : celui-ci ne supporte plus document.layers mais document.getElementById
  else if (document.getElementById) {
    document.getElementById("bulle").innerHTML=contenu;
    document.getElementById("bulle").style.top=posY+yOffset;
    document.getElementById("bulle").style.left=finalPosX;
    document.getElementById("bulle").style.visibility="visible";
  }
}
function getMousePos(e) {
  if (document.all) {
  posX=event.x+document.body.scrollLeft; //modifs CL 09/2001 - IE : regrouper l'évènement
  posY=event.y+document.body.scrollTop;
  }
  else {
  posX=e.pageX; //modifs CL 09/2001 - NS6 : celui-ci ne supporte pas e.x et e.y
  posY=e.pageY; 
  }
}
function HideBulle() {
	if (document.layers) {document.layers["bulle"].visibility="hide";}
	if (document.all) {document.all["bulle"].style.visibility="hidden";}
	else if (document.getElementById){document.getElementById("bulle").style.visibility="hidden";}
}
 
function InitBulle(ColTexte,ColFond,ColContour,NbPixel) {
	IB.ColTexte=ColTexte;IB.ColFond=ColFond;IB.ColContour=ColContour;IB.NbPixel=NbPixel;
	if (document.layers) {
		window.captureEvents(Event.MOUSEMOVE);window.onMouseMove=getMousePos;
		document.write("<LAYER name='bulle' top=0 left=0 visibility='hide'></LAYER>");
	}
	if (document.all) {
		document.write("<DIV id='bulle' style='position:absolute;top:0;left:0;visibility:hidden'></DIV>");
		document.onmousemove=getMousePos;
	}
	//modif CL 09/2001 - NS6 : celui-ci ne supporte plus document.layers mais document.getElementById
	else if (document.getElementById) {
	        document.onmousemove=getMousePos;
	        document.write("<DIV id='bulle' style='position:absolute;top:0;left:0;visibility:hidden'></DIV>");
	}
 
}


function RetourALaPageSurProblemeConnexion (URLRetour){
	window.location='http://www.index-education.com/fr/test-hebergement.php?R=-1'; 
}


function AccederAuPort49300 (URLRetour){
	window.location='http://testhebergement.index-education.com:49300/fr/test-hebergement.php?R=1'; 
	// si au bout de 3 secondes la page n'a pas répondu on revient sur notre page de départ
	setTimeout("RetourALaPageSurProblemeConnexion();",3000);
	window.clearTimeout();
}

function iFrameHeight() {}


function MajOngletsHebergement (n, nbOnglets){
	var i = 1;
	while(i <= nbOnglets){
	valOngletHB = "document.getElementById('OngletHB"+i+"')";
	valBlocHB = "document.getElementById('BlocHB"+i+"')";
	
	objOnglet = eval(valOngletHB);
	objBloc = eval(valBlocHB);
	
	if (i == n){
		objBloc.style.display="block";
		objOnglet.style.backgroundColor="#fff";
		objOnglet.style.backgroundImage = "url(img/ongletHeB"+i+"a.png)";
		}
	else{
		objBloc.style.display="none";
		objOnglet.style.backgroundColor="#fff";
		objOnglet.style.backgroundImage = "url(img/ongletHeB"+i+"b.png)";
	}

	i = i+1;
	}	
}


