
if (document.images) {
    exhibitionsroll = new Image();
    exhibitionsroll.src = "/img/exhibitions-roll.gif";
    exhibitionsoff = new Image();
    exhibitionsoff.src = "/img/exhibitions-off.gif";

    artistsroll = new Image();
    artistsroll.src = "/img/artists-roll.gif";
    artistsoff = new Image();
    artistsoff.src = "/img/artists-off.gif";

    galleryroll = new Image();
    galleryroll.src = "/img/gallery-roll.gif";
    galleryoff = new Image();
    galleryoff.src = "/img/gallery-off.gif";

    currentroll = new Image();
    currentroll.src = "/exhibitions/img/current-roll.gif";
    currentoff = new Image();
    currentoff.src = "/exhibitions/img/current-off.gif";

    futureroll = new Image();
    futureroll.src = "/exhibitions/img/future-roll.gif";
    futureoff = new Image();
    futureoff.src = "/exhibitions/img/future-off.gif";

    pastroll = new Image();
    pastroll.src = "/exhibitions/img/past-roll.gif";
    pastoff = new Image();
    pastoff.src = "/exhibitions/img/past-off.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");
    }
}


function big(art) {
	popupWin = window.open (art, 'bgfa', 'status=0,resizable=0,scrollbars=auto,width=600,height=450');
}

function bigger(art) {
	popupWin = window.open (art, 'bgfa', 'status=0,resizable=0,scrollbars=auto,width=800,height=600');
}

function map(it) {
	popupWin = window.open (it, 'bgfa', 'status=0,resizable=0,scrollbars=auto,width=300,height=300');
}

function pop() {
	popupWin = window.open ('/exhibitions/onepost.html', 'BGFA_at_One_Post', 'status=0,resizable=0,scrollbars=0,width=300,height=200');
}

function swap(imageURL,imageName) {
    if (document.images) {
        document[imageName].src = imageURL;
    }
}


/* generic mailto link */
	function talk(who,what,how) {
		var x=who;
		var y='briangrossfineart'+'.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>');
	}

