//TRY TO REDUCE THE HEIGHT OF THE PICTURES AS MUCH AS POSSIBLE, THE GOOD SIZE IS 160(WIDTH)/110(HEIGHT)
//VISHWAM ON 3/09/06
var how_many_ads = 5;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads; 
//If you want to add ' add it as /'
ad +=1;


if (ad==1) {
txt="Peter Morgensen";
url=null;
longtext="Peter Morgensen's Cold War oral history";
randomgraphic="/special/images/home/peter.jpg";
height="110"
}


if (ad==2) {
txt="Processing Collections in the Archives";
url=null;
longtext="Archivist John Armstrong processing a collection";
randomgraphic="/special/images/home/processing.jpg";
height="110";
}





if (ad==3) {
txt="Westminster Presbyterian Church";
url=null;
longtext="Westminster Presbyterian Church";
randomgraphic="/special/images/home/westminster.jpg";
height="130";
}



if (ad==4) {
txt="Wright Brothers photograph";
url="http://core.libraries.wright.edu/handle/2374.WSU/827";
longtext="Search Wright Brothers photographs";
randomgraphic="/special/images/home/wwphoto.jpg";
height="110";
}



if (ad==5) {
txt="Le Mans Lithograph";
url="http://www.libraries.wright.edu/special/interest.html#exhibits";
longtext="Le Mans Lithograph";
randomgraphic="/special/images/home/lemans.jpg";
height="82";
}





//TRY TO REDUCE THE HEIGHT OF THE PICTURES AS MUCH AS POSSIBLE, THE GOOD SIZE IS 160(WIDTH)/110(HEIGHT)
//VISHWAM ON 3/09/06

if (url != null)
{
document.write('<a href=\"' + url + '\">');
}
document.write('<img ');
document.write(' height=' + height + ' ');
document.write('alt=\"' + txt + '\" border=0 ');
document.write('onMouseOver=\"window.status=\''+ txt +'\';  return true\" ');
document.write('src=\"' + randomgraphic + '\">');
if (url != null)
{
document.write('</a>');
}
//This is commented on 1/13/05 to prevent displaying of a black spacer image around the original image
//document.write('</tr><tr><td valign=\"top\" bgcolor=\"#000000\"><img src=\"http://www.libraries.wright.edu/images/home/spacer.gif\" width=\"1\" height=\"1\"></td></tr><tr>');

document.write('<p align="center" class="rotate_text">');
document.write(longtext);
document.write('</p>');
