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(211671,'Underwater phone box, front cover for BSoUP magazine - January 2012 ');
news[1] = new newsStory(210960,'Nauticam\'s 4.33\" mini dome (new photo kit for 2012) - January 2012');
news[2] = new newsStory(192958,'Norway lobsters in Gullmarn fjord, Lysekil, Sweden - January 2012');
news[3] = new newsStory(206025,'Remote strobe lighting, Capernwray aeroplane - December 2011');
news[4] = new newsStory(206024,'Nudibranch <em>(Janolus cristatus),</em> Pembrokeshire - December 2011');
news[5] = new newsStory(201687,'Countess of Erne, Portland Harbour, Dive magazine issue - December 2011');
news[6] = new newsStory(203305,'Hodge Close, former slate quarry, Lake district - November 2011 ');
news[7] = new newsStory(201478,'Nudibranch <em>(Flabellina lineata)</em> wins Wildlife Trusts award - November 2011');
news[8] = new newsStory(199147,'\'Best of British\' at British Society of Underwater Photographers - October 2011');
news[9] = new newsStory(198482,'British portfolio at Bristol Underwater Photography Group - October 2011');
news[10] = new newsStory(195903,'Grey seal <em>(Halichoerus grypus)</em> action at the Farne islands - September 2011');
news[11] = new newsStory(192913,'Grey seals  <em>(Halichoerus grypus),</em>  BSoUP Focus On competition - August 2011');
news[12] = new newsStory(188607,'Masked crabs <em>(Corystes cassivelaunus),</em> from Angelsey - July 2011');
news[13] = new newsStory(187897,'Plymouth BSoUP Splash in competition - July 2011 ');
news[14] = new newsStory(185678,'Plumose anemones <em>(Metridium senile),</em> from Loch Long - June 2011');
news[15] = new newsStory(185668,'Long clawed squat lobster <em>(Munida rugosa),</em> from Loch Goil - June 2011');
news[16] = new newsStory(160409,'Image of the year at Bristol Underwater Photography Group - June 2011');
news[17] = new newsStory(180631,'Gortein, shore dive site at Loch Fyne - May 2011');
news[18] = new newsStory(178763,'Leopard spotted Goby <em>(Thorogobius ephippiatus),</em> Portland - Easter 2011');
news[19] = new newsStory(176984,'Sea loch anemone <em>(Protanthea simplex),</em> from Loch Leven - April 2011');
news[20] = new newsStory(176866,'Big nudibranchs <em>(Aeolidia papillosa),</em> from the Clyde - April 2011');
news[21] = new newsStory(174117,'British anemones, Theme portfolio competition at BSoUP - March 2011');
news[22] = new newsStory(173682,'Remote strobes for lighting wrecked boat, Cromhall quarry - March 2011');
news[23] = new newsStory(172710,'Off camera strobes, Capernwray aeroplane fuselage - March 2011');
news[24] = new newsStory(172711,'EMUP front cover competition - March 2011');
news[25] = new newsStory(170998,'Circular fisheye, Focus On competition at BSoUP - February 2011');
news[26] = new newsStory(170183,'Tompot Blennies <em>(Parablennius gattorugine),</em> from Plymouth - February 2011');
news[27] = new newsStory(167542,'Trout and diver from Jackdaw quarry, Capernwray - January 2011');
news[28] = new newsStory(165610,'Long clawed squat lobster <em>(Munida rugosa),</em> Loch Carron - Jan 2011 ');
news[29] = new newsStory(157686,'\'Best of British\' portfolio competition at BSoUP - October 2010');
news[30] = new newsStory(158085,'Loch Goil & Loch Long, Scotland - October 2010');
news[31] = new newsStory(154975,'Eddystone lighthouse, Plymouth - September 2010');
news[32] = new newsStory(153765,'\'Underwater excellence\' competition at BSoUP - September 2010');
news[33] = new newsStory(150234,'Diving the Scottish Highlands, article for Dive magazine - September issue 2010');
news[34] = new newsStory(145971,'Sea loch anemone <em>(Protanthea simplex),</em> Loch Leven - July 2010');
news[35] = new newsStory(145354,'Common Frog <em>(Rana temporaria),</em> from garden pond - July 2010');
news[36] = new newsStory(140424,'The Great Diving Beetle <em>(Dytiscus marginalis)</em> - June 2010');
news[37] = new newsStory(137578,'Leopard spotted Goby <em>(Thorogobius ephippiatus),</em> Mevagissey - May 2010');
news[38] = new newsStory(96487,'BUIF Dive Fest, Mevagissey, Cornwall - May 2010');
news[39] = new newsStory(136133,'Pike <em>(Esox lucius),</em> wins BSoUP\'s Focus On competion - April 2010');
news[40] = new newsStory(134945,'Spider crab <em>(Maia squinado),</em> gets Wildlife Trusts award - April 2010');
news[41] = new newsStory(134944,'Yellow Box fish, LIDS & Diver/BSoUP print competition - April 2010');
news[42] = new newsStory(134938,'Diving the Scottish Highlands - April 2010');
news[43] = new newsStory(133296,'Newts <em>(Lissotriton vulgaris),</em> back in the water and breeding - March 2010');
news[44] = new newsStory(127879,'Pike <em>(Esox lucius),</em> wins Focus On competition at BSoUP - February 2010');
news[45] = new newsStory(113730,'British portfolio 2009, article in Sport Diver magazine');
news[46] = new newsStory(98895,'Spider crab <em>(Maia sqinado),</em> Stackpole Quay article for Dive magazine');
news[47] = new newsStory(88117,'Jewel anemomes & Ballan wrasse for Porthkerris diving feature in Dive magazine   ');
news[48] = new newsStory(73250,'British portfolio 2008, article in Sport Diver magazine');
news[49] = new newsStory(211833,'Front cover for BSoUP\'s In Focus magazine, spring 2009 issue');
news[50] = new newsStory(81401,'Grey Seal pup and Martin\'s Haven shore diving article for Dive magazine');
news[51] = new newsStory(81390,'Loch Duich and \'Winter diving\' article for Dive magazine ');
news[52] = new newsStory(77332,'West Country Cottages - front cover for the 2009 brochure');
news[53] = new newsStory(51958,'100 hits per month to  www.trevorreesphotography.co.uk');


