<script>
    var count = 0;
    function handleBeforeLoad() {
        if (++count != 2)
            return;
        var newElement = document.createElement("div");
        document.body.appendChild(newElement);
        parent.document.getElementById("displaynoneme").style.display = "none";
        newElement.offsetWidth;
    }
   			
    function documentLoaded() {
        var o = document.createElement("object");
        o.addEventListener("beforeload", handleBeforeLoad, false);
        document.body.appendChild(o);
    }
</script>
<body onload="documentLoaded();"></body>
