(function(jq){
	jq.fn.mosaik=function(){
	   
	   return this.each(function(){
	        var _self = jq(this);
            var _verticalCenter = function() {
                var top = Math.round((jq('#main_content').height() - _self.outerHeight())/2);
                top = top > 0 ? top : 0;
                _self.css({'top':top+'px'});
            }
            
            jq(window).resize(_verticalCenter);
            _verticalCenter();
	   });
    }
})(jQuery);
       
