$(document).ready(function(){
	
	//-- 設定項目
	var currentDate = new Date();
	var pass = 168;
	var content = '<img src="/shared/images/ic_new_002.gif" alt="NEW" width="35" height="12" />';
  
  //-- アイコン処理
  $('.ic_new-2').each(function(){
    var entryTime = $(this).text();
    var time = entryTime.split(":");
    var entryDate = new Date(time[0], time[1]-1, time[2], time[3], time[4], time[5]);
    var now = (currentDate.getTime() - entryDate.getTime())/(60*60*1000);
    now = Math.ceil(now);
    if(now <= pass){
    	$(this).replaceWith(content)
    	.css('display','block');
    }else{
    	$(this).remove();
    }
	});

});
