// Program zum Auswählen und Wechseln der Fotos im Kopf der Seite
// Copyright 2005 Andreas Siegel

thisPix = 0
imgCt = myPix.length

function choosePic() {
	if (document.images) {
		randomNum = Math.floor((Math.random() * imgCt))
                 document.myPicture.src = myPix[randomNum]
                 setTimeout("choosePic()",timeDelay * 1000)
         }
}

function rotate() {
	if (document.images) {
                 thisPix++
                 if (thisPix == imgCt) {
                 thisPix = 0
         }
         document.myPicture.src = myPix[thisPix]
         setTimeout("rotate()",timeDelay * 1000)
         }
}
