function createFlashControl( elemId, clsID, codebase, width, height, path, bgcolor)
{
	elem = document.getElementById(elemId);
	var innerhtml;
	innerhtml = '<object classid="clsid:' +clsID+ '" ' +
							'codebase="' +codebase+ '" ' +
							'width="' +width+ '" ' +
							'height="' +height+ '">';
	innerhtml += '<param name="allowScriptAccess" value="sameDomain" />';
	innerhtml += '<param name="movie" value="' +path+ '">';
	innerhtml += '<param name="quality" value="high">';

	if(bgcolor != '')
	{
		innerhtml += '<param name="bgcolor" value="'+bgcolor+'">';
	}

	innerhtml += '<param name="autoStart" value="-1">';
	innerhtml += '<embed src="' +path+ '" ' +
						'quality="high" ' +
						'pluginspage="http://www.macromedia.com/go/getflashplayer" ' +
						'type="application/x-shockwave-flash" ' +
						'width="' +width+ '" ' +
						'height="' +height+ '"></embed>';
	innerhtml += '</object>';

	elem.innerHTML = innerhtml;
}