
// Add content to embed the flash
function ShowFlash(sDivId,sURL,nWidth,nHeight,sMovieId,sBgColour) {
	var oDiv = _sfGetElement(sDivId);
	if(oDiv) {
		sHTML = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\""
			+ " codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0\""
			+ " width=\"" + nWidth + "\""
			+ " height=\"" + nHeight + "\""
			+ " id=\"" + sMovieId + "\">"
			+ "<param name=\"movie\" value=\"" + sURL + "\" />"
			+ "<param name=\"quality\" value=\"high\" />"
			+ "<param name=\"bgcolor\" value=\"" + sBgColour + "\" />"
			+ "<param name=\"Wmode\" value=\"transparent\">"
			+ "<embed src=\"" + sURL + "\" quality=\"high\""
			+ " bgcolor=\"" + sBgColour + "\""
			+ " width=\"" + nWidth + "\""
			+ " height=\"" + nHeight + "\""
			+ " WMode=\"transparent\" name=\"myMovieName\" align=\"\""
			+ " type=\"application/x-shockwave-flash\""
			+ " pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed>"
			+ "</object>";
		oDiv.innerHTML = sHTML;
	}
}

function _sfGetElement(item){
	if(document.all)
		return(document.all[item]);
	if(document.getElementById)
		return(document.getElementById(item));
	return(false);
}

