$(document).ready(function(){
	if($('.news-ticker-body').length){
		$('.news-ticker-body').cycle({ 
			fx:			'fade',
			speed:	600,
			sync:		0,
			fit:    1, 
			timeout: 6000,			
			height: 'auto',
			before: onBefore
		});
	}
});

function onBefore(curr, next, opts) {
    var index = opts.currSlide;
    var nxt = index+1;       
   	$('.news-ticker-body').height($(this).height()+'px');
}

