var offericonarray = new Array(); // Create blank array
var counter = 1; // start at 1 because we don't want to display the first image twice

function specialoffer() { //function to rotate the special offer images

	if (counter == 2) {
		counter = 0;
	}

	document.getElementById("specialoffericon").src = offericonarray[counter].src;
	counter++;
}

if (document.images) {
	offericonarray[0] = new Image(80,78);
	offericonarray[0].src = "/images/discounts.png";
	offericonarray[1] = new Image(80,78);
	offericonarray[1].src = "/images/click_here.png";
}
var timer = window.setInterval('specialoffer()', 2000);

