function CheckForFlash()
{	
	hasFlash = false;
	
	if (navigator.plugins && navigator.plugins.length)
	{
	    for (x = 0; x <navigator.plugins.length; x++)
		{
	        if (navigator.plugins[x].name.indexOf('Shockwave Flash') != -1)
			{
	            hasFlash = true;
	            break;
	        }
	    }
	}
	else if (window.ActiveXObject)
	{
		for (x = 2; x <= 12; x++) 
		{
	        try 
			{
	            flashobj = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + x + "');");
	            if (flashobj) 
				{
	                hasFlash = true;
	            }
	        }
			catch(e) 
			{ }
		}
    }
	
	return hasFlash;
}