
var j = 0;
var p = Pic.length;
var Fader = new Array();

for (i = 0; i < p; i++){
	Fader[i] = new Image();
	Fader[i].src = Pic[i];
}


function change(x){
	if (document.all){
		document.images.SlideShow.style.filter="blendTrans(duration=1.7)";
		document.images.SlideShow.filters.blendTrans.Apply();
	}
	if (x == "1"){j = j + 1;if (j > (p-1)) j=0;}
	if (x == "0"){j = j - 1;if (j == "-1") j=p-1;}
	document.images.SlideShow.src = Fader[j].src;
	Cap[j] = fixQuote(Cap[j]);
	Own[j] = fixQuote(Own[j]);

	capBox.innerHTML = Cap[j];
	ownBox.innerHTML = Own[j];

	if (document.all){
		document.images.SlideShow.filters.blendTrans.Play();
	}
}

function fixQuote(x){
	x = x.replace(/&quot;/g, "\"");
	return x;
}


