jQuery.fn.center = function () {
    //alert("TOP:"+((jQuery(window).height() - this.outerHeight()) / 2) + jQuery(window).scrollTop() + "px; LEFT:"+((jQuery(window).width() - this.outerWidth()) / 2) + jQuery(window).scrollLeft() + "px");
	this.css('position','absolute');
    this.css('top', ((jQuery(window).height() - this.outerHeight()) / 2) + jQuery(window).scrollTop() + 'px');
    this.css('left', ((jQuery(window).width() - this.outerWidth()) / 2) + jQuery(window).scrollLeft() + 'px');
	
    return this;
}
