$(function(){
    $('div.imageholderright').click(function(){
        var currIndex = $(this).prevAll().length +1;
        var $container = $(this).parent().prev();
        $container.find("div[id*='news_']").hide();
        $container.children("div:nth-child("+currIndex+")").show(); 
        $(this).parent().children().removeClass('active');
        $(this).addClass('active');
    }).mouseover(function(){
        $(this).trigger('click');
    })
})
