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(211016,'Chapter 17: Resolution');
news[1] = new newsStory(210344,'Chapter 16: Guests');
news[2] = new newsStory(209029,'Chapter 15: The Car');
news[3] = new newsStory(207931,'Chapter 14: Voices');
news[4] = new newsStory(207011,'Chapter 13 The Search');
news[5] = new newsStory(204492,'Chapter 12: Laughter');
news[6] = new newsStory(199265,'Chapter 11 The Police');
news[7] = new newsStory(192530,'Chapter 10: Visitors');
news[8] = new newsStory(191967,'Chapter 9: David');
news[9] = new newsStory(187695,'Chapter 8: The Green Van');
news[10] = new newsStory(186052,'Chapter 7 : Mother ');
news[11] = new newsStory(184914,'Chapter 6: The Fuse.');
news[12] = new newsStory(183620,'Death on the Telephone 5');
news[13] = new newsStory(182014,'Death on the Telephone 4');
news[14] = new newsStory(180971,'Death on the Telephone 3');
news[15] = new newsStory(179407,'Death on the Telephone 2');
news[16] = new newsStory(179086,'Death on the Telephone');
news[17] = new newsStory(175997,'Mrs Field\'s Luck');
news[18] = new newsStory(172477,'Bleep');
news[19] = new newsStory(165425,'Lady\'s Underclothes');
news[20] = new newsStory(162806,'Chemistry');
news[21] = new newsStory(161698,'Duffer\'s World: Chapter 8');
news[22] = new newsStory(160855,'Duffer\'s World: Chapter 7');
news[23] = new newsStory(157710,'DUFFER\'S WORLD Chapter 6');
news[24] = new newsStory(156115,'Chapter 5 The Raid');
news[25] = new newsStory(155366,'DUFFER\'S WORLD: Chapter 4');
news[26] = new newsStory(155022,'DUFFER\'S WORLD Chapter 3');
news[27] = new newsStory(154561,'DUFFER\'S WORLD');
news[28] = new newsStory(154209,'DUFFER\'S WORLD');
news[29] = new newsStory(153484,'A Vampire Play');
news[30] = new newsStory(152594,'Kylie\'s Bottom');
news[31] = new newsStory(151313,'Welsh Beats');
news[32] = new newsStory(151226,'Granny Jones and the Sumo Wrestler');
news[33] = new newsStory(150845,'Granny Jones and the Skateboard');
news[34] = new newsStory(150397,'Looking Back 10: Boxing');
news[35] = new newsStory(150228,'Looking Back 9: Death');
news[36] = new newsStory(147176,'Looking Back 8: Jill');
news[37] = new newsStory(144143,'Looking Back 7');
news[38] = new newsStory(144103,'Hamlet in One Act or Carry On Hamlet');
news[39] = new newsStory(144043,'Looking Back 6');
news[40] = new newsStory(143897,'Invasion of the Sausage-Body Snatchers');
news[41] = new newsStory(143846,'Looking Back 5');
news[42] = new newsStory(143679,'Looking Back 4');
news[43] = new newsStory(143421,'Prejudiced');
news[44] = new newsStory(143419,'Looking Back 3');
news[45] = new newsStory(143119,'Looking Back 2');
news[46] = new newsStory(142864,'Half n\' Half - Fifty Fifty');
news[47] = new newsStory(142862,'Looking Back 1');
news[48] = new newsStory(142438,'Sprogett\'s Last Case');
news[49] = new newsStory(142339,'Competition');
news[50] = new newsStory(107684,'Our Mutual Lover');
news[51] = new newsStory(107683,'Assignment');
news[52] = new newsStory(104358,'Mechanic');
news[53] = new newsStory(104294,'Phone call from Elsinore');
news[54] = new newsStory(93055,'The Room');
news[55] = new newsStory(25342,'Romantic Novelist');
news[56] = new newsStory(25326,'I\'m on a Train');
news[57] = new newsStory(25861,'Research Workers');
news[58] = new newsStory(25584,'The Rector of Stiffkey');
news[59] = new newsStory(24094,'Decision Time');
news[60] = new newsStory(25585,'Councillors');
news[61] = new newsStory(25327,'Horseplay');
news[62] = new newsStory(24713,'Dreamjobs');


