var pic = 1; var link = 1; var numpics = 4; day = new Date(); seed = day.getTime(); ran = parseInt(((seed - (parseInt(seed/1000,10) * 1000))/10)/100*numpics + 1,10); if (ran == (1)) {pic=("/img/titel/homepage/home1.jpg")} if (ran == (2)) {pic=("/img/titel/homepage/home2.jpg")} if (ran == (3)) {pic=("/img/titel/homepage/home3.jpg")} if (ran == (4)) {pic=("/img/titel/homepage/home4.jpg")} document.write("")