// JavaScript Document

function animHeader()
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="display:block;" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="644" height="186">\n');
document.write('<param name=movie value="img/header12.swf">\n');
document.write('<param name=quality value=high>\n');
document.write('<param name=menu value=false>\n');
document.write('<param name="WMode" value="Transparent">\n');
document.write('<embed src="img/header12.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="644" height="186" wmode="transparent">\n');
document.write('</embed>\n');
document.write('</object>\n');
}

function anim01()
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="display:block;" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="325" height="186">\n');
document.write('<param name=movie value="img/small02.swf">\n');
document.write('<param name=quality value=high>\n');
document.write('<param name=menu value=false>\n');
document.write('<param name="WMode" value="Transparent">\n');
document.write('<embed src="img/small02.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="325" height="186" wmode="transparent">\n');
document.write('</embed>\n');
document.write('</object>\n');
}

//function anim01()
//{
//document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="display:block;" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="325" height="186">\n');
//document.write('<param name=movie value="img/small02.swf">\n');
//document.write('<param name=quality value=high>\n');
//document.write('<param name=menu value=false>\n');
//document.write('<param name="WMode" value="Transparent">\n');
//document.write('<embed src="img/small02.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="325" height="186" wmode="transparent">\n');
//document.write('</embed>\n');
//document.write('</object>\n');
//}

function anim02()
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="display:block;" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="325" height="186">\n');
document.write('<param name=movie value="img/logos02.swf">\n');
document.write('<param name=quality value=high>\n');
document.write('<param name=menu value=false>\n');
document.write('<param name="WMode" value="Transparent">\n');
document.write('<embed src="img/logos02.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="325" height="186" wmode="transparent">\n');
document.write('</embed>\n');
document.write('</object>\n');
}

function allFloors()
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="display:block;" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="620">\n');
document.write('<param name=movie value="../img/allfloors.swf">\n');
document.write('<param name=quality value=high>\n');
document.write('<param name=menu value=false>\n');
document.write('<param name="WMode" value="Transparent">\n');
document.write('<embed src="../img/allfloors.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="620" wmode="transparent">\n');
document.write('</embed>\n');
document.write('</object>\n');
}

function animLower()
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="display:block;" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="620">\n');
document.write('<param name=movie value="../img/lower03.swf">\n');
document.write('<param name=quality value=high>\n');
document.write('<param name=menu value=false>\n');
document.write('<param name="WMode" value="Transparent">\n');
document.write('<embed src="../img/lower03.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="620" wmode="transparent">\n');
document.write('</embed>\n');
document.write('</object>\n');
}

function animUpper()
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="display:block;" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="620">\n');
document.write('<param name=movie value="../img/upper04.swf">\n');
document.write('<param name=quality value=high>\n');
document.write('<param name=menu value=false>\n');
document.write('<param name="WMode" value="Transparent">\n');
document.write('<embed src="../img/upper04.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="620" wmode="transparent">\n');
document.write('</embed>\n');
document.write('</object>\n');
}

function secondFloor()
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="display:block;" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="620">\n');
document.write('<param name=movie value="../img/2ndfloor2.swf">\n');
document.write('<param name=quality value=high>\n');
document.write('<param name=menu value=false>\n');
document.write('<param name="WMode" value="Transparent">\n');
document.write('<embed src="../img/2ndfloor2.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="620" wmode="transparent">\n');
document.write('</embed>\n');
document.write('</object>\n');
}

//changement de photo aléatoire accueil

function random_imglinkaccueil(){
  var myimages=new Array()
  //specify random images below. You can have as many as you wish
  myimages[1]="random/01.jpg"
  myimages[2]="random/02.jpg"
  myimages[3]="random/03.jpg"
  myimages[4]="random/04.jpg"
  myimages[5]="random/05.jpg"
  myimages[6]="random/06.jpg"
  //specify corresponding links below
  var imagelinks=new Array()
  imagelinks[1]="index.html"
  imagelinks[2]="index.html"
  imagelinks[3]="index.html"
  imagelinks[4]="index.html"
  imagelinks[5]="index.html"
  imagelinks[6]="index.html"

  var ry=Math.floor(Math.random()*myimages.length)

  if (ry==0)
     ry=1
     document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>')
}

//changement de photo aléatoire toutes les pages

function random_imglink(){
  var myimages=new Array()
  //specify random images below. You can have as many as you wish
  myimages[1]="../random/01.jpg"
  myimages[2]="../random/02.jpg"
  myimages[3]="../random/03.jpg"
  myimages[4]="../random/04.jpg"
  myimages[5]="../random/05.jpg"
  myimages[6]="../random/06.jpg"
  //specify corresponding links below
  var imagelinks=new Array()
  imagelinks[1]="../index.html"
  imagelinks[2]="../index.html"
  imagelinks[3]="../index.html"
  imagelinks[4]="../index.html"
  imagelinks[5]="../index.html"
  imagelinks[6]="../index.html"

  var ry=Math.floor(Math.random()*myimages.length)

  if (ry==0)
     ry=1
     document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>')
}

function ouvre(url) {
var w;
var h;
w = 660;  // width
h = 420;  // height
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = ',top='+wint+',left='+winl;
window.open(url,"","width="+w+",height="+h+",menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0"+winprops);
}

