ahhh, Is firstpic added dynamically by the package? If so then you'll need to wait until after it has been added to call the trigger method.
Is this what sets everythign up? $("area[rel^='slideShow']").prettyPhoto();
Do you know if it has a callback function, something that is run after it is done? If so you may be able to do this:
- $("area[rel^='slideShow']").prettyPhoto(
- function() {
- $("#firstpic").trigger("click");
- }
- );
You could also check the package docs to see if there is a way to have it start when the page is loaded.
Dave