<!-- fonction de défilement du texte
var texte = "Bienvenue sur le site Officiel de l'Ecole Industrielle de Rouen";
var longtxt = texte.length;
var longueur = 60;
var pos = 1 - longueur;

function scroll() {
	pos++;
	var defile = "";
	if (pos == longtxt) {
		pos = 1 - longueur;
	}
	if (pos < 0) { 
		for (var i = 1; i <= Math.abs(pos); i++)
		defile = defile + " ";
		defile = defile + texte.substring(0,longueur - i + 1);
	}
	else {
		defile = defile + texte.substring(pos, longueur + pos);
	}
	window.status = defile;
	setTimeout("scroll()", 100);
}
//-->

<!-- pop-up liste contact
function popcontact() {
	if(screen.width == 800) {
		window.open("contact.php", "popcontact", "toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, copyhistory=no, width=795, height=550, left=0, top=0");
	}
	else {
		window.open("contact.php", "popcontact", "toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, copyhistory=no, width=800, height=600, left=110, top=0");
	}
}
//-->

<!-- pop-up fiche générale
function popfiche(type) {
	if(screen.width == 800) {
		window.open("fiches/fiche"+type+".php", "ficheGénérale", "toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=no, copyhistory=no, width=530, height=690, left=125, top=0");
	}
	else {
		window.open("fiches/fiche"+type+".php", "ficheGénérale", "toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=no, copyhistory=no, width=600, height=690, left=220, top=0");
	}
}
//-->

<!-- pop-up fiche métiers
function popmetier(nom) {
	if(screen.width == 800) {
		window.open("fiches/metier"+nom+".php", "ficheMétiers", "toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=no, copyhistory=no, width=430, height=690, left=180, top=0");
	}
	else {
		window.open("fiches/metier"+nom+".php", "ficheMétiers", "toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=no, copyhistory=no, width=590, height=690, left=220, top=0");
	}
	
}
//-->

<!-- clignotement de texte 
var drap=0;
function cacher_montrer() {
	if(document.getElementById('texte').style.visibility == 'hidden') {
		setTimeout("document.getElementById('texte').style.visibility = 'visible';",50);
	}
	else {
		setTimeout("document.getElementById('texte').style.visibility = 'hidden';",1950);	
	}
}
// mise en place d'un appel régulier de la fonction toutes les 2 secondes
setInterval("cacher_montrer();",2000)
//-->

<!-- pop-up schéma des classes
function popschema() {
	if(screen.width == 800) {
		window.open("schema.php", "schema", "toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, copyhistory=no, width=700, height=526, left=50, top=0");
	}
	else {
		window.open("schema.php", "schema", "toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, copyhistory=no, width=900, height=685, left=50, top=0");
	}
}
//-->

function testeur(){
	if(screen.width != 800) {
		document.ima.src="images/formateursCfa.jpg";
		document.getElementById("a1").coords="44,186,140,219";
		document.getElementById("a2").coords="155,186,285,218";
		document.getElementById("a3").coords="357,187,486,220";
	}
	if(screen.width == 800) {
		document.ima.src="images/formateursCfa_2.jpg";
		document.getElementById("a1").coords="34,146,109,172";
		document.getElementById("a2").coords="121,146,222,171";
		document.getElementById("a3").coords="278,146,378,171";
	}
}
//-->
