// image swapper
function changeImages() 
{
  if (document.getElementById) {
    for (var i = 0; i < changeImages.arguments.length; i += 2) { 
  		document.getElementById(changeImages.arguments[i]).src = eval(changeImages.arguments[i + 1] + ".src"); 
	}
  }
}

// preload level 1 buttons
var aBtn = new Array();
aBtn = ["","aboutus","news","adoptions","lendapaw", "caring"];
for (i = 1; i < aBtn.length; i++) {
	eval("menu" + i + "on = new Image();");	eval("menu" + i + "off = new Image();");
	eval("menu" + (i) + "on.src = \"" + sFolderLevel + "images/navigation/" + aBtn[i] + "-r.gif\";");
	eval("menu" + (i) + "off.src = \"" + sFolderLevel + "images/navigation/" + aBtn[i] + "-0.gif\";");
	if (sSelectedButton == aBtn[i]) {
		eval("menu" + (i) + "off.src = \"" + sFolderLevel + "images/navigation/" + aBtn[i] + "-1.gif\";");
	}
}
	
// image-swapping functions
function changeImage(imageName,newImageSource) {
		if (document.images) {
			document.images[imageName].src = newImageSource;
		}
	}
