// JavaScript Document
defaultStep=5;
step=defaultStep;
function scrollDivDown(id){
	parent.document.getElementById(id).scrollTop+=step;
	timerDown=setTimeout("scrollDivDown('"+id+"')",10);
}

function scrollDivUp(id){
	parent.document.getElementById(id).scrollTop-=step;
	timerUp=setTimeout("scrollDivUp('"+id+"')",10);
}

function scrollDivLeft(id){
	parent.document.getElementById(id).scrollLeft+=step;
	timerDown=setTimeout("scrollDivLeft('"+id+"')",10);
}

function scrollDivRigth(id){
	parent.document.getElementById(id).scrollLeft-=step;
	timerUp=setTimeout("scrollDivRigth('"+id+"')",10);
}

function abrirImagem(imgID) {
        parent.document.getElementById("imgQuadro").src = imgID;
		window.open('#top', '_self');
}

function abrirImagem2(imgID2) {
      parent.document.getElementById("imgQuadro2").src = imgID2;
	  window.open('#top2', '_self');
}


//mov as miagens
function init(){
	empty_mc = parent.document.getElementById('div_processos');
	dummy_mc = parent.document.getElementById('dummy');
	zz = new Tween(dummy_mc.style,'left','',parseInt(dummy_mc.style.left),10,1,'px');
}

function movesquare(posi){
		evt = window.event;
		var duration = 15;
		var easingFunc = Tween.strongEaseOut;
		isNaN(duration) ? duration = 1 : null;
		var posi_x = (posi*120)-60;
		if(posi_x > 1){
			var x = -(posi_x-360);
			if(x<=1){
				zz.func = easingFunc;
				zz.continueTo(x,duration);
			} else {
				zz.func = easingFunc;
				zz.continueTo(0,duration);
			}
		}
}

