var d=document;

var flag=false;

if (d.images) {
	whatwedo_Over = new Image();	whatwedo_Over = "/images/tab_wwd_black.gif";
	whatwedo_Out = new Image();		whatwedo_Out = "/images/tab_wwd_grey.gif";
	
	hometab_Over = new Image();		hometab_Over = "/images/tab_home_black.gif";
	hometab_Out = new Image();		hometab_Out = "/images/tab_home_grey.gif";
	
	whowehelp_Over = new Image();	whowehelp_Over = "/images/tab_wwh_black.gif";
	whowehelp_Out = new Image();	whowehelp_Out = "/images/tab_wwh_grey.gif";
	
	whoweare_Over = new Image();	whoweare_Over = "/images/tab_wwa_black.gif";
	whoweare_Out = new Image();		whoweare_Out = "/images/tab_wwa_grey.gif";
	flag=true;
}

function rollPOver(imgName) {
	if (d.images && (flag == true)) {
		d[imgName].src = eval(imgName + '_Over');
	}
}
function rollPOut(imgName) {
	if (d.images && (flag == true)) {
		d[imgName].src = eval(imgName + '_Out');
	}
}

function expand2nav(id) {
	e=document.getElementById(id);
	if (e.style.display == 'none' || e.style.display =="") {
		e.style.display = 'block';
	} else {
		e.style.display = 'none';
	}
}

function delObject() {
	var doyou = confirm("Are you SURE you want to delete?");
	if (doyou == true) {
		return 1;
	} else {
		return 0;
	}
}

// hiding email addresses with in the HTML copy as created by FCKeditor
// needs this function to reassemble the email address
function mt(name,domain,subject,body) {
  location.href = 'mailto:' + name + '@' + domain + '?subject=' + subject + '&body=' + body;
}
