// JavaScript Document

//Original:  CodeLifter.com (support@codelifter.com)
//Web Site:  http://www.codelifter.com
//Begin
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'hubbardton-slide-main-1_r.jpg'
Pic[1] = 'hubbardton-slide-main-2_r.jpg'
Pic[2] = 'hubbardton-slide-main-3_r.jpg'
Pic[3] = 'hubbardton-slide-main-4_r.jpg'


var current = 1;

// 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( current < Pic.length ){
		blendimage('blenddiv','blendimage', Pic[current],3000);
		++current;
	}else{
		current=0;
		blendimage('blenddiv','blendimage', Pic[current],3000);
	}
	t = setTimeout('runSlideShow()', slideShowSpeed);
}




// Preload Images
image1 = new Image();
image1.src = "hubbardton-slide-main-1_r.jpg";

image2 = new Image();
image2.src = "hubbardton-slide-main-2_r.jpg";

image3 = new Image();
image3.src = "hubbardton-slide-main-3_r.jpg";

image4 = new Image();
image4.src = "hubbardton-slide-main-4_r.jpg";




function movepic(img_name,img_src){
	document[img_name].src=img_src;
}


 
