jQuery.fn.center = function () {
	return this.each(function () {
		var t = jQuery(this);
		t.css({
			left:jQuery(window).scrollLeft()+ (jQuery(window).width()/2) - (t.outerWidth() / 2), 
			top:jQuery(window).scrollTop() + (jQuery(window).height()/2) - (t.outerHeight() / 2)
		});
	});
};
