// Copyright 2009 Group Publishing
// Copyright 2009 DSoft Technology (http://www.dsoft-tech.com)
// based on Infohiway, Inc
// Copyright 1996, Infohiway, Inc. (http://www.infohiway.com)
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/

function getIndex() 
{
	var r = Math.random() ;
	return Math.floor(r *  data.length);
}
function setImage()
{
	try{
		var index = getIndex();
		
		var imgRotator = document.getElementById("imgRotator");
		if(!imgRotator) {
		  setTimeout("setImage()",100);
		  return;
		}

		imgRotator.src = data[index].Image; 
		imgRotator.alt = data[index].Title; 
	}catch(e){window.status = e.message;}
 
}
setImage();
