

function chkTime(jsonObj){
	var imagefile;
	var d = new Date();
	var hour = d.getHours();
	switch(hour){
		case 23:
			imagefile = jsonObj.t23;
			if(imagefile != ''){break;}
		case 22:
			imagefile = jsonObj.t22;
			if(imagefile != ''){break;}
		case 21:
			imagefile = jsonObj.t21;
			if(imagefile != ''){break;}
		case 20:
			imagefile = jsonObj.t20;
			if(imagefile != ''){break;}
		case 19:
			imagefile = jsonObj.t19;
			if(imagefile != ''){break;}
		case 18:
			imagefile = jsonObj.t18;
			if(imagefile != ''){break;}
		case 17:
			imagefile = jsonObj.t17;
			if(imagefile != ''){break;}
		case 16:
			imagefile = jsonObj.t16;
			if(imagefile != ''){break;}
		case 15:
			imagefile = jsonObj.t15;
			if(imagefile != ''){break;}
		case 14:
			imagefile = jsonObj.t14;
			if(imagefile != ''){break;}
		case 13:
			imagefile = jsonObj.t13;
			if(imagefile != ''){break;}
		case 12:
			imagefile = jsonObj.t12;
			if(imagefile != ''){break;}
		case 11:
			imagefile = jsonObj.t11;
			if(imagefile != ''){break;}
		case 10:
			imagefile = jsonObj.t10;
			if(imagefile != ''){break;}
		case 9:
			imagefile = jsonObj.t9;
			if(imagefile != ''){break;}
		case 8:
			imagefile = jsonObj.t8;
			if(imagefile != ''){break;}
		case 7:
			imagefile = jsonObj.t7;
			if(imagefile != ''){break;}
		case 6:
			imagefile = jsonObj.t6;
			if(imagefile != ''){break;}
		case 5:
			imagefile = jsonObj.t5;
			if(imagefile != ''){break;}
		case 4:
			imagefile = jsonObj.t4;
			if(imagefile != ''){break;}
		case 3:
			imagefile = jsonObj.t3;
			if(imagefile != ''){break;}
		case 2:
			imagefile = jsonObj.t2;
			if(imagefile != ''){break;}
		case 1:
			imagefile = jsonObj.t1;
			if(imagefile != ''){break;}
		case 0:
			imagefile = jsonObj.t0;
			if(imagefile != ''){break;}
		default:
			imagefile = jsonObj.defaultPic; break;
	}
	return imagefile;
}

function viewImage(name, id){
	$(id).innerHTML = '<img src="'+name+'" alt="大前創希のつぶやき（twitter）" width="558" height="171" />';
}