


/*void*/
function flash_insert( /*string*/ url, /*int*/ width, /*int*/ height, /*object*/ parameters )
	{
	var params = object_merge({allowscriptaccess: 'sameDomain', bgcolor: 'transparent', flashvars: '', menu: 'false', quality: 'high', salign: 'lt'/*tl*/, scale: 'noscale', wmode: 'transparent'}, parameters);
	var txt;
		if( navigator.mimeTypes.length == 0 )
		{
		txt = '<object width="' + width + '" height="' + height + '" align="middle" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"><param name="movie" value="' + url + '" />';
			for( var p in params )
			txt += '<param name="' + p + '" value="' + params[p] + '" />';
		txt += '<img src="' + url.substring(0, url.indexOf('.swf')) + '_swf.jpg" width="' + width + '" height="' + height + '" border="0" /></object>';
		}
		else
		if( navigator.mimeTypes['application/x-shockwave-flash'] != null && 
					navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin != null )
		{
		txt = 
		'<embed width="' + width + '" height="' + height + '" align="middle" type="application/x-shockwave-flash" swLiveConnect="true" pluginspage="http://www.macromedia.com/go/getflashplayer" src="' + url + '"';
			for( var p in params )
			txt += ' ' + p + '="' + params[p] + '"';
		txt += ' />';
		}
		else
		txt = 
		'<img src="' + url.substring(0, url.indexOf('.swf')) + '_swf.jpg" width="' + width + '" height="' + height + '" border="0" />';
	document.write(txt);
	}

function object_merge( first, second )
	{
		if( first == null ) return second;
		if( second == null ) return first;
	var o = {};
		for( var p in first )
		o[p] = first[p];
		for( var p in first )
		o[p] = second[p];
	return o;
	}

