// JavaScript Document

// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideshowSpeed (milliseconds)
var slideshowSpeed = 3500;

// Duration of crossfade (seconds)
var crossFadeDuration = 1;

// Image array
var Pic = new Array();
// Specify the image files
Pic[0]  = 'images/rpm-home-513x316-01.jpg';
Pic[1]  = 'images/rpm-home-513x316-02.jpg';
Pic[2]  = 'images/rpm-home-513x316-03.jpg';
Pic[3]  = 'images/rpm-home-513x316-04.jpg';
Pic[4]  = 'images/rpm-home-513x316-05.jpg';
Pic[5]  = 'images/rpm-home-513x316-06.jpg';
Pic[6]  = 'images/rpm-home-513x316-07.jpg';
Pic[7]  = 'images/rpm-home-513x316-08.jpg';
Pic[8]  = 'images/rpm-home-513x316-01.jpg';

// =======================================
// do not edit anything below this line
// =======================================

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];
}

function runslideshow()
{
	if (document.all)
	{
	  document.images.slideshow.style.filter="blendTrans(duration=2)";
	  document.images.slideshow.style.filter="blendTrans(duration=crossFadeDuration)";
	  document.images.slideshow.filters.blendTrans.Apply();
	}
	document.images.slideshow.src = preLoad[j].src;
	if (document.all)
	{
	  document.images.slideshow.filters.blendTrans.Play();
	}
	j = j + 1;
	if (j > (p-1))
	{ 
		j=0; 
	}
	t = setTimeout('runslideshow()', slideshowSpeed);
}

