    var i = 0
    var x = 0
           
var imgCaption=new Array(3)
     imgCaption[0]="Our Autumn Open Day is Sunday 27h September. As ever, we will be running the dyno all day long for power runs and also advice All proceeds from this event will be going to local charities. <br><br>Last year saw a very diverse attendance of performance cars and we would anticipate the same this time around.  So, put this one in your diary and we will see you on the 27th September.";
     imgCaption[1]="David is recognised as one of the foremost engine designer/ engine builders in the UK. He has over two decades of experience as an Engine Builder: amongst his achievements is the design and development of the 6.3 litre Aston Martin Engine – an engine that was later offered as a factory upgrade option by Aston Martin.  <a href=Engines-David-Martin.asp>read more</a>";
     imgCaption[2]="A leading authority on Performance Engine Design - appointed by Austec Racing. David Vizard has a huge following and has written over 4000 articles and papers plus 30 books on performance engine building and design theory. He has been a consultant to F1 entities such as Cosworth and McLaren as well as  corporate auto giants. Many of the major US performance companies also use him as a consultant. Look out for David’s regular column 'Performance Matters' only at www.austec.co.uk";

     var titleCaption=new Array(3)
     titleCaption[0]='NEWS FLASH..NEWS FLASH  Keep your diary open on Sunday 27 Sept.';
     titleCaption[1]='Experienced Engine Builder - David Martin';
     titleCaption[2]='David Vizard Joins the Austec Racing team.';     

function imgAndCaption()
{
    var getCaption = imgCaption[0]+""
    var getTitle = titleCaption[0]+""
    document.getElementById('boldStuff').innerHTML = getCaption;
    document.getElementById('boldStuff2').innerHTML = getTitle;
    	
	setTimeout('rotateGallery()',22000) 
}

function rotateGallery()
{

NextImage();
setTimeout('rotateGallery()',22000) 
}

function changeText(){
  //   i=i+1
     var getCaption = imgCaption[i]+""
     var getTitle = titleCaption[i]+""
	document.getElementById('boldStuff').innerHTML = getCaption;
		document.getElementById('boldStuff2').innerHTML = getTitle;
	
//stuff for pix
    var pathName = "images/site_graphics/"
    var fileType = ".gif"
    myImage = new Image() ;
	
var imgSrc=new Array()
     imgSrc[0]= pathName+"open-daySpring09"+fileType+"";
     imgSrc[1]= pathName+"david-martin-joins"+fileType+"";
     imgSrc[2]= pathName+"david-vizard-joins"+fileType+"";
	document.pic1.src = imgSrc[i]+"";	

	
}

function changeImage()
{
//x++;
changeText();
}

function NextImage()
{
if (i<2 && x<2) 
{
i=i+1;
x=x+1;
changeText(i);
}
else
{
i=0;
x=0;
changeText(i);
}
}

function PreviousImage()
{
if (i<0 && x<2) 
{
i=i-1;
x=x-1;
changeText(i);
}
else
{
i=0;
x=0;
changeText(i);
}
}

