out = settimeout(el.startauto, slider.settings.autodelay);
// if autodelay was not supplied, start the auto show normally
}else{
el.startauto();
}
// if autohover is requested
if(slider.settings.autohover){
// on el hover
el.hover(function(){
// if the auto show is currently playing (has an active interval)
if(slider.interval){
// stop the auto show and pass true agument which will prevent control update
el.stopauto(true);
// create a new autopaused value which will be used by the relative "mouseout" event
slider.autopaused = true;
}
}, function(){
// if the autopaused value was created be the prior "mouseover" event
if(slider.autopaused){
// start the auto show and pass true agument which will prevent control update
el.startauto(true);
// reset the autopaused value
slider.autopaused = null;
}
});
}
}
/**
* initialzes the ticker process
*/
var initticker = function(){
var startposition = 0;
// if autodirection is "next", append a clone of the entire slider
if(slider.settings.autodirection == 'next'){
el.append(slider.children.clone().addclass('bx-clone'));
// if autodirection is "prev", prepend a clone of the entire slider, and set the left position
}else{
el.prepend(slider.children.clone().addclass('bx-clone'));
var position = slider.children.first().position();
start