function displayImage(obj, src, size) {
	if (size == undefined) {
		size = [320, 240];
	}
	var myObj = $(obj);
	var myContent = new Element('img', {
		src: src,
		width: size[0],
		height: size[1]
	});
	new Asset.images(src, {
		onComplete: function() {
			myObj.empty();
			myObj.grab(myContent);
		}
	});
}
function displayFlash(obj, src, optionsOverride) {
	options = {
		src: '',
		width: 320,
		height: 240,
		align: 'middle',
		bgcolor: '#ffffff',
		quality: 'high',
		allowScriptAccess: 'Always',
		FlashVars: ''
	};
	if (optionsOverride != undefined) {
		$each(optionsOverride, function(value, key) {
			options[key] = value;
		});
	}
	var myObj = $(obj);
	var myContent = '<div style="width: ' + options.width + 'px; hieght: ' + options.height + 'px; background-color: ' + options.bgcolor + ';"><object ';
	myContent += 'width="' + options.width + '" ';
	myContent += 'height="' + options.height + '" ';
	myContent += 'align="' + options.align + '" ';
	myContent += 'codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"';
	myContent += '>';
	myContent += '<param name="movie" value="' + src + '" />';
	myContent += '<param name="quality" value="' + options.quality + '" />';
	myContent += '<param name="bgcolor" value="' + options.bgcolor + '" />';
	myContent += '<param name="allowScriptAccess" value="' + options.allowScriptAccess + '" />';
	myContent += '<param name="FlashVars" value="' + options.FlashVars + '" />';
	myContent += '<embed ';
	myContent += 'width="' + options.width + '" ';
	myContent += 'height="' + options.height + '" ';
	myContent += 'align="' + options.align + '" ';
	myContent += 'src="' + src + '" ';
	myContent += 'quality="' + options.quality + '" ';
	myContent += 'bgcolor="' + options.bgcolor + '" ';
	myContent += 'allowScriptAccess="' + options.allowScriptAccess + '" ';
	myContent += 'FlashVars="' + options.FlashVars + '" ';
	myContent += 'play=true ';
	myContent += 'loop=false ';
	myContent += 'type="application/x-shockwave-flash" ';
	myContent += 'pluginspage="http://www.adobe.com/go/getflashplayer"';
	myContent += '>';
	myContent += '</embed>';
	myContent += '</object></div>';
	myObj.empty();
	myObj.innerHTML = myContent;
}