﻿//                                                        //
//            870.ne.jp Javascript関数定義                //
//                    [トップページ]                      //
//                      jQuery対応                        //
//                                                        //
//     Copyright 2011 e-pokke Inc. All rights reserved.   //
//                                                        //

// ----- ランキングタブ切り替え -----
function change_ranking_tab(id) {
  $('#rmenu li a[name^="rankinglist_"]').each(function(i,e) {
    var list = $(this).attr('name').split('_');
    var tabid = '#rmtab' + list[1];
    if (id) {
      if (id == tabid) {
        $(tabid).show();
        $(this).hide();
      }
      else {
        $(tabid).hide();
        $(this).show();
      }
    }
    else {
      if (i == 0) {
        $(tabid).show();
        $(this).hide();
      }
      else {
        $(tabid).hide();
        $(this).show();
      }
    }
  });
}
// ---------- End of File ----------

