 if (document.images) {            // Active Images
            abouton = new Image();
            abouton.src = "pix/about_on.jpg";
            aboutoff = new Image();
            aboutoff.src = "pix/about_off.jpg";
            
            artistson = new Image();
            artistson.src = "pix/artists_on.jpg";
            artistsoff = new Image();
            artistsoff.src = "pix/artists_off.jpg";
            
            contacton = new Image();
            contacton.src = "pix/contact_on.jpg";
            contactoff = new Image();
            contactoff.src = "pix/contact_off.jpg";

            exhibitionon = new Image();
            exhibitionon.src = "pix/exhibition_on.jpg";
            exhibitionoff = new Image();
            exhibitionoff.src = "pix/exhibition_off.jpg";

            exarchiveon = new Image();
            exarchiveon.src = "pix/exarchive_on.jpg";
            exarchiveoff = new Image();
            exarchiveoff.src = "pix/exarchive_off.jpg";

            visitingon = new Image();
            visitingon.src = "pix/visiting_on.jpg";
            visitingoff = new Image();
            visitingoff.src = "pix/visiting_off.jpg";

            supporton = new Image();
            supporton.src = "pix/support_on.jpg";
            supportoff = new Image();
            supportoff.src = "pix/support_off.jpg";

            exfutureon = new Image();
            exfutureon.src = "pix/exfuture_on.jpg";
            exfutureoff = new Image();
            exfutureoff.src = "pix/exfuture_off.jpg";

            excurrenton = new Image();
            excurrenton.src = "pix/excurrent_on.jpg";
            excurrentoff = new Image();
            excurrentoff.src = "pix/excurrent_off.jpg";
            

        }

function imgOn(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "on.src");
        }
}

function imgOff(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "off.src");
        }
}
function mimgOn(imgName1, imgName2) {
        if (document.images) {
            document[imgName1].src = eval(imgName1 + "on.src");
            document[imgName2].src = eval(imgName2 + "on.src");
        }
}

function mimgOff(imgName1, imgName2) {
        if (document.images) {
            document[imgName1].src = eval(imgName2 + "off.src");
            document[imgName1].src = eval(imgName2 + "off.src");
        }
}
function autofill(type)
{
  if (type=="mailing")
  {
    comment = "Please add me to your mailing list and keep me up to date on your exhibition programme.";
  }
  else if (type=="artist")
  {
    comment = "I would like to hang my work in your gallery.";
  }
  else if (type=="exhibition")
  {
    comment = "I am interested in viewing your current exhibition. \n\nPlease send me further details";
  }
  oField = document.forms[0].comment
  if (oField.value=="")
  {
    oField.value = comment
  }
  else
  {
    oField.value = oField.value + "\n\n" + comment
  }
}

