/*
 *  Initializations on page load.
 */
$(document).ready(function(){
    if($.browser.mozilla || $.browser.opera) {
        positionMinimalSearch();
        $(window).resize( function() { positionMinimalSearch(); });
    }
});

/*
 *  Helper method for positioning search field at the top
 *  of the marginal column. Only used by mozilla and opera
 *  browsers, IE uses expressions within the stylesheets.
 */
function positionMinimalSearch() {
    var contentElem;
    if (contentElem = document.getElementById("content")) {
        var offset = contentElem.offsetWidth - 220; /* 220px: border-right of #content */
        $('#search-minimal').css({
           position: "absolute",
           top: "0px",
           left: offset+"px"
        });
    }
}
