﻿//set starting point and end point.  This one is set to start at photo one
//and rotate to photo six.

//To make any changes in the rotation change the number's below, to the captions, and to the photo locations

var n = 1; 
var r = 5;  
n = (Math.round(Math.random()*r) + 1);

//holds captions for future use
var imageCaption = new Array 

	//change caption names here
	
	imageCaption[1]="William R. Jentes, \'56";
	imageCaption[2]="Branch Rickey, \'11";
	imageCaption[3]="Jeffrey Liss, \'75";
	imageCaption[4]="Robert H. Gorlin, \'77";
	imageCaption[5]="Sam Zell, \'66";
	imageCaption[6]="Stanley S. Schwartz, \'55";


	
var imageName = new Array

	//change photo locations here
	
	imageName[1] ="/campaign/PublishingImages/photosRotate/Jentes.jpg";
	imageName[2] ="/campaign/PublishingImages/photosRotate/Rickey.jpg";
	imageName[3] ="/campaign/PublishingImages/photosRotate/Liss.jpg";
	imageName[4] ="/campaign/PublishingImages/photosRotate/Gorlin.jpg";
	imageName[5] ="/campaign/PublishingImages/photosRotate/Zell.jpg";
	imageName[6] ="/campaign/PublishingImages/photosRotate/schwartz.jpg";

	

var link = new Array

	//change link location here
	
	link[1] ="/campaign/Pages/Jentes.aspx";
	link[2] ="/campaign/Pages/Rickey.aspx";
	link[3] ="/campaign/Pages/Liss.aspx";
	link[4] ="/campaign/Pages/Gorlin.aspx";
	link[5] ="/campaign/Pages/Zell.aspx";
	link[6] ="/campaign/Pages/Schwartz.aspx";


//write the box.  Ok to ignore the info below.  It just writes out the info.
//document.write('<div class="calltoactionRotate"><div align="center"><img src="'+ imageName[n] +'" alt="" align="middle" border="0" /><br /><p class="quote">'+ imageCaption[n] +'</p></div>');

//new: with the link activated
document.write('<div class="calltoactionRotate"><div align="center"><a href="'+ link[n] +'"><img src="'+ imageName[n] +'" alt="" align="middle" border="0" /></a><br /><p class="quote"><a href="'+ link[n] +'">'+ imageCaption[n] +'</a></p></div></div>');


