<p>Is there a javascript function I can use to detect whether a specific silverlight version is installed in the current browser?</p>

<p>I'm particularly interested in the Silverlight 2 Beta 2 version. I don't want to use the default method of having an image behind the silverlight control which is just shown if the Silverlight plugin doesn't load.</p>

<p><strong>Edit:</strong> From link provided in accepted answer:</p>

<p>Include Silverlight.js (from Silverlight SDK)</p>

<pre><code>Silverlight.isInstalled("2.0");
</code></pre>

Include Silverlight.js (from Silverlight SDK)
```
Silverlight.isInstalled("4.0")
```
Resource:
http://msdn.microsoft.com/en-us/library/cc265155(vs.95).aspx