function enlargeImg(imgID, oTDObj) {
	aPos = detectTDXY(oTDObj);
	with(document.getElementById(imgID)) {
		style.top = aPos[1];
		style.left = aPos[0];
		style.display = 'inline';
	}
}
function enlargeImg2(imgID, imgW, imgH) {
	sW = document.body.clientWidth;
	sH = document.body.clientHeight;
	if(imgW < sW) ix = (sW - imgW) / 2; else ix = 10;
	if(imgH < sH) iy = (sH - imgH) / 2; else iy = 10;
//	iy = 10;
	with(document.getElementById(imgID)) {
		style.top = iy;
		style.left = ix;
		style.display = 'inline';
	}
}
function closeImg(imgID) {
	document.getElementById(imgID).style.display = 'none';
}
function detectTDXY(oTDObj) {
	var x = oTDObj.offsetLeft;
	var y = 0;
	var oTmp = oTDObj;

	while((oTmp = oTmp.parentNode) != null && oTmp.nodeName.indexOf('#') == -1) switch(oTmp.nodeName) {
		case 'TD' : x += oTmp.offsetLeft; break;
		case 'TR' : y += oTmp.offsetTop; break;
		default: x += oTmp.offsetLeft; y += oTmp.offsetTop; break;
	}

	return new Array(x, y);
}
function showPlayer(sURL) {
	sHtml = '&nbsp;<object width="300" height="45"><param name="src" value="' + sURL;
	sHtml += '"><param name="autoplay" value="true"><param name="controller" value="true"><param name="bgcolor" value="#91B3A6"><embed src="';
	sHtml += sURL + '" autostart="true" loop="false" width="300" height="45" controller="true" bgcolor="#91B3A6"></embed></object>';
	with(document.getElementById('playerplace')) {
		innerHTML = sHtml;
		style.display = 'inline';
	}
	document.getElementById('playercloser').style.visibility = 'visible';
}
function hidePlayer() {
	with(document.getElementById('playerplace')) {
		innerHTML = '';
		style.display = 'none';
	}
	document.getElementById('playercloser').style.visibility = 'hidden';
}

