function includeFlash(movie, name, width, height) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + width + '" height="' + height + '" id="' + name + '" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="' + movie + '" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<embed src="' + movie + '" quality="high" bgcolor="#ffffff" wmode="transparent" width="' + width + '" height="' + height + '" name="' + name + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}

function includeFlashCS(movie, name, width, height, bgcolor, wmode) {
		if (!bgcolor) bgcolor = "#ffffff";
		if (!wmode) wmode = (bgcolor == "transparent") ? "transparent" : "opaque";
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '" id="' + name + '" align="middle">');
		document.write('<param name="allowScriptAccess" value="always" />');
		document.write('<param name="movie" value="' + movie + '" />');
		document.write('<param name="allowFullScreen" value="true" />');
		document.write('<param name="quality" value="high" />');
		if (wmode == "transparent") {
			document.write('<param name="wmode" value="transparent" />');
		} else {
			document.write('<param name="bgcolor" value="' + bgcolor + '" />');
			document.write('<param name="wmode" value="' + wmode + '" />');
		}
		document.write('<embed allowFullScreen="true" src="' + movie + '" wmode="' + wmode + '" quality="high"' + ((bgcolor) ? ' bgcolor="' + bgcolor + '"' : '') + ' width="' + width + '" height="' + height + '" name="' + name + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
	}

function includeFlashMWS(movie, name, width, height) {
//have to remove wmode="transparent" to fix onMouseWheel handling bug for flash in Firefox
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + width + '" height="' + height + '" id="' + name + '" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="' + movie + '" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<embed src="' + movie + '" quality="high" bgcolor="#ffffff" width="' + width + '" height="' + height + '" name="' + name + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}


function includeVideo(movie, name, width, height) {
document.write('<embed src="' + movie + '" showcontrols="0" autostart="1" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" width="' + width + '" height="' + height + '" name="' + name + '"></embed>');
}


