//var intervalId = 0;

    

function slideIt(){
     //inx.msg($(".form").width(),1);
     //inx.msg($(".roller").width());
     if(($(".roller").width()-30)<=($(".form").width())){
         $(".arrowleft").hide();
         $(".arrowright").hide();
     }
     
    $("#left").click(function(){
       
        $(".lol").remove();
        var tdwidth =  $(".container").width();
        var position = Math.round((parseInt($(".roller").css("left"))+tdwidth)/tdwidth)*tdwidth;
        var tablewidth= $(".tableform").width();
        if(parseInt($(".roller").css("left"))< -($(".container").width()-1)){
                $(".roller").animate({"left": position}, 150,"swing",function(){
                  
                });
     
       }else{
              
      }              
    }).delay(150);
    $("#right").click(function(){
        
        $(".lol").remove();
        var tdwidth =  $(".container").width();
         var position = Math.round((parseInt($(".roller").css("left"))-tdwidth)/tdwidth)*tdwidth;

        var tablewidth=$(".roller").width() - $(".form").width();
        if(-(tablewidth)<position){
            $(".roller").animate({"left": position},150,"swing",function(){
                   
                });
        }else{
           
      }
     }).delay(150);       
     
     //var position = parseInt($(".roller").css("left"))+tdwidth;
     //var tablewidth= $(".tableform").width();
     /*if(parseInt($(".roller").css("left"))<0){
                $(".arrowright").fadeIn("slow");
     }else{
           $(".arrowleft").fadeOut("slow");}           
     if(-(tablewidth)<position){
            $(".arrowleft").fadeIn("slow");
     }else{
           $(".arrowright").fadeOut("slow");}  */         
}
$(slideIt);
