if (document.images){

the_off = new Image()
the_off.src = "images/off.gif"
the_on = new Image()
the_on.src = "images/on.gif"

cached=1;
}

var artworks = new Array();
artworks[1] = new jpArtwork("Unity", "JPGC1", "Limited Edition Giclee of 195", "Image Size: 25&quot; x 18&quot;", "£295.00");
artworks[2] = new jpArtwork("Freedom", "JPGC2", "Limited Edition Giclee of 195", "Image Size: 25&quot; x 18&quot;", "£295.00");
artworks[3] = new jpArtwork("Two Souls", "JPGC3", "Limited Edition Giclee of 195", "Image Size: 25&quot; x 18&quot;", "£295.00");
artworks[4] = new jpArtwork("Circle of Life", "JPGC4", "Limited Edition Giclee of 195", "Image Size: 25&quot; x 18&quot;", "£295.00");
artworks[5] = new jpArtwork("Entwined", "JPGC5", "Limited Edition Giclee of 195", "Image Size: 25&quot; x 18&quot;", "£295.00");
artworks[6] = new jpArtwork("Desire", "JPGC6", "Limited Edition Giclee of 195", "Image Size: 25&quot; x 18&quot;", "£295.00");
artworks[7] = new jpArtwork("Tantra", "JPSC21", "Bronze Edition of 95", "Height: 28&quot;", "£1,995.00");
artworks[8] = new jpArtwork("Beautiful", "JPSC22", "Bronze Edition of 195", "Height: 17&quot;", "£475.00");
artworks[9] = new jpArtwork("Entwined", "JPSC23", "Bronze Edition of 195", "Height: 16&quot;", "£495.00");
artworks[10] = new jpArtwork("As One", "JPSC24", "Bronze Edition of 195", "Height: 14&quot;", "£495.00");

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 = 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;
	}
}
