<!--
$(function () {

    var counter = 0;
	var bigCounter = -1;
        heads = $('#headDiv1, #headDiv2, #headDiv3, #headDiv4, #headDiv5');
		
	function backGrOld () {
        heads.filter(function (index) { return index == bigCounter % 5; }) // figure out correct div to show
            .css({'background-color': '#d9d9d9','border':'none'});
		bigCounter++;
	};

    function backGrNew () {
        heads.filter(function (index) { return index == counter % 5; }) // figure out correct div to show
            .css({'background-color': '#ccc', 'border-top': 'thin solid #999', 'border-bottom': 'thin solid #999'});


        counter++;
    }; // function to loop through divs and show correct div

    backGrNew(); // show first div   
	backGrOld();

    setInterval(function () {
        backGrNew(); // show next div
    }, 8 * 1000); // do this every x seconds 
	
	setInterval(function () {
        backGrOld(); // show next div
    }, 8 * 1000); // do this every x seconds  

});
//-->



