<!--
<!-- Original:  Nicholas Lupien (smylex@aol.com) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var rand1 = 0;
var useRand = 0;

images = new Array;
images[1] = new Image();
images[1].src = "images2006/frontPageImage.jpg";
images[2] = new Image();
images[2].src = "images2006/frontPageImage3.jpg";
images[3] = new Image();
images[3].src = "images2006/monkeyLadyOpen.jpg";


function swapPic() {
var imgnum = images.length - 1;
do {
var randnum = Math.random();
rand1 = Math.round((imgnum - 1) * randnum) + 1;
} while (rand1 == useRand);
useRand = rand1;
document.randimg.src = images[useRand].src;
}
//  End -->
// -->
<!--

// Comments Section:
// based on the CNet mouseover article found at
// http://www.builder.com/Programming/Scripter/012898/
//

// code to preload images
if (document.images) {
image1on=new Image(); image1on.src="http://www.janetcooperdesigns.com/images/homeNeg.jpg";
image1off=new Image(); image1off.src="http://www.janetcooperdesigns.com/images/home.jpg";

image2on=new Image(); image2on.src="http://www.janetcooperdesigns.com/images/journalNeg.jpg";
image2off=new Image(); image2off.src="http://www.janetcooperdesigns.com/images/journal.jpg";

image3on=new Image(); image3on.src="http://www.janetcooperdesigns.com/images/linksNeg.jpg";
image3off=new Image(); image3off.src="http://www.janetcooperdesigns.com/images/links.jpg";

image4on=new Image(); image4on.src="http://www.janetcooperdesigns.com/images/exhibitionsNeg.jpg";
image4off=new Image(); image4off.src="http://www.janetcooperdesigns.com/images/exhibitions.jpg";


}

//function to turn on an image
function turnOn(imageName){
if (document.images){
document[imageName].src = eval(imageName + 'on.src');
}
}

//function to turn off an image
function turnOff(imageName){
if (document.images){
document[imageName].src = eval(imageName + 'off.src');
}
}
// -->