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(206202,'Malmaison Wedding Fair');
news[1] = new newsStory(204217,'SWPP November Awards');
news[2] = new newsStory(200826,'SWPP October results');
news[3] = new newsStory(198857,'Edinburgh Corn Exchange Wedding Fair');
news[4] = new newsStory(196965,'SWPP Awards for September contest');
news[5] = new newsStory(195607,'Debenhams Wedding Weekend');
news[6] = new newsStory(192391,'SWPP August results');
news[7] = new newsStory(191489,'Award winning photographs');
news[8] = new newsStory(189220,'SWPP Awards for July');
news[9] = new newsStory(186430,'SWPP Awards for June');
news[10] = new newsStory(182959,'Royal Wedding Album');
news[11] = new newsStory(180050,'SWPP April Awards');
news[12] = new newsStory(178882,'Magazine article');
news[13] = new newsStory(176994,'Scottish Mining Museum wedding fair');
news[14] = new newsStory(174544,'Ravelston House Wedding Fair');
news[15] = new newsStory(173719,'King James Hotel wedding fair');
news[16] = new newsStory(172012,'Radio Forth\'s Win Your Wedding');
news[17] = new newsStory(171424,'Corn Exchange Wedding Fair');
news[18] = new newsStory(170198,'The Edinburgh Wedding Fair');
news[19] = new newsStory(169358,'Valentine Day offer');
news[20] = new newsStory(167899,'2011 Spring Wedding Fairs');
news[21] = new newsStory(163771,'2011 Wedding Fair Diary Dates');
news[22] = new newsStory(159001,'Edinburgh Corn Exchange Wedding fair');
news[23] = new newsStory(158132,'Ravelston Hotel Wedding Fair');
news[24] = new newsStory(156804,'Melville Castle Wedding Fair');
news[25] = new newsStory(154969,'Hilton Edinburgh Wedding Fair');
news[26] = new newsStory(151378,'Ocean Terminal Sept 25th & 26th ');
news[27] = new newsStory(147476,'New partners for the Edinburgh Fair');
news[28] = new newsStory(144544,'Edinburgh Wedding Fair');
news[29] = new newsStory(142683,'Silver Award');
news[30] = new newsStory(137485,'Special May wedding offer');
news[31] = new newsStory(134288,'2011 Wedding pricing');
news[32] = new newsStory(132296,'Melville Castle wedding fair 28th March');
news[33] = new newsStory(131288,'Wedding Open Evening');
news[34] = new newsStory(128617,'March wedding fairs');
news[35] = new newsStory(126425,'Pre-wedding consultations & valentine day promo');
news[36] = new newsStory(125320,'Valentine promotion');
news[37] = new newsStory(124355,'2009 Wedding Photo of the year');
news[38] = new newsStory(123358,'Photography competitions');
news[39] = new newsStory(122347,'Queensferry Hotel wedding open afternoon');
news[40] = new newsStory(121904,'2009 Wedding Photo of the Year');
news[41] = new newsStory(121298,'Book your wedding in January');
news[42] = new newsStory(120639,'New for 2010');
news[43] = new newsStory(120092,'January events');


