﻿function loadWebEditorFlash(DivID, path, width, height, autostart, looping, transparent) {
	if (autostart == "" || autostart == null) { autostart = "true" }
	if (looping == "" || looping == null) { looping = "true" }
	if (transparent == "" || transparent == null) { transparent = false }
	var ih = ''
	
	ih = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + width + '" height="' + height +'">'
	ih += '<param name="movie" value="' + path + '">'
	//ih += '<param name="autoStart" value="' + autostart + '">'
	ih += '<param name="quality" value="high">'
	ih += '<param name="Play" value="' + autostart + '">'
	ih += '<param name="Loop" value="' + looping + '">'
	if (transparent != "false" && transparent) {
		ih += '<param name="wmode" value="transparent">'
	}
	
	ih += '<EMBED src="' + path + '" play=' + autostart + ' loop=' + looping + ' quality=high WIDTH="' + width + '" HEIGHT="' + height + '"'
	if (transparent != "false" && transparent) {
		ih += ' wmode="transparent"'
	}
	ih += ' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>'
	ih += '</object>'
	//alert(ih)
	document.getElementById(DivID).innerHTML = ih
}
