var top_products = function ()
{
	var that = {};
	
	that.init = function(root_elem)
	{
		that.items = root_elem.find('.item');
		that.show_elem = $(document.createElement('div')).addClass('item hover');
		root_elem.append(that.show_elem);
		that.show_elem.hide();

		that.items.mouseover(function()
		{
			var item = $(this);
			var offset = item.offset();
			that.show_elem.empty().append(item.find('div').clone())
				.css('top',item.get(0).offsetTop)
				.css('left',item.get(0).offsetLeft-30)
				.show()
				.hover(function(){}, function(){$(this).empty().hide()})
			}
		);

	};
	
	return that;
};


$(document).ready(function()
{
	top_products().init($('#top_products'));
});
