/* ********************************************************
グローバルナビ
ポップアップリスト
********************************************************** */

var si = false;

/*********************************************************
 * マウスオーバーで第1階層メニューを表示する 			 *
 *********************************************************/
function popUpList(id){
	if(si){
		clearInterval(si);
	}
	popUpHide();
	dom(id).style.display = "block";
	dom(id).style.zindex = 10;
	if(dom("visualarea") != null){
		dom("visualarea").style.zindex = 0;
	}
}
/*********************************************************
 * ポップアップしたメニューを隠す 			 			 *
 *********************************************************/
function popUpHide(){
	if(si){
		clearInterval(si);
	}
	for(var i=1; i<4; i++){
		dom("glist"+i).style.display = "none";
	}
}

/*********************************************************
 * 下のメニューに載せなかった場合にメニューを消す処理	 *
 *********************************************************/
function intervalHide(){
	si = setInterval(popUpHide,100);
}

/*********************************************************
 * レフトコンテンツメニュー								 *
 * ポップアップリスト								 	 *
 *********************************************************/
var siside = false;

/*********************************************************
 * マウスオーバーでメニューを表示する					 *
 *********************************************************/
function popUpSideList(id){
	if(siside){
		clearInterval(siside);
	}
	popUpSideHide();
	dom(id).style.display = "block";
}

/*********************************************************
 * ポップアップしたメニューを隠す						 *
 *********************************************************/
function popUpSideHide(){
	if(siside){
		clearInterval(siside);
	}
	var menuArray = ['MPMainProducts','MPtechnology','MPproduct','MPfactory','RCsenior','RCactivity','RCoutline'];
	for(i=0; i<menuArray.length; i++){
		if(dom(menuArray[i]) != null){
		dom(menuArray[i]).style.display = "none";
		}
	}
}

/*********************************************************
 * 下のメニューに載せなかった場合にメニューを消す処理	 *
 *********************************************************/
function intervalSideHide(){
	siside = setInterval(popUpSideHide,500);
}
function dom(id){
	var dom = document.getElementById(id);
	return dom;
}
