jQuery.fn.center=function(){return this.each(function(){var i=jQuery(window).width();var c=jQuery(this).outerWidth();var g=jQuery(window).scrollLeft();var a=jQuery(window).height();var b=jQuery(this).outerHeight();var d=jQuery(window).scrollTop();var f=(i-c)/2+g,e=(a-b)/2+d;f=(f<0)?0:f;e=(e<0)?10:e;jQuery(this).css({left:f+"px",top:e+"px",zIndex:"1000"})})};
