if (!util) var util = {};

util.rotate = function(elements) {
	var length = $(elements).length;
	var which = ($.cookie('partnerSpotIndex')) ? ($.cookie('partnerSpotIndex')) : 0;
	var next = ( parseInt(which) + 1 ) % length;

	$(elements).hide();
	if( $(elements)[parseInt(which)] ) {
		$( $(elements)[parseInt(which)] ).show();
	}
	else {
		$( $(elements)[0] ).show();
		next = 1;
	}
	
	$.cookie('partnerSpotIndex', next, { expires: 7 });
}

