var therules = {
	'a.ext' : function(element) {
		element.onclick = function() {
			window.open(this.href, '_blank');
			return false;
		}
	},
	
	'a.pop' : function(element) {
		element.onclick = function() {
			window.open(this.href, 'popped', 'height=600,width=600,scrollbars=1');
			return false;
		}
	},
	
	'div#feed-headlines div.article-title a' : function(link) {
		link.onclick = function() {
			link.up().next().toggle()
			return false;
		}	
	},
	
	'div#feed-headlines a.close' : function(link) {
		link.onclick = function() {
			link.up(1).toggle();
			return false;
		}
	}
	
};

Behaviour.register(therules);