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(112897,'Check out the Blog!!');
news[1] = new newsStory(53220,'Tim returns to snow in the UK!');
news[2] = new newsStory(41161,'Morocco & Mt Toubkal');
news[3] = new newsStory(41160,'Morocco & Mt Toubkal');
news[4] = new newsStory(41158,'South Again');
news[5] = new newsStory(41155,'Morocco & Mt Toubkal');
news[6] = new newsStory(40558,'Images displayed in London Artspace');
news[7] = new newsStory(35433,'Return from Greenland');
news[8] = new newsStory(35434,'Tim returns from another trip to Antarctica');


