function flashWrite(swfPath, swfWidth, swfHeight, altPath, altAlt, altLink)
{
	var flashHtml = '';
	if (typeof swfPath != 'undefined') {
		swfWidth = (typeof swfWidth != 'undefined') ? swfWidth : '';
		swfHeight = (typeof swfHeight != 'undefined') ? swfHeight : '';
		
		// !IE (object open)
		flashHtml += "<!--[if !IE]> --> \n";
		flashHtml += '<object type="application/x-shockwave-flash" data="' + swfPath + '" width="' + swfWidth + '" height="' + swfHeight + '"> ' + "\n";
		flashHtml += "<!-- <![endif]--> \n";
		
		// IE (object open)
		flashHtml += "<!--[if IE]> \n";
		flashHtml += '<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="' + swfWidth + '" height="' + swfHeight + '"> ' + "\n";
		flashHtml += '<param name="movie" value="' + swfPath + '" \/> ' + "\n";
		flashHtml += "<![endif]--> \n";
		
		// params (both)
		flashHtml += '<param name="loop" value="true" \/><param name="menu" value="false" \/> ' + "\n";
		
		// Alternative (both)
		if (typeof altPath != 'undefined' && altPath != '') {
			altAlt = (typeof altAlt != 'undefined') ? altAlt : '';
			var altHtml = '<img src="' + altPath + '" alt="' + altAlt + '"\/>';
			if (typeof altLink != 'undefined' && altLink != '') {
				altHtml = '<a href="' + altLink + '">' + altHtml + '<\/a> ';
			}
			flashHtml += altHtml + "\n";  
		}
		
		// object close (both)
		flashHtml += "<\/object> \n";
		
	}
	//alert(flashHtml);
	document.write(flashHtml);
}