jQuery(window).load(function() { jQuery('#slider').nivoSlider({effect:'fade'}); });