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(205620,'Walking the Pennine Way');
news[1] = new newsStory(201294,'To Blurb or not to?');
news[2] = new newsStory(192340,'Reclaimed Access');
news[3] = new newsStory(177831,'The Festival');
news[4] = new newsStory(177830,'Coast to Coast');
news[5] = new newsStory(175280,'The Photographer as a Collector');
news[6] = new newsStory(158873,'Is contemporary photography for constructed images only?');
news[7] = new newsStory(120622,'The Flow of Tides');
news[8] = new newsStory(115737,'No One Was Poor - Return to the former GDR');
news[9] = new newsStory(85751,'The Book Token');
news[10] = new newsStory(76123,'Looking at Home');
news[11] = new newsStory(75130,'Why Black and White?');
news[12] = new newsStory(75125,'Work Flow and Real Photograhy');
news[13] = new newsStory(73998,'Flow of the River Wyre');
news[14] = new newsStory(64455,'Lancashire\'s Unknown River');
news[15] = new newsStory(62633,'Self Publishing');
news[16] = new newsStory(62509,'Why is Photography Such a Slow Process?');
news[17] = new newsStory(62531,'Sea Kayaking in Alaska');


