/*
comm.js
共通スクリプト

	2001/08/28	N.Kuno		新規作成
*/

var gBW;	/* =1 NN6, =2 NN4, =3 IE, =0 OTHER */
var gIE5;	/* =True IE5+ */

gBW=(document.all?3:(document.getElementById?1:(document.layers?2:0)));
gIE5=(navigator.appName.indexOf('Microsoft Internet Explorer')>=0 && parseInt(navigator.appVersion)>=5);



/*
トップメニュー項目上にマウスカーソルがある

引数
	obj	[I ]	メニュー項目
*/
function top_menu_mouse_over(obj)
{
	if ( gBW == 3 )
	{
		obj.style.color = 'red';
		obj.style.textDecoration = "underline";
	}
}

/*
トップメニュー項目からマウスカーソルが外れた

引数
	obj		[I ]	メニュー項目
	blnSelect	[I ]	対象項目表示中フラグ (=true: 表示中、=false: 非表示中 )
*/
function top_menu_mouse_out(obj,blnSelect)
{
	if ( gBW == 3 )
	{
		if (blnSelect)
		{
			obj.style.color = 'yellow';
		}
		else
		{
			obj.style.color = 'silver';
		}
		obj.style.textDecoration = "none";
	}
}

/*
サブメニュー項目上にマウスカーソルがある

引数
	obj	[I ]	メニュー項目
*/
function sub_menu_mouse_over(obj)
{
	if ( gBW == 3 )
	{
		obj.style.color = 'red';
		obj.style.textDecoration = "underline";
	}
}

/*
サブメニュー項目からマウスカーソルが外れた

引数
	obj		[I ]	メニュー項目
	blnSelect	[I ]	対象項目表示中フラグ (=true: 表示中、=false: 非表示中 )
*/
function sub_menu_mouse_out(obj,blnSelect)
{
	if ( gBW == 3 )
	{
		if (blnSelect)
		{
			obj.style.color = 'lime';
			obj.style.textDecoration = "underline";
		}
		else
		{
			obj.style.color = 'yellow';
			obj.style.textDecoration = "none";
		}
	}
}


