// JavaScript Document
// JavaScript Document
//PLF- http://www.jejavascript.net/
var fois=0
function AfficheImage2(petiteImage,grandeImage)
{
document.write(' <A HREF="javascript:Affichegrande2(\''+grandeImage+'\')"><IMG SRC="images/'+petiteImage+'" border="1" style="border-color:#4777c1;" width="80"   BORDER=0  ALT="cliquez ici pour afficher en grand"></A>');
} 
function Affichegrande2(petiteImage)
{
newImage = new Image;
newImage.src = petiteImage;
html = '<HTML><HEAD><TITLE>POP_UP</TITLE><meta http-equiv="Pragma" content="no-cache"><META NAME="Content-Type" CONTENT="text/html; charset=iso-8859-1"><script src="javascript.js" language="javascript"></script><script type="text/javascript" src="popup.js"></script><style type="text/css">body{overflow-y: auto;scrollbar-face-color : #074d9a;scrollbar-track-color: #99c1df;scrollbar-3dlight-color:#99c1df;}</style><link href="../css/style.css" rel="stylesheet" type="text/css" /></HEAD><BODY bgcolor="#99c1df" leftmargin=0 marginwidth=0 topmargin=0 marginheigth=0 oncontextmenu="return false"><table><tr><td valign="top" class="scroll"><IMG src="images/image popup/'+petiteImage+'"  BORDER=0 NAME=monImage onLoad="window.resizeTo(document.monImage.width+19,document.monImage.height+37); window.moveTo((screen.width-document.monImage.width)/2,5)" ></td></tr></table></BODY></HTML>';
if (fois == 1 ) ouvrirImage.close();
ouvrirImage = window.open('','_blank','toolbar=0,location=0,menuBar=0,scrollbars=1,resizable=1');
ouvrirImage.document.write(html);
fois=1;
}


var slideShowSpeed = 3000

var crossFadeDuration = 1

var Pic = new Array()
var Pic2 = new Array()

Pic[0] = 'images/mat1.jpg'
Pic[1] = 'images/mat2.jpg'
Pic[2] = 'images/mat4.jpg'
Pic[3] = 'images/mat5.jpg'
Pic[4] = 'images/mat6.jpg'
Pic[5] = 'images/mat7.jpg'
Pic[6] = 'images/mat8.jpg'

Pic2[0] = 'images/txt1.jpg'
Pic2[1] = 'images/txt2.jpg'
Pic2[2] = 'images/txt4.jpg'
Pic2[3] = 'images/txt5.jpg'
Pic2[4] = 'images/txt6.jpg'
Pic2[5] = 'images/txt7.jpg'
Pic2[6] = 'images/txt8.jpg'
var t

var j = 0

var p = Pic.length
var p2 = Pic2.length

var preLoad = new Array()
var preLoad2 = new Array()

for (i = 0; i < p; i++){

preLoad[i] = new Image()
preLoad2[i] = new Image()

preLoad[i].src = Pic[i]
preLoad2[i].src = Pic2[i]

}

function runSlideShow(){

if (document.all){

document.images.SlideShow.style.filter="blendTrans(duration=2)"

document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"

document.images.SlideShow.filters.blendTrans.Apply()

document.images.SlideShow2.style.filter="blendTrans(duration=2)"

document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)"

document.images.SlideShow2.filters.blendTrans.Apply()

}

document.images.SlideShow.src = preLoad[j].src
document.images.SlideShow2.src = preLoad2[j].src

if (document.all){

document.images.SlideShow.filters.blendTrans.Play()
document.images.SlideShow2.filters.blendTrans.Play()

}

j = j + 1

if (j > (p-1)) j=0

t = setTimeout('runSlideShow()', slideShowSpeed)

}




function show_contenue (id)
{
	
if (document.getElementById(id).style.display == 'none')
	{
	document.getElementById(id).style.display = "block";
    }
}

function cache (id)
{

if (document.getElementById(id).style.display == 'block')
	{
	document.getElementById(id).style.display = "none";
    }
}

