Correcção: já consegui.
<script language="Javascript">
<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com
var currentdate = 0
var core = 0
function StringArray (n) {
this.length = n;
for (var i =1; i <= n; i++) {
this[i] = ' '
}
}
image = new StringArray(10)
image[0] = '0.swf'
image[1] = '1.swf'
image[2] = '2.swf'
image[3] = '3.swf'
image[4] = '4.swf'
image[5] = '5.swf'
image[6] = '6.swf'
image[7] = '7.swf'
image[8] = '8.swf'
image[9] = '9.swf'
var ran = 60/image.length
function ranimage() {
currentdate = new Date()
core = currentdate.getSeconds()
core = Math.floor(core/ran)
return(image[core])
}
document.write("<embed src='" +ranimage()+ "' quality='high' bgcolor='#ffffff' width='550' height='400' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />")
//-->
</script>O problema eram as aspas dentro da TAG <embed>, como na parte document.write esta usa aspas para imprimir o seu conteúdo quando eu colocava as aspas referentes à TAG <embed> era como se tivesse fechado a parte do document.write. Então substituí essas aspas por '

Agora podemos configurar a array mediante o número de SWFs que tivermos:
image = new StringArray(10)
image[0] = '0.swf'
image[1] = '1.swf'
image[2] = '2.swf'
image[3] = '3.swf'
image[4] = '4.swf'
image[5] = '5.swf'
image[6] = '6.swf'
image[7] = '7.swf'
image[8] = '8.swf'
image[9] = '9.swf'Se tivermos só 2 SWF mudamos os parâmetros da array para 2 (onde diz 10 entre parentisis) e colocamos só dois itens na array:
image = new StringArray(2)
image[0] = '0.swf'
image[1] = '1.swf'E está a bombar
