/***********************************************
* CMotion Image Gallery- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for source code
* This copyright notice must stay intact for legal use
* Modified for autowidth and optional starting positions in
* http://www.dynamicdrive.com/forums/showthread.php?t=11839 by jschuer1 8/5/06
***********************************************/

 //1) Set width of the "neutral" area in the center of the gallery.
var restarea=6;
 //2) Set top scroll speed in pixels. Script auto creates a range from 0 to top speed.
var maxspeed=3;
 //3) Set to maximum width for gallery - must be less than the actual length of the image train.
var maxwidth=1000;
 //4) Set to 1 for left start, 0 for right, 2 for center.
var startpos=0;
var startpos2=0;
var startpos3=0;
var startpos4=0;
var startpos5=0;
var startpos6=0;
 //5) Set message to show at end of gallery. Enter "" to disable message.
var endofgallerymsg='';
var endofgallerymsg2='';
var endofgallerymsg3='';
var endofgallerymsg4='';
var endofgallerymsg5='';
var endofgallerymsg6='';

var menuwidth=230;
var menuwidth2=230;


////NO NEED TO EDIT BELOW THIS LINE////////////

// défilement //

var iedom=document.all||document.getElementById, scrollspeed=0, movestate='', actualwidth='230', cross_scroll, ns_scroll, statusdiv, loadedyes=0, lefttime, righttime;

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}

function showhidediv(what){
if (endofgallerymsg!="") {
statusdiv.style.visibility=what;
}
}

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft: what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function moveleft(){
if (loadedyes){
movestate="left";
if (iedom&&parseInt(cross_scroll.style.left)>(menuwidth-actualwidth)){
cross_scroll.style.left=parseInt(cross_scroll.style.left)-scrollspeed+"px";
showhidediv("hidden");
}
else
showhidediv("visible");
}
lefttime=setTimeout("moveleft()",10);
}

function moveright(){
if (loadedyes){
movestate="right";
if (iedom&&parseInt(cross_scroll.style.left)<0){
cross_scroll.style.left=parseInt(cross_scroll.style.left)+scrollspeed+"px";
showhidediv("hidden");
}
else
showhidediv("visible");
}
righttime=setTimeout("moveright()",10);
}

function motionengine(e){
var mainobjoffset=getposOffset(crossmain, "left"),
dsocx=(window.pageXOffset)? pageXOffset: ietruebody().scrollLeft,
dsocy=(window.pageYOffset)? pageYOffset : ietruebody().scrollTop,
curposy=window.event? event.clientX : e.clientX? e.clientX: "";
curposy-=mainobjoffset-dsocx;
var leftbound=(menuwidth-restarea)/2;
var rightbound=(menuwidth+restarea)/2;
if (curposy>rightbound){
scrollspeed=(curposy-rightbound)/((menuwidth-restarea)/2) * maxspeed;
clearTimeout(righttime);
if (movestate!="left") moveleft();
}
else if (curposy<leftbound){
scrollspeed=(leftbound-curposy)/((menuwidth-restarea)/2) * maxspeed;
clearTimeout(lefttime);
if (movestate!="right") moveright();
}
else
scrollspeed=0;
}

function fillup(){
if (iedom){
crossmain=document.getElementById? document.getElementById("motioncontainer") : document.all.motioncontainer;
if(typeof crossmain.style.maxWidth!=='undefined')
crossmain.style.maxWidth=maxwidth+'px';
menuwidth=crossmain.offsetWidth;
cross_scroll=document.getElementById? document.getElementById("motiongallery") : document.all.motiongallery;
actualwidth=document.getElementById? document.getElementById("trueContainer").offsetWidth : document.all['trueContainer'].offsetWidth;
if (startpos)
cross_scroll.style.left=(menuwidth-actualwidth)/startpos+'px';
crossmain.onmousemove=function(e){
motionengine(e);
}

crossmain.onmouseout=function(e){
//stopmotion(e);

showhidediv("hidden");
}
}
loadedyes=1
}



//deuxieme
var iedom2=document.all||document.getElementById, scrollspeed2=0, movestate2='', actualwidth2='230', cross_scroll2, ns_scroll2, statusdiv2, loadedyes2=0, lefttime2, righttime2;


function ietruebody2(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}

function showhidediv2(what2){
if (endofgallerymsg2!="") {
statusdiv2.style.visibility=what2;
}
}

function getposOffset2(what2, offsettype2){
var totaloffset2=(offsettype2=="left")? what2.offsetLeft: what2.offsetTop;
var parentEl2=what2.offsetParent;
while (parentEl2!=null){
totaloffset2=(offsettype2=="left")? totaloffset2+parentEl2.offsetLeft : totaloffset2+parentEl2.offsetTop;
parentEl2=parentEl2.offsetParent;
}
return totaloffset2;
}

function moveleft2(){
if (loadedyes2){
movestate2="left";
if (iedom2&&parseInt(cross_scroll2.style.left)>(230-actualwidth2)){
cross_scroll2.style.left=parseInt(cross_scroll2.style.left)-scrollspeed2+"px";
showhidediv2("hidden");
}
else
showhidediv2("visible");
}
lefttime2=setTimeout("moveleft2()",10);
}


function moveright2(){
if (loadedyes2){
movestate2="right";
if (iedom2&&parseInt(cross_scroll2.style.left)<0){
cross_scroll2.style.left=parseInt(cross_scroll2.style.left)+scrollspeed2+"px";
showhidediv2("hidden");
}
else
showhidediv2("visible");
}
righttime2=setTimeout("moveright2()",10);
}


function motionengine2(e){
var mainobjoffset2=getposOffset2(crossmain2, "left"),
dsocx2=(window.pageXOffset)? pageXOffset: ietruebody2().scrollLeft,
dsocy2=(window.pageYOffset)? pageYOffset : ietruebody2().scrollTop,
curposy2=window.event? event.clientX : e.clientX? e.clientX: "";
curposy2-=mainobjoffset2-dsocx2;
var leftbound2=(menuwidth2-restarea)/2;
var rightbound2=(menuwidth2+restarea)/2;
if (curposy2>rightbound2){
scrollspeed2=(curposy2-rightbound2)/((menuwidth2-restarea)/2) * maxspeed;
clearTimeout(righttime2);
if (movestate2!="left") moveleft2();
}
else if (curposy2<leftbound2){
scrollspeed2=(leftbound2-curposy2)/((menuwidth2-restarea)/2) * maxspeed;
clearTimeout(lefttime2);
if (movestate2!="right") moveright2();
}
else
scrollspeed2=0;
}


function fillup2(){
if (iedom2){
crossmain2=document.getElementById? document.getElementById("motioncontainer2") : document.all.motioncontainer2;
if(typeof crossmain2.style.maxWidth!=='undefined')
crossmain2.style.maxWidth=maxwidth+'px';
menuwidth2=crossmain2.offsetWidth;
cross_scroll2=document.getElementById? document.getElementById("motiongallery2") : document.all.motiongallery2;
actualwidth2=document.getElementById? document.getElementById("trueContainer2").offsetWidth : document.all['trueContainer2'].offsetWidth;
if (startpos2)
cross_scroll2.style.left=(menuwidth2-actualwidth2)/startpos2+'px';
crossmain2.onmousemove=function(e){
motionengine2(e);
}

crossmain2.onmouseout=function(e){
//stopmotion2(e);

showhidediv2("hidden");
}
}
loadedyes2=1
}

//troisième
var iedom3=document.all||document.getElementById, scrollspeed3=0, movestate3='', actualwidth3='230', cross_scroll3, ns_scroll3, statusdiv3, loadedyes3=0, lefttime3, righttime3;

function ietruebody3(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}

function showhidediv3(what3){
if (endofgallerymsg3!="") {
statusdiv3.style.visibility=what3;
}
}

function getposOffset3(what3, offsettype3){
var totaloffset3=(offsettype3=="left")? what3.offsetLeft: what3.offsetTop;
var parentEl3=what3.offsetParent;
while (parentEl3!=null){
totaloffset3=(offsettype3=="left")? totaloffset3+parentEl3.offsetLeft : totaloffset3+parentEl3.offsetTop;
parentEl3=parentEl3.offsetParent;
}
return totaloffset3;
}

function moveleft3(){
if (loadedyes3){
movestate3="left";
if (iedom3&&parseInt(cross_scroll3.style.left)>(menuwidth3-actualwidth3)){
cross_scroll3.style.left=parseInt(cross_scroll3.style.left)-scrollspeed3+"px";
showhidediv3("hidden");
}
else
showhidediv3("visible");
}
lefttime3=setTimeout("moveleft3()",10);
}


function moveright3(){
if (loadedyes3){
movestate3="right";
if (iedom3&&parseInt(cross_scroll3.style.left)<0){
cross_scroll3.style.left=parseInt(cross_scroll3.style.left)+scrollspeed3+"px";
showhidediv3("hidden");
}
else
showhidediv3("visible");
}
righttime3=setTimeout("moveright3()",10);
}


function motionengine3(e){
var mainobjoffset3=getposOffset3(crossmain3, "left"),
dsocx3=(window.pageXOffset)? pageXOffset: ietruebody3().scrollLeft,
dsocy3=(window.pageYOffset)? pageYOffset : ietruebody3().scrollTop,
curposy3=window.event? event.clientX : e.clientX? e.clientX: "";
curposy3-=mainobjoffset3-dsocx3;
var leftbound3=(menuwidth3-restarea)/2;
var rightbound3=(menuwidth3+restarea)/2;
if (curposy3>rightbound3){
scrollspeed3=(curposy3-rightbound3)/((menuwidth3-restarea)/2) * maxspeed;
clearTimeout(righttime3);
if (movestate3!="left") moveleft3();
}
else if (curposy3<leftbound3){
scrollspeed3=(leftbound3-curposy3)/((menuwidth3-restarea)/2) * maxspeed;
clearTimeout(lefttime3);
if (movestate3!="right") moveright3();
}
else
scrollspeed3=0;
}


function fillup3(){
if (iedom3){
crossmain3=document.getElementById? document.getElementById("motioncontainer3") : document.all.motioncontainer3;
if(typeof crossmain3.style.maxWidth!=='undefined')
crossmain3.style.maxWidth=maxwidth+'px';
menuwidth3=crossmain3.offsetWidth;
cross_scroll3=document.getElementById? document.getElementById("motiongallery3") : document.all.motiongallery3;
actualwidth3=document.getElementById? document.getElementById("trueContainer3").offsetWidth : document.all['trueContainer3'].offsetWidth;
if (startpos3)
cross_scroll3.style.left=(menuwidth3-actualwidth3)/startpos3+'px';
crossmain3.onmousemove=function(e){
motionengine3(e);
}

crossmain3.onmouseout=function(e){
//stopmotion3(e);

showhidediv3("hidden");
}
}
loadedyes3=1
}

//quatrième
var iedom4=document.all||document.getElementById, scrollspeed3=0, movestate4='', actualwidth4='230', cross_scroll4, ns_scroll4, statusdiv4, loadedyes4=0, lefttime4, righttime4;

function ietruebody4(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}

function showhidediv4(what4){
if (endofgallerymsg4!="") {
statusdiv4.style.visibility=what4;
}
}

function getposOffset4(what4, offsettype4){
var totaloffset4=(offsettype4=="left")? what4.offsetLeft: what4.offsetTop;
var parentEl4=what4.offsetParent;
while (parentEl4!=null){
totaloffset4=(offsettype4=="left")? totaloffset4+parentEl4.offsetLeft : totaloffset4+parentEl4.offsetTop;
parentEl4=parentEl4.offsetParent;
}
return totaloffset4;
}

function moveleft4(){
if (loadedyes4){
movestate4="left";
if (iedom4&&parseInt(cross_scroll4.style.left)>(menuwidth4-actualwidth4)){
cross_scroll4.style.left=parseInt(cross_scroll4.style.left)-scrollspeed4+"px";
showhidediv4("hidden");
}
else
showhidediv4("visible");
}
lefttime4=setTimeout("moveleft4()",10);
}


function moveright4(){
if (loadedyes4){
movestate4="right";
if (iedom4&&parseInt(cross_scroll4.style.left)<0){
cross_scroll4.style.left=parseInt(cross_scroll4.style.left)+scrollspeed4+"px";
showhidediv4("hidden");
}
else
showhidediv4("visible");
}
righttime4=setTimeout("moveright4()",10);
}


function motionengine4(e){
var mainobjoffset4=getposOffset4(crossmain4, "left"),
dsocx4=(window.pageXOffset)? pageXOffset: ietruebody4().scrollLeft,
dsocy4=(window.pageYOffset)? pageYOffset : ietruebody4().scrollTop,
curposy4=window.event? event.clientX : e.clientX? e.clientX: "";
curposy4-=mainobjoffset4-dsocx4;
var leftbound4=(menuwidth4-restarea)/2;
var rightbound4=(menuwidth4+restarea)/2;
if (curposy4>rightbound4){
scrollspeed4=(curposy4-rightbound4)/((menuwidth4-restarea)/2) * maxspeed;
clearTimeout(righttime4);
if (movestate4!="left") moveleft4();
}
else if (curposy4<leftbound4){
scrollspeed4=(leftbound4-curposy4)/((menuwidth4-restarea)/2) * maxspeed;
clearTimeout(lefttime4);
if (movestate4!="right") moveright4();
}
else
scrollspeed4=0;
}


function fillup4(){
if (iedom4){
crossmain4=document.getElementById? document.getElementById("motioncontainer4") : document.all.motioncontainer4;
if(typeof crossmain4.style.maxWidth!=='undefined')
crossmain4.style.maxWidth=maxwidth+'px';
menuwidth4=crossmain4.offsetWidth;
cross_scroll4=document.getElementById? document.getElementById("motiongallery4") : document.all.motiongallery4;
actualwidth4=document.getElementById? document.getElementById("trueContainer4").offsetWidth : document.all['trueContainer4'].offsetWidth;
if (startpos4)
cross_scroll4.style.left=(menuwidth4-actualwidth4)/startpos4+'px';
crossmain4.onmousemove=function(e){
motionengine4(e);
}

crossmain4.onmouseout=function(e){
//stopmotion4(e);

showhidediv4("hidden");
}
}
loadedyes4=1
}

//cinquième
var iedom5=document.all||document.getElementById, scrollspeed3=0, movestate5='', actualwidth5='230', cross_scroll5, ns_scroll5, statusdiv5, loadedyes5=0, lefttime5, righttime5;

function ietruebody5(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}

function showhidediv5(what5){
if (endofgallerymsg5!="") {
statusdiv5.style.visibility=what5;
}
}

function getposOffset5(what5, offsettype5){
var totaloffset5=(offsettype5=="left")? what5.offsetLeft: what5.offsetTop;
var parentEl5=what5.offsetParent;
while (parentEl5!=null){
totaloffset5=(offsettype5=="left")? totaloffset5+parentEl5.offsetLeft : totaloffset5+parentEl5.offsetTop;
parentEl5=parentEl5.offsetParent;
}
return totaloffset5;
}

function moveleft5(){
if (loadedyes5){
movestate5="left";
if (iedom5&&parseInt(cross_scroll5.style.left)>(menuwidth5-actualwidth5)){
cross_scroll5.style.left=parseInt(cross_scroll5.style.left)-scrollspeed5+"px";
showhidediv5("hidden");
}
else
showhidediv5("visible");
}
lefttime5=setTimeout("moveleft5()",10);
}


function moveright5(){
if (loadedyes5){
movestate5="right";
if (iedom5&&parseInt(cross_scroll5.style.left)<0){
cross_scroll5.style.left=parseInt(cross_scroll5.style.left)+scrollspeed5+"px";
showhidediv5("hidden");
}
else
showhidediv5("visible");
}
righttime5=setTimeout("moveright5()",10);
}


function motionengine5(e){
var mainobjoffset5=getposOffset5(crossmain5, "left"),
dsocx5=(window.pageXOffset)? pageXOffset: ietruebody5().scrollLeft,
dsocy5=(window.pageYOffset)? pageYOffset : ietruebody5().scrollTop,
curposy5=window.event? event.clientX : e.clientX? e.clientX: "";
curposy5-=mainobjoffset5-dsocx5;
var leftbound5=(menuwidth5-restarea)/2;
var rightbound5=(menuwidth5+restarea)/2;
if (curposy5>rightbound5){
scrollspeed5=(curposy5-rightbound5)/((menuwidth5-restarea)/2) * maxspeed;
clearTimeout(righttime5);
if (movestate5!="left") moveleft5();
}
else if (curposy5<leftbound5){
scrollspeed5=(leftbound5-curposy5)/((menuwidth5-restarea)/2) * maxspeed;
clearTimeout(lefttime5);
if (movestate5!="right") moveright5();
}
else
scrollspeed5=0;
}


function fillup5(){
if (iedom5){
crossmain5=document.getElementById? document.getElementById("motioncontainer5") : document.all.motioncontainer5;
if(typeof crossmain5.style.maxWidth!=='undefined')
crossmain5.style.maxWidth=maxwidth+'px';
menuwidth5=crossmain5.offsetWidth;
cross_scroll5=document.getElementById? document.getElementById("motiongallery5") : document.all.motiongallery5;
actualwidth5=document.getElementById? document.getElementById("trueContainer5").offsetWidth : document.all['trueContainer5'].offsetWidth;
if (startpos5)
cross_scroll5.style.left=(menuwidth5-actualwidth5)/startpos5+'px';
crossmain5.onmousemove=function(e){
motionengine5(e);
}

crossmain5.onmouseout=function(e){
//stopmotion5(e);

showhidediv5("hidden");
}
}
loadedyes5=1
}

//sixieme
var iedom6=document.all||document.getElementById, scrollspeed3=0, movestate6='', actualwidth6='230', cross_scroll6, ns_scroll6, statusdiv6, loadedyes6=0, lefttime6, righttime6;

function ietruebody6(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}

function showhidediv6(what6){
if (endofgallerymsg6!="") {
statusdiv6.style.visibility=what6;
}
}

function getposOffset6(what6, offsettype6){
var totaloffset6=(offsettype6=="left")? what6.offsetLeft: what6.offsetTop;
var parentEl6=what6.offsetParent;
while (parentEl6!=null){
totaloffset6=(offsettype6=="left")? totaloffset6+parentEl6.offsetLeft : totaloffset6+parentEl6.offsetTop;
parentEl6=parentEl6.offsetParent;
}
return totaloffset6;
}

function moveleft6(){
if (loadedyes6){
movestate6="left";
if (iedom6&&parseInt(cross_scroll6.style.left)>(menuwidth6-actualwidth6)){
cross_scroll6.style.left=parseInt(cross_scroll6.style.left)-scrollspeed6+"px";
showhidediv6("hidden");
}
else
showhidediv6("visible");
}
lefttime6=setTimeout("moveleft6()",10);
}


function moveright6(){
if (loadedyes6){
movestate6="right";
if (iedom6&&parseInt(cross_scroll6.style.left)<0){
cross_scroll6.style.left=parseInt(cross_scroll6.style.left)+scrollspeed6+"px";
showhidediv6("hidden");
}
else
showhidediv6("visible");
}
righttime6=setTimeout("moveright6()",10);
}


function motionengine6(e){
var mainobjoffset6=getposOffset6(crossmain6, "left"),
dsocx6=(window.pageXOffset)? pageXOffset: ietruebody6().scrollLeft,
dsocy6=(window.pageYOffset)? pageYOffset : ietruebody6().scrollTop,
curposy6=window.event? event.clientX : e.clientX? e.clientX: "";
curposy6-=mainobjoffset6-dsocx6;
var leftbound6=(menuwidth6-restarea)/2;
var rightbound6=(menuwidth6+restarea)/2;
if (curposy6>rightbound6){
scrollspeed6=(curposy6-rightbound6)/((menuwidth6-restarea)/2) * maxspeed;
clearTimeout(righttime6);
if (movestate6!="left") moveleft6();
}
else if (curposy6<leftbound6){
scrollspeed6=(leftbound6-curposy6)/((menuwidth6-restarea)/2) * maxspeed;
clearTimeout(lefttime6);
if (movestate6!="right") moveright6();
}
else
scrollspeed6=0;
}


function fillup6(){
if (iedom6){
crossmain6=document.getElementById? document.getElementById("motioncontainer6") : document.all.motioncontainer6;
if(typeof crossmain6.style.maxWidth!=='undefined')
crossmain6.style.maxWidth=maxwidth+'px';
menuwidth6=crossmain6.offsetWidth;
cross_scroll6=document.getElementById? document.getElementById("motiongallery6") : document.all.motiongallery6;
actualwidth6=document.getElementById? document.getElementById("trueContainer6").offsetWidth : document.all['trueContainer6'].offsetWidth;
if (startpos6)
cross_scroll6.style.left=(menuwidth6-actualwidth6)/startpos6+'px';
crossmain6.onmousemove=function(e){
motionengine6(e);
}

crossmain6.onmouseout=function(e){
//stopmotion6(e);

showhidediv6("hidden");
}
}
loadedyes6=1
}

// défilement + affichage

/*function stopmotion(e){
if (!window.opera||(window.opera&&e.relatedTarget!==null))
if ((window.event&&!crossmain.contains(event.toElement)) || (e && e.currentTarget && e.currentTarget!= e.relatedTarget && !contains_ns6(e.currentTarget, e.relatedTarget))){
clearTimeout(lefttime);
clearTimeout(righttime);
movestate="";
}
function stopmotion2(e){
if (!window.opera||(window.opera&&e.relatedTarget!==null))
if ((window.event&&!crossmain2.contains(event.toElement)) || (e && e.currentTarget && e.currentTarget!= e.relatedTarget && !contains_ns6(e.currentTarget, e.relatedTarget))){
clearTimeout(lefttime2);
clearTimeout(righttime2);
movestate2="";
}
function stopmotion4(e){
if (!window.opera||(window.opera&&e.relatedTarget!==null))
if ((window.event&&!crossmain4.contains(event.toElement)) || (e && e.currentTarget && e.currentTarget!= e.relatedTarget && !contains_ns6(e.currentTarget, e.relatedTarget))){
clearTimeout(lefttime4);
clearTimeout(righttime4);
movestate4="";
}
function stopmotion5(e){
if (!window.opera||(window.opera&&e.relatedTarget!==null))
if ((window.event&&!crossmain5.contains(event.toElement)) || (e && e.currentTarget && e.currentTarget!= e.relatedTarget && !contains_ns6(e.currentTarget, e.relatedTarget))){
clearTimeout(lefttime5);
clearTimeout(righttime5);
movestat5e="";
}
function stopmotion6(e){
if (!window.opera||(window.opera&&e.relatedTarget!==null))
if ((window.event&&!crossmain6.contains(event.toElement)) || (e && e.currentTarget && e.currentTarget!= e.relatedTarget && !contains_ns6(e.currentTarget, e.relatedTarget))){
clearTimeout(lefttime6);
clearTimeout(righttime6);
movestate6="";
}         */
function displayPics2()
{
	var photos = document.getElementById('galerie_mini2') ;
	var liens = photos.getElementsByTagName('a') ;
	var big_photo = document.getElementById('big_pict2') ;
	var titre_photo = document.getElementById('photo2').getElementsByTagName('dt')[0] ;
	
	for (var i = 0 ; i < liens.length ; ++i) {
		liens[i].onclick = function() {
			big_photo.src = this.href;
			big_photo.alt = this.title;
			titre_photo.firstChild.nodeValue = this.title;
			return false;
		};
	}
}


function displayPics4()
{
	var photos = document.getElementById('galerie_mini4') ;
	var liens = photos.getElementsByTagName('a') ;
	var big_photo = document.getElementById('big_pict4') ;
	var titre_photo = document.getElementById('photo4').getElementsByTagName('dt')[0] ;
	
	for (var i = 0 ; i < liens.length ; ++i) {
		liens[i].onclick = function() {
			big_photo.src = this.href;
			big_photo.alt = this.title;
			titre_photo.firstChild.nodeValue = this.title;
			return false;
		};
	}
}

function displayPics5()
{
	var photos = document.getElementById('galerie_mini5') ;
	var liens = photos.getElementsByTagName('a') ;
	var big_photo = document.getElementById('big_pict5') ;
	var titre_photo = document.getElementById('photo5').getElementsByTagName('dt')[0] ;
	
	for (var i = 0 ; i < liens.length ; ++i) {
		liens[i].onclick = function() {
			big_photo.src = this.href;
			big_photo.alt = this.title;
			titre_photo.firstChild.nodeValue = this.title;
			return false;
		};
	}
}

function displayPics6()
{
	var photos = document.getElementById('galerie_mini6') ;
	var liens = photos.getElementsByTagName('a') ;
	var big_photo = document.getElementById('big_pict6') ;
	var titre_photo = document.getElementById('photo6').getElementsByTagName('dt')[0] ;
	
	for (var i = 0 ; i < liens.length ; ++i) {
		liens[i].onclick = function() {
			big_photo.src = this.href;
			big_photo.alt = this.title;
			titre_photo.firstChild.nodeValue = this.title;
			return false;
		};
	}
}

window.onload = function() {


displayPics2();

displayPics4();
displayPics5();
displayPics6();

fillup2();

fillup4();
fillup5();
fillup6();
}




