
var x;

var mover = 0;
var larguracontainer = 920;

function moveLeft(){    
    
    larguraScroll = document.getElementById('scrolabbleslider').style.width;    
    
    totalLargura = (larguraScroll.substring(0,(larguraScroll.length-2))-larguracontainer);
        
    x = window.setInterval(function goLeft(){
            
            mover = mover + 6;
            
            if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){
                 var ieversion=new Number(RegExp.$1);
                  if (ieversion>=6 && ieversion <7){
                      mover = mover + 1;   
                  }
            }            
            document.getElementById('scrolabbleslider').style.marginLeft = -(mover) +'px'; 
            
            
            if(mover > totalLargura){
                window.clearInterval(x);
            }
    },5);
}


function moveRight(){    
    x = window.setInterval(function goRight(){
            mover = mover - 6;
            
            if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){
                 var ieversion=new Number(RegExp.$1);
                  if (ieversion>=6 && ieversion <7){
                      mover = mover - 1;   
                  }
            }            
            document.getElementById('scrolabbleslider').style.marginLeft = -(mover) +'px';
            if(mover < 1){
                   window.clearInterval(x);
                   document.getElementById('scrolabbleslider').style.marginLeft = '0px';
            }   
    },5);
}


function stopMove(){
    window.clearInterval(x);
}

