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(209428,'Barcelona Exhibition 2011');
news[1] = new newsStory(140720,'Toys Photography Workshop ');
news[2] = new newsStory(143916,'Exhibition at Tudor Barn');
news[3] = new newsStory(143917,'G.O.S. success');
news[4] = new newsStory(137606,'Sarah attends Advanced Printing Workshop ');
news[5] = new newsStory(131768,'Charlton House Art Exhibition');
news[6] = new newsStory(129704,'Band photos');
news[7] = new newsStory(121531,'Sarah trains in Lith Printing with Tim Rudman ');
news[8] = new newsStory(108260,'Sarah\'s photo \"Junction\" voted as winner in Painterly Photos exhibition');
news[9] = new newsStory(100718,'Childrens Photo Workshop');


