<!--

var newsitem = new Array();

function newsObject(headline,teaser, plink){
	this.headline = headline;
	this.teaser = teaser;
	this.pagelink = plink;
}

newsitem[0] = new newsObject("Ultimate Dyno Facilities","Motrac Racing can now provide customers with access to the ONLY UK DynoJet Dyno centre with fully integrated RAM-AIR simulation and real time Air/Fuel Ratio facilities; offering the most advanced diagnostic Dyno system available.<br><br>As one of the longest established Motorcycle Dyno centres in the country, Motrac has been providing specialised diagnostic services to customers at the very highest levels since 1990, and continue to remain at the very peak of technical development.","dynojet.html");
newsitem[1] = new newsObject("Service Please!","If you're a road rider and you're not getting the service you'd like from your dealer, then look no further than Motrac Racing for a full health check for your machine.","news.html#newsarticle1");
newsitem[2] = new newsObject("New look newsletter","Make sure you don't miss out on any of our new developments by adding your email address to our newsletter database now.","news.html#newsarticle2");




var spanStyleHeader ="";
var spanStyleCopy="";
var spanStyleLink="";

if (homepage){
	spanStyleHeader ="<span class='headerwhite'>";
	spanStyleCopy="<span class='textyellow'>";
	spanStyleLink="<span class='textboldwhite'>";
	}else{
	spanStyleHeader ="<span class='textboldred'>";
	spanStyleCopy="<span class='textdgrey'>";
	spanStyleLink="<span class='textboldred'>";
}



function newsRandomWriter(){

var randomFactor = Math.round(Math.random()*(newsitem.length-1));
writeHTML(randomFactor);
}

//-->

function writeHTML(whichArticle){
document.write("<a href='"+newsitem[whichArticle].pagelink+"' target='_top'>"+spanStyleHeader+newsitem[whichArticle].headline+"<br></span></a>");
document.write(spanStyleCopy+newsitem[whichArticle].teaser+"<br></span>");
document.write("<a href='"+newsitem[whichArticle].pagelink+"' target='_top'>"+spanStyleLink+"More Information >></span></a>");
}