function runOnloads() { levelBottoms(); dynGradients(); externalLinksNewWindows(); } function include(file) { var script = document.createElement('script'); script.src = file; script.type = 'text/javascript'; document.getElementsByTagName('head').item(0).appendChild(script); } include('style/js/level-bottoms.js'); include('/style/js/dyn-gradients.js'); include('/style/js/external-links-new-windows.js'); window.onload = runOnloads;