How to Set this in Javascript
<p>I have the following setup:</p>

<pre><code>var Dash = {
    nextIndex: 0,
    dashboards: &lt;some value&gt;,

    display: function()
    {
        var dashboard = Dash.dashboards[Dash.nextIndex];
        document.getElementById("iframe3").src = dashboard.url;
        Dash.nextIndex = (Dash.nextIndex + 1) % Dash.dashboards.length;
        setTimeout(Dash.display, dashboard.time * 1000);
    }
};
</code></pre>

<p>With this setup, is it possible to set programmatically, the value of "some value" prior to this declaration?</p>

<p>In addition, is it possible to have  be a javascript function call that retunrs a value to dashboards?</p>

<p>Thanks.</p>
