
// (C) 2002 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header.

// ==============================
// Set the following variables...
// ==============================

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;

var tss;

////------------------ FOr Top slide show ------------------

var PictureTop = new Array(); // don't change this

// Specify the image files...
// To add more images, just continue
// the pattern, adding to the array below.
// To use fewer images, remove lines
// starting at the end of the PictureTop array.
// Caution: The number of PictureTops *must*
// equal the number of Captions!

PictureTop[1]  = '/images/dynpic1.gif';
PictureTop[2]  = '/images/dynpic2.gif';

// =====================================
// Do not edit anything below this line!
// =====================================

var issTop;
var jssTop = 1;
var pssTop = PictureTop.length-1;

var preLoadTop = new Array();
for (issTop = 1; issTop < pssTop+1; issTop++){
preLoadTop[issTop] = new Image();
preLoadTop[issTop].src = PictureTop[issTop];}

function runSlideShowTop(){
	if (document.all){
	document.images.PictureTopBox.style.filter="blendTrans(duration=2)";
	document.images.PictureTopBox.style.filter="blendTrans(duration=CrossFadeDuration)";
	document.images.PictureTopBox.filters.blendTrans.Apply();
	}
	document.images.PictureTopBox.src = preLoadTop[jssTop].src;
	if (document.all) document.images.PictureTopBox.filters.blendTrans.Play();
	jssTop = jssTop + 1;
	if (jssTop > (pssTop)) jssTop=1;
	//tssTop = setTimeout('runSlideShow()', SlideShowSpeed);
}

////------------------ FOr bottom slide show ------------------

var PictureBottom = new Array(); // don't change this

// Specify the image files...
// To add more images, just continue
// the pattern, adding to the array below.
// To use fewer images, remove lines
// starting at the end of the PictureBottom array.
// Caution: The number of PictureBottoms *must*
// equal the number of Captions!

PictureBottom[1]  = '/images/dynpicd1.gif';
PictureBottom[2]  = '/images/dynpicd2.gif';

// =====================================
// Do not edit anything below this line!
// =====================================

var issBottom;
var jssBottom = 1;
var pssBottom = PictureBottom.length-1;

var preLoadBottom = new Array();
for (issBottom = 1; issBottom < pssBottom+1; issBottom++){
preLoadBottom[issBottom] = new Image();
preLoadBottom[issBottom].src = PictureBottom[issBottom];
}

function runSlideShowBottom(){
	if (document.all){
	document.images.PictureBottomBox.style.filter="blendTrans(duration=2)";
	document.images.PictureBottomBox.style.filter="blendTrans(duration=CrossFadeDuration)";
	document.images.PictureBottomBox.filters.blendTrans.Apply();
	}
	//document.images.PictureBottomBox.width = '100%';

	document.images.PictureBottomBox.src = preLoadBottom[jssBottom].src;
	if (document.all) document.images.PictureBottomBox.filters.blendTrans.Play();
	jssBottom = jssBottom + 1;
	if (jssBottom > (pssBottom)) jssBottom=1;
	//tssBottom = setTimeout('runSlideShow1()', SlideShowSpeed);
}

function runSlideShow(){
	runSlideShowTop();
	runSlideShowBottom();
	tssBottom = setTimeout('runSlideShow()', SlideShowSpeed);
}