;(function($){
	$.fn.autoMiddle = function(){
		return this.each(function(){
			$(this).css("position","absolute");
			$(this).css({
	              "left": ($(window).width() - $(this).outerWidth())/2,
	              "top": ($(window).height() - $(this).outerHeight())/2
	     	});
		});
	}
})(jQuery);
