jQuery.noConflict();

// Put all your code in your document ready area
jQuery(document).ready(function($){	

	// hide banner until you show it
	var bannerImg = $("#home-ad-div-container a img").size();
	var x = 0;
	
	$("#home-ad-div-container a img").each(function(){
				
		if(this.complete) {

			x = x + 1;
			if (x == bannerImg) $("#home-ad-div-container").show();
		
		} else {
			
			$(this).load( function() {  
			  
				x = x + 1;
				if (x == bannerImg) $("#home-ad-div-container").show();
			
			});
		}
		
	});

	// initiate rotator
  $('#home-ad-div-container').cycle({
		fx: 'fade',
		speed: 600,
		pager: '#home-ad-div-pager',
		timeout: 5000
	});
		
});
