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(194106,'15/09/2011 Gleision Mining tragedy in the Swansea Valley');
news[1] = new newsStory(163460,'Make-A-Wish Charity Single');
news[2] = new newsStory(156597,'10/10/10 Climbing photography can drive you up the wall');
news[3] = new newsStory(155320,'25th-26th September 2010 - A Taste of Pembrokeshire...');
news[4] = new newsStory(147802,'03/07/2010 Paddle for Life');
news[5] = new newsStory(133703,'Gregynog Music Festival ');
news[6] = new newsStory(133702,' Oxford and Cambridge Universities');
news[7] = new newsStory(118726,'Spring/Summer 2010 - Dark Star Fashion Catalogue Shoot');
news[8] = new newsStory(110941,'27/09/2009 The Whole Hog');
news[9] = new newsStory(110896,'Sugar Magazine');
news[10] = new newsStory(110890,'The Vale of Glamorgan Agricultural Society');
news[11] = new newsStory(110889,'Narberth Food Festival');
news[12] = new newsStory(109909,'31/08/2009 The Annual Bog Snorkelling Championships');
news[13] = new newsStory(103738,'28/07/2009 Funeral of David Dennis, Welsh Soldier Killed in Afghanistan');
news[14] = new newsStory(103110,'22/07/2009 The Royal Welsh Show ');
news[15] = new newsStory(103109,'18/07/2009 All hands on deck at Welsh Lavender enterprise!');
news[16] = new newsStory(102146,'15/07/2009 A Big Air Day for BP');
news[17] = new newsStory(98308,'Climbing Guide Books and Magazines');
news[18] = new newsStory(98304,'New Holland Book Publishers - South Africa/Worldwide');
news[19] = new newsStory(98302,'Cambria Magazine');
news[20] = new newsStory(98301,'Cambria Magazine');
news[21] = new newsStory(98300,'Digital SLR User Magazine, Photography Monthly, Digital SLR Photography, Digital Photo Pro, What Digital Camera Magazine');
news[22] = new newsStory(98295,'Marriott Hotels ');
news[23] = new newsStory(98298,'Cheddar Caves & Gorge Company - Climbing Festival and Slacklining Attempt');
news[24] = new newsStory(98296,'Cops with Cameras');
news[25] = new newsStory(98297,'Neath Port Talbot County Borough Council - Tourism ');
news[26] = new newsStory(97528,'Greta\'s Wholefoodies');
news[27] = new newsStory(97793,'Royal Porthcawl Golf Course');
news[28] = new newsStory(101622,'09/07/2009 May The Force be with them! ');
news[29] = new newsStory(100024,'27/06/2009 Need for Speed');
news[30] = new newsStory(99736,'21/06/2009 ..... From the Longest Day to the Darkest Knight!');
news[31] = new newsStory(99380,'20/06/2009 - BP covers Macmillan Cancer Support Presentation');
news[32] = new newsStory(98781,'15/06/09 Black Planet Gets High on Climbing');
news[33] = new newsStory(98860,'15/06/2009 Congratulations to an Old Friend');
news[34] = new newsStory(98594,'12/06/2009 Ogof Ffynnon Ddu - BP gets down and dirty!');
news[35] = new newsStory(98614,'Black Planet goes into Orbit!');


