function getChildrenShower(elem) { return function() { for(var i=0; i 0) { var height = window.innerHeight; height -= document.getElementById("headerContainer").clientHeight; var width = window.innerWidth; width -= document.getElementById("bjAndSlutsContainer").clientWidth; var mainbox = document.getElementById("contentContainer"); mainbox.style.overflow = "auto"; mainbox.style.height = mainbox.style.maxHeight = height + "px"; mainbox.style.width = mainbox.style.maxWidth = width + "px"; } } function onLoad() { if(typeof(window.addEventListener) == "function") { makeMainboxScrollable(); window.addEventListener("resize", makeMainboxScrollable, false); } if(typeof(machicharaInit) == "function") { machicharaInit(); } }