// (C) 2002 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header.

//var SlideShowSpeed = 3000;
var CrossFadeDuration = 1;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this
var Address = new Array(); // don't change this

// Specify the image files...
Picture[1]  = 'images/splash1.jpg';
Picture[2]  = 'images/splash2.jpg';
Picture[3]  = 'images/splash3.jpg';
Picture[4]  = 'images/splash4.jpg';

// Specify the Captions...
Caption[1]  = "A Canary Island Date Palm is dug with a trencher.";
Caption[2]  = "The Canary is loaded onto a semi trailer using a crane.";
Caption[3]  = "Soil and water are filled into the remaining hole.";
Caption[4]  = "The yard is returned to its original condition.";


// Specify Address Divs...
Address[1] = '<a href="contact/#pptc" class="nounderline"><b>Phoenix Palm Tree Collectors</b>:<br><font color="#000000">3310 West Bell Rd. #233<br>Phoenix, AZ 85053<br><font color="#7D8644"><b>&raquo;</b></font> Phone: (602) 757-8642<br><font color="#7D8644"><b>&raquo;</b></font> Cell: (561) 436-1231</font></a><br>';
Address[2] = '<a href="contact/#pptctx" class="nounderline"><b>PPTC Texas</b>:<br><font color="#000000">5159 County Road 397<br>Manvel, TX 77511<br><font color="#7D8644"><b>&raquo;</b></font> Phone: (866) 331-7256<br><font color="#7D8644"><b>&raquo;</b></font> Cell: (561) 436-1231</font></a><br>';
Address[3] = '<a href="contact/#am" class="nounderline"><b>Atlantic Materials</b>:<br><font color="#000000">P.O. Box 740321<br>Boynton Beach, FL 33474<br><font color="#7D8644"><b>&raquo;</b></font> Phone: (561) 436-1231<br><font color="#7D8644"><b>&raquo;</b></font> Fax: (561) 733-5855</font></a><br>';


var tss;
var iss;
var jss = 1; // current picture/caption to show
var pss = Picture.length-1; // length of picture/caption arrays

// this is the preloader
var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++) {
	preLoad[iss] = new Image();
	preLoad[iss].src = Picture[iss];
}
// end of preloader

/* this function is working
function runSlideShow() {
//	if (document.all) {
//		document.images.PictureBox.style.filter="blendTrans(duration=2)";
//		document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
//		document.images.PictureBox.filters.blendTrans.Apply();
//	}
	document.images.PictureBox.src = preLoad[jss].src;
	if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
//	if (document.all) document.images.PictureBox.filters.blendTrans.Play();

	jss = jss + 1;
	if (jss > (pss)) jss=1;

	setTimeout('runSlideShow()', SlideShowSpeed); // tss = 

}*/

// SETTING OFF ON MY OWN

function step() {
	if (document.all) {
		document.images.PictureBox.style.filter="blendTrans(duration=1)";
		document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
		document.images.PictureBox.filters.blendTrans.Apply();
	}
	document.images.PictureBox.src = preLoad[jss].src;
	if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
	if (document.all) document.images.PictureBox.filters.blendTrans.Play();
}

function next(){
	jss = jss + 1;
	if (jss > (pss)) jss=1;

	step(); // tss = 
}

function previous(){
	jss = jss - 1;
	if (jss == 0) jss=Picture.length-1;

	step(); // tss = 
}

function changediv(addy) {
	if (document.getElementById) document.getElementById("Addresses").innerHTML= Address[addy];
}