function showEnhancedThumbnail(ad_id) {
	var normal = getObj('img-'+ad_id);
	var enhanced = getObj('img-'+ad_id+'-e');
	if (!is_object(normal) || !is_object(enhanced)) return false;
	var dim = GetTopLeft(normal);
	var nT = dim.Top;
	var nH = normal.offsetHeight;
	var nL = dim.Left;
	var nW = normal.offsetWidth;
	enhanced.style.display = '';
	enhanced.style.position = 'absolute';
	enhanced.style.top = ((nT + (nH / 2)) - (enhanced.offsetHeight / 2)) + 'px';
	enhanced.style.left = ((nL + (nW / 2)) - (enhanced.offsetWidth / 2)) + 'px';
}
function hideEnhancedThumbnail(ad_id) {
	var enhanced = getObj('img-'+ad_id+'-e');
	if (!is_object(enhanced)) return false;
	enhanced.style.display = 'none';
}
function GetTopLeft(elm) {
    var x, y = 0;
    x = elm.offsetLeft;
	y = elm.offsetTop;
    elm = elm.offsetParent;
    while(elm != null) {
		x = parseInt(x) + parseInt(elm.offsetLeft);
        y = parseInt(y) + parseInt(elm.offsetTop);
        elm = elm.offsetParent;
    }
    return {Top:y, Left: x};
}