/*
Created by Nathan Toye
1-29-09
*/
// JavaScript Document
// Navigation
var ContactLinks = {
	init: function(){
		var contactArray = Core.getElementsByClass("bioLink");
		for (var i = 0; i < contactArray.length; i++){
			Core.addEventListener(contactArray[i], "mouseover", ContactLinks.buttonFocus);
			Core.addEventListener(contactArray[i], "mouseout", ContactLinks.buttonOff);
			Core.addEventListener(contactArray[i], "click", ContactLinks.openBio);
		}
	},
	buttonFocus: function(){
		if (!(Core.hasClass(this, "boxGrey"))){
			Core.addClass(this, "boxGrey");
		}
	},
	openBio: function(){
		location.href = this.id;
	},
	buttonOff: function(){
		if (Core.hasClass(this, "boxGrey")){
			Core.removeClass(this, "boxGrey");
		}
	}
};

Core.start(ContactLinks); 