// JavaScript Document
var rotatingTextElement1;
var rotatingText1 = new Array();
//var rotatingTextElement2;
//var rotatingText2 = new Array();
var ctr = 0;

function initRotateText() {
rotatingTextElement1 = document.getElementById("textToChange1");
rotatingText1[0] = rotatingTextElement1.innerHTML; // store the content that's already on the page
rotatingText1[1] = "<img border=\"0\" src=\"images/marketing//clickhere_buynow2.gif\" width=\"350\" height=\"35\" />";
rotatingText1[2] = "<img border=\"0\" src=\"images/marketing//clickhere_buynow1.gif\" width=\"350\" height=\"35\" />";
//rotatingTextElement2 = document.getElementById("textToChange2");
//rotatingText2[0] = rotatingTextElement2.innerHTML; // store the content that's already on the page
//rotatingText2[1] = "<span class=stylepurple>BUY NOW</span>";
//rotatingText2[2] = "<span class=stylegreen>BUY NOW</span>";
setInterval(rotateText1, 750);
}
function rotateText1() {
ctr++;
if(ctr >= rotatingText1.length) {
ctr = 0;
}
rotatingTextElement1.innerHTML = rotatingText1[ctr];
//rotatingTextElement2.innerHTML = rotatingText2[ctr];
}
window.onload = initRotateText;


