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) {
	debug('Showing links for story ' + 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';
		}
		
	}
}


news = new Array();
news[0] = new newsStory(66752,'Wildlife Photography on an African Safari');
news[1] = new newsStory(47945,'Country Life Magazine Cover');
news[2] = new newsStory(47946,'BBC Countryfile Insert Cover');
news[3] = new newsStory(47951,'Oil paintings from wildlight photographs by<a href=\"http://www.davidstribbling.com/\" target=\"_blank\"><em> David Stribbling</em></a>');
news[4] = new newsStory(47952,'World Owl Trust');
news[5] = new newsStory(48256,'Ordnance Survey maps advertisement');
news[6] = new newsStory(47979,'Bird Encyclopaedia');
news[7] = new newsStory(21792,'Fallow Deer Photograph');
news[8] = new newsStory(21497,'The early Bird..........');
news[9] = new newsStory(21504,'Hartlaub’s Gulls');
news[10] = new newsStory(21509,'Stone Town, Zanzibar');
news[11] = new newsStory(21512,'Chobe National Park, Botswana');
news[12] = new newsStory(21201,'A Lesson in Patience');
news[13] = new newsStory(16565,'Wilderness Safari');
news[14] = new newsStory(16566,'London Wildweb');
news[15] = new newsStory(2356,'Cover photograph on Malawi Calendar');

