	
	function movedown(){
		if (window.moveupvar) clearTimeout(moveupvar);
		if (parseInt($(".taulaloc").height())>limit)
			$("#flup").show("slow");
		if (parseInt(crossobj.style.top)<0) {
			crossobj.style.top=parseInt(crossobj.style.top)+speed;}
		else if (parseInt(crossobj.top)<=0) 
			$("#fldown").hide("slow");
			
		movedownvar=setTimeout("movedown()",10)
	}

	function moveup(){
		if (window.movedownvar) clearTimeout(movedownvar);
		if (parseInt(crossobj.style.top)>=(limit-parseInt($(".taulaloc").height())))
			crossobj.style.top=parseInt(crossobj.style.top)-speed
		else
			crossobj.top+=speed
		moveupvar=setTimeout("moveup()",10)
	}
	
	function moveLeft(){
		if (window.moveRightVar) clearTimeout(moveRightVar);
		if (parseInt(contentWidth)>778)
			$("#fletxdret").show("slow");
		if (iens6&&parseInt(crossobj.style.left)>=(778-parseInt(contentWidth))) {
			crossobj.style.left=parseInt(crossobj.style.left)-speed;}
		else 
			$("#fletxesq").hide("slow");
		
		moveLeftVar=setTimeout("moveLeft()",10);
	}
	
	function moveRight(){
		if (window.moveLeftVar) clearTimeout(moveLeftVar);
		if (parseInt(contentWidth)>778)
			$("#fletxesq").show("slow");
		if (iens6&&parseInt(crossobj.style.left)<0)
			crossobj.style.left=parseInt(crossobj.style.left)+speed;
		else 
			$("#fletxdret").hide("slow");
			
		moveRightVar=setTimeout("moveRight()",10);
	}

	function stopscroll(){
		if (window.moveRightVar) clearTimeout(moveRightVar);
		if (window.moveLeftVar) clearTimeout(moveLeftVar);
		if (window.moveupvar) clearTimeout(moveupvar);
		if (window.movedownvar) clearTimeout(movedownvar);
	}

	function movetop(){
		stopscroll()
		if (iens6)
			crossobj.style.top=0
		else if (ns4)
			crossobj.top=0
	}

	function getcontent_height(){
		if (iens6)
			contentheight=crossobj.offsetHeight
		else if (ns4)
			document.nscontainer.document.nscontent.visibility="show"
	}
	
		
	function moveLDown(){
		if (window.moveupvar) clearTimeout(moveupvar);
		if (parseInt($("#taulaProjectes").height())>504)
			$("#flup").show("slow");
		if (parseInt(crossobj.style.top)<0) {
			crossobj.style.top=parseInt(crossobj.style.top)+speed;}
		else if (parseInt(crossobj.top)<=0) 
			$("#fldown").hide("slow");
			
		movedownvar=setTimeout("moveLDown()",10)
	}

	function moveLUp(){
		if (window.movedownvar) clearTimeout(movedownvar);
		if (parseInt(crossobj.style.top)>(504-parseInt($("#taulaProjectes").height())))
			crossobj.style.top=parseInt(crossobj.style.top)-speed
		else{			
			crossobj.top+=speed;}
		moveupvar=setTimeout("moveLUp()",10)
	}

