var delay = 8000;  // rotation delay, in milliseconds// define imagesvar images = new Array( 'cargill.png','rca.gif','wells.gif','mbna.gif','first.gif','cic.gif','alacritech.gif','pierre.gif','commerx.jpg' );// define links (make sure these are in the same order as the images array above)var links = new Array( 'http://www.reedtm.com/newsite/clientsr3.html', 'http://www.reedtm.com/newsite/clientsr.html','http://www.reedtm.com/newsite/clientsf.html', 'http://www.reedtm.com/newsite/clientsf1.html', 'http://www.reedtm.com/newsite/clientsf2.html','http://www.reedtm.com/newsite/clientsf3.html','http://www.reedtm.com/newsite/clientsr1.html', 'http://www.reedtm.com/newsite/clientsr2.html','http://www.reedtm.com/' );var path = 'images/logos/';  // relative path, from site root// start 'er uprotate();// pick a random image (and associated link), and assign them to their respective elementsfunction rotate(){	var index, newImage;	var oldImage = document.getElementById( "client_logo" ).getAttribute( "src" );	do{ // make sure we don't repeat images, if there's more than one in the array		index = Math.floor( Math.random() * images.length );		newImage = path + images[index];	} while( images.length > 1 && newImage == oldImage )	document.getElementById( "client_logo" ).setAttribute( "src", newImage );	document.getElementById( "client_link" ).setAttribute( "href", links[index] );	setTimeout( "rotate()", delay );}
