var fdvSlideNext = function(containerID) {
    var $active = $(containerID + ' li.active'); 
    if ( $active.length == 0 ) $active = $(containerID + ' li:first'); 
    var $next =  $active.next().length ? $active.next() : $(containerID + ' li:first'); 
    $active.addClass('last-active'); 
    $active.animate({opacity: 0.0}, 100, function() {
	    $next.css({opacity: 0.0}) 
	    	.show()
	        .addClass('active') 
	        .animate({opacity: 1.0}, 500, function() { 
	            $active.removeClass('active last-active');
	            $active.hide();
	    });
    });
}

var fdvSlidePrev = function(containerID) {
    var $active = $(containerID + ' li.active'); 
    if ( $active.length == 0 ) $active = $(containerID + ' li:last'); 
    var $next =  $active.prev().length ? $active.prev() : $(containerID + ' li:last'); 
    $active.addClass('last-active'); 
    $active.animate({opacity: 0.0}, 100, function() {
	    $next.css({opacity: 0.0}) 
	    	.show()
	        .addClass('active') 
	        .animate({opacity: 1.0}, 500, function() { 
	            $active.removeClass('active last-active');
	            $active.hide();
	    });
    });
}