  if (document.URL.match( (document.domain+'$') )) {
	Wimgurl='//'+document.domain+'/';
}else{
	Wimgurl=document.URL.replace(/http:/, '').replace(/\/[^/]*$/, '/');

}
function Wday_decide(in_date){
// 今日明日明後日を決める
	var ret_str='--';
	var today_dd = new Date();
	var tomorrow_dd = new Date();
	var after_tomorrow_dd = new Date();
	var yobi_str="(日)(月)(火)(水)(木)(金)(土)";
	var today_yobi;
	var tomorrow_yobi;
	var after_tomorrow_yobi;

	tomorrow_dd.setTime(today_dd.getTime() + (1 * 24 * 3600 * 1000));
	after_tomorrow_dd.setTime(today_dd.getTime() + (2 * 24 * 3600 * 1000));
	today_yobi=yobi_str.substring((today_dd.getDay())*3,(today_dd.getDay())*3+3);
	tomorrow_yobi=yobi_str.substring((tomorrow_dd.getDay())*3,(tomorrow_dd.getDay())*3+3);
	after_tomorrow_yobi=yobi_str.substring((after_tomorrow_dd.getDay())*3,(after_tomorrow_dd.getDay())*3+3);

	if(in_date.indexOf(today_yobi) > 0) {
		ret_str='今日';
	}else if(in_date.indexOf(tomorrow_yobi) > 0) {
		ret_str='明日';
	}
	return(ret_str);

}

function Wdisp01(){
	var dd_str=Wday_decide(Wday);
	document.write(
	'<table border="0"',
	' cellspacing="0" cellpadding="2" class="weather01">',
	'<tr align="middle">',
	'<td width="45%" valign="middle" class="weather_color">',
	dd_str ,
	'</td>',
	'<td width="55%" valign="top">',
	Wimage,
	'</td>',
	'</tr>',
	'<tr align="middle">',
	'<td width="45%" valign="top">',
	Wday ,
	'</td>',
	'<td width="55%" valign="top">',
	'<font color="red">',
	Wmax,
	'℃</font>',
	' / ',
	'<font color="blue">',
	Wmin,
	'℃</font>',
	'</td>',
	'</tr>',
	'</table>',
	'');
}
//
function Wdisp02(){
	var dd_str=Wday_decide(Wnext_day);
	document.write(
	'<table border="0"',
	' cellspacing="0" cellpadding="2" class="weather02">',
	'<tr align="middle">',
	'<td width="45%" valign="middle" class="weather_color">',
	dd_str ,
	'</td>',
	'<td width="55%">',
	Wnext_image,
	'</td>',
	'</tr>',
	'<tr align="middle">',
	'<td width="45%" valign="top">',
	Wnext_day ,
	'</td>',
	'<td width="55%" valign="top">',
	'<font color="red">',
	Wnext_max,
	'℃</font>',
	' / ',
	'<font color="blue">',
	Wnext_min,
	'℃</font>',
	'</td>',
	'</tr>',
	'</table>',
	'');
}
//
function Wdisp(title){
	document.write(
	'<table border="0"',
	' cellspacing="0" cellpadding="0">',
	'<tr>',
	'<td colspan="2" class="weather_title">',
	title,
	'</td>',
	'</tr>',
	'<tr>',
	'<td align="center">'
	);
	Wdisp01();
	document.write(
	'</td>',
	'</tr>',
	'<tr>',
	'<td align="center">'
	);
	Wdisp02();
	document.write(
	'</td>',
	'</tr>',
	'</table>'
	);
}