var lastShowCase = null;
var currShowCaseBig = false;
function showcase_over (el, big)
{
	if (lastShowCase)
		showcase_out (lastShowCase);

	if (!el) return false;
	
	if (!el.onmouseout)
		el.onmouseout = function () { showcase_out (this); };
	
	var overlay = null;
	for (var i = 0; i < el.childNodes.length; i ++)
		if (el.childNodes[i].className == 'showcase_overlay_big' || el.childNodes[i].className == 'showcase_overlay_small')
			overlay = el.childNodes[i];
	
	if (!overlay) return false;
	overlay.className = big ? 'showcase_overlay_visible_big' : 'showcase_overlay_visible_small'; 
	lastShowCase = el;
	currShowCaseBig = true;
	return true;
}
function showcase_out (el)
{
	if (!el) return false;
	
	var overlay = null;
	for (var i = 0; i < el.childNodes.length; i ++)
		if (el.childNodes[i].className == 'showcase_overlay_visible_big' || el.childNodes[i].className == 'showcase_overlay_visible_small')
			overlay = el.childNodes[i];
	
	if (!overlay) return false;
	overlay.className = currShowCaseBig ? 'showcase_overlay_big' : 'showcase_overlay_small';
	lastShowCase = null;
	currShowCaseBig = false;
	return true;
}

function buy_product (pid)
{
	alert ('Sorry, item purchase is not available yet.');
}
