/*************************************************************************

Workaround to attach hover behaviors to non-anchor elements in IE/Win
Script based on the "son of suckerfish dropdowns" article at:
http://www.htmldog.com/articles/suckerfish/dropdowns/

*************************************************************************/

// if this is IE/Win, attach pseudo-hovers
if (window.attachEvent) {
	// array of buttons
	var buttons = document.getElementById("buttons").getElementsByTagName("DIV");
	
	// attach events to the button divs
	for (var i = 0; i < buttons.length; i++) {
		buttons[i].onmouseover = function() {
			this.className += " hovered";
		}
		buttons[i].onmouseout = function() {
			this.className = this.className.replace(/hovered/,"");
		}
		buttons[i].onclick = function() {
			anchor = this.getElementsByTagName("A");
			window.location.href = anchor[0].href;
		}
	}
}
