function embedFlash (FilePath, width, height, divID, objID, FlashVars){
	var FlashDiv = document.getElementById(divID)

	FlashDiv.innerHTML += '<object height="' + height + '" width="' + width + '">\n' +
			     '<param bgcolor="#FFFFFF" flashvars="" movie="' + FilePath + '" quality="high" wmode="transparent" allowscriptaccess="sameDomain" id="flashvr"></param>\n' +
			     '<embed name="flashvr" allowscriptaccess="sameDomain" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" type="application/x-shockwave-flash" flashvars="" src="' + FilePath + '" height="' + height + '" width="' + width + '"></embed>\n' +
			     '</object>'	
/*



	var FlashDiv = document.getElementById(divID)
	var browserName=navigator.appName; 
	var objectTag = document.createElement("object");
	var paramTag = document.createElement("param");
	var embedTag = document.createElement("embed");
	
	FlashDiv.appendChild(embedTag);
	
	if (browserName!="Microsoft Internet Explorer") {
		FlashDiv.appendChild(objectTag);
		FlashDiv.appendChild(paramTag);
		// object tag
		objectTag.setAttribute("classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000");
		objectTag.setAttribute("codebase", "http://download.macromedia.com/pub/shockwave/cabs/flash/");
		objectTag.setAttribute("width", width);
		objectTag.setAttribute("height", height);
		// param tag
		paramTag.setAttribute("id", objID);
		paramTag.setAttribute("allowScriptAccess", "sameDomain"); 
		paramTag.setAttribute("wmode", "transparent"); 
		paramTag.setAttribute("quality", "high");
		paramTag.setAttribute("movie", FilePath);
		paramTag.setAttribute("FlashVars", FlashVars);
		paramTag.setAttribute("bgcolor", "#FFFFFF");
	}
	// embed tag
	embedTag.setAttribute("src", FilePath);
	embedTag.setAttribute("FlashVars", FlashVars);
	embedTag.setAttribute("type", "application/x-shockwave-flash");
	embedTag.setAttribute("wmode", "transparent");
	embedTag.setAttribute("pluginspage", "http://www.macromedia.com/go/getflashplayer");
	embedTag.setAttribute("allowScriptAccess", "sameDomain"); 
	embedTag.setAttribute("name", objID);
	embedTag.setAttribute("width", width);
	embedTag.setAttribute("height", height);
*/
}



