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(160085,' FOR SALE  Peugeot 205 Stage Rally Car');
news[1] = new newsStory(158289,'RallySprint Event Rounds off Successful Year');
news[2] = new newsStory(152618,'Woodpecker Rally Delight Team Rallycards');
news[3] = new newsStory(149428,'Team Rallycards secure best ever finish ');
news[4] = new newsStory(111040,'Successful Season Finale at Staffordshire');
news[5] = new newsStory(103557,'40th Overall at Keevil');
news[6] = new newsStory(101048,'Rallycards.co.uk visits Ypres for the Intercontinental Rally Challenge');
news[7] = new newsStory(96720,'Solid Result at Cotswold Venue');
news[8] = new newsStory(93166,'Top 25 Result for Team Rallycards on Somerset Stages');
news[9] = new newsStory(87862,'Strong Run nets top 50 place');
news[10] = new newsStory(86551,'Team Rallycards: Technical Profile');
news[11] = new newsStory(86256,'Wellman Debuts New Subaru Impreza on Wyedean Rally');
news[12] = new newsStory(67698,'Driveshaft woes on the Azimghur Stages');
news[13] = new newsStory(55204,'Mixed Conditions on the Get it Sideways Stages.');
news[14] = new newsStory(50711,'Fraught Weekend for Team Rallycards');
news[15] = new newsStory(48805,'Rallycards joins forces with Wellman Rallying');
news[16] = new newsStory(47035,'The worlds best Mk2 Escort...?');
news[17] = new newsStory(36141,'Team Rallycards prepares for 2008 assault');
news[18] = new newsStory(39891,'New Commisions Undertaken');
news[19] = new newsStory(36140,'Rallycards goes live!');


