var rotatingTextElement;
var rotatingText = new Array();
var ctr = 0;

function initRotateText() {
rotatingTextElement = document.getElementById("definitions");
rotatingText[0] = "<p>bloodbath unwired mayhem protocol</p>"
rotatingText[1] = "<p>big ugly motherfucking parasite</p>";
rotatingText[2] = "<p>beast of unsightly monstrous proportions</p>";
rotatingText[3] = "<p>beautiful unmanagebale miscreant proceedings</p>";
rotatingText[4] = "<p>beligerant unstable merging polymorphs</p>";
rotatingText[5] = "<p>barrage of utterly mashed peripherals</p>";
rotatingText[6] = "<p>biff ugh mmmpf pow</p>";
rotatingText[7] = "<p>brazen upstarts marvellous pilfering</p>";

setInterval(rotateText, 3000);
}

function rotateText() {
ctr++;
if(ctr >= rotatingText.length) {
ctr = 0;
}
rotatingTextElement.innerHTML = rotatingText[ctr];
}

window.onload = initRotateText;

