var Spirit_rules = {

	'a' : function(el) {
		el.onfocus = function() {
			this.blur();
			if (el.getAttribute('rel') == 'external') {
				el.setAttribute('target', '_blank');
		   }
		}
	}, 

	'#container ul li' : function(el) {
		el.onmouseover = function() {
			this.className += ' menu_over';
		}
		el.onmouseout = function() {
			this.className = this.className.replace('menu_over', '');
		}
		el.onclick = function() {
			id = this.id;
			el = 'link_' + id.replace('list_', '');
			linkje = $(el).href;
			location.href = linkje;
			this.className = this.className.replace('menu_over', '');
			return false;
		}
	},

	'a#mail5' : function(el) {
		el.onclick = function() {
			safeEmail('inge', 'levenindezon');
			return false;
		}
	},

	'a#mail1' : function(el) {
		el.onclick = function() {
			safeEmail('ties', 'levenindezon');
			return false;
		}
	},

	'a#mail2' : function(el) {
		el.onclick = function() {
			safeEmail('mark', 'levenindezon');
			return false;
		}
	},

	'a#mail3' : function(el) {
		el.onclick = function() {
			safeEmail('inge', 'levenindezon');
			return false;
		}
	},

	'a#mail4' : function(el) {
		el.onclick = function() {
			safeEmail('janw', 'levenindezon');
			return false;
		}
	},

	'img' : function(el) {
		el.setAttribute('galleryimg', 'no');
	}
}

Behaviour.register(Spirit_rules);

function init(){
  sIFR();
}

Behaviour.addLoadEvent(init);

//<![CDATA[
/* Replacement calls. Please see documentation for more information. */

if(typeof sIFR == "function"){

sIFR.replaceElement(named({sSelector:"h1", sFlashSrc:"/_files/sifr_Bon.swf", sColor:"#ffffff", sWmode: "transparent"}));
};

//]]>
function safeEmail(user, domain) { 
	var e = user + unescape("%40") + domain + '.nl'; 
	var s=''
	location = 'mailto:' + e + '?subject=' + s;
}


