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(192167,'New red fox images');
news[1] = new newsStory(188552,'Brown bears in Finland');
news[2] = new newsStory(177262,'Spring is birding time ...');
news[3] = new newsStory(159801,'New images: Northern Lights in Norway');
news[4] = new newsStory(154781,'Gitzo G 1228 specs');
news[5] = new newsStory(149572,'Using ND grad filters on Canon TS-E 17mm? YES!');
news[6] = new newsStory(135436,'New gallery featuring the most recent work');
news[7] = new newsStory(129744,'New gallery Scotland II');
news[8] = new newsStory(123732,'New links');
news[9] = new newsStory(108555,'New landscape gallery added: Beyond the Arctic Circle');
news[10] = new newsStory(105831,'Getting out of large format photography');
news[11] = new newsStory(90321,'Birds gallery has been updated');
news[12] = new newsStory(81654,'New images in the birds gallery');
news[13] = new newsStory(76431,'Major update in the landscape section');
news[14] = new newsStory(75618,'LNF exhibition in Mersch has been extended');
news[15] = new newsStory(34528,'My new website is online');


