self.onError=null;

var speed = 0.3; // 0.1 == slow, 0.9 == very fast
var currentY = 0;  
var lastScrollY = 0;
var diffY = 0;
	
var IE = 0;
var NS = 0;
var NS6 = 0;

function doSlide() {
	
    if (IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
    if (NS || NS6) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
		
	if (diffY != lastScrollY) {
		percent = speed * (diffY - lastScrollY);
		if (percent > 0 ) {
			percent = Math.ceil(percent);
		} else {
			percent = Math.floor(percent);
		}
		if ( IE ) {
			document.all.scrollservice.style.pixelTop += percent;
			document.all.scrollnavi.style.pixelTop += percent;
		}
		if ( NS ) {
			document.scrollservice.top += percent;
			document.scrollnavi.top += percent;
		}
		if ( NS6 ) {
			curStr = document.getElementById("scrollservice").style.top;
			curStr = curStr.substring(0,curStr.length-2);
			curInt = parseInt(curStr) + percent;
			document.getElementById("scrollservice").style.top = curInt + "px"; 
			document.getElementById("scrollnavi").style.top = curInt + "px"; 
		}
		lastScrollY = lastScrollY + percent;
    }
}

function init() {
	if (document.all) IE = 1;
	if (document.layers) NS = 1;
	if (document.getElementById) {
		if (!document.all) NS6 = 1;
	}

	if (NS || IE || NS6) action = window.setInterval("doSlide()",1);
}

