/* -------------------------
	Scroll top
------------------------- */
function slowdownScroll() {
		if(navigator.appName == "Microsoft Internet Explorer" && document.compatMode == "CSS1Compat") {
		sctop = document.body.parentNode.scrollTop;
	}

	else if(window.pageYOffset){
		sctop = window.pageYOffset;
		} else {
		sctop = document.body.scrollTop;
	}

	if(sctop){
		scup = Math.ceil(sctop*.2);
		scrollBy(0,-scup);
		if (sctop-scup) setTimeout("slowdownScroll()",15);
	}
}


/* -------------------------
	Table stripe
------------------------- */
function StripeBgColor(sId, sColor1, sColor2){

	var oParent		= document.getElementById(sId);
	var oChild		= null;
	var oChildren	= oParent.childNodes;
	var bStripeFlg	= 0;

	for (var i = 0; i < oChildren.length; i++) {
		if (!oChildren[i])	continue;
		oChild = oChildren[i];
		break;
	}

	while (1) {
		if (undefined == oChild.tagName) {
			oChild = oChild.nextSibling;
			continue;
		}
		// 例外を列挙 ※記法:(1|2|3...)
		if (!oChild.tagName.match("(TBODY|THEAD|UL)"))	break;
		oChild = oChild.firstChild;
	}

	while (oChild != null) {
		if (bStripeFlg == 0) {
			oChild.style.backgroundColor = sColor1;
			bStripeFlg++;
		} else {
			oChild.style.backgroundColor = sColor2;
			bStripeFlg--;
		}
		oChild = oChild.nextSibling;
		if (oChild && oChild.nodeType == 3)	oChild = oChild.nextSibling;
	}

}
