Error: 'Msn.VE.API.Globals.vemapinstances' is null or not an object
<p>I'm wondering why I'm getting a runtime error: "Error: 'Msn.VE.API.Globals.vemapinstances' is null or not an object" when running the javascript on my page below. The html for the page is below. I'm trying to have jquery dialog pop up that has a control and a cancel button for the user to interact with. "divFollow" class contains one type of control that the user will interact with, and "divFriend" class contains another control for the user to interact with. Below, these controls for the user to interact with are within a table. Any help? Thanks! </p>

<pre><code>&lt;script type="text/javascript"&gt;
$(document).ready(function () {
    $('.FriendControl').click(showDialogFriend);
    $('.FollowControl').click(showDialogFollow);
    $('#ButtonFriendClose').click(closeDialogFriend);
    $('#ButtonFollowClose').click(closeDialogFollow);

    $('.divFollow').dialog({ height: 350,
        width: 550,
        resizable: false,
        modal: true,
        position: 'center',
        autoOpen: false,
        overlay: { opacity: 0.5, background: 'black' }
    });
    $('.divFriend').dialog({ height: 350,
        width: 600,
        resizable: false,
        modal: true,
        position: 'center',
        autoOpen: false,
        overlay: { opacity: 0.5, background: 'black' }
    });
}
)

//function to show dialog Friend and Follow   
var showDialogFriend = function () {
    //if the contents have been hidden with css, you need this
    $('.divFriend').show();
    //open the dialog
    $('.divFriend').dialog("open");
}
var showDialogFollow = function () {
    //if the contents have been hidden with css, you need this
    $('.divFollow').show();
    //open the dialog
    $('.divFollow').dialog("open");
}

//function to close dialog Friend and Follow, called by a button in the dialog
var closeDialogFriend = function () {
    $('.divFriend').dialog("close");
}

var closeDialogFollow = function () {
    $('.divFollow').dialog("close");
}
</code></pre>

<p></p>

<p>And here's a snippet from my html:</p>

<pre><code>&lt;div class="divFollow"&gt; 
        &lt;asp:Table ID="TableFollow" runat="server"&gt;
            &lt;asp:TableRow&gt;
                &lt;asp:TableCell HorizontalAlign="Right"&gt; 
                    &lt;input id="ButtonFollowClose" name="ButtonFollowClose" value="Close" type="button" /&gt;
                &lt;/asp:TableCell&gt;
            &lt;/asp:TableRow&gt;
            &lt;asp:TableRow&gt;
                &lt;asp:TableCell&gt;
                    &lt;CMS:Invite ID="InviteControl" ClientIDMode="Static" runat="server" /&gt; 
                &lt;/asp:TableCell&gt;                   
            &lt;/asp:TableRow&gt;               
        &lt;/asp:Table&gt;                 
    &lt;/div&gt;

    &lt;div class="divFriend"&gt; 
        &lt;asp:Table ID="TableFriend" runat="server"&gt;
            &lt;asp:TableRow&gt;
                &lt;asp:TableCell HorizontalAlign="Right"&gt; 
                    &lt;input id="ButtonFriendClose" name="buttonFriend" value="Close" type="button" /&gt;
                &lt;/asp:TableCell&gt;
            &lt;/asp:TableRow&gt;
            &lt;asp:TableRow&gt;
                &lt;asp:TableCell&gt;
                    &lt;CMS:CommunitySearch ID="CommunitySearchID" ClientIDMode="Static" runat="server" /&gt;
                &lt;/asp:TableCell&gt;                   
            &lt;/asp:TableRow&gt;               
        &lt;/asp:Table&gt;                 
    &lt;/div&gt;

&lt;div class="blogPost clearfix"&gt;
  &lt;a class="FriendControl" href="#" &gt;Friend&lt;/a&gt;
  &lt;a class="FollowControl" href="#" &gt;Follow&lt;/a&gt;
&lt;/div&gt;
</code></pre>
