function Detect()
{
	if (navigator.plugins && navigator.plugins.length)
	{
		x = navigator.plugins["Shockwave Flash"];
		if (x)
		{
			if (x.description != '') return true;
		}
		
		if (navigator.plugins["Shockwave Flash 2.0"]) return true;		
	}
	else if ( navigator.mimeTypes && navigator.mimeTypes.length)
	{
		x = navigator.mimeTypes['application/x-shockwave-flash'];
		return (x && x.enabledPlugin) != null;		
	}
	else
	{
		if (window.ActiveXObject) 		
		{
			try
			{
				new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
				return true;
			}
			catch( oError)
			{ 
				return false;
			}
		}
	}
}

function squirtFlash( flash, width, height, image, link )
{
	var D = Detect();
	
	if (D == true)
	{
		document.write('<object type="application/x-shockwave-flash" data="' + flash + '" width="' + width + '" height="' + height + '">\n');
	
		document.write('<param name="movie" value="' + flash + '" />\n');
		document.write('</object>\n');
	}
	else
	{
		if (link == '')
		{
			document.write('<img src="' + image + '" border="0" width="' + width + '" height="' + height + '">\n');
		}
		else
		{
			document.write('<a href="' + link + '">');
			document.write('<img src="' + image + '" border="0" width="' + width + '" height="' + height + '">');
			document.write('</a>\n');
		}
	}
}