

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 8500

// Duration of crossfade (seconds)
var crossFadeDuration = 25

// Specify image files
var Pic = new Array()
	


	Pic[0] = 'images/home/2.jpg'
	Pic[1] = 'images/home/1.jpg'
	Pic[2] = 'images/home/4.jpg'
	Pic[3] = 'images/home/5.jpg'
	Pic[4] = 'images/home/6.jpg'
	Pic[5] = 'images/home/7.jpg'
	Pic[6] = 'images/home/8.jpg'
	Pic[7] = 'images/home/9.jpg'
	Pic[8] = 'images/home/10.jpg'
	Pic[9] = 'images/home/11.jpg'
	Pic[10] = 'images/home/12.jpg'
	



var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}


var innerHtml = new Array()



innerHtml[0] = '<a href="timetables/index.aspx"><img src="images/home/2.jpg" /></a>';
innerHtml[1] = '<a href="fares/16to19.aspx"><img src="images/home/1.jpg" />';
innerHtml[2] = '<a href="timetables/index.aspx" target="_blank"><img src="images/home/4.jpg" /></a>';
innerHtml[3] = '<a href="fares/group.aspx.aspx" target="_blank"><img src="images/home/5.jpg" /></a>';
innerHtml[4] = '<a href="timetables/index.aspx" target="_blank"><img src="images/home/6.jpg" /></a>';
innerHtml[5] = '<a href="timetables/index.aspx" target="_blank"><img src="images/home/7.jpg" /></a>';
innerHtml[6] = '<a href="http://www.coasthopper.co.uk" target="_blank"><img src="images/home/8.jpg" /></a>';
innerHtml[7] = '<a href="fares/index.aspx" target="_blank"><img src="images/home/9.jpg" /></a>';
innerHtml[8] = '<a href="timetables/index.aspx" target="_blank"><img src="images/home/10.jpg" /></a>';
innerHtml[9] = '<a href="timetables/index.aspx" target="_blank"><img src="images/home/11.jpg" /></a>';
innerHtml[10] = '<a href="fares/index.aspx" target="_blank"><img src="images/home/12.jpg" /></a>';




function runSlideShow(){
	var slideShowElement = document.getElementById("SlideShow");

   if (document.all){
      slideShowElement.filters[0].apply();
   }
   //slideShowElement.src = preLoad[j].src;
   slideShowElement.innerHTML = innerHtml[j];
   if (document.all){
      slideShowElement.filters[0].Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

