    function ToggleButtons(totIncrement,maxRightIncrement){
        var objDivPrev = document.getElementById("DivPrev");
        var objDivNext = document.getElementById("DivNext");
        if(totIncrement==0){
            objDivPrev.style.visibility="hidden";
        }else{
            objDivPrev.style.visibility="visible";
        }
        if(totIncrement==maxRightIncrement){
            objDivNext.style.visibility="hidden";
        }else{
            objDivNext.style.visibility="visible";
        }
    }
    window.addEvent('domready', function(){ 
    var totIncrement = 0;
    var increment = 81;
    var intList=0;
    var myListShare=document.getElementById("myListShare");
    for (i=0; i<myListShare.childNodes.length; i++){
        if (myListShare.childNodes[i].nodeName=="LI"){
            intList=intList+1;
        }
    }
    var maxRightIncrement = Math.round(increment*((-1*(Math.round(intList/3)-1))));
    ToggleButtons(totIncrement,maxRightIncrement);
    var fx = new Fx.Style('myListShare', 'margin-left', {
    duration: 1000,
    transition: Fx.Transitions.Back.easeInOut,
    wait: true
    });

    //-------------------------------------
    // EVENTS for the button "previous"
    $('previous').addEvents({ 
    'click' : function(event){
    if(totIncrement<0){
	    totIncrement = totIncrement+increment;
	    ToggleButtons(totIncrement,maxRightIncrement);
	    fx.stop()
	    fx.start(totIncrement);
    }
    }			  	  
    }); 

    //-------------------------------------
    // EVENTS for the button "next"
    $('next').addEvents({ 
    'click' : function(event){
    if(totIncrement>maxRightIncrement){
        totIncrement = totIncrement-increment;
        ToggleButtons(totIncrement,maxRightIncrement);
        fx.stop()
        fx.start(totIncrement);
    }
    }		  		  
    })


    });
    
    function clicked(){
        //
    }