port over article http://brett.is/writing/about/detect-flash-with-javascript