$("document").ready(function() { setTimeout(function() { $("ul.galleria li:first-child img").trigger('click'); },10); });