var vacaturesbouwbedrijven = {
	
	'a.mailto' : function(el) {
		el.onclick = function() {
			this.href = "mailto:" + this.title.replace(/\[at\]/, "@");
			urchinTracker('/mailto/' + this.href);
		}
	},
	
	'a.mainsite' : function(el) {
		el.onclick = function() {
			this.href = this.href.replace(/^http:\/\/[a-z.-]+\//i, "http://www.vacaturesbouwbedrijven.nl/");
			this.target = "_blank";
			urchinTracker('/outgoing/' + encodeURIComponent(this.href));
		}
	},
	
	'a.outgoing' : function(el) {
		el.onclick = function() {
			this.target = "_blank";
			urchinTracker('/outgoing/' + encodeURIComponent(this.href));
		}
	},
	
	'a.print' : function(el) {
		el.onclick = function() {
			window.print();
			return false;
		}
	},
	
	'form.validate' : function(el) {
		el.onsubmit = function() {
			return formValidation(this);
		}
	},
	
	'a.popup' : function(el) {
		el.onclick = function() {
			document.getElementById("cntbody").className = "transparent";
			document.getElementById("popup").style.display = "block";
			scroll(0,0);
		}
	},
	
	'input.closepopup' : function(el) {
		el.onclick = function() {
			document.getElementById("cntbody").className = "";
			document.getElementById("popup").style.display = "none";
		}
	}
	
};

Behaviour.register(vacaturesbouwbedrijven);