	function scroll(goLeft)
	{
		var offset = (goLeft)?-2:2;
		var flowCut = document.getElementById("flowcut");
		flowCut.scrollLeft += offset;
    //alert(flowCut.scrollLeft);
		//addBox(goLeft);
	}

	function addBox(goLeft)
	{
		content = document.getElementById("flowcut");
		if((document.getElementById("flowcut").scrollLeft % 110)== 0 && !goLeft)
		{
			if (arrBox[i])
			{
					tmpContent = (content.innerHTML).toString();
					box = arrBox[i].innerHTML.toString();
					tmpContent.replace(box, "");
					content.innerHTML = tmpContent + box;
					i++;
			}
			else
				i = 0;
		}
		else if ((document.getElementById("flowcut").scrollLeft / 110) < 3 && goLeft)
		{

			if (arrBox[(arrBox.length - i)])
			{
				tmpContent = (content.innerHTML).toString();
				box = arrBox[(arrBox.length - i)].innerHTML.toString();
				tmpContent.replace(box, "");

				content.innerHTML =box + tmpContent;
				i--;
			}
			else
				i = (arrBox.length - 1);
			document.getElementById("flowcut").scrollLeft = 110*10;
		}
	}
	
	function initScrol()
	{
		strFunction1 = "scroll(true)";
		strFunction2 = "scroll(false)";
		strFunction3 = "scroll(true)";
		strFunction4 = "scroll(false)";

		document.getElementById("scroll0").style.cursor="pointer";
		document.getElementById("scroll1").style.cursor="pointer";

scrollDirection = setInterval(strFunction2, 50);
document.getElementById("flowcut").onmouseover = function(){ clearInterval(scrollDirection); };
document.getElementById("flowcut").onmouseout = function(){scrollDirection = setInterval(strFunction2, 50); };

//alert(document.getElementById("flowcut").style.height);


		document.getElementById("scroll0").onmouseover = function(){
    clearInterval(scrollDirection);
    scrollDirection2 = setInterval(strFunction3, 15); 
    };
		document.getElementById("scroll1").onmouseover = function(){
    clearInterval(scrollDirection);
    scrollDirection2 = setInterval(strFunction4, 15); 
    };

		document.getElementById("scroll0").onmouseout = function(){ 
    clearInterval(scrollDirection2); 
    scrollDirection = setInterval(strFunction2, 50);
    };
		document.getElementById("scroll1").onmouseout = function(){ 
    clearInterval(scrollDirection2); 
    scrollDirection = setInterval(strFunction2, 50);    
    };

		var i = 0;


		while(document.getElementById("box" + i))
		{
			arrBox[i] = document.getElementById("box" + i);

			i++;
		}
	}