Would be easier if you could point us to the page in question. However, you could try putting the output of the javascript into a table or a div that has the size present. So when the page loads, the required space for the callander is drawn first so the page doesn't resize as the script runs.