/**
 *	ココロ表示スクリプト
 */
function getCocolo()
{
	widget_ids = new Array(
		"widget-NIFTY_cocolo_cocolo", 
		"widget-NIFTY_cocolo_muchan",
		"widget-NIFTY__cocolo_cocosu" 
	);
	cat_ids = new Array(
		"100507001477",
		"100507001478",
		"100507001479"
	);
	clocks = new Array(
		"cocolo_clock",
		"mu_clock",
		"cocos_clock"
	);

	nowTime = new Date();
	nowSec  = nowTime.getSeconds();

	now_widget_id = widget_ids[0];
	now_cat_id    = cat_ids[0];
	now_clock     = clocks[0];

	if ( nowSec < 20 ) {
		now_widget_id = widget_ids[1];
		now_cat_id    = cat_ids[1];
		now_clock     = clocks[1];
	} else if ( nowSec < 40 ) {
		now_widget_id = widget_ids[2];
		now_cat_id    = cat_ids[2];
		now_clock     = clocks[2];
	}

	document.open();

	document.write( '<div class="module-widget module" id="' );
	document.write( now_widget_id );
	document.writeln( '">' );
	document.writeln( '<div class="module-content">' );
	document.write( '<script src="http://www.cocolog-nifty.com/cocolo/clock/js/' );
	document.write( now_clock );
	document.writeln( '.js" type="text/javascript" ></script>' );
	document.write( '<img src="http://s-blogparts.cocolog-nifty.com/s.gif?catid;' );
	document.write( now_cat_id );
	document.writeln( '" width="1" height="1" alt="" />' );
	document.writeln( '</div>' );
	document.writeln( '</div>' );

	document.close();
}

