// lwsWriteFlash(name, width, height)
//
// WC3 standards method of writing Flash in web page
// params: name, width, height of Flash Movie
// confirmed for NS 6, NS 7, Opera, IE 5.5+, windows platforms
// does NOT support Netscape 4 or older

function lwsWriteFlash(name, width, height, bgCol)
{
	
	if (navigator.product=='Gecko') {
		document.write('<object data=\"' + name + '\" type=\"application/x-shockwave-flash\" width=' + width + ' height=' + height + '>');
		document.write('<param name=\"quality\" value=\"high\"><param name=\"menu\" value=\"false\">');
		document.write('<param name=\"bgcolor\" value=\"' + bgCol + '\"></object>');
	}
	// could add NS4 detection here and use old <EMBED> tags
	else {
		// likely to be IE or Opera, use Active-X, non-active-X browsers will fail
		document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"'); 
		document.write(' codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=' + width + ' height=' + height + '>');
		document.write('<param name=\"movie\" value=\"' + name + '\"><param name=\"quality\" value=\"high\">');
		document.write('<param name=\"menu\" value=\"false\"><param name=\"bgcolor\" value=\"' + bgCol + '\"></object>');
	}
}

function lwsWriteFlashAlign(name, width, height, bgCol, salign)
{
	
	if (navigator.product=='Gecko') {
		document.write('<object data=\"' + name + '\" type=\"application/x-shockwave-flash\" width=' + width + ' height=' + height + '>');
		document.write('<param name=\"quality\" value=\"high\"><param name=\"menu\" value=\"false\"><param name=\"salign\" value=\"' + salign + '\">');
		document.write('<param name=\"bgcolor\" value=\"' + bgCol + '\"></object>');
	}
	// could add NS4 detection here and use old <EMBED> tags
	else {
		// likely to be IE or Opera, use Active-X, non-active-X browsers will fail
		document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"'); 
		document.write(' codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=' + width + ' height=' + height + '>');
		document.write('<param name=\"movie\" value=\"' + name + '\"><param name=\"quality\" value=\"high\"><param name=\"salign\" value=\"' + salign + '\">');
		document.write('<param name=\"menu\" value=\"false\"><param name=\"bgcolor\" value=\"' + bgCol + '\"></object>');
	}
}

function lwsWriteFlashTransparent(name, width, height)
{
	
	if (navigator.product=='Gecko') {
		document.write('<object data=\"' + name + '\" type=\"application/x-shockwave-flash\" width=' + width + ' height=' + height + '>');
		document.write('<param name=\"quality\" value=\"high\"><param name=\"menu\" value=\"false\">');
		document.write('<param name=\"wmode\" value=\"transparent\"></object>');
	}
	// could add NS4 detection here and use old <EMBED> tags
	else {
		// likely to be IE or Opera, use Active-X, non-active-X browsers will fail
		document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"'); 
		document.write(' codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=' + width + ' height=' + height + '>');
		document.write('<param name=\"movie\" value=\"' + name + '\"><param name=\"quality\" value=\"high\">');
		document.write('<param name=\"menu\" value=\"false\"><param name=\"wmode\" value=\"transparent\"></object>');
	}
}

function llsWriteFlash(name,w,h)
{
	document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\""+w+"\" height=\""+h+"%\" id=\"rc_main\" align=\"middle\">");
	document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.write("<param name=\"movie\" value=\""+name+"\" />");
	document.write("<param name=\"quality\" value=\"high\" />");
	document.write("<param name=\"bgcolor\" value=\"#000000\" />");
	document.write("<embed src=\""+name+"\" quality=\"high\" bgcolor=\"#000000\" width=\""+w+"\" height=\""+h+"\" name=\"rc_main\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	document.write("</object>");
}
