<!--

//prototype functions!

function updateBigPix(pictureNum){

	var thisPainting = PaintMasterObj.PaintingArray[pictureNum];

	//establish default value for picture contents
	var bigPixContents = "";

	//figure out if you're displaying for big pix or super-big pix
	var whichPic = "";
	if (window.name == "my_new_window")
	{
		var whichPic = "SBig";
		var picWidth = thisPainting.superJPGWidth;
		var picHeight = thisPainting.superJPGHeight;
	}else {
		var whichPic = "Big";
		var picWidth = thisPainting.bigJPGWidth;
		var picHeight = thisPainting.bigJPGHeight;
	}
	
	//write picture
	bigPixContents += '<IMG SRC=\"..\/..\/SKBimg\/SKBBodyArtPho' + thisPainting.JPGName + whichPic + '.jpg\" BORDER=\"0\" WIDTH=\"' + picWidth + '\" HEIGHT=\"' + picHeight + '\" ALT=\"' + thisPainting.paintingTitle + '\">';    

	// establish width of caption
	var captionWidth = 400;
	
	if (window.name != 'my_new_window'){	
		var captionWidth = thisPainting.bigJPGWidth;
	} else {
		var captionWidth = thisPainting.superJPGWidth;
	}
	
	//write in the title,medium,dimension,year
	bigPixContents += '<p class="caption" style="width: ' + captionWidth + '\;"><I>' + thisPainting.paintingTitle + ',</I> ' + thisPainting.medium + ', ' + thisPainting.dimensions + ', ' + ' &copy;' + thisPainting.yearProduced + ', ' + thisPainting.statusDude + "</p>";  
	
	//add "enlarge image" link if it's not the super-big page
	if (thisPainting.superJPGWidth != ''){
		if (window.name != 'my_new_window'){
	
			var supWidth = thisPainting.superJPGWidth + 120;
			var supHeight = thisPainting.superJPGHeight + 180;
	
			bigPixContents += "<p class=\"caption\"><a href=\"javascript:openWindow('SKBTheArtPopUpSuperMaster.html?type=" + pageName + "&amp;picture=" + pictureNum + "'," + supWidth + "," + supHeight + ",'my_new_window');\">View larger image</a></p>";
		}
	}
	
	//replace contents of bigPixContents
	$('bigPix').innerHTML = bigPixContents;

}


// -->
