/************************************
  APEX Controls Webpage JavaScripts
  Author: Will Calkins
  Date:   11/20/2009
 ************************************/

function email(address, domain, ext) {
	document.write("<a href='mailto:" + address + "@" + domain + "." + ext + "'>" + address + "@" + domain + "." + ext + "</a>");
}

function specialEmail(address, domain, ext, display) {
	document.write("<a href='mailto:" + address + "@" + domain + "." + ext + "'>" + display + "</a>");
}

function swap(id, path) {
	document.getElementById(id).src = path;
}

function show(id) {
	document.getElementById(id).style.visibility = "visible";
}

function hide(id) {
	document.getElementById(id).style.visibility = "hidden";
}

function swapImage(imgID1, imgID2) {
	var newImg1 = document.getElementById(imgID2).src;
	var newImg2 = document.getElementById(imgID1).src;
	
	document.getElementById(imgID1).src = newImg1;
	document.getElementById(imgID2).src = newImg2;
}