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(165155,'Professional Photographer of the Year Competition');
news[1] = new newsStory(164367,'Outdoor Photography Magazine');
news[2] = new newsStory(134437,'Wirral Spring Art and Photography Exhibition 2010');
news[3] = new newsStory(102386,'Framed prints on sale at Grosvenor Garden Centre');
news[4] = new newsStory(92940,'Cheshire Life');
news[5] = new newsStory(89903,'Exhibition of Gosvenor Estate Photographs');
news[6] = new newsStory(78937,'Grosvenor Estates');
news[7] = new newsStory(75040,'International Garden Photographer of the Year');
news[8] = new newsStory(75252,'Country Life Magazine');
news[9] = new newsStory(75039,'International Garden Photographer of the Year');
news[10] = new newsStory(70041,'Wedding Photography');
news[11] = new newsStory(69226,'Country Life Magazine');
news[12] = new newsStory(67898,'Country Life Magazine');
news[13] = new newsStory(66250,'Country Life Magazine');
news[14] = new newsStory(55523,'Garden Photographer of the Year Competition');
news[15] = new newsStory(56666,'Wirral Spring Art and Photography Exhibition 2008');
news[16] = new newsStory(30787,'Developing Vision and Style');
news[17] = new newsStory(37542,'Cheshire Life');
news[18] = new newsStory(31321,'Photographic Commission for the Duchess of Westminster');
news[19] = new newsStory(25335,'Wirral Spring Art and Photography Exhibition 2007');
news[20] = new newsStory(25334,'Wirral Spring Art and Photography Exhibition ');
news[21] = new newsStory(25333,'Wirral Spring Art and Photography Exhibition ');
news[22] = new newsStory(9204,'Wainwright Society Photographic Competition');


