    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.";

     var titleCaption=new Array(3)
     titleCaption[0]='NEWS FLASH..NEWS FLASH  Keep your diary open on Sunday 27 Sept.';

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+"";
	document.pic1.src = imgSrc[i]+"";	

	
}

function changeImage()
{
//x++;
changeText();
}

function NextImage()
{
if (i<1 && x<1) 
{
i=i+1;
x=x+1;
changeText(i);
}
else
{
i=0;
x=0;
changeText(i);
}
}

function PreviousImage()
{
if (i<0 && x<1) 
{
i=i-1;
x=x-1;
changeText(i);
}
else
{
i=0;
x=0;
changeText(i);
}
}


