var lastscrollpos = 1;
var intval = '';

// var scrollMiniAutoSlider = true;
var scrolldiricton = 'left';
// function miniAutoSlider(){
//   if(scrollMiniAutoSlider==true){
//     var scrollpos = $('#fescroller-holder').scrollLeft()+$('#fescroller-holder').width();
//     var scrollend = $('#fescroller-scrollcontent').width();
//     var scrollstart = $('#fescroller-holder').width();
//     if(scrollpos==scrollstart){scrolldiricton='left';}else if(scrollpos==scrollend){scrolldiricton='right';}
//     scrollMiniTo(scrolldiricton,400);
//   }
// }

function scroll(){
  if(scrolldiricton=='left'){
    $('#fescroller-holder').animate({scrollLeft:4000}, 160000, "linear", function () {scrolldiricton='right';scroll();});
  }else{
    $('#fescroller-holder').animate({scrollLeft:0}, 160000, "linear", function () {scrolldiricton='left';scroll();});
  }
}


window.onresize = resizeFunctions;
function resizeFunctions(){

}

$(document).ready(function () {
  //jQuery.fx.interval = 20;
  scroll()
});
