
// Image 2 State Rollovers
window.onload = rolloverInit;

function rolloverInit() {
	for (var i=0; i < document.images.length; i++) {
		if (document.images[i].parentNode.tagName =="A") {
			setupRollover(document.images[i]);
		}
	}
}

function setupRollover (thisImage) {
     thisImage.outImage = new Image();
	 thisImage.outImage.src = thisImage.src;
	 thisImage.onmouseout = rollOut;
	 
	 thisImage.overImage = new Image();
	 thisImage.overImage.src = "art/" + thisImage.id + "_on.gif";
	 thisImage.onmouseover = rollOver;
	 
	 thisImage.parentNode.childImg = thisImage;
	 thisImage.parentNode.onblur = rollOutChild;
	 thisImage.parentNode.onfocus = rollOverChild;
}

function rollOut() {
	this.src = this.outImage.src;
}

function rollOver() {
	this.src = this.overImage.src;
}

function rollOutChild() {
	this.childImg.src = this.childImg.outImage.src;
}

function rollOverChild() {
	this.childImg.src = this.childImg.overImage.src;
}
//end Rollovers



//Photo Gallery

function swapImage(id, newImage) {
      
	 document.getElementById(id).src = newImage;
	 
}
//end Phot gallery


