/* Tagcloud */
jQuery.fn.tagcloud = function(settings) {
	return this.each(function() {
		var __e = $(this);
		var options = $.extend({}, settings);

		tagcloud(__e);
	});
};

function tagcloud(__e){
	var selector = __e.attr('data-tagcloud');
	__e.find(selector).each(function(){
		var score = new Number($(this).attr('data-tagcloud-score'));
		score = (score > 20) ? 30 : score + 10;
		$(this).css('font-size',score+'px');
	});
}
