/*globalNavFlash用*/
var indexurl = location.protocol + "//" + location.hostname + "/" ;

/*背景画像を昼夜で変更する*/
function getCSS() {
	datetoday = new Date();
	timenow=datetoday.getTime();
	datetoday.setTime(timenow);
	thehour = datetoday.getHours();
	if (thehour >= 18) 
		display = indexurl + "css/background-night.css";
	else if (thehour >= 6) 
		display = indexurl + "css/background-day.css";
	else if (thehour >= 0) 
		display = indexurl + "css/background-night.css";
	else
		display = indexurl + "css/background-day.css";
	var css = '<';  css+='link rel="stylesheet" href=' + display + ' \/';  css+='>';
	document.write(css);
}

/*thickboxで表示する新規登録、ログイン画面、お問い合わせ*/
function show(num) {
	switch(num){
	case 1:
		tb_show(null, indexurl + "divergeID/getid/?KeepThis=true&amp;height=210&amp;width=270", false);
		break;
	case 2:
		tb_show(null, indexurl + "divergeID/login/?KeepThis=true&amp;height=210&amp;width=270", false);
		break;
	case 3:
		tb_show(null, indexurl + "divergeID/support/?KeepThis=true&amp;height=210&amp;width=270", false);
		break;
	}
}