$(document).onready(function() {

    /* browser specific corrections */

    if(Prototype.Browser.IE) {

        if(parseInt(Prototype.Browser.Version) < 7) {

            // re-position background
            $("background").style.top = (parseInt($("background").currentStyle.top) - 0.5) + "em";

            // adjust content size
            $("content").style.height = $("content").currentStyle.minHeight;
        }

        // import ie specific style
        var head = document.getElementsByTagName("head")[0];
        var iecss = document.createElement('link');
            iecss.setAttribute("type", 'text/css');
            iecss.setAttribute("rel", 'stylesheet');
            iecss.setAttribute("href", "./style/wca_ie.css");
            iecss.setAttribute("media", "screen");
            head.appendChild(iecss);
    }

    if(Prototype.Browser.Mozilla) {

        // adjust content size
        $("sidebar-right").style.width = (($("sidebar-right").clientWidth / 10) - 10.5) + "em";
    }

});