// preload rollover images
if (document.images) { 
    abouton = new Image();
    abouton.src = "buttons/bi_about_d.gif";
    resumeon = new Image();
    resumeon.src = "buttons/bi_resume_d.gif";
    clientson = new Image();
    clientson.src = "buttons/bi_clients_d.gif";
    contacton = new Image();
    contacton.src = "buttons/bi_contact_d.gif";
    etcon = new Image();
    etcon.src = "buttons/bi_etc_d.gif";

    aboutoff = new Image();
    aboutoff.src = "buttons/bh_about.gif";
    resumeoff = new Image();
    resumeoff.src = "buttons/bh_resume.gif";
    clientsoff = new Image();
    clientsoff.src = "buttons/bh_clients.gif";
    contactoff = new Image();
    contactoff.src = "buttons/bh_contact.gif";
    etcoff = new Image();
    etcoff.src = "buttons/bh_etc.gif";
    }

// Function to "activate" images.
function imgAct(imgName) {
    if (document.images) {
    document[imgName].src = eval(imgName + "on.src");
    }
}

// Function to "deactivate" images.
function imgInact(imgName) {
    if (document.images) {
    document[imgName].src = eval(imgName + "off.src");
    }
}

//random image script
myPix = new Array("hrandom/gogo.jpg","hrandom/blackcat.jpg","hrandom/karldenson.jpg","hrandom/busstop.jpg","hrandom/cg1.jpg","hrandom/pimp1.jpg")
imgCt = myPix.length 

function choosePic() {
	if (document.images) {
		randomNum = Math.floor((Math.random() * imgCt))
		document.myPicture.src = myPix[randomNum]
	}
}
