var CarboComp = new Class({
    options: {
    },

    initialize: function(options) {
        this.setOptions(options);

        this.placeCredits();
    },

    placeCredits: function() {
    
    	var credits_size = $('credits').getSize();
    	var size = $$('body')[0].getScrollSize();
    	$('credits').setStyle('position', 'absolute');
    	$('credits').setStyle('right', (size.x / 2 - credits_size.x / 2));
    	$('credits').setStyle('top', (size.y - 30) + 'px');
    }
});

CarboComp.implement(new Options);

window.addEvent('load', function() {
    var carbocomp = new CarboComp();
});
