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
}

function loadYoutubeVideo(path) {
	var ih = ''
	var width = '320'
	var height = '265'
	
	var filePath = path
	//var filePath = "http://www.youtube.com/watch?v=0KGAmNWDr3M"
	var file = filePath.replace('http://www.youtube.com/watch?v=', '')
	
	ih = '<object width="' + width +'" height="' + height + '">'
	ih += '<param name="movie" value="http://www.youtube.com/v/' + file + '&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999"></param>'
	ih += '<param name="allowFullScreen" value="true"></param>'
	ih += '<param name="allowscriptaccess" value="always"></param>'
	ih += '<param name="wmode" value="transparent">'
	ih += '<embed src="http://www.youtube.com/v/' + file + '&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="' + width +'" height="' + height + '" wmode="transparent"></embed></object>'
	
	document.write(ih)
}

function loadVimeoVideo(path) {
	var ih = ''
	var width = '320'
	var height = '265'
	
	var filePath = path
	//var filePath = "http://www.vimeo.com/2497440"
	var file = filePath.replace('http://www.vimeo.com/', '')
	
	ih = '<object width="' + width + '" height="' + height + '">'
	ih += '<param name="allowfullscreen" value="true" />'
	ih += '<param name="allowscriptaccess" value="always" />'
	ih += '<param name="wmode" value="transparent">'
	ih += '<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=' + file + '&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=008349&amp;fullscreen=1" />'
	ih += '<embed src="http://vimeo.com/moogaloop.swf?clip_id=' + file + '&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=008349&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="' + width + '" height="' + height + '" wmode="transparent"></embed></object>'

	document.write(ih)
}
