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(210252,'Limited Edition Print on behalf of Help For Heroes');
news[1] = new newsStory(205870,'Gadwall Photo used for an Icelandic Postage Stamp');
news[2] = new newsStory(199478,'Landscape Photographer of the Year 2011');
news[3] = new newsStory(195185,'Winner - British Wildlife Photography Awards 2011');
news[4] = new newsStory(198702,'Highly Commended - British Wildlife Photography Awards');
news[5] = new newsStory(182974,'Leatherback and Olive Ridley Turtle Images from French Guiana uploaded');
news[6] = new newsStory(165243,'Latest images - Ice Worlds');
news[7] = new newsStory(158036,'Take a view - Landscape Photographer of the Year 2010');
news[8] = new newsStory(150235,'European Wildlife Photographer of the Year 2010');
news[9] = new newsStory(106154,'2010 Photo Exhibition for the Wildlife Trust');
news[10] = new newsStory(124760,'2010 Focus on Imaging in association with Hahnemuhle');
news[11] = new newsStory(122442,'The superb Nikon D3S');
news[12] = new newsStory(106153,'2009 Photo Exhibition ');
news[13] = new newsStory(97762,'Herring Gull Project');
news[14] = new newsStory(97763,'Nikon Solutions Expo, Olympia 2008');
news[15] = new newsStory(141280,'Los Angeles International Underwater Photography Competition');
news[16] = new newsStory(117671,'Shell Wildlife Photographer of the Year 2007');


