//Javascript doc

var theImages = new Array()

//Random-loading images
theImages[0] = 'home/Sequence-01.swf' // replace with names of images
theImages[1] = 'home/Sequence-02.swf' // replace with names of images
theImages[2] = 'home/Sequence-03.swf' // replace with names of images
theImages[3] = 'home/Sequence-04.swf' // replace with names of images
var obstr = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="564" height="604">		<param name="movie" value="';
var obstr2='"> 		<param name="quality" value="high">		<param name="menu" value="false"><param name="loop" value="true">		<param name="wmode" value="transparent">		<!--[if !IE]> <-->		<object data="';

var obstr3='"width="564" height="604" type="application/x-shockwave-flash"> <param name="quality" value="high"> <param name="loop" value="true"><param name="menu" value="false"> <param name="wmode" value="transparent">		 <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer"> FAIL (the browser should render some flash content, not this).		</object>		<!--> <![endif]-->	    </object>';
var j = 0
var p = theImages.length;
var preBuffer = new Array()

for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));

function showImage(){
if(whichImage==0){
document.write(obstr + theImages[whichImage] + obstr2 + theImages[whichImage] + obstr3 );
}
else if(whichImage==1){
document.write(obstr + theImages[whichImage] + obstr2 + theImages[whichImage] + obstr3 );
}
else if(whichImage==2){
document.write(obstr + theImages[whichImage] + obstr2 + theImages[whichImage] + obstr3 );
}
else if(whichImage==3){
document.write(obstr + theImages[whichImage] + obstr2 + theImages[whichImage] + obstr3 );
}
else if(whichImage==4){
document.write(obstr + theImages[whichImage] + obstr2 + theImages[whichImage] + obstr3 );
}

}

//-coded for sci home page randomizing swf feb 02 08/tj