//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 = 7;

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="Collaborate Banner";

longtext="Collaborate at the Library";

url=null;

randomgraphic="/images/home/collaborateposter.jpg";

height="240";

}



if (ad==2) {

txt="Podcasting Room in STAC";

longtext="Create podcasts at the STAC";

url="http://www.libraries.wright.edu/services/stac/";

randomgraphic="/images/home/podcastroomrecord.jpg";

height="120";

}



if (ad==3) {

txt="Laptops2Go";

longtext="Borrow a laptop for up to four hours at Dunbar's 2nd floor Information Commons";

url=null;

randomgraphic="/images/home/lap2goservice.jpg";

height="128";

}

if (ad==4) {

txt="Group Study Room";

longtext="Group Study Room, Dunbar Library";

url=null;

randomgraphic="/images/home/groupstudyfull.jpg";

height="120";

}


if (ad==5) {

txt="Library Tab in Wings";

longtext="Customize the Library tab in WINGS";

url="http://wings.wright.edu";

randomgraphic="/images/home/oneplace.jpg";

height="162";

}

if (ad==6) {

txt="Presentation Practice Room";

longtext="Check out the Presentation Practice Room";

url="/services/presentation_room/";

randomgraphic="/images/home/presentationpractice.jpg";

height="120";

}

if (ad==7) {

txt="Encore Catalog Search";

longtext="Find items faster with easier limiting and tag cloud searching.  Read reviews, summaries, excerpts and more.";

url="http://encore.libraries.wright.edu/";

randomgraphic="/images/home/encore.png";

height="30";

}


//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">');

document.write(longtext);

document.write('</p>');

