// 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/faculty-hp-bg-mark-pettit.jpg' width='780' height='544' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/faculty-hp-bg-tracey-maclin.jpg' width='780' height='544' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/faculty-hp-bg-james-fleming.jpg' width='780' height='544' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/faculty-hp-bg-caruso.jpg' width='780' height='544' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/faculty-hp-bg-ken-simons.jpg' width='780' height='544' />");
/* 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();
