			//PHP dynamic web page saving gallery is the brainchild of mildMedia, further more
			//DIV show/hide functions are also by mildMedia: everyone's mildley good design firm (in association with trent simon)
			// (C) 2000 www.CodeLifter.com
			// http://www.codelifter.com
			// Free for all users, but leave in this  header
			// NS4-6,IE4-6
			// Fade effect only in IE; degrades gracefully
			 
			var stopstatus = 0;
			// Set slideShowSpeed (milliseconds)
			var slideShowSpeed = 4000;
			// Duration of crossfade (seconds)
			var crossFadeDuration = 3;
			// Specify the image files
			var Pic = new Array(); // don't touch this
			var Caption = new Array(); // don't change this
			var ids=new Array('slideFalse', 'slideTrue'); //names of the divs for the slideshow hide function
			var navs=new Array('workSub', 'hireSub', 'notesSub', 'contactSub'); //names of divs for the submenu navigationals
			
function callPic(dex) {
	document.images.SlideShow.src = preLoad[dex].src;
	if (document.getElementById) {
		document.getElementById("CaptionBox").innerHTML= Caption[dex];
	}
	switchid('slideTrue');
	endSlideShow();
}
			
function callTxt(its) {
	document.images.SlideShow.src = 'support/oneByOne.gif';
	switchnav(its);
	switchid('slideFalse');
	if (document.getElementById) {
		document.getElementById("CaptionBox").innerHTML= "<h1>Loading...</h1>";
	}	

}

function preLoadPic(index){
	if (Pic[index] != ''){
		window.status='Loading : '+Pic[index];
		preLoad[index] = new Image();
		preLoad[index].src = Pic[index];
		Pic[index] = '';
		window.status='';
	}
}

function runSlideShow() {
	if (stopstatus != '1') {
		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;
		if (document.all) {
			document.images.SlideShow.filters.blendTrans.Play();
		}
		if (document.getElementById) {
			document.getElementById("CaptionBox").innerHTML= Caption[j];
		}
		pos = j;
		j = j + 1;
		if (j > (p-1))j=0;
		t = setTimeout('runSlideShow()', slideShowSpeed);
		preLoadPic(j);
	}
}		

function endSlideShow(){
	stopstatus = 1;
}

function showdiv(id) {  //sets up the meth for show divs
	//safe function to show an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	} else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		} else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}

function hidediv(id) { //meth by which divs are hidden inde of array
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	} else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		} else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function switchid(id){	//call this function to show/hide slideshow
	hideallids(); //first it hides all divs in nav array
	showdiv(id); //call the showdiv function for one div id
}
function switchnav(ave){	//call this function to show/hide slideshow
	hideallnavs(); //first it hides all divs in nav array
	showdiv(ave); //call the showdiv function for one div id
}

function hideallids(){ //part of the ids hide function used to remove the slideshow elememt from view when not looking at pics
	//loop through the array and hide each element by id
	for (var i=0; i<ids.length; i++){
		hidediv(ids[i]);
	}		  
}
function hideallnavs(){ //this is part of nav submenu
	//loop through the array and hide each element by id
	for (var idv=0; idv < navs.length; idv++){
		hidediv(navs[idv]); //sets up the loop for "idv" in the navs array
	}		  
}

function loadall(){
	for (i = 1; i < p; i++) {
	 	preLoadPic(i);
	}
}