//pre-load images
	var ONEImg = new Image();
	ONEImg.src = 'images/22_liveactive.jpg';
	var TWOImg = new Image();
	TWOImg.src = 'images/22_liveactive.jpg';
	var THREEImg = new Image();
	THREEImg.src = 'images/22_donate.jpg';
	
	
	function makeNews(c,l,f,i){
		this.copy = c;
		this.link = l;
		this.follow = f;
		this.img = i;
		this.write = writeNews;
	}
	
	function writeNews(){
		var str = '';
		str += '<a href="' + this.link + '" title="' + this.copy + '">';
		str += '<img border="0" width="632" height="262" hspace="0" vspace="0" src="' + this.img.src + '" alt="' + this.copy + '"></a>';
		return str;
	}
	
	var newsArray = new Array();
	newsArray[0] = new makeNews("Live Active",'http://www.liveactivenow.org/','More Info',ONEImg).write();
	
	newsArray[1] = new makeNews("Johns Progress",'http://www.liveactivenow.org/','More Info',TWOImg).write();
	
	newsArray[2] = new makeNews("Donate",'http://www.liveactivenow.org/','More Info',THREEImg).write();
	
	
	var nIndex = 0;
	var timerID = null;
	function rotateNews(){
		var len = newsArray.length;
		if(nIndex >= len)
			nIndex = 0;
		document.getElementById('stories').innerHTML = newsArray[nIndex];
		nIndex++;
		timerID = setTimeout('rotateNews()',4000);
	}
	function pauseNews() {
		if (timerID != null) {
			clearTimeout(timerID);
			timerID = null;
		}
	}
	
	function playNews() {
		if (timerID == null) {
			timerID = setTimeout('rotateNews()', 1000);
		}
	}