if (document.images){

the_off = new Image()
the_off.src = "images/off.gif"
the_on = new Image()
the_on.src = "images/on.gif"

the_1 = new Image()
the_1.src = "images/1b.jpg"
the_2 = new Image()
the_2.src = "images/2b.jpg"
the_3 = new Image()
the_3.src = "images/3b.jpg"
the_4 = new Image()
the_4.src = "images/4b.jpg"
the_5 = new Image()
the_5.src = "images/5b.jpg"
the_6 = new Image()
the_6.src = "images/6b.jpg"
the_7 = new Image()
the_7.src = "images/7b.jpg"
the_8 = new Image()
the_8.src = "images/8b.jpg"
the_9 = new Image()
the_9.src = "images/9b.jpg"
the_10 = new Image()
the_10.src = "images/10b.jpg"
the_11 = new Image()
the_11.src = "images/11b.jpg"

cached=1;
}

var artworks = new Array();
artworks[1]  = new jpArtwork("Enchanted Woodland", "JWGC43", "Limited Edition Giclée of 295", "Image Size: 18 x 11&quot;", "£325");
artworks[2]  = new jpArtwork("Thistledown II", "JWGC48", "Limited Edition Giclée of 295", "Image Size: 9 x 9&quot;", "£199");
artworks[3]  = new jpArtwork("The Brook", "JWGC49", "Limited Edition Giclée of on Board of150", "Image Size: 11¾ x 23&quot;", "£395");
artworks[4]  = new jpArtwork("The Hedgerow", "JWGC46", "Limited Edition Giclée of 295", "Image Size: 9 x 9&quot;", "£199");
artworks[5]  = new jpArtwork("The Meadowland", "JWGC41", "Limited Edition Giclée of 295", "Image Size: 9 x 30&quot;", "£395");
artworks[6]  = new jpArtwork("A Perfect Day", "JWGC40", "Limited Edition Giclée of 295", "Image Size: 9 x 30&quot;", "£395");
artworks[7]  = new jpArtwork("The Ford", "JWGC42", "Limited Edition Giclée of 295", "Image Size: 16 x 16&quot;", "£350");
artworks[8]  = new jpArtwork("Blossom Trees", "JWGC44", "Limited Edition Giclée of 295", "Image Size: 9 x 9&quot;", "£199");
artworks[9]  = new jpArtwork("The Flooded Field", "JWGC47", "Limited Edition Giclée of on Board of 150", "Image Size: 23¼ x 28&quot;", "£595");
artworks[10] = new jpArtwork("Along The River Bank", "JWGC45", "Limited Edition Giclée of 295", "Image Size: 9 x 9&quot;", "£199");
artworks[11] = new jpArtwork("The Lane To The River", "JWGC50", "Limited Edition Giclée of 295", "Image Size: 16 x 16&quot;", "£350");

function jpArtwork(title, id, le, size, price){
	this.title = title;
	this.le = le;
	this.size = size;
	this.price = price;
}

function setBigImage(whichImage){
	if (cached==1) {
		lineOff = "images/" + whichImage + "b.jpg";
		document ['bigImage'].src= lineOff;

		lineOff = "images/" + whichImage + ".gif";
		document ['bigTitle'].src= lineOff;

		lineOff = eval("the_on.src");
		document.getElementById("s"+whichImage).src= lineOff;

		var theArtDesc = document.getElementById("artDesc");

		var descHTML = "";
//		descHTML += "<strong>" + artworks[whichImage].title + "</strong><br />";
		descHTML += artworks[whichImage].le + "<br />";
		descHTML += artworks[whichImage].size + "<br />";
		descHTML += artworks[whichImage].price + "<br />";
		

		theArtDesc.innerHTML = descHTML;

	}
}

function clearBigImage(whichImage){
	if (cached==1) {
		lineOff = eval("the_off.src");
		document.getElementById("s"+whichImage).src = lineOff;
	}
}

