function newsStory(id,headline) {
	this.id = id;
	this.headline = headline;
}

function nextNews(newsID) {

	for (j = 0; j < news.length; j++) {
		if (news[j].id == newsID) {
			break;
		}
	}
	if (j + 1 < news.length ) {
		window.location = 'news_' + news[j + 1].id + '.html';
	}
	else {
		alert('No more stories');
	}
}

function ShowNewsLinks(newsID) {
		
	
	if (!basic) {
		for (j = 0; j < news.length; j++) {  
			if (news[j].id == newsID) {  
				break;
			}
		}
		if (j == (news.length -1)) {   
			document.all.nextlink.style.visibility = 'hidden';
		}
		
	}
}


var news = new Array();
news[0] = new newsStory(182096,'Minutes of AGM - 2010/11');
news[1] = new newsStory(165000,'Results  : 2010/11  Rowland Motteshead Memorial Competition ');
news[2] = new newsStory(139155,'Minutes of the St Leonard’s Camera Club AGM');
news[3] = new newsStory(138816,'Staffordshire Photographic Clubs Annual Print Competition');
news[4] = new newsStory(137977,'RESULT of the Inter Club Competition with Acton Trussel & Penkridge PS held on 27 April 2010');
news[5] = new newsStory(129366,'Success at the 2010 Three Counties Open Photographic Competition');
news[6] = new newsStory(132310,'MidPhot 2010');
news[7] = new newsStory(87815,'Derek Doar Photography');
news[8] = new newsStory(83340,'Photographers Rights');
news[9] = new newsStory(83016,'Mounted Prints');
news[10] = new newsStory(91933,'Stafford and District Annual Print Competition');
news[11] = new newsStory(117275,'Rowland Motteshead Competition 2009/10');
news[12] = new newsStory(92787,'St Leonard\'s Camera Club triumph');
news[13] = new newsStory(94627,'2008/09 Camera Club Awards');
news[14] = new newsStory(104550,'MCPF  Photofolio Colour Prints');


