$jq = jQuery.noConflict();

jQuery(document).ready(function() {     
    slideShow();
});
 
function slideShow() {
    jQuery('#newsswitch div.newsswitchelement').css({opacity: 0.0});    
    jQuery('#newsswitch div.newsswitchelement:first').css({opacity: 1.0});
    jQuery('#newsswitch .caption').css({opacity: 0.0});
    setInterval('newsrotation()',5000);
    newsrotation(); 
}
 
function newsrotation() {
    var current = (jQuery('#newsswitch div.newsswitchelement.show')?  jQuery('#newsswitch div.newsswitchelement.show') : jQuery('#newsswitch div.newsswitchelement:first'));
    var next = ((current.next().length) ? ((current.next().hasClass('caption'))? jQuery('#newsswitch div.newsswitchelement:first') :current.next()) : jQuery('#newsswitch div.newsswitchelement:first'));  
    var caption = next.attr('rel');
    next.css({opacity: 0.0})
    .addClass('show')
    .animate({opacity: 1.0}, 1000);
    current.animate({opacity: 0.0}, 1000)
    .removeClass('show');
    jQuery('#newsswitch .caption').animate({opacity: 0.0}, { queue:false, duration:0 }).animate({height: '1px'}, { queue:true, duration:300 });
    jQuery('#newsswitch .content').html(caption);         
}
