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(190575,'Photos of my exhibition');
news[1] = new newsStory(186265,'My second PHOTOGRAPHY EXHIBITION!');
news[2] = new newsStory(148814,'Vernissage was a success!');
news[3] = new newsStory(148175,'My Canadian Adventure in Summer 2008');
news[4] = new newsStory(145318,'My First Photography Exhibition!');
news[5] = new newsStory(132461,'Why do I photograph? (Reflection)');
news[6] = new newsStory(129036,'Images are now available for sale via my website!');
news[7] = new newsStory(113672,'HAPPY 100th BIRTHDAY GRANDDAD!');
news[8] = new newsStory(106530,'The Amazing Daylight');
news[9] = new newsStory(97136,'Influence in photography');
news[10] = new newsStory(84709,'\'Digital Camera Photographer of the Year\' competition');
news[11] = new newsStory(84117,'Narrative Portraits');
news[12] = new newsStory(81538,'Flowers');
news[13] = new newsStory(79820,'Reflection on Photography');
news[14] = new newsStory(79613,'Expressing movement in photography');
news[15] = new newsStory(77844,'Photographing snow');
news[16] = new newsStory(77588,'Textures, photography and a bit more.');
news[17] = new newsStory(77292,'Using colour to add atmoshere - My \'Reader\'s Advice\' article published in issue 76 of Digital Camera magazine, September 2008');


