function flashReplace(containerID, swfURL, width, height, showLabel, hideLabel)
{
	var target = document.createElement("span");
	target.className = "flashreplacelink";
	target.appendChild(document.createTextNode(showLabel));
	document.getElementById(containerID).appendChild(target);
	
	var flashDivNode;
	
	function onShowFlash(ev)
	{
		var paramNode = document.createElement("param");
		paramNode.name = "movie";
		paramNode.value = swfURL;
		
		var objNode = document.createElement("object");
		objNode.type = "application/x-shockwave-flash";
		objNode.data = swfURL;
		objNode.width = width;
		objNode.height = height;
		objNode.appendChild(paramNode);
		
		flashDivNode = document.createElement("div");
		flashDivNode.appendChild(document.createElement("br"));
		flashDivNode.appendChild(objNode);
		
		target.parentNode.appendChild(flashDivNode);
		
		target.firstChild.data = hideLabel;
		target.onclick = onHideFlash
	}
	
	function onHideFlash(ev)
	{
		target.parentNode.removeChild(flashDivNode);
		target.firstChild.data = showLabel;
		target.onclick = onShowFlash;
	}
	
	target.onclick = onShowFlash;
	null;
}