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(136665,'RSA: New Contemporaries');
news[1] = new newsStory(134304,'Art reviews: RSA New Contemporaries/Reveal');
news[2] = new newsStory(134303,'RSA New Contemporaries 2010');
news[3] = new newsStory(134302,'VISUAL ARTS SCOTLAND: ANNUAL OPEN EXHIBITION 2010');
news[4] = new newsStory(101888,'Meet the stay-at-home art graduates');
news[5] = new newsStory(101906,'A N review: - Glasgow School of Art - Fine Art Degree Show 2009');
news[6] = new newsStory(99728,'Glasgow School of Art Degree Show 2009');
news[7] = new newsStory(99724,'GSA Degree Show 2009');
news[8] = new newsStory(99619,'The Sunday Times:  Art School Graduate Makes Show of Saying Thank You');
news[9] = new newsStory(99621,'Art review: Young at art');
news[10] = new newsStory(99622,'Talent shines even from bleak subjects at students’ show');
news[11] = new newsStory(99620,'Intimate portrait of the world we live in');
news[12] = new newsStory(99725,'When He Started Saying \'I Appreciate It\' After \'Thank You\'');


