imges=new Array(
'photos/gite-perche-fleur-pommier.jpg',
'photos/gite-pelouse-entree.jpg',
'photos/gite-perche-chambre-provence-lit3.jpg',
'photos/gite-perche-piscine-barbecue.jpg',
'photos/gite-perche-arcade-potager.jpg',
'photos/salon-cheminee-gite.jpg',
'photos/fournil-jardin.jpg',
'photos/chambre-bureau-tradition-charme.jpg',
'photos/gite-perche-jardin-tulipes.jpg',
'photos/chambre-bleue-lit-confort.jpg',
'photos/gite-perche-enfants-jardin.jpg',
'photos/gite-perche-facade-fermette.jpg',
'photos/barbecue-jardin.jpg',
'photos/gite-perche-velo-jardin.jpg',
'photos/gite-perche-jardin-colombages.jpg',
'photos/gite-perche-balancoire-jardin.jpg',
'photos/gite-perche-piscine-vue.jpg',
'photos/gite-perche-fournil.jpg',
'photos/gite-perche-bergerie.jpg',
'photos/gite-perche-fleurs-printemps.jpg',
'photos/gite-perche-chaise-jardin.jpg',
'photos/gite-perche-facade-laiterie.jpg',
'photos/gite-perche-printemps-velo.jpg',
'photos/gite-perche-tulipes.jpg',
'photos/gite-perche-jardin-fleurs.jpg'
);
divid="slideshow";picwid=617;pichei=330;backgr="#FFFFFF";sdur=4;fdur=1;steps=20;startwhen=1;ftim=fdur*1000/steps;stim=sdur*1000;emax=imges.length;tp="<div style='position:absolute;'>";for(e=1;e<=emax;e++){theid="img"+e;thesrc=imges[e-1];tp=tp+"<div id='"+theid+"'><img src='"+thesrc+"' border='0'/></div>";}
tp=tp+"</div>";document.write("<style type='text/css'>");for(b=1;b<=emax;b++){thestylid="img"+b;thez=1;thevis='hidden';if(b<=1){thez=2;thevis='visible';}
document.write("#"+thestylid+" {position:absolute;left:0;top:0;width:"+picwid+"px;height:"+pichei+"px;background-color:"+backgr+";visibility:"+thevis+";z-index:"+thez+";}");}
document.write("</style>");function myfade(){parr=new Array();for(a=1;a<=emax;a++){idakt="img"+a;paktidakt=document.getElementById(idakt);ie5exep=new Array(paktidakt);parr=parr.concat(ie5exep);}
i=1;u=0;slide(i);}
function slide(numa){ptofade=parr[numa-1];if(numa<=emax){pnext=parr[numa];}
if(numa==emax){pnext=parr[0];}
pnext.style.visibility="visible";pnext.style.filter="Alpha(Opacity=100)";pnext.style.MozOpacity=1;pnext.style.opacity=1;ptofade.style.filter="Alpha(Opacity=100)";ptofade.style.MozOpacity=1;ptofade.style.opacity=1;factor=100/steps;slidenow();}
function slidenow(){check1=ptofade.style.MozOpacity;maxalpha=(100-factor*u)/100*105;if(check1<=maxalpha/100){u=u+1;}
curralpha=100-factor*u;ptofade.style.filter="Alpha(Opacity="+curralpha+")";ptofade.style.MozOpacity=curralpha/100;ptofade.style.opacity=curralpha/100;if(u<steps){window.setTimeout("slidenow()",ftim);}
if(u>=steps&&i<emax){ptofade.style.visibility="hidden";ptofade.style.zIndex=1;pnext.style.zIndex=2;i=i+1;u=0;window.setTimeout("slide(i)",stim);}
if(u>=steps&&i>=emax){ptofade.style.visibility="hidden";ptofade.style.zIndex=1;pnext.style.zIndex=2;i=1;u=0;window.setTimeout("slide(i)",stim);}}
function shownow(){document.getElementById(divid).innerHTML=tp;if(startwhen){window.setTimeout("myfade()",stim);}}
onload=shownow;
