// JavaScript  appliqué à la page EDUGROUPE


// Clignotement du background item menu left

function highlight(x){
document.form.elements[x].focus();
document.form.elements[x].select();
}
function flashit(){
if (!document.all)
return
if (mernie.style.backgroundColor=="#ffcc00")
mernie.style.backgroundColor=""
else
mernie.style.backgroundColor="#ffcc00"
}
setInterval("flashit()", 500)

/////////////////////////////////////////////////////


function masquertout () {

//masque les blocs menu

document.getElementById("evaluation").style.visibility="hidden";
document.getElementById("centres").style.visibility="hidden";
document.getElementById("contact").style.visibility="hidden";
document.getElementById("propos").style.visibility="hidden";
document.getElementById("test").style.visibility="hidden";

//affiche le calque edito
document.getElementById("edito").style.visibility="visible";
}



function detail () {



//masque bloc principal
document.getElementById("main").style.visibility="hidden";


//affiche et positionne le bloc

document.getElementById("detail").style.visibility="visible";


}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



function MM_reloadPage(init) {  //reloads the window if Nav4 resized

if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);




//fcts pour plan RATP


function gotoProxi1()
{
 // pop up qui, affiche le plan
window.open("http://www.ratp.info/Proxi/proxi.php?lang=FRA&tmpl=CITEFUTEE&adresse=3%20rue%20de%20turbigo%2075001%20paris&methode=adresse","Plan","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=760,height=650");
}

function gotoProxi2()
{
 // pop up qui, affiche le plan
window.open("http://www.ratp.info/Proxi/proxi.php?lang=FRA&tmpl=CITEFUTEE&adresse=1%20place%20de%20la%20pyramide%2092800%20puteaux&methode=adresse","Plan","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=760,height=650");
}



function Create_Boutton1 (ps_Image, pi_Num_Boutton,pi_ActivationKey)
{
 var vs_Image_File;
 vs_Image_File = 'http://www.ratp.info' + ps_Image;
 document.write('<a href="#" title="Plan de quartier RATP" onclick="gotoProxi1()"><img src="' + vs_Image_File + '" border="0"  /></a>');
}

function Create_Boutton2 (ps_Image, pi_Num_Boutton,pi_ActivationKey)
{
 var vs_Image_File;
 vs_Image_File = 'http://www.ratp.info' + ps_Image;
 document.write('<a href="#" title="Plan de quartier RATP" onclick="gotoProxi2()"><img src="' + vs_Image_File + '" border="0"  /></a>');
}


//initialisation de la variable etat pour fonction dev reduc
var etat=1;

function devreduc(id) 
{

if (etat==1) {
document.getElementById("codeproduits"+id).style.display="inline";
document.getElementById("img"+id).setAttribute("src","pages/images/moins.png");
etat=2;

	
}
else {
document.getElementById("codeproduits"+id).style.display="none";
document.getElementById("img"+id).setAttribute("src","pages/images/plus.png");
etat=1;
}


}

