<!--
//================================================
// Popup Layer Script
// copyright 2004 Hats. (Hatsushika, Hitoshi)
//------------------------------------------------
// <a href="#" onMouseOut="fRestoreImg()" onMouseOver="fSwapImg('NAME','SRC')">
//================================================
var gLays = new Array();
var gTid  = 0;

//------------------------------------------------
// Pre Layer
// fPreLay('NAME1','NAME2'...);
//------------------------------------------------
function fPreLay() {
	gLays = fPreLay.arguments;
}

//------------------------------------------------
// Show Layer
// fShowLay('NAME');
//------------------------------------------------
function fShowLay(pName) {
	fHideAll();
	if (document.getElementById) {
		document.getElementById(pName).style.visibility = 'visible';
	} else if (document.all) {
		document.all(pName).style.visibility = 'visible';
	} else if (document.layers) {
		document.layers[pName].visibility = 'show';
	}
}

//------------------------------------------------
// Hide Layer
// fHideLay('NAME');
//------------------------------------------------
function fHideLay(pName) {
	if (document.getElementById) {
		document.getElementById(pName).style.visibility = 'hidden';
	} else if (document.all) {
		document.all(pName).style.visibility = 'hidden';
	} else if (document.layers) {
		document.layers[pName].visibility = 'hide';
	}
}

//------------------------------------------------
// Hide All
//------------------------------------------------
function fHideAll() {
	fClearTimer();
	for(i=0;i<gLays.length;i++) {
		fHideLay(gLays[i]);
	}
}

//------------------------------------------------
// Set Timer
// fSetTimer(TIME);
//------------------------------------------------
function fSetTimer(pTime) {
	gTid = setTimeout("fHideAll()",pTime);
}

//------------------------------------------------
// Clear Timer
//------------------------------------------------
function fClearTimer() {
	clearTimeout(gTid);
}
//-->
