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(201668,'Accepted for the 2011 Swansea International Salon');
news[1] = new newsStory(201667,'Accepted for the 2011 Swansea International Salon');
news[2] = new newsStory(201666,'Highly commended at  the 2011 Swansea International Salon');
news[3] = new newsStory(199845,'Accepted for 2011 (7th) Limours International Salon, France');
news[4] = new newsStory(199761,'Accepted for 2011 (7th) Limours 2011 International Salon, France');
news[5] = new newsStory(160448,'Winner of the 2010 Colour Print Competition');
news[6] = new newsStory(160412,'Leica Book Acceptance');
news[7] = new newsStory(160411,'Leica Book Acceptance');
news[8] = new newsStory(111499,'Leica Fellowship Print Competition 2009');
news[9] = new newsStory(111498,'Leica Fellowship Print Competition 2009');
news[10] = new newsStory(111497,'Leica Fellowship Print Competition 2009');


