function slideSwitch() {
    var $active = jQuery('#offers-ticker li.offer1');

    if ( $active.length == 0 ) $active = jQuery('#offers-ticker li:last');

    var $next =  $active.next().length ? $active.next()
        : jQuery('#offers-ticker li:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('offer1')
		.animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('offer1 last-active');
			$active.removeAttr('filter');

        })
		.removeAttr('filter');
}

jQuery(function() {
    setInterval( "slideSwitch()", 5000 );
});
