var Bins = {
	cache: {}
};

Bins.init = function(className)
{
	for (current=0; current < (elements = document.body.getElementsByTagName('TR')).length; current++)
	{
		if (elements[current].className.split(' ').indexOf('.'+className))
		{
			this.add(elements[current]);
		};
	}
};

Bins.add = function(element)
{
	this.cache[element.getAttribute('id') + ''] = element;
};

Bins.remove = function(bin_id)
{
	this.cache[bin_id].parentNode.removeChild(this.cache[bin_id]);
	delete this.cache[bin_id];
};

Bins.get = function(bin_id)
{
	return this.cache[bin_id] || document.getElementById(bin_id);
};
