jQuery.fn.selecteSizer = function(C, E) {
    var D = {
        floatIndex: 777,
        width: "auto",
        position: {
            type: "absolute",
            topOffset: 0,
            leftOffset: 0
        },
        callback: null
    };
    if (C) {
        jQuery.extend(D, C)
    }
    var A = this;
    var B = 0;
    this.each(function() {
        jQueryChild = jQuery(this);
        if (jQueryChild.attr("style")) {
            jQueryChild.attr("ostyle", jQueryChild.attr("style"))
        } else {
            jQueryChild.attr("ostyle", " ")
        }
        jQueryChild.focus(function() {
            jQuery("#selectGhost").remove();
            var G = jQuery(this).offset().top;
            var I = jQuery(this).offset().left;
            if (F(this)) {
                G = jQuery(this).position().top;
                I = jQuery(this).position().left
            }
            var H = jQuery(this).css("margin");
            if (H) {
                H = "margin:" + H
            } else {
                H = ""
            }
            jQuery(this).after("<select id='selectGhost' class='" + jQuery(this).attr("class") + "' style='" + H + ";" + jQuery(this).attr("ostyle") + "; width:" + (jQuery(this).outerWidth()) + "px;visibility:hidden'><option>&nbsp;</option></select>");
            jQuery(this).change();
            jQuery(this).css({
                width: D.width,
                position: D.position.type,
                top: G + D.position.topOffset,
                left: I + D.position.leftOffset,
                zIndex: D.floatIndex
            });
            if (jQuery(this).next("#selectGhost:first").width() > jQuery(this).width()) {
                jQuery(this).attr("style", jQuery(this).attr("ostyle"));
                jQuery(this).next("#selectGhost:first").remove()
            }
            jQuery(this).trigger("mousedown")
        });
        //GvW.SN
        jQueryChild.mouseover(function() {
            var config = {
                sensitivity: 1, // number = sensitivity threshold (must be 1 or higher)
                interval: 1, // number = milliseconds for onMouseOver polling interval
                over: makeTall, // function = onMouseOver callback (REQUIRED)
                timeout: 1, // number = milliseconds delay before onMouseOut
                out: makeShort // function = onMouseOut callback (REQUIRED)    
            };
            jQuery(this).hoverIntent(config)
        });

        function makeTall() {
            jQuery(this).addClass("absolute");
            jQuery(this).trigger("focus");
        }
        function makeShort() {
            jQuery(this).removeClass("absolute");
        }

        //GvW.EN
        jQueryChild.blur(function() {
            jQuery(this).next("#selectGhost:first").remove();
            jQuery(this).attr("style", jQuery(this).attr("ostyle"))
        });
        function F(G) {
            var H = G;
            while (H.parentNode) {
                if (jQuery(H).css("position") == "relative" || jQuery(H).css("position") == "absolute") {
                    return true;
                    break
                }
                H = H.parentNode
            }
            return false
        }
        if (D.callback != null) {
            D.callback(this)
        }
        B++
    });
    if (E != null) {
        E(A)
    }
    return jQuery(this)
};
if (console == undefined) {
    var console = {
        log: function(A) {
            alert(A)
        }
    }
};