// Global image preloader
if (document.images) {

	var sRoot = "http://www.mfxfairfax.com/assets/images/";

	img1on = new Image();
	img1off = new Image();
	img2on = new Image();
	img2off = new Image();
	img3on = new Image();
	img3off = new Image();
	img4on = new Image();
	img4off = new Image();
	img5on = new Image();
	img5off = new Image();

	img1on.src = sRoot + "b_comp_on.gif";
	img1off.src = sRoot + "b_comp_off.gif";
	img2on.src = sRoot + "b_prod_on.gif";
	img2off.src = sRoot + "b_prod_off.gif";
	img3on.src = sRoot + "b_news_on.gif";
	img3off.src = sRoot + "b_news_off.gif";
	img4on.src = sRoot + "b_careers_on.gif";
	img4off.src = sRoot + "b_careers_off.gif";
	img5on.src = sRoot + "b_contact_on.gif";
	img5off.src = sRoot + "b_contact_off.gif";
}

// Function to 'activate' images.
function imgOn(imgName) {
	if (document.images && !(navigator.appName.indexOf("Explorer") > 0 && navigator.appVersion.indexOf("3.0") == 0)) {
		document[imgName].src = eval(imgName + "on.src");
	}
}

// Function to 'deactivate' images.
function imgOff(imgName) {
	if (document.images && !(navigator.appName.indexOf("Explorer") > 0 && navigator.appVersion.indexOf("3.0") == 0)) {
		document[imgName].src = eval(imgName + "off.src");
	}
}