var ClickArea = new Class({
	initialize: function(els) {
		els.each(function(el) {
			el.addEvents({
				mouseenter: function() { el.addClass('highlight'); },
				mouseleave: function() { el.removeClass('highlight'); }
			});
			var a = el.getElement('a');
			if (a) {
				if (a.get('href')) el.addEvent('click', function(e) {
					e.stop();
					if (a.hasClass('ext')) window.open(a, '_blank');
					else location.href = a; 
				});
			}	
		});
	}
});