$j=jQuery.noConflict();
function slideSwitch(switchSpeed) {
    var $active = $j('.slideshow li.active');
    
    if ( $active.length == 0 ) $active = $j('.slideshow li:last');

    var $next =  $active.next().length ? $active.next()
       : $j('.slideshow li:first');

    /*
    var $sibs  = $active.siblings();
    var rndNum = Math.floor(Math.random() * $sibs.length );
    var $next  = $( $sibs[ rndNum ] );
    */
    
    $active.addClass('last-active');
    
    
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, switchSpeed, function() {
            $active.removeClass('active last-active');
        });
}

var playSlideshow =  setInterval( "slideSwitch()", 5000 );
$j(function(){
$j(".slideshow").hover(function() {
    clearInterval(playSlideshow);
},
function() {
    playSlideshow =  setInterval( "slideSwitch()", 5000 );
slideSwitch();
});
});








$j=jQuery.noConflict();
function slideSwitch(switchSpeed) {
    var $active = $j('.slideshow1 li.active');
    
    if ( $active.length == 0 ) $active = $j('.slideshow1 li:last');

    var $next =  $active.next().length ? $active.next()
       : $j('.slideshow1 li:first');

    /*
    var $sibs  = $active.siblings();
    var rndNum = Math.floor(Math.random() * $sibs.length );
    var $next  = $( $sibs[ rndNum ] );
    */
    
    $active.addClass('last-active');
    
    
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, switchSpeed, function() {
            $active.removeClass('active last-active');
        });
}

var playSlideshow =  setInterval( "slideSwitch()", 5000 );
$j(function(){
$j(".slideshow1").hover(function() {
    clearInterval(playSlideshow);
},
function() {
    playSlideshow =  setInterval( "slideSwitch()", 5000 );
slideSwitch();
});
});


