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(212247,'Multicultural Gala Awards Ceremony');
news[1] = new newsStory(209963,'Feeding birds/Birding and more birding');
news[2] = new newsStory(182593,'Birding');
news[3] = new newsStory(184048,'Spring /Summer birding');
news[4] = new newsStory(136167,'Spring photography nature workshop Saturday Sept 17 2011');
news[5] = new newsStory(134347,'Where to see my images');
news[6] = new newsStory(112517,'Ecotours-BC_John Gordon Photography');
news[7] = new newsStory(101336,'John Gordon named a Paul Harris Fellow.');
news[8] = new newsStory(99322,'Hummingbirds ');
news[9] = new newsStory(97488,'Saskatchewan images posted');
news[10] = new newsStory(101337,'Television Appearance');
news[11] = new newsStory(86359,'BCYNA Awards being held April 2009');
news[12] = new newsStory(48020,'Easter Island Mysteries');
news[13] = new newsStory(31655,'2007 so far');
news[14] = new newsStory(28190,'Kodak Gallery Award 2007');
news[15] = new newsStory(28189,'2007 Kodak Gallery Award for Architecture');
news[16] = new newsStory(11911,'Langley B.C. Familiar Places SECOND EDITION SOLD OUT!');
news[17] = new newsStory(16494,'Rotary Club/Langley Times School Fundraiser');
news[18] = new newsStory(15438,'Veteran\'s Initiative 2006/2007');
news[19] = new newsStory(12405,'Awards');
news[20] = new newsStory(12398,'Awards');
news[21] = new newsStory(12008,'Thoughts on photography');


