/* I had to put this file here because trianglepc.org was doing some type of url forward to
faithwebsites.com/sysfiles/member that was causing the home page slide show to not work*/

var t;
var j = 0;
var p_slide = Pic.length;
var preLoad = new Array();
for (i = 0; i < p_slide; 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 = altArray[j];
display_code(textArray[j],'slide_text');
picNum = j;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p_slide - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}

function slide_click() {
	if (linkTo[picNum] != "" && linkTo[picNum] != "http://"){
		windowprops = "top=0,left=0,width=800,height=600,resizable=yes,scrollbars=yes";
		url = linkTo[picNum];
		if(linkType[picNum] == "E")
			window.open(url, "_blank", windowprops);
		else
			location.href = url;
	}
}
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;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
