$(document).ready(function(){ jQuery('.ambitios_slider').fadeIn(300); if ($("#s4").length) { $.fn.cycle.defaults.timeout = 6000; $(function() { // run the code in the markup! $('#s4').before('