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(211895,'IPPA Annual Awards Night 2012');
news[1] = new newsStory(193939,'National Photographic Awards');
news[2] = new newsStory(172217,'Kelvin picks up IPPA award in Dublin...');
news[3] = new newsStory(168943,'IPPA Awards 2011');
news[4] = new newsStory(168942,'Federation Of European Photographers (FEP)');
news[5] = new newsStory(144777,'Gold Award SWPP');
news[6] = new newsStory(143545,'National Photographic Awards');
news[7] = new newsStory(134840,'Two Golds in SWPP competition...');
news[8] = new newsStory(132266,'Kelvin gains IPPA Associateship.');
news[9] = new newsStory(123658,'Kelvin starts 2010 with another award...');
news[10] = new newsStory(123095,'The IPPA/RSA Annual Awards will take place...');
news[11] = new newsStory(99208,'Kelvin gets 3 Gold Awards at IPPA Judging');
news[12] = new newsStory(99207,'Gold Award SWPP');
news[13] = new newsStory(84285,'Kelvin receives certificate of excellence at IPPA Awards 09');
news[14] = new newsStory(84284,'Kelvin receives certificate of excellence at annual IPPA Awards');
news[15] = new newsStory(46919,'Kelvin wins new award...');
news[16] = new newsStory(45491,'IPPA Annual Awards');
news[17] = new newsStory(36260,'Sligo Weekender Article');


