Testing the below code in Firefox does not work?
Firebug says, "BtnExternalFeeds has no properties"

Any ideas?

Code:
var setExternalFeeds = 
{ 
    init: function()
    {       
        var BtnExternalFeeds = document.getElementById("BtnExternalFeeds");
        if (typeof BtnExternalFeeds.addEventListener != "undefined")
        {
            alert("test");
            BtnExternalFeeds.addEventListener("click", setExternalFeeds.clickListener, false);
        }     
    },
      
    clickListener: function()
    {
        alert(Feeds.length);
    }
};
// set the page load handler
if(typeof window.addEventListener != 'undefined')
{
    // not IE
    window.addEventListener('load', setExternalFeeds.init(), false);
} else {
    // IE
    window.attachEvent('onload', setExternalFeeds.init());
}