uagent = window.navigator.userAgent.toLowerCase();IEB=(uagent.indexOf('msie') != -1)?true:false;var scompat = document.compatMode;var homeintcomplate=0;homeimgarr=new Array();homealtarr=new Array();homelinkarr=new Array();hometargetarr=new Array();hometitarr=new Array();homedesarr=new Array();homeimgarr[0]="";homealtarr[0]="";homelinkarr[0]="";hometargetarr[0]="";hometitarr[0]="";homedesarr[0]="";homeimgarr[1]="IMG_4876.JPG";homealtarr[1]="";homelinkarr[1]="";hometargetarr[1]="_self";hometitarr[1]="Image1";homedesarr[1]="Vue du fort du mont Valerien depuis le bas de l'esplanade face au monument aux morts";homeimgarr[2]="IMG_4886.JPG";homealtarr[2]="";homelinkarr[2]="";hometargetarr[2]="_self";hometitarr[2]="Image2";homedesarr[2]="";homeimgarr[3]="IMG_4894.JPG";homealtarr[3]="";homelinkarr[3]="";hometargetarr[3]="_self";hometitarr[3]="Image 3";homedesarr[3]="Blablabla... Voilą, encore du texte sur une image qui va bien !";homeimgarr[4]="IMG_4933.JPG";homealtarr[4]="Tooltip";homelinkarr[4]="";hometargetarr[4]="_self";hometitarr[4]="image4";homedesarr[4]="Description Text";var gnrated='';var homestepcount=20;var homecurrstep=10;var hometimeo=null;var homehorvert=0;var homellllll=0;var homelllllll=0;var homellllllll=0;var homell=new Array();var homelll=new Array();var homellll=new Array();var homestartposx=new Array();var homelllll=new Array();var i=0;var homelllllllll=0;var homeDescCalcLeftBir=0;var homeDescCalcLeft=0;var homeDescCalcWidth=0;var homeDescCalcHeight=0;var homeDescCalcIcWidth=0;var homeDescCalcIcHeight=0;var homehpiece='';var homeds="";var homeIEDescOpacity=100;var homeFFOpacity=1.0;var homeDescFadeEffectTimer=null;var homeAutoPlayTimer=null;var homeAutoPlayCurrent=1;var homeicerdemi=0;function homeWriteDesc(){ if(homelinkarr[i].length>2){homeds=homeds+'';} homeds=homeds+''; homeds=homeds+'
'; homeds=homeds+'
'; homeds=homeds+''+hometitarr[i]+''; if(hometitarr[i].length>0){homeds=homeds+'
';} homeds=homeds+''+homedesarr[i]; homeds=homeds+'
'; homeds=homeds+'
'; if(homelinkarr[i].length>2){homeds=homeds+'';}}function homeinit_doc(fstr,hormuvertmi){ homeDescCalcLeftBir=5; if((0==0)&&(homehorvert==0)) { homeDescCalcLeft=5+2; } else { homeDescCalcLeft=5; } if(0==0) { homeDescCalcWidth=640-5-5; } else { homeDescCalcWidth=920-5-5; } if((homehorvert==1)&&(0==1)) { homeDescCalcHeight=400-300-5; } else { homeDescCalcHeight=400-300-5; } if((IEB==true)&&(scompat == "BackCompat" )) { homeDescCalcIcWidth=homeDescCalcWidth; homeDescCalcIcHeight=homeDescCalcHeight; } else { homeDescCalcIcWidth=homeDescCalcWidth-2*(2)-2*(3); homeDescCalcIcHeight=homeDescCalcHeight-2*(2)-2*(3); } homefolderset=fstr; var tmpleftpad=0; var tmptoppad=0; homehpiece=homehpiece+'
'; homehpiece=homehpiece+'
'; if(0==1) { for(i=1;i<=4;i++) { homeWriteDesc(); } } for(i=1;i<=4;i++) { if(homehorvert==0) { if(i==1){tmpleftpad=0;}else{tmpleftpad=2;} tmptoppad=0; } else { tmpleftpad=0; if(i==1){tmptoppad=0;}else{tmptoppad=2;} } gnrated=gnrated+'
'; if(0==0) { homeds=""; homeWriteDesc(); gnrated=gnrated+homeds; } gnrated=gnrated+'
'; } homehpiece=homehpiece+gnrated; if(0==1) { homehpiece=homehpiece+homeds; } homehpiece=homehpiece+'
'; homehpiece=homehpiece+'
'; document.write(''+homehpiece); setTimeout("homeinit_position("+parseInt(hormuvertmi)+")",50);}function homeinit_position(hv){ homehorvert=hv; for(i=1;i<=4;i++) { homell[i]=document.getElementById('homepo'+i); homelll[i]=document.getElementById('homeadesc'+i); if((homell[i]==null)||(homelll[i]==null)) { setTimeout("homeinit_position("+parseInt(hv)+")",200); return; } } if(homehorvert==0) { homellllll=parseInt( (920-((4-1)*2)) /(4)); homelllllll=homellllll+2; homellllllll=parseInt(((920-640)/(4-1))); } else { homellllll=parseInt( (280-((4-1)*2)) /(4)); homelllllll=homellllll+2; homellllllll=parseInt(((280-400)/(4-1))); } for(i=1;i<=4;i++) { homell[i]=document.getElementById('homepo'+i); sx=(homelllllll*(i-1))-2; if(homehorvert==0) { if(i==1) { homell[i].style.left="0px"; } else { homell[i].style.left=""+sx+"px"; } } else { if(i==1) { homell[i].style.top="0px"; } else { homell[i].style.top=""+sx+"px"; } } homestartposx[i]=sx; homelllll[i]=homestartposx[i]; if(i==1) { homelll[i].style.left=""+homeDescCalcLeftBir+"px"; } else { homelll[i].style.left=""+homeDescCalcLeft+"px"; } } homeintcomplate=1; if(0==1) { homeDoAutoPlay(); }}function homeDoAutoPlay(){ homemouse_over(homeAutoPlayCurrent); homeAutoPlayCurrent=homeAutoPlayCurrent+1; if(homeAutoPlayCurrent>4) { homeAutoPlayCurrent=1; } homeAutoPlayTimer=setTimeout("homeDoAutoPlay()",4000);}function homedo_FadeAnim(){ if(homelllllllll<1) { return; } homeIEDescOpacity=homeIEDescOpacity+5; homeFFOpacity=homeFFOpacity+0.05; if(IEB==true) { if(homeIEDescOpacity>100) { homeIEDescOpacity=100; return; } } else { if(homeFFOpacity>1.00) { homeFFOpacity=1.00; return; } } if(IEB==true) { homelll[homelllllllll].filters.item(0).opacity=homeIEDescOpacity; } else { homelll[homelllllllll].style.opacity = homeFFOpacity; } homeDescFadeEffectTimer=setTimeout("homedo_FadeAnim()",20);}function homedo_anim(){ if(homecurrstep<=0) { if(homelllllllll>=1) { if(homehorvert==0) { if(homelllllllll==1) { homelll[homelllllllll].style.left=""+homeDescCalcLeftBir+"px"; } else { homelll[homelllllllll].style.left=""+homeDescCalcLeft+"px"; } } else { if(0==0) { homelll[homelllllllll].style.left=""+(homeDescCalcLeft+parseInt(homell[homelllllllll].style.left))+"px"; var DesvertTop=0; if((homelllllllll>1) &&(homelllllllll!=4)){DesvertTop=300+2;}else{DesvertTop=300;} homelll[homelllllllll].style.top=""+(DesvertTop)+"px"; } else { homelll[homelllllllll].style.left=""+(homeDescCalcLeft)+"px"; homelll[homelllllllll].style.top=""+300+"px"; } } if((hometitarr[homelllllllll].length>0)||(homedesarr[homelllllllll].length>0)) { if(1==2) { homeIEDescOpacity=0; homeFFOpacity=0.00; homedo_FadeAnim(); homelll[homelllllllll].style.visibility="visible"; } else { homelll[homelllllllll].style.visibility="visible"; } } else { homelll[homelllllllll].style.visibility="hidden"; } } return; } for(i=2;i<=4;i++) { homelllll[i] = parseInt(homelllll[i])+parseInt((homellll[i]-homelllll[i])/homecurrstep); if(homehorvert==0) { homell[i].style.left=""+homelllll[i]+"px"; } else { homell[i].style.top=""+homelllll[i]+"px"; } } if((1==1)&&(homelllllllll>=1)) { var dtop=0; if((hometitarr[homelllllllll].length>0)||(homedesarr[homelllllllll].length>0)) { homelll[homelllllllll].style.visibility="visible"; } else { homelll[homelllllllll].style.visibility="hidden"; } dtop= 300+ parseInt(homeDescCalcHeight- ((homeDescCalcHeight/homestepcount)*(homestepcount-(homecurrstep-1))) ); homelll[homelllllllll].style.top=""+dtop+"px"; } homecurrstep--; setTimeout("homedo_anim()",20);}function homereposition(g){ for(i=1;i<=4;i++) { if(i<=g) { if(i==1) { homellll[i]=0; } else { homellll[i]=parseInt(((i-1)*homellllllll)-2); } } else { oncekix=0; for(j=1;j<(i-1);j++) { oncekix=oncekix+homellllllll; } if(homehorvert==0) { homellll[i]=parseInt(((640)+(oncekix))); } else { homellll[i]=parseInt(((400)+(oncekix))); } } } if((homehorvert==0)&&(4==g)) { var bul1=homellll[4]+2+640; var bul2=920-bul1; homellll[4]=homellll[4]+bul2; } if((homehorvert==1)&&(4==g)) { var bul1=homellll[4]+2+400; var bul2=400-bul1; homellll[4]=homellll[4]+bul2; } homecurrstep=homestepcount; homedo_anim();}function homemouse_over(g){ if(homeintcomplate==0){return;} if(g==homelllllllll){return;} homelllllllll=g; clearTimeout(hometimeo); if(0==1){if(homeicerdemi==1){clearTimeout(homeAutoPlayTimer);}} for(i=1;i<=4;i++) { if(i!=g) { homelll[i].style.visibility="hidden"; if(IEB==true) { homelll[i].filters.item(0).opacity=100; } else { homelll[i].style.opacity = 1.0; } } } homereposition(g);}function homeoutall(){ homeicerdemi=1; clearTimeout(homeAutoPlayTimer); clearTimeout(hometimeo);}function homemouse_divout2(){ homeicerdemi=0; clearTimeout(hometimeo); if(0==1) { clearTimeout(homeAutoPlayTimer); homeAutoPlayCurrent=1; homeDoAutoPlay(); } else { for(i=1;i<=4;i++) { homelll[i].style.visibility="hidden"; } for(i=1;i<=4;i++) { sx=(homelllllll*(i-1))-2; if(i==1) { homellll[i]=0; } else { homellll[i]=sx; } } homelllllllll=-1; homecurrstep=homestepcount; homedo_anim(); }}function homemouse_divout(){ clearTimeout(hometimeo); hometimeo=setTimeout("homemouse_divout2()",300);}