// JavaScript Document
function randomImage()
{
var chosenImage=new Array();

// filenames of images in this array
chosenImage[1]="rotate1.jpg";
chosenImage[2]="rotate2.jpg";
chosenImage[3]="rotate3.jpg";
chosenImage[4]="rotate4.jpg";
chosenImage[5]="rotate5.jpg";
chosenImage[6]="rotate6.jpg";
chosenImage[7]="rotate7.jpg";
chosenImage[8]="rotate8.jpg";
chosenImage[9]="rotate9.jpg";
chosenImage[10]="rotate10.jpg";
chosenImage[11]="rotate11.jpg";
chosenImage[12]="rotate12.jpg";
chosenImage[13]="rotate13.jpg";

var chosenAltCopy=new Array();

//title and alt copy for images goes here
chosenAltCopy[1]="kids with blocks on a light table";
chosenAltCopy[2]="two girls with paper toy";
chosenAltCopy[3]="teen boys in science class";
chosenAltCopy[4]="three students stringing musical instruments";
chosenAltCopy[5]="puzzle on the floor";
chosenAltCopy[6]="reading group with Carol Tomlinson";
chosenAltCopy[7]="writing interview questions";
chosenAltCopy[8]="printing tie-dye t-shirts";
chosenAltCopy[9]="preschooler at the sink";
chosenAltCopy[10]="three readers with storybooks";
chosenAltCopy[11]="measuring height with a ruler";
chosenAltCopy[12]="three girls with paper toys";
chosenAltCopy[13]="computer lab";

var getRan=Math.floor(Math.random()*chosenImage.length); if (getRan==0)getRan=1;

document.write('<img src=\"http://www.diffcentral.com/images/rotate/'+chosenImage[getRan]+'"alt=\"'+chosenAltCopy[getRan]+'\" width=\"300\" height=\"120\"class=\"imageBorder\" />');

}
/*From: http://friendsofed.infopop.net/4/OpenTopic?a=tpc&s=989094322&f=8033053165&m=4611009241

<script src="randomContent.js" type="text/javascript"></script> -- put this in the head?
<script type="text/javascript">randomContent();</script>  -- put this in the body 


**Supposed corrected version??**
function randomContent()
{
var chosenImage=new Array();
// filenames of images in this array
chosenImage[1]="stream.jpg";
chosenImage[2]="river.jpg";
chosenImage[3]="road.jpg";
var chosenAltCopy=new Array();
// title and alt copy for images goes here
chosenAltCopy[1]="A photo of a stream";
chosenAltCopy[2]="A photo of a river";
chosenAltCopy[3]="A photo of a road";

var getRan=Math.floor(Math.random()*chosenImage.length);
if (getRan==0)
getRan=1;

document.write('<img src=\"assets/random_images/'+chosenImage[getRan]+'"
alt=\"'+chosenAltCopy[getRan]+'\" width=\"300\" height=\"300\"
class=\"imageBorder\" />');
} */