// Site link path (with trailing slash), referenced multiple times within this file.
//var link_path  = "file:///Users/john/Sites/tabitha/";
var link_path  = "/";

var J11= "";
if(!((parseInt(navigator.appVersion)<4) && (navigator.appName.toLowerCase().indexOf("microsoft")>-1))) {
	if (parseInt(navigator.appVersion)<3)
	J11=false;
		else
			J11=true;
	}
else
	J11=false;

var imHeads;
var swapIm = new Array();
var old = "";
var oldSrc = "";
var old2 = "";
var oldSrc2 = "";

var Im= new Array (

/*00*/		link_path+"images/community-button-on.jpg",
/*01*/		link_path+"images/house-building-button-on.jpg",
/*02*/		link_path+"images/wells-button-on.jpg",
/*03*/		link_path+"images/cottage-button-on.jpg",
/*04*/		link_path+"photos/community.jpg",
/*05*/		link_path+"photos/housebuilding.jpg",
/*06*/		link_path+"photos/wells.jpg",
/*07*/		link_path+"photos/cottage.jpg"

);

if(J11) {
	for(i in Im) {
		swapIm[i] = new Image();
		swapIm[i].src = Im[i];
		}
	}

function swap(n,index) {
	if(J11) {
		n = arguments[0].toString();
		index = parseInt(arguments[1]);
		eval("oldSrc = document." + n + ".src");
		old = n;
		eval("document." + n + " .src=swapIm[" + index + "].src");
		}
	}

function back() {
	if(J11) {
		eval("document." + old + ".src=oldSrc");
		}
	}
	
function swap2(n,index) {
	if(J11) {
		n = arguments[0].toString();
		index = parseInt(arguments[1]);
		eval("oldSrc2 = document." + n + ".src");
		old2 = n;
		eval("document." + n + " .src=swapIm[" + index + "].src");
		}
	}

function back2() {
	if(J11) {
		eval("document." + old2 + ".src=oldSrc2");
		}
	}
	
// the captions for the main page can be edited here.
  
   var aboutImage = new Array();
      aboutImage[0] = "Tabitha teaches families to build savings by giving 10% interest for every accomplished dream cycle";
      aboutImage[1] = "A group of Canadians puts the finishing touches on new homes for needy Cambodian families in October 2007";
      aboutImage[2] = "With the well program, Tabitha provides communities with clean, accessible water";
      aboutImage[3] = "Crafts sold in the Tabitha store are hand made by Cambodians who have been given help to start their own businesses"

   var aboutId
   function swapText(aboutId) {
          document.getElementById("aboutInfo").innerHTML = aboutImage[aboutId];
   }

