/*
Usage:   

	var myrules = {
		'b.someclass' : function(element){
			element.onclick = function(){
				alert(this.innerHTML);
			}
		},
		'#someid u' : function(element){
			element.onmouseover = function(){
				this.innerHTML = "BLAH!";
			}
		}
	};
	
	Behaviour.register(myrules);

*/
var myrules = {
	'a.magnolia_link_name' : function(element){
		element.onmouseover = function(e){
			var description = this.parentNode.nextSibling;			
			description.style.left = (Event.pointerX(e)+5)+"px";
			description.style.display = 'block';
		},
		element.onmouseout = function(){
			var description = this.parentNode.nextSibling;			
			description.style.display = 'none';
		}
	},
	'#banner' : function(element){
	    element.onclick = function(){
	        location.href = this.getAttribute('href');
	    }
	}
};

Behaviour.register(myrules);
