jQuery.fn.center = function () {
    this.css("position","absolute");
    this.css("top", "0px");
    this.css("left", ( $(window).width() - this.outerWidth() ) / 2+$(window).scrollLeft() + "px");
    return this;
}

