function Slideshow()
{
    var active = jQuery('#slideshow div.active');

    if ( active.length == 0 ) active = jQuery('#slideshow div:last');

    var next =  active.next().length ? active.next()
        : jQuery('#slideshow div:first');

    active.addClass('last-active');

    next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            active.removeClass('active last-active');
        });

    /** Poiner **/
    var IMGactive = jQuery('.pointer .img-active');
    var IMGnext = IMGactive.next();
    if(IMGnext.html() == null)
        IMGnext = jQuery('.pointer div:first');

    var IMGactiveHMTL = IMGactive.html();
    var IMGnextHTML = IMGnext.html();

    IMGnext.html(IMGactiveHMTL);
    IMGactive.html(IMGnextHTML);

    IMGactive.removeClass('img-active');
    IMGnext.addClass('img-active');
}

jQuery(function() {
    setInterval("Slideshow()", 6000 );
});
