var tIsInstalled = detectUnityWebPlayer();
if (tIsInstalled)
{
    // write the content object and embed tags
    document.write("<object classid='clsid:444785F1-DE89-4295-863A-D46C3A781394' \n");
    document.write("  codebase='http://webplayer.unity3d.com/download_webplayer/UnityWebPlayer.cab#version=2,0,0,0' \n");
    document.write("  id='UnityObject' width='600' height='450' > \n");
    document.write("  <param name='src' value='magneticbutterfly.unity3d' /> \n");
    document.write("  <param name='backgroundcolor' value='AAAAAA' /> \n");
    document.write("  <param name='bordercolor' value='999999' /> \n");
    document.write("  <param name='textcolor' value='000000' /> \n");
    document.write("  <embed type='application/vnd.unity' pluginspage='http://www.unity3d.com/unity-web-player-2.x' \n");
    document.write("    id='UnityEmbed' width='600' height='450' src='magneticbutterfly.unity3d' \n");
    document.write("	backgroundcolor='AAAAAA' bordercolor='999999' textcolor='000000' /> \n");
    document.write("</object>");
}
else
{
    // write out a simple message prompting the user to install the Unity Web Player
    document.write("<div align='center'> \n");
    document.write("  This content requires the Unity Web Player,");
    document.write("  please use the link below to install the player today:<br /><br />\n");
    document.write("  <a href='http://www.unity3d.com/unity-web-player-2.x'> \n");
    document.write("    Install the Unity Web Player \n");
    document.write("  </a> \n");
    document.write("</div> \n");
}