    $(function() {
		  // create the image rotator
            setInterval("rotateImages()", 4000);
			$('#slides').show();
           $("#newsSection").accordion({ header: "h4", fillspace: true, clearStyle: true });
		   
		   $("#newsSection2").accordion({ header: "h4" });
		//  $("#newsSection2").filter(":not(:has(.selected))");
           $("#newsSection2").accordion("activate", -1);
		
			var collapsible = $('#newsSection, #newsSection2').accordion('option', 'collapsible');
			//setter
			$('#newsSection, #newsSection2').accordion('option', 'collapsible', true);
			//   getter
			var autoHeight = $('#newsSection, #newsSection2').accordion('option', 'autoHeight');
			//setter
			$('#newsSection, #newsSection2').accordion('option', 'autoHeight', false);
	
			$("div.subject a[href$=.pdf]").before(" <img src='../layout/pdf.gif' width='16' height='16' border='0' alt='case' align='absbottom' />");
			
		    $("p a[href$=.pdf]").before("<img src='../layout/pdf.gif' width='16' height='16' border='0' alt='case' align='absbottom' /> ");
	;
					
        });
	
	// voor slideshow op homepage
        function rotateImages() {
            var oCurPhoto = $('#photoShow div.current');
            var oNxtPhoto = oCurPhoto.next();
            if (oNxtPhoto.length == 0)
                oNxtPhoto = $('#photoShow div:first');

            oCurPhoto.removeClass('current').addClass('previous');
            oNxtPhoto.css({ opacity: 0.0 }).addClass('current').animate({ opacity: 1.0 }, 1000,
                function() {
                    oCurPhoto.removeClass('previous');
                });
        }
		
	
	