
function set_data(tw){

  for(idx=0; idx<tw.length;idx++){
    $("#tweet").append("<li><span>" + tw[idx].text + "</span></li>");
  }

}

$(function(){
   scroll_ok = false;
   if(tweets.length > 0){
     $("#tweet").append('<li><span>◆速報◆</span></li>');
     set_data(tweets);
     scroll_ok = true;
   }
   if(other.length > 0){
     $("#tweet").append('<li><span>◆「はやぶさ」帰還◆</span></li>');
     set_data(other);
     scroll_ok = true;
   }
   if(scroll_ok == true){
     $("#tweet").liScroll({travelocity: 0.05});
   }
});

