
var isDOM = (document.getElementById ? true : false); 
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";

function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}


var scrollerHeight = 400;
var puaseBetweenImages = 3000;
var imageIdx = 0;


function startVScroll() {
    if (isNS4)
        vSecond.top = scrollerHeight + 5;
    else
        vSecond.style.top = scrollerHeight + 5;
    moveVFirstImage(vFirst);
}
 
function moveRightEdge( ) {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if (isNS4) {
		yMenuFrom   = divMenu.top;
		yMenuTo     = windows.pageYOffset + 100;   // À§ÂÊ À§Ä¡
	} else if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 100; // À§ÂÊ À§Ä¡
	}
	timeoutNextCheck = 500;

	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
		if (yMenuTo < yMenuFrom)
			yOffset = -yOffset;
		if (isNS4)
			divMenu.top += yOffset;
		else if (isDOM)
			divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
			timeoutNextCheck = 10;
	}
	setTimeout ("moveRightEdge()", timeoutNextCheck);
}

function moveRightEdgePosTop( posTop ) {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck, posTop;

	if (isNS4) {
		yMenuFrom   = divMenu.top;
		yMenuTo     = windows.pageYOffset + posTop-36;   // À§ÂÊ À§Ä¡
	} else if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + posTop-36; // À§ÂÊ À§Ä¡
	}
	timeoutNextCheck = 500;

	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
		if (yMenuTo < yMenuFrom)
			yOffset = -yOffset;
		if (isNS4)
			divMenu.top += yOffset;
		else if (isDOM)
			divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
			timeoutNextCheck = 10;
	}
	setTimeout ("moveRightEdgePosTop( "+ posTop + " )", timeoutNextCheck);
}
<!-------------------FLASH MENU Left_01------------------------------------->
function go_01_01() {
	document.location.href="/info/info_01.html";
}
function go_01_02() {
	document.location.href="/info/info_02.html";
}
function go_01_03() {
	document.location.href="/info/info_03.html";
}
function go_01_04() {
	document.location.href="/info/info_04.html";
}
function go_01_05() {
	document.location.href="/info/info_05.html";
}

<!-------------------FLASH MENU Left_02------------------------------------->
function go_02_01() {
	document.location.href="/service/service_01.html";
}
function go_02_02() {
	document.location.href="/service/service_02.html";
}
function go_02_03() {
	document.location.href="/service/service_03.html";
}
function go_02_04() {
	document.location.href="/service/service_04.html";
}
function go_02_05() {
	document.location.href="/service/service_05.html";
}
function go_02_06() {
	document.location.href="/service/service_06.html";
}

<!-------------------FLASH MENU Left_03------------------------------------->
function go_03_01() {
	document.location.href="/bbs/dgboard.php?board=well_08";
}
function go_03_02() {
	document.location.href="/bbs/dgboard.php?board=well_09";
}
function go_03_03() {
	document.location.href="/bbs/dgboard.php?board=well_10";
}
<!-------------------FLASH MENU Left_04------------------------------------->
function go_04_01() {
	document.location.href="/special/special_01.html";
}
function go_04_02() {
	document.location.href="/special/special_02.html";
}
function go_04_03() {
	document.location.href="/special/special_03.html";
}

<!-------------------FLASH MENU Left_05------------------------------------->
function go_05_01() {
	document.location.href="/bbs/dgboard.php?board=well_01";
}
function go_05_02() {
	document.location.href="/bbs/dgboard.php?board=well_02";
}
function go_05_03() {
	document.location.href="/bbs/dgboard.php?board=well_03";
}

<!-------------------FLASH MENU Left_06------------------------------------->
function go_counsel() {
	document.location.href="/bbs/dgboard.php?board=well_04";
}
function go_onlinebooking() {
	document.location.href="/bbs/dgboard.php?board=well_05";
}
function go_callbooking() {
	document.location.href="/board/callbooking.html";
}
function go_postscript() {
	document.location.href="/bbs/dgboard.php?board=well_06";
}

<!-------------------FLASH MENU Global------------------------------------->
function go_counsel() {
	document.location.href="/bbs/dgboard.php?board=well_04";
}
function go_online() {
	document.location.href="/bbs/dgboard.php?board=well_05";
}
function go_callbooking() {
	document.location.href="/board/callbooking.html";
}
function go_sitemap() {
	document.location.href="/sitemap.html";
}