function bafter(currSlideElement, nextSlideElement, options, forwardFlag) {
	//currSlideElement.innerHTML = $(currSlideElement).html();
	//nextSlideElement.innerHTML = $(nextSlideElement).html();

}

function bbefore(currSlideElement, nextSlideElement, options, forwardFlag) {
	//$(currSlideElement).css('display','none');
	//$(nextSlideElement).css('display','block');

}


$(window).load(function(){

	h1 = $('#panel1').height();
	h2 = $('#mainPanel').height();
	hf = (h1>h2?h1:h2);

	$('#panel1 .spacer').height((hf-h1)+65);
	$('#mainPanel .spacer').height(hf-h2);
	
	$('.banners').cycle({ fx: 'scrollDown', speed:  2500, timeout: 15000, after: bafter, before: bbefore });
	
});
