function changeSize(img,size)
{
    if(size!=1.0)
    {
        var width=(img.width*size);
        img.width=width;
    }
}

/*********** Used in top news display component **************/
function showPagination(id)
{
    var $news_tab = $('#news_tab').news_tab();          
    $(".ui-news_tab-panel").each(function(i){        
        var totalSize = $(".ui-news_tab-panel").size() - 1;            
        if (i != totalSize) {
            next = i + 2;
            $(this).append("<a href='#' class='next-tab mover' rel='" + next + "'>>>  </a>");
        }
        
        if (i != 0) {
            prev = i;
            $(this).append("<a href='#' class='prev-tab mover' rel='" + prev + "'> <<</a>");
        }        
    });
    
    $('.next-tab, .prev-tab').click(function() { 
        $news_tab.news_tab('select', $(this).attr("rel"));
        return false;
    });   
        
}   
