﻿    function VOCNext(from){
            if($("#" + from).next().attr("id")){
                var to = $("#" + from).next().attr("id");
            }else{
                var to = $("#VoiceOfCustomerWrapper .voiceOfCustomer:first").attr("id");
            }
        $('#' + from).fadeOut("slow");
        $('#' + to).fadeIn("slow");
        setTimeout("VOCNext('" + to + "')",10000); // 10 second delay
    }
    
$(document).ready(function () {    
    VOCNext($("#VoiceOfCustomerWrapper .voiceOfCustomer:last").attr("id"));
    });
