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(146525,' ');
news[1] = new newsStory(146502,'Stage Fright');
news[2] = new newsStory(70821,'Elephants Shot From Toilet in Zambia (with camera, not literally)');
news[3] = new newsStory(70790,'No Loo View From Top of Empire State Building');
news[4] = new newsStory(68227,'Cock-a-doodle... Loo?');
news[5] = new newsStory(146500,'The Earth from Space?');
news[6] = new newsStory(146503,'\"Let Your Seoul Glo\"');
news[7] = new newsStory(146505,'Ski Lift and Piste Visible From Mountain Toilet');
news[8] = new newsStory(147173,'World\'s Most Uninspiring View from Toilet Revealed');
news[9] = new newsStory(146504,'Teepee/Tipi');
news[10] = new newsStory(68226,'A Loo With a View Published in the UN International Year of Sanitation');
news[11] = new newsStory(146506,'What the Romans Did for Us');
news[12] = new newsStory(146497,'Twit-t-LOO');
news[13] = new newsStory(146501,'Ski-tacular');
news[14] = new newsStory(146499,'Dambuster?');
news[15] = new newsStory(146498,'Turkish Urinal Mystery Solved');


