<!--

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];
}

//function getSty(id) {
//	x = getRef(id);
//	return (isNS4 ? getRef(id) : getRef(id).style);
//}

var scrollerHeight = 88;
var puaseBetweenImages = 3000;
var imageIdx = 0;

function startVScroll() {
//    if (isNS4)
//        vSecond.top = scrollerHeight + 5;
//    else
//        vSecond.style.top = scrollerHeight + 5;
//    moveVFirstImage(vFirst);
}

function moveRightEdge(init) {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if (init == null)
	  init = 50;
	if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + init; // À§ÂÊ À§Ä¡
	}
	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('+init+')', timeoutNextCheck);
}

function moveRightEdgeChane() {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 0; // À§ÂÊ À§Ä¡
	}
	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 ('moveRightEdgeChane()', timeoutNextCheck);
}

function moveRightEdge2() {
	var movefrom, moveto, y, movetimeout;
	movefrom = parseInt(divMenu.style.top);
	moveto = document.body.scrollTop + basicTop;	
	
	//alert(document.body.scrollHeight );
	
	if (document.body.scrollHeight - leastBottom < moveto) moveto = document.body.scrollHeight - leastBottom;
	if (moveto < basicTop) moveto = basicTop;
	
	movetimeout = 500;
	
	if ((y != moveto)|| isNaN(y)) {
		y = Math.ceil(Math.abs(moveto - movefrom) / 20);
		if (moveto <= movefrom){ y = -y }
		divMenu.style.top = parseInt(divMenu.style.top) + y;
		movetimeout = 1;
	}
	setTimeout('moveRightEdge2()',movetimeout);
}
//-->