$.fn.centruj = function() {
    this.each(function() {
        $(this).css({
            position: 'relative',
            margin: '0px',
            padding: '0px',
            left: ($(this).parent().width()/2)-($(this).width()/2)+"px",
            top: ($(this).parent().height()/2)-($(this).height()/2)+"px"
        });
    });
};

