if (document.images) {
	tr_on 				= new Image();
	tr_on.src 			= "images/foa_header_tr_on.jpg";
	fr_on 				= new Image();
	fr_on.src 			= "images/foa_header_fr_on.jpg";
	en_on 				= new Image();
	en_on.src 			= "images/foa_header_en_on.jpg";
	nl_on 				= new Image();
	nl_on.src 			= "images/foa_header_nl_on.jpg";
	enter_on 			= new Image();
	enter_on.src 		= "images/foa_intro_enter_on.jpg";
	intro_on 			= new Image();
	intro_on.src 		= "images/foa_menu_intro_on.jpg";
	home_on 			= new Image();
	home_on.src 		= "images/foa_menu_home_on.jpg";
	show_on 			= new Image();
	show_on.src 		= "images/foa_menu_show_on.jpg";
	history_on 			= new Image();
	history_on.src 		= "images/foa_menu_history_on.jpg";
	tickets_on 			= new Image();
	tickets_on.src 		= "images/foa_menu_tickets_on.jpg";
	contact_on 			= new Image();
	contact_on.src 		= "images/foa_menu_contact_on.jpg";

	
	
	tr_off 				= new Image();
	tr_off.src 			= "images/foa_header_tr.jpg";
	fr_off 				= new Image();
	fr_off.src 			= "images/foa_header_fr.jpg";
	en_off 				= new Image();
	en_off.src 			= "images/foa_header_en.jpg";
	nl_off 				= new Image();
	nl_off.src 			= "images/foa_header_nl.jpg";
	enter_off 			= new Image();
	enter_off.src 		= "images/foa_intro_enter.jpg";
	intro_off 			= new Image();
	intro_off.src 		= "images/foa_menu_intro.jpg";
	home_off 			= new Image();
	home_off.src 		= "images/foa_menu_home.jpg";
	show_off 			= new Image();
	show_off.src 		= "images/foa_menu_show.jpg";
	history_off 		= new Image();
	history_off.src 	= "images/foa_menu_history.jpg";
	tickets_off 		= new Image();            
	tickets_off.src 	= "images/foa_menu_tickets.jpg";
	contact_off			= new Image();
	contact_off.src 	= "images/foa_menu_contact.jpg";
}

function img_act(imgName) {
	if (document.images) {
		imgOn = eval(imgName + "_on.src");
		document.images[imgName].src = imgOn;
	}
}

function img_inact(imgName) {
	if (document.images) {
		imgOff = eval(imgName + "_off.src");
		document.images[imgName].src = imgOff;
	}
}

function popup(url,a,b) {
	var breedte = a ? a : 350;
	var hoogte = b ? b : 250;
	var boven = Math.floor((top.screen.height - hoogte)/2);
	var links = Math.floor((top.screen.width - breedte)/2);

	var popup = window.open(url,'news','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0,width='+breedte+',height='+hoogte+',screenX='+links+',screenY='+boven+',left='+links+',top='+boven);
	popup.opener = self;
	popup.focus();
}

function mailCreator() {
// properties
this.at = "@";
this.domain = "gonzales"
this.country = ".be";
this.name = false;
this.label = false;
this.setStr = false;
this.error = "NO EMAIL";

	// private function
	this.createAddress = function() {
	this.setStr = "<a href='mailto:";
	this.setStr += this.name + "'>";
	this.setStr += this.label;
	this.setStr += "</a>";
	}
	// public function
	this.writeAddress = function(name,label) {
	this.name = name + this.at + this.domain + this.country;
	this.label = (label) ? label : this.name;
	this.createAddress();
	if(this.setStr) document.write(this.setStr);
	else document.write(this.error);
	}
		
}

em = new mailCreator();