jQuery.fn.center=function(){return this.each(function(){var B=(jQuery(window).width()-jQuery(this).outerWidth())/2+jQuery(window).scrollLeft(),A=(jQuery(window).height()-jQuery(this).outerHeight())/2+jQuery(window).scrollTop();B=(B<0)?0:B;A=(A<0)?0:A;jQuery(this).css({left:B+"px",top:A+"px",zIndex:"1000"})
})};
