function TagCloud(jQuery, element)
{
	this.jQuery = jQuery;
	this.element = element;
}
TagCloud.prototype.jQuery;
TagCloud.prototype.element;

/**
 *	@ param low value between 0 and 99 but lower than high
 * 	@ param high value between 1 and 100 but higher than low
 */
TagCloud.prototype.makeTransparent = function(low, high)
{
	var jQuery = this.jQuery;
	var minSize;
	var maxSize;
	this.element.find('a').each(function()
	{
		var size = parseInt(jQuery(this).css('fontSize'));
		if(minSize == undefined || size < minSize) minSize = size;
		if(maxSize == undefined || size > maxSize) maxSize = size;
	}).each(function()
	{
		var opacity = (parseInt(jQuery(this).css('fontSize')) - 11) / 8;
		opacity = (opacity * (high - low) + low) / 100;
		jQuery(this).css('opacity', opacity).mouseenter(function()
		{
			jQuery(this).css('opacity', high / 100);
		}).mouseleave(function()
		{
			jQuery(this).css('opacity', opacity);
		});
	});
}
