
if (document.images) {

// global navigation
    portfolioroll = new Image();
    portfolioroll.src = "../img/portfolio-on.gif";
    portfoliooff = new Image();
    portfoliooff.src = "../img/portfolio.gif";

    profileroll = new Image();
    profileroll.src = "../img/profile-on.gif";
    profileoff = new Image();
    profileoff.src = "../img/profile.gif";

    contactroll = new Image();
    contactroll.src = "../img/contact-on.gif";
    contactoff = new Image();
    contactoff.src = "../img/contact.gif";

// section navigation
    residentialroll = new Image();
    residentialroll.src = "img/residential-on.gif";
    residentialoff = new Image();
    residentialoff.src = "img/residential.gif";

    commercialroll = new Image();
    commercialroll.src = "img/commercial-on.gif";
    commercialoff = new Image();
    commercialoff.src = "img/commercial.gif";

    servicesroll = new Image();
    servicesroll.src = "img/services-on.gif";
    servicesoff = new Image();
    servicesoff.src = "img/services.gif";

    historyroll = new Image();
    historyroll.src = "img/history-on.gif";
    historyoff = new Image();
    historyoff.src = "img/history.gif";

    philosophyroll = new Image();
    philosophyroll.src = "img/philosophy-on.gif";
    philosophyoff = new Image();
    philosophyoff.src = "img/philosophy.gif";

    staffroll = new Image();
    staffroll.src = "img/staff-on.gif";
    staffoff = new Image();
    staffoff.src = "img/staff.gif";

}

function turnOn(imageName) {
    if (document.images) {
        document[imageName].src = eval(imageName + "roll.src");
    }
}

function turnOff(imageName) {
    if (document.images) {
        document[imageName].src = eval(imageName + "off.src");
    }
}


// generic pop-a-window script
	function pop(what,w,h) {
		popupWin = window.open (what, 'popup', 'status=0,resizable=0,scrollbars=yes,width=' + w + ',height=' + h);
	}

// generic mailto link
	function talk(who,what,how) {
		var x=who;
		var y='rexassoc'+'.com';
		if (what) { var z='?subject='+what; } else { var z=''; }
		var a=x+'@'+y+z;
		if (!(how)) { var how = a }
		document.write ('<A HREF="mailto:'+a+'" TITLE="'+x+'@'+y+'">'+how+'</A>');
	}
