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];
}
var picNum = 0;
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;
document.images.SlideShow.alt = textArray[j];
//display_code(textArray[j],'slide_text');
picNum = j;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}

/*function slide_click() {
  	window.open("port_ind_view.cfm?photoid="+linkTo[picNum], "_blank", "height=500,width=650,resizable=yes,toolbar=no,menubar=no,status=no,scrollbars=no");
}
function getElement(element) {
	if (document.all) {
		// IE support document.all, but does not fully support
		// document.getElementById()
		return document.all[element];
	} else if (document.getElementById) {
		// Mozilla and its offspring (including NS6+) only support
		// document.getElementById()
		return document.getElementById(element);
	} else {
		// And, of course, there might be NS4 users using this - and their
		// browser doesn't support getting an element by name
		return null;
	}
}
function display_code(code,divname){
	var div = getElement(divname);
	// div will be null if the browser is not IE or not W3C DOM compliant
	if (div != null)
		div.innerHTML = code;
}*/

