// JavaScript for th 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/hp-bg-martha-coakley-v3.jpg' width='780' height='468' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/hp-bg-drummond.jpg' width='780' height='468' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/hp-bg-khetarpal.jpg' width='780' height='468' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/hp-bg-robin-wish-v3.jpg' width='780' height='468' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/MaureenOrourke.jpg' width='780' height='468' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/hp-bg-jon-anderman-v3.jpg' width='780' height='468' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/hp-bg-valente.jpg' width='780' height='468' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/hp-bg-bullock.jpg' width='780' height='468' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/hp-bg-carr.jpg' width='780' height='468' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/hp-bg-craigwellgraham.jpg' width='780' height='468' />");
fbpic.push("<img src='http://www.bu.edu/law/graphics/hp-templates/hp-bg-daniel-fierstein-v3.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();
