
function makeArray(len) {
    for (var i = 0; i < len; i++) this[i] = null;
this.length = len;
}

photos = new makeArray(5);
    photos[0]='<img src="img/front_main.jpg" width="517" height="231" border=0 alt="">'; 
    photos[1]='<img src="img/front_main2.jpg" width="517" height="231" border=0 alt="">'; 
    photos[2]='<img src="img/front_main3.jpg" width="517" height="231" border=0 alt="">'; 
    photos[3]='<img src="img/front_main4.jpg" width="517" height="231" border=0 alt="">'; 
    photos[4]='<img src="img/front_main5.jpg" width="517" height="231" border=0 alt="">'; 

function rand(n) {

now = new Date();

seed = (0x015a4e35 * (now.getTime() % 0xffffffff)) % 0x7fffffff;
return (seed >> 16) % n;
}