function createFlashControl( elemId, clsID, codebase, width, height, path, params)
{
	var elem = document.getElementById(elemId);
	var innerhtml;
	
	
	
	innerhtml = '<object classid="clsid:' +clsID+ '" ' +
							'codebase="' +codebase+ '" ' +
							'width="' +width+ '" ' +
							'height="' +height+ '">';
	innerhtml += '<param name="movie" value="' +path+ '">';
	innerhtml += '<param name="quality" value="high">';
	innerhtml += '<param name="autoStart" value="-1">';
	innerhtml += '<param name="flashvars" value="';
/*
	for(key in params) {
		
		innerhtml += key+'='+params[key];
	}
*/
	innerhtml += '">';
	innerhtml += '<param name="bgcolor" value="#000000">';
	innerhtml += '<param name="wmode" value="transparent">';
	innerhtml += '<embed src="' +path+ '" ' +
						'quality="high" ' +
						'wmode="transparent" ' +
						'pluginspage="http://www.macromedia.com/go/getflashplayer" ' +
						'type="application/x-shockwave-flash" ' +
						'width="' +width+ '" ' +
						'height="' +height+ '"></embed>';
	innerhtml += '</object>';

	elem.innerHTML = innerhtml;
}
