
function Disp_new(){



//==================================================

//

//初期設定

//

//==================================================



var xdate=new Array(2);

now=new Date();
now_year=now.getYear();if (now_year < 2000) now_year += 1900;
now_month=now.getMonth()+1;
now_day=now.getDate();


//=====更新マークの設定

new_day = 7;//更新マークが表示されている日数

new_item = '<FONT size="-1" color="#ff0000"> <B>New!<\/B><\/FONT>';//更新マークに表示する文字または画像（画像はイメージタグを書く）




//==================================================

//初期設定ここまで

//==================================================



for(i=0;i<=num;i++){



//====================更新日設定

xdate = sdate[i].split("/");
year = xdate[0].substring(0, 4);

if( xdate[0] > now_year){continue;}
if( xdate[0] == now_year && xdate[1] > now_month){continue;}
if( xdate[0] == now_year && xdate[1] == now_month &&  xdate[2] > now_day){continue;}
if(edate[i]=="-/-/-"){
	update = ""+year+"/"+xdate[1]+"/"+xdate[2]+" ";
}
else{
	ydate = edate[i].split("/");
	if(ydate[0] < now_year){continue;}
	if( ydate[0] == now_year && ydate[1] < now_month){continue;}
	if( ydate[0] == now_year && ydate[1] == now_month &&  ydate[2] < now_day){continue;}
	eyear =  ydate[0].substring(0, 4);
	update = "["+year+"/"+xdate[1]+"/"+xdate[2]+"〜"+eyear+"/"+ydate[1]+"/"+ydate[2]+"] ";
}






//====================更新日からの日数設定

var now = new Date();

var spday= new Date(xdate[0],xdate[1]-1,xdate[2]);

a = (now.getTime() - spday.getTime())/(24*60*60*1000);//---a = 更新日からの日数



//====================更新マーク設定

if(a <= new_day){

	new_disp = new_item;

}else{

	new_disp = '';

}



//====================タイトル表示設定

if(link[i]){
	if(target[i]){$target='" target=blank_"';}else{$target='';}
	top_word = link[i].charAt(0);

	content = '<a href="'+link[i]+$target+'">'+xtitle[i]+'<\/a>';//---リンクまたは詳細有り

}else{

	content = xtitle[i];//タイトルのみ

}



//====================表示


document.write('<li>');



//====================更新日表示

document.write('<img src=img\/wnew_arrow.gif width=11 height=11 align=absmiddle>&nbsp;');
//====================タイトル表示



document.write(content+new_disp);

document.write('<\/li>');

}



}




function Disp_renew(){



//====================初期設定

var xlastupdate=new Array(2);

var lastdate=new Array(2);

var lasttime=new Array(2);



//====================最終更新日設定

xlastupdate = renew_date.split(",");

lastdate = xlastupdate[0].split("/");

lastwday = xlastupdate[1];

lasttime = xlastupdate[2].split(":");

lastdate[0] = lastdate[0].substring(0, 4);

lastupdate = lastdate[0]+"年"+lastdate[1]+"月"+lastdate[2]+"日";



//====================最終更新日表示

document.write('<SPAN style="font-size:100%; color:#666666;">最終更新日：');

document.write(lastupdate);

document.write('</SPAN>');

}

