// Handles popup of big thumbnails
function showPopup(_id, _sender, _path) 
{
	if(!getById("largeThumb_" + _id)) 
	{
		var image = document.createElement("img");
		image.src = _path;
		image.id = "largeThumb_" + _id;
		image.style.display = "none";
		image.style.padding = "5px";
		image.style.backgroundColor = "white";
		image.style.border = "1px solid #CCCCCC";
		image.style.maxWidth = "320px";
		
		document.body.appendChild(image);
				
		image.style.position = "absolute";
		image.style.left = posX(_sender) + 150 + "px";
		image.style.top = posY(_sender) - 6 + "px";
		
		image.style.display = "";
	} 
	else 
	{
		getById("largeThumb_" + _id).style.display = "";
	}
}

function hidePopup(_id) 
{
	getById("largeThumb_" + _id).style.display = "none";
}
