// Type the number of images you are rotating.

NumberOfImagesToRotate = 3;

// Specify the first and last part of the image tag. 

FirstPart = '<a href="https://www.whartoncenter.com/scripts/max/23000/maxweb.exe?ACTION=ORDER"><img alt="Support the arts by making a donation to the Wharton Center" class="advert" src="../images/adverts/giving_advert_';
LastPart = '.jpg" /></a>';

function printImage() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + LastPart);
}



//https://www.givingto.msu.edu/gift/dig.cfm?desi_code=AB33&desig_descrip=WHARTON%20CENTER