// <![CDATA[

( function( $ )
{
    
    var $container = null,
        options    = {
            firstNewsClass : 'first-news',
            otherNewsClass : 'other-news'
        };
    
    function init()
    {
        $container = $( '.news-latest-container' );
        
        if( !$container.length ) {
            
            return;
        }
        
        collapseAllButFirst();
    }
    
    function collapseAllButFirst()
    {
        var $news  = $container.find( '.news-latest-item' );
        var $first = $( $news.get( 0 ) );
        
        $first.addClass( options.firstNewsClass ).find( 'a img:last-child' ).remove();
        
        $news[ 0 ] = $( null );
        
        $news.addClass( options.otherNewsClass );
        
        $news.find( 'a img:first-child' ).remove();
        
        $news.find( 'img' ).removeAttr( 'height' ).removeAttr( 'width' );
    }
    
    $( init );
    
} )( jQuery );

// ]]>