function preLoad() {

comsocHome = new Image();
comsocHome.src = "https://www.comsoc.org/buttons/homeorg.gif";

AboutComSoc = new Image();
AboutComSoc.src = "https://www.comsoc.org/buttons/aboutorg.gif";

Publications = new Image();
Publications.src = "https://www.comsoc.org/buttons/puborg.gif";

joincomsoc = new Image();
joincomsoc.src = "https://www.comsoc.org/buttons/memorg.gif";

conferences = new Image();
conferences.src = "https://www.comsoc.org/buttons/confsorg.gif";

standards = new Image();
standards.src = "https://www.comsoc.org/buttons/standorg.gif";

contactUs = new Image();
contactUs.src = "https://www.comsoc.org/buttons/contactorg.gif";
}

if (document.images) { 

image1on = new Image();
image1on.src = "https://www.comsoc.org/buttons/homeorg.gif";

image1off = new Image();
image1off.src = "https://www.comsoc.org/buttons/homewhite.gif";

image2on = new Image();
image2on.src = "https://www.comsoc.org/buttons/aboutorg.gif";

image2off = new Image();
image2off.src = "https://www.comsoc.org/buttons/aboutwhite.gif";

image3on = new Image();
image3on.src = "https://www.comsoc.org/buttons/puborg.gif";

image3off = new Image();
image3off.src = "https://www.comsoc.org/buttons/pubwhite.gif";

image4on = new Image();
image4on.src = "https://www.comsoc.org/buttons/memorg.gif";

image4off = new Image();
image4off.src = "https://www.comsoc.org/buttons/memwhite.gif";

image5on = new Image();
image5on.src = "https://www.comsoc.org/buttons/confsorg.gif";

image5off = new Image();
image5off.src = "https://www.comsoc.org/buttons/confswhite.gif";

image6on = new Image();
image6on.src = "https://www.comsoc.org/buttons/standorg.gif";

image6off = new Image();
image6off.src = "https://www.comsoc.org/buttons/standwhite.gif";

image7on = new Image();
image7on.src = "https://www.comsoc.org/buttons/contactorg.gif";

image7off = new Image();
image7off.src = "https://www.comsoc.org/buttons/contactwhite.gif";
}

function changeImages() {

if (document.images) { 
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
}
}
}


