//--------------------------------------------------------------------
// Windowsかどうかの検査
//--------------------------------------------------------------------
function IsWindows()
{
	var		strOS = navigator.userAgent.toUpperCase();
	
	// WIN : Windows
	// MAC : MacOS
	// X11 : UNIX
	return strOS.indexOf("WIN") >= 0 ? 1: 0;
}

//--------------------------------------------------------------------
// ブラウザ判別フラグ( Internet Explore 5 )
//--------------------------------------------------------------------
function IsIE5()
{
	if ( navigator.userAgent.indexOf( "Opera", 0 ) >= 0 ) {
		return 0;
	}
	
	return document.getElementById && document.all ? 1: 0;
}

//--------------------------------------------------------------------
// 時間帯ごとの挨拶の表示
//--------------------------------------------------------------------
function DispGreet()
{
	var			objDt = new Date();
	var			nHour = objDt.getHours();
	
	document.write( "<p>" );
	
	if        ( nHour >= 5  && nHour < 10 ) {
		document.write( "おはようございます！" );
	} else if ( nHour >= 10 && nHour < 19 ) {
		document.write( "こんにちは！" );
	} else {
		document.write( "こんばんは！" );
	}
	document.write( "　お客様は、<img src='/cgi-bin/counter/count.cgi?name=Count&gtype=05&keta=6' alt='' /> 人目の来訪者です。" );
	
	document.writeln( "</p>" );
}

