// Declarations // Functions function Initpage() { getimage(14); setTimeout('Initpage(14)', 10000); } function Randomize(maxValue) { return Math.floor(Math.random() * maxValue) +1 } function getimage(numbofimg) { imgnr = Randomize(numbofimg) if (imgnr > 9 ) { document.images['thepic'].src = '../images/front/img' + imgnr + '.jpg'; } else { document.images['thepic'].src = '../images/front/img0' + imgnr + '.jpg'; } } function openwin(page) { var win = window.open(page,'win','width=620,height=480,toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=0'); } var counter = 0; function reLoad() { if (counter = 1) { if (navigator.appName == "Netscape") {parent.top.location.href='spejdercenter/index.html';} else {parent.top.location='spejdercenter/index.html';} }; counter = counter + 1; } function waitTenSeconds() { setTimeout('getimages(14)', 100); }