var newsRotator;
var interval = 15000; // 15 seconds

function auto_switch_news()
{
    newsRotator._clickOnNavigationLink(+1);
}

function initialize()
{
    var story_count = document.getElements('.newsRotatorStory').length;
    var story_index = Math.floor(Math.random() * story_count);
    newsRotator = new DHTMLGoodies.NewsFlasher( {
        html:	'newsRotator',
        currentStoryIndex: story_index
    });
    
    newsRotator._setActiveStory(story_index);
    hide_blog_news_in_excess();

    // setInterval(auto_switch_news, interval);
}

window.onload=initialize;
