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(207420,'Nine the Musical, In Concert - 10 September 2011');
news[1] = new newsStory(188976,'Summer Exhibition at The Dovecote Gallery, Ilford');
news[2] = new newsStory(160643,'The Mayor\'s Charity Ball');
news[3] = new newsStory(154130,'The Wanstead Festival - 19 September 2010');
news[4] = new newsStory(154129,'Photography Exhibition at the Kenneth More Theatre, Ilford - throughout September 2010');
news[5] = new newsStory(154128,'WOW! - A Tribute to Vivyan Ellacott (Manager, Kenneth More Theatre) - 5 September 2010');
news[6] = new newsStory(123760,'Pantomime at the Kenneth More Theatre, Ilford, Essex');
news[7] = new newsStory(118962,'Christmas Lights go on in Ilford Town Centre');
news[8] = new newsStory(102113,'Exhibition - 11 July until 2 August 2009');
news[9] = new newsStory(88182,'Reg Fowkes Annual Photographic Competition/Exhibition 2009');
news[10] = new newsStory(72084,'Costermonger\'s Harvest Festival and Parade ');
news[11] = new newsStory(69747,'Wanstead Festival - 14 September 2008 - Report');
news[12] = new newsStory(64854,'Exhibition - 12 July to 5 August 2008');
news[13] = new newsStory(31115,'Photographic Exhibition');
news[14] = new newsStory(22420,'Reg Fowkes Annual Photographic Competition and Exhibition');
news[15] = new newsStory(17723,'Theatre Photography');
news[16] = new newsStory(17511,'Theatre Photography');
news[17] = new newsStory(17510,'Audio-Visual Work');


