
//空白スペースを消す。
$(function($){ 
    $('.tblareabtn').each(function(){
        var txt = $(this).html();
        txt = txt.replace(/^(%u3000|%20|%09)+|&nbsp;/g,'');
        $(this).html(txt);
    });
});


//要素の先頭に番号(インデックス)を振る

$(function(){

$(".songlist tr:odd").css("background-color","#eeeeee")	;
$(".songlist").find("td.songmname").prepend(function(index, html){
	return index+1+". ";
});
$(".songlist").find("td.songmname1").prepend(function(index, html){
	return index+1+". ";
	});
$(".songlist").find("td.songmname2").prepend(function(index, html){
	return index+1+". ";
	});
$(".songlist").find("td.songmname3").prepend(function(index, html){
	return index+1+". ";
	});

$(".songlist").find("td.songmname4").prepend(function(index, html){
	return index+1+". ";
	});
$(".songlist").find("td.songmname5").prepend(function(index, html){
	return index+1+". ";
	});

});

