
var myrules = {
		'.submenu' : function(element){  //select anything that is classed with the appropriate list class
			if(typeof(window.ActiveXObject) == "function"){ //check for IE
				element.onmouseover = function(){ //on mouseover
					this.className += " on"; //add class name "on" to the <li> element
				}
				element.onmouseout = function(){ //on mouseout
					this.className = this.className.replace(" on", ""); //remove class name "on" to the <li> element
				}
			}
		}
	};

Behavior.register(myrules);
