//hitI Javascript - hScroller.js
//update:  2005.08.31

<!--//
/* horizontal iframe scroller v0.5 By H.I.T */


hHandle     = 0;
hSpeed      = 0;
_iframeName = '';

function hScroll(hfName, hParam){ // inlineframeName, speed
	hSpeed = hParam;
	_iframeName = hfName;
	if (hHandle == 0) hHandle = setInterval("hMove()",100);
}

function hMove(){
	// alert(document.getElementById(_iframeName).contentWindow.name);
	document.getElementById(_iframeName).contentWindow.scrollBy(hSpeed,0);
}


function hStop(){
	if (hHandle != 0){
		clearInterval(hHandle);
		hHandle = 0;
	}
}

function hClick(){
	if (hHandle == 0){
		hHandle = setInterval("hMove()",100);
	}else{
		clearInterval(hHandle);
		hHandle = 0;
	}
}
//-->
