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(202244,'Find us on Facebook!');
news[1] = new newsStory(202243,'Westminster Art Exhibition at SW1 Gallery, London');
news[2] = new newsStory(193834,'Coming up in November- Print Now!2011 continues at Bearpace Gallery');
news[3] = new newsStory(188344,'Photography by Rossanne Pellegrino feat. in Print & Design Now! 2011');
news[4] = new newsStory(131904,'REVIEW: London through a different lens – Rossanne Pellegrino');
news[5] = new newsStory(79691,'Under 100 Gallery, officially open!  Buy works from Rossanne Pellegrino for under £100.');
news[6] = new newsStory(79690,'Rossanne Pellegrino part of group show at SW1 Gallery, London');
news[7] = new newsStory(56564,'Kirsty Whalley interviews Rossanne Pellegrino on her works for Layered & Unveiled (2007)');
news[8] = new newsStory(3842,'Riccordo, Prospect Gallery, 1 Thomas St, Nailsworth');
news[9] = new newsStory(3841,'Mentorship Brings New Perspectives');
news[10] = new newsStory(3840,'in.transit.  A photographic exhibition by Rossanne Pellegrino.');
news[11] = new newsStory(3646,'Rossanne Pellegrino, Looking Through Fresh Eyes');


