$(document).ready(function() {

$(".head-sponsor-bg table td").hide();

var total = $(".head-sponsor-bg table td").length;
var limit = Math.round(($(".head-sponsor-bg table td").length / 2));
var offset = 0;

showSponsors();

function showSponsors() {

$(".head-sponsor-bg table td").hide();

var i = 0;
var turnedOn = 0;

$(".head-sponsor-bg table td").each(function() {


if(i >= offset) {
if(turnedOn < limit) {
$(this).show();
turnedOn++;
}
}

i++;

});

if(offset == 0) {
offset = turnedOn;
} else {
offset = 0;
}

}


setInterval(
function ()
{
showSponsors();
}, 6000);


}) 