$(document).ready(function() {
	var $tmp = new Array();
	$('.banners img').each(function(){ $tmp.push($(this)); });
	var countImage = function() {
		var count = 0;
		for(j=0;j<$tmp.length;j++) {
			if($tmp[j][0].complete) count++;
		}
		if(count==$tmp.length) {
	  $('.banners').cycle({
                fx:"scrollUp",
                speed: 800,
                delay: 2500,
                timeout: 5500,
                easing:  'easeOutExpo',
                pause:0,
									    			next:   '#next'
									});
		} else {
			setTimeout(countImage, 500);
		}
	}
	countImage();
});
