function refresh_newmark(){
	//経過時間
	var pass = 24*2;
	var spans = document.getElementsByTagName('span');

	new_icon = new Array("ico_new1","ico_new_inter","ico_new_fashion","ico_new_beauty","ico_new_health","ico_new_life","ico_new_love");

	//置換対象のSPANのクラス名(前方一致)
	var check_str ="newmark";

	var currentDate = new Date(); 

	var FlgIE = 0;

	//ブラウザの名前とバージョンを取得&代入
	var detect = navigator.userAgent.toLowerCase();

	if ( checkIt('msie') ) {
	  FlgIE = 1;
	}else{
	  FlgIE = 0;
	}

	for (i = 0; i < spans.length; i++) {
	  if(FlgIE == 1){
	    if (spans[i].getAttribute('className').match(check_str)){
	      uppdate_img(i,spans[i].getAttribute('className'));
	    }
	  }else{
	    if (spans[i].getAttribute('class').match(check_str)){
	      uppdate_img(i,spans[i].getAttribute('class'));
	    }
	  }
	}

//取得した値から判別したいブラウザの名前が入っているか判別
function checkIt(string){
  place = detect.indexOf(string) + 1;
  thestring = string;
  return place;
}

function uppdate_img(id,class_sname){
  imgid = class_sname.split("_");
  img_id = imgid[1];
  if( class_sname == check_str){ img_id = 0;}

  time  = spans[id].childNodes[0].nodeValue.split(":");
  var entryDate = new Date(time[0], time[1]-1, time[2], time[3], time[4], time[5]);
  var now = (entryDate.getTime() - currentDate.getTime())/(60*60*1000); 
  now = Math.ceil(now);
  if(-now <= pass){
    spans[id].innerHTML = '<img src="/images/site/'+new_icon[img_id]+'.gif" title="NEW！" alt="NEW！" />';
    spans[id].style.display = 'inline';
  }else{
    spans[id].innerHTML = '';
  }
}



}
