    
  */
 
-package eu.stefaner.elasticlists.ui.facetboxes.elasticlist {
+package eu.stefaner.elasticlists.ui.facetboxes.elasticlist {
 	import eu.stefaner.elasticlists.data.FacetValue;
 	import eu.stefaner.elasticlists.ui.DefaultGraphicsFactory;
 	import eu.stefaner.elasticlists.ui.facetboxes.FacetBox;

				bg.alpha = 1;
			}
			

			if (facetValue.numContentItems) {
				expand();
			} else {
				collapse();
			}
		}

		//---------------------------------------
		// DISPLAY STATE
		//---------------------------------------
		override public function collapse() : void {
			container.transitioner.$(this).height = COLLAPSED_HEIGHT;
			container.transitioner.$(this).alpha = .4;
			mouseEnabled = false;
		}

		override public function expand() : void {
			var s : Number = facetValue.numContentItems > 1 ? ratioToSize(facetValue.localRatio) : MIN_HEIGHT;
			container.transitioner.$(this).height = s;
			container.transitioner.$(this).alpha = 1;
			mouseEnabled = true;
		}

		protected function ratioToSize(a : Number) : Number {
			var result : Number;
			if (!a) {
				a = 0;
			}
			var logScale : Number = 5;

			result = Math.floor(MAX_HEIGHT * Math.log(1 + a * logScale) / Math.log(logScale + 1));
			result = Math.min(MAX_HEIGHT, Math.max(MIN_HEIGHT, result));
			return result;
		}
	}
}
			num_tf.visible = title_tf.visible = height > 15;
			num_tf.x = width - num_tf.width - 3 - 16;
			title_tf.width = num_tf.x - title_tf.x;
		}

		override public function set height( h : Number ) : void {
			bg.height = h;
			selectionMarker.height = h;
			layout();
		}

		override public function get height() : Number {
			return bg.height;
		}

		override public function set width( w : Number ) : void {
			selectionMarker.width = bg.width = w;
			layout();
		}

		override public function get width() : Number {
			return bg.width;
		}

		//---------------------------------------
		// STATS
		//---------------------------------------
		override public function updateStats() : void {
			super.updateStats();
			if (ElasticListEntry.showTotals && facetValue.totalNumContentItems && facetValue.totalNumContentItems != facetValue.numContentItems) {
				num_tf.text = facetValue.numContentItems + "/" + facetValue.totalNumContentItems;
			} else {
				num_tf.text = String(facetValue.numContentItems);
			}
			
			//num_tf.text = Math.round(100 * facetValue.distinctiveness) + "/" + facetValue.numContentItems + "/" + facetValue.totalNumContentItems;
