function dispWeatherNews()
{
// 表示させたいところでonload="javascript:dispWeatherNews();"とかで呼んでください。

	var filePrefix = '../../weather/';
	var fileName = 'JCNWeatherNews';
	var fileSuffix = '.swf';
	var fileWidth = '180';
	var fileHeight = '150';

	var placeList = new Array();

// 表示させるとこだけコメント外してね
	placeList.push('140143241');//川越
// HTMLの編集は適当によろしく
	var randData = Math.floor(Math.random() * 10000000);
	var place;
	place = placeList.join('::');
	/*
	if (placeList.length > 1) {
		place = placeList.join('::');
	} else {
		place = placeList[0];
	}
	*/

	var html = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ' +
			   'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' +
			   fileWidth + '" height="' + fileHeight + '" id="' + fileName + '">';
	html += '<param name="allowScriptAccess" value="sameDomain"></param>';
	html += '<param name="movie" value="' + filePrefix + fileName + fileSuffix +
			'?d=' + randData + '&amp;p=' + place + '"></param>';
	html += '<param name="quality" value="high"></param>';
	html += '<embed src="' + filePrefix + fileName + fileSuffix +
			'?d=' + randData + '&amp;p=' + place + '" quality="high" width="' +
			fileWidth + '" height="' + fileHeight + '" name="' + fileName +
			'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" ' +
			'pluginspage="http://www.macromedia.com/go/getflashplayer">';
	html += '</object>';

// 独自拡張なので問題あったら変えてください。


// ↓はgetElementByIdのやつ。

//innerHTMLはよくわかんない。

//IEは4でネスケは6かな？
/*
Internet Explorer 5
Firefox 1
Netscape 6
Safari 1
Opera 6
Mozilla 1
*/
	document.getElementById("weathernews").innerHTML = html;
}

