

<!--//
// Javascript source for swapover / link controls.
// Copyright P.Martland 1998
// Adapted for Big Cat sanctuary 2003
//
// Usage:
// Each link is represented in the array with a name, this name should
// should also be used as the NAME parameter in the Img tag of the page
// this script is embedded in.
// 
// The A tag should utilse onmouseover/onmouseout events that represent
// the functions below, but it is important to remember that the first
// images mouse event begins at zero. Hence, for the first A tag, the
// onmouseover event would be represented as: onmouseover="on_Over(0)".

// Simple Browser Check

var browserCheck = false;

if(parseInt(navigator.appVersion) >= 4)
{
	browserCheck = "OK";
}
else 
{
	browserCheck = "NOTOK";
}


// Initiate an array to store the button/swapover image names



var butName = new Array("raja2","tomquin","karen","zhivah","jumanji","sebastion","sierra","saber","norman","milo","bugsy","buddha","margo","diva","haus","tabby","robbie","teinomen","duke","daunte","gabe","shena");

var catArr = new Array("Rajah","Tom Quin","Karen","Zhivah","Jumanji","Sebastion","Sierra","Saber","Norman","Milo","Bugsy","Buddha","Margo","Diva","Haus","Tabby","Robbie","Tienomen","Duke","Daunte","Gabe","Shena");
//var butName = new Array("Rajah2","tomquin");
// Set Button Directory

var dirPath = "images/main/cats/";

// Set Number of Page Links

var linkNum = butName.length;

// Define Source Arrays

var butOn = new Array(linkNum)
var butOff = new Array(1)

// Set objects and cache sources

	butOff[1] = new Image();
	butOff[1].src = dirPath + "zhivah.jpg";
	//document.forms.catSelect.catName.value = "Zhivah";
	
for (i=0; i<linkNum; i++){
	butOn[i] = new Image();
	butOn[i].src = dirPath + butName[i] + ".jpg";
}

function on_Over(theImage){
	if (browserCheck == "OK"){
		document.images["thecats"].src=butOn[theImage].src;
		document.forms.catSelect.catName.value = catArr[theImage];
	}
}

function on_Out(theImage){
	if (browserCheck == "OK")
		document.images["thecats"].src = butOff[1].src
		document.forms.catSelect.catName.value = "Zhivah";
}
	


//-->

