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(207675,'First exhibition of 2012!');
news[1] = new newsStory(193643,'Learn to take great pictures, in the stunning house and gardens at Kelmarsh Hall, Northamptonshire');
news[2] = new newsStory(198206,'“A space to remember”: Remembrance Day photography exhibition at St Clement Danes Church, London');
news[3] = new newsStory(193633,'Looking for Christmas gifts?  ');
news[4] = new newsStory(188067,'simongregorphoto exhibition goes behind the scenes at Hertford Theatre');
news[5] = new newsStory(186916,'Exhibition of work in Ware');
news[6] = new newsStory(183707,'Find me at upcoming art and craft fairs');
news[7] = new newsStory(169850,'Launch of secretlondonphotowalk.com');
news[8] = new newsStory(167761,'Stall at Fowlmere Farmers\' Market, 12 February 2011');
news[9] = new newsStory(137499,'New website');


