// rules for behaviour.js 

var myrules = {
	'#header_menu': function(div) {
		new EGSMenu(div);
	},
	'#menu': function(div) {
		new EGSMenu(div);
	},
	/*
	'#tickera': function(link) {
			t = new RSSTicker("/news/rss/", $('tickera'));
			t.start();
		},*/
	
	'a.externallink': function(link) {
		link.onclick = function() {
			if(!confirm("You are about to leave the website of the Cavanagh Group and view the content of an external site. The Cavanagh Group cannot be held responsible for the content of external websites")) {
				return false;
			}
		}
	}
};

Behaviour.register(myrules); 