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(49277,'Wedding Prices valid until');
news[1] = new newsStory(28005,'Chris and Katie');
news[2] = new newsStory(27916,'Carl and Hayley');
news[3] = new newsStory(28006,'Fiona and Matt');
news[4] = new newsStory(28007,'Rob and Kate');
news[5] = new newsStory(27918,'Annie and Ashley');
news[6] = new newsStory(27919,'Lauren and Mark');
news[7] = new newsStory(27915,'Clive and Lucy');
news[8] = new newsStory(27917,'Philip and Sarah');
news[9] = new newsStory(49278,'Portrait Photography Prices 2012');
news[10] = new newsStory(49279,'Corporate Photography Prices');
news[11] = new newsStory(197926,'Books');
news[12] = new newsStory(131884,'Limited Edition Photograph Prices');
news[13] = new newsStory(131894,'Postcards and Photographic Greetings Cards');


