/*
 * Application
 * 
 * Rebelle Lighting
 *
 * January 19, 2006
 * 
 * Author: Clive Goodinson
 *
 */
Application = {
	initialize: function() {
		Application.setHover('tier-1');
		Application.setHover('tier-2');
		Application.setHover('tier-3');
		Application.setHover('thumbs');
	},
	
	setHover: function(className) {
		if (document.all && document.getElementById) {
			var menu = document.getElementsByClassName(className);
			var i, j;
			for (i=0; i<menu.length; i++) {
				for (j=0; j<menu[i].childNodes.length; j++) {
					var node = menu[i].childNodes[j];
					if (node.nodeName == "LI") {
						node.onmouseover = function() {
							Element.addClassName(this, 'over');
						}
						node.onmouseout = function() {
							Element.removeClassName(this, 'over');
						}
					}
				}
			}
		}
	}
}
window.onload=Application.initialize;
