function showimage( imageurl, imagecaption )
{
	// Find out if it's a SWF to load
	if( imageurl.substring( imageurl.length, imageurl.length-3 ).toLowerCase() == "swf" )
	{
		var content = '<object classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ' +
									'	codebase = "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=8,0,0,0" ' +
//									'	width = "350" height = "310" ' +
									'	id = "module" data = "' + imageurl + '" ' +
									'	align = "middle" ' +
									'	type = "application/x-shockwave-flash" >' +
									'	<param name = "allowScriptAccess" value = "sameDomain" />' +
									'	<param name = "movie" value = "' + imageurl + '" />' +
									'	<param name = "quality" value = "high" />' +
									'	<param name = "bgcolor" value = "#707070" />' +
									'	<embed src = "' + imageurl + '" ' +
									'		quality = "high" ' +
									'		bgcolor = "#707070" ' +
//									'		width = "350" height = "310" ' +
									'		name = "module" ' +
									'		align = "middle" ' +
									'		allowScriptAccess = "sameDomain" ' +
									'		type = "application/x-shockwave-flash" ' +
									'		pluginspage = "http://www.macromedia.com/go/getflashplayer">' +
									'		<p>' +
									'			You need a Flash player to view this file.' +
									'		</p>' +
									'		<p>' +
									'			Download a copy now from:<br />' +
									'			<a href = "http://get.adobe.com/flashplayer/">http://get.adobe.com/flashplayer/</a>' +
									'		</p>' +
									'	</embed>' +
									'</object>';
		$( "image" ).update( content );
	// otherwise, treat it as an image
	} else {
		// Check if we've already got an image (i.e. if we're showing Flash already) if not, update it)
		if( !$( "image" ).select( "img" ).length )
			$( "image" ).update ( '<img src = "./images/layout/spacer.png" style = "background-image : url( \'.' + imageurl + '\' );" alt = "Product image" title = "' + imagecaption + '" id = "productimage" />' );
		// Clear the background image that was set by default as the first image in the queery
		// Then set the actual image SRC to the spacer png, to clear currently shown image while new one loads
		// Then set the src to the new image to show that one
		// And change the image title (mouseover) to the caption of the image to match the thumbnail
		else
			$( "productimage" ).setStyle({ backgroundImage: 'none' }).writeAttribute( "src", "./images/layout/spacer.png" ).writeAttribute( "src", imageurl ).writeAttribute( "title", imagecaption );
	}
		
	// Update the caption underneath the picture too...	
	$( "caption" ).update( imagecaption );
}
