myPortraits=new Array() myNames=new Array() myPortraits[0]="../images/Bio/thumbs/ALECHINSKY_Pierre.jpg" myNames[0]="Pierre ALECHINSKY" myPortraits[1]="../images/Bio/thumbs/ALECHINSKY_Pierre_02.jpg" myNames[1]="ALECHINSKY Pierre" myPortraits[2]="../images/Bio/thumbs/ALECHINSKY_Pierre_03.jpg" myNames[2]="ALECHINSKY Pierre" myPortraits[3]="../images/Bio/thumbs/ALECHINSKY_Pierre_04.jpg" myNames[3]="ALECHINSKY Pierre" myPortraits[4]="../images/Bio/thumbs/ALECHINSKY_Pierre_05.jpg" myNames[4]="ALECHINSKY Pierre" myPortraits[5]="../images/Bio/thumbs/DELAUNAY_Sonia.jpg" myNames[5]="Sonia DELAUNAY" myPortraits[6]="../images/Bio/thumbs/DELAUNAY_Sonia_01.jpg" myNames[6]="DELAUNAY Sonia" myPortraits[7]="../images/Bio/thumbs/DELAUNAY_Sonia_02.jpg" myNames[7]="DELAUNAY Sonia" myPortraits[8]="../images/Bio/thumbs/HARTUNG_Hans.jpg" myNames[8]="Hans HARTUNG" myPortraits[9]="../images/Bio/thumbs/HARTUNG_Hans_01.jpg" myNames[9]="HARTUNG Hans" myPortraits[10]="../images/Bio/thumbs/HARTUNG_Hans_02.jpg" myNames[10]="HARTUNG Hans" myPortraits[11]="../images/Bio/thumbs/TOFFOLI_Louis.jpg" myNames[11]="Louis TOFFOLI" imagePcounter=myPortraits.length -1; function change_portrait() { no=Math.random()*imagePcounter; my_no=Math.round(no); my_portrait.src=myPortraits[my_no]; my_Name.innerHTML=myNames[my_no]; } function portrait_interval() { setInterval("change_portrait()", 8000); }