// JavaScript for the rotating graphics on the landing page.
function timedCount()
{
nextPic('firstpic', 'secondpic', 'forward');
t=setTimeout("timedCount()",16000);
}

/* Create array for images */
var fbpic = new Array();

/* Load graphics */
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/wendellltaylor.jpg' width='780' height='468' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/alumni-hp-bg-kevin-prussia.jpg' width='780' height='468' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/alumni-hp-bg-081607-3.jpg' width='780' height='468' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/alumni-hp-bg-081607-4.jpg' width='780' height='468' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/alumni-hp-bg-brendan-doherty.jpg' width='780' height='468' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/alumni-hp-bg-melinda-willis.jpg' width='780' height='468' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/alumni-hp-bg-deborah-telman.jpg' width='780' height='468' />");
  
/* Randomize Array of images */
fisherYates(fbpic);

/* Standard Flipbook function */
initFade("firstpic","secondpic");

/* gets rid of background image once first and second images are set */
/* the background image is there in case of no javascript or some other failure */
document.getElementById("main").style.background = "url(http://www.bu.edu/law/graphics/hp-templates/bg-white.jpg)";

/* Continuously changes the graphic */
timedCount();
