(function() {
    $(document).ready(function() {
        // start

        // hide all news story paragraphs
        $('.news_main div.contents').hide();
        $('.news_main h3').css('cursor','pointer');
        
        // show 1st story
        $('.news_main div.' + $('.news_main h3:first').attr('id')).show();
        $('.news_main h3:first-child').css('background-image', 'none');
        $('.news_main h3:first-child').css('cursor', 'auto');

        // add click handler
        $('.news_main h3').click(function() {
            $('.news_main div.contents').hide();
            $('.news_main h3').css('background-image', 'url(img/news_expand-trans.png)');
            $('.news_main h3').css('cursor', 'pointer');
            $('.news_main div.' + this.id).show();
            $(this).css('background-image', 'none');
            $(this).css('cursor', 'auto');
            return false;
        })

        // end
    });
})()