function araVob() { }
var image = new araVob();

// List out all images that will be apart of the rotation
image[1] = '<a href="communities.html"><img src="images/image01.jpg" alt="image" /></a>';
image[2] = '<a href="communities.html"><img src="images/image04.jpg" alt="image" /></a>';
image[3] = '<a href="communities.html"><img src="images/image05.jpg" alt="image" /></a>';
image[4] = '<a href="communities.html"><img src="images/image06.jpg" alt="image" /></a>';

// Set the count for how many images there are
var imgCount = 4;

// Randomize the image rotation
var nextImg = Math.floor((imgCount-0)*Math.random()) + 1;

function rotateImg() {
	// Retrieve the element that will contain the image
	var element = document.getElementById('rotateImg');
	
	// Inject the image code into the element
	element.innerHTML = image[nextImg];
}