// JavaScript Document
var randnum = Math.random();
var inum = 7;
var rand1 = Math.round(randnum * (inum-1)) + 1;
images = new Array
images[1] = "background:url(../img/fd-lign1-1.jpg)";
images[2] = "background:url(../img/fd-lign1-2.jpg)";
images[3] = "background:url(../img/fd-lign1-3.jpg)";
images[4] = "background:url(../img/fd-lign1-4.jpg)";
images[5] = "background:url(../img/fd-lign1-5.jpg)";
images[6] = "background:url(../img/fd-lign1-6.jpg)";
images[7] = "background:url(../img/fd-lign1-1.jpg)";

var image = images[rand1];

document.write("<style type='text/css'>\n");
document.write(".randomimage{"+image+"}\n color:#eaeaea;");

document.write("<\/style>");

login_off = new Image ( );
login_off.src = "../img/invisible.gif";
login_on = new Image ( );
login_on.src = "../img/onglet-loginon.gif";

insc_off = new Image ( );
insc_off.src = "../img/invisible.gif";
insc_on = new Image ( );
insc_on.src = "../img/onglet-inscriptionon.gif";

accueil_off = new Image ( );
accueil_off.src = "../img/invisible.gif";
accueil_on = new Image ( );
accueil_on.src = "../img/onglet-accueilon.gif";

ecole_off = new Image ( );
ecole_off.src = "../img/invisible.gif";
ecole_on = new Image ( );
ecole_on.src = "../img/onglet-ecoleon.gif";

profs_off = new Image ( );
profs_off.src = "../img/invisible.gif";
profs_on = new Image ( );
profs_on.src = "../img/onglet-profson.gif";

instruments_off = new Image ( );
instruments_off.src = "../img/invisible.gif";
instruments_on = new Image ( );
instruments_on.src = "../img/onglet-instrumentson.gif";

studio_off = new Image ( );
studio_off.src = "../img/invisible.gif";
studio_on = new Image ( );
studio_on.src = "../img/onglet-studioon.gif";

infos_off = new Image ( );
infos_off.src = "../img/invisible.gif";
infos_on = new Image ( );
infos_on.src = "../img/onglet-infoson.gif";

aide_off = new Image ( );
aide_off.src = "../img/invisible.gif";
aide_on = new Image ( );
aide_on.src = "../img/onglet-aideon.gif";


function button_on ( imgName )
{
    butOn = eval ( imgName + "_on.src" );
    document [imgName].src = butOn;
}

function button_off ( imgName )
  {
    butOff = eval ( imgName + "_off.src" );
    document [imgName].src = butOff;
}

function popup(URL, width, height,scrollbars) {
	if(!scrollbars){
		window.open(URL,'pop596','scrollbars=yes,status=no,width='+width+',height='+height);
	}else{
		window.open(URL,'pop2987','scrollbars=no,status=no,width='+width+',height='+height);
	}
}

//javascript:self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight);
