$(document).ready(function(){ $("#BookReader").height($(window).height()-1000); }); $(window).bind("load", function() { $('.show-theme-options').delay(2000).trigger('click'); });