$(document).ready(function(){

$(".photogallery img").attr("src", function(){
    return this.src.replace("120x90/","");       
});
$("#whatsonphotos .photogallery a").attr({href:'http://www.eusalive.co.uk', target:'_blank'});


    $("#twitter").tweet({
            username: "eusa",
            join_text: "auto",
            avatar_size: 32,
            count: 5,
            auto_join_text_default: "we said,",
            auto_join_text_ed: "we",
            auto_join_text_ing: "we were",
            auto_join_text_reply: "we replied to",
            auto_join_text_url: "we were checking out",
            loading_text: "loading tweets..."
        });


    $('#featuredoptions .news_item:first').addClass("on");
         $('#featuredmain .news_item:first').addClass("showing");
    $('#featuredoptions a').click(function () {

         var parentdiv = $(this).parents('.news_item');
         var indexthis = $('#featuredoptions .news_item').index(parentdiv);  

         if (indexthis != -1) {
               var selecteddiv = $('#featuredmain .news_item').eq(indexthis);  
        
        $('#featuredoptions .news_item').removeClass("on");   
        $(this).parents('.news_item').addClass("on");
        $('#featuredmain .news_item').removeClass("showing");
        $(selecteddiv).addClass("showing");    
              }

         return false; 
              
    });
});
