function getPageElement(name)
{
   var el = null;
   if (document.getElementById)
   {
      el = document.getElementById(name);
   }
   return(el);
}


function dShowNew(co, jo, timg) {
	///alert( ((document.body.scrollTop-timg.offsetParent.offsetTop)+timg.offsetParent.offsetTop+150)+" # "+document.body.scrollTop+" # "+timg.offsetParent.offsetTop+" # "+timg.offsetParent.offsetParent.offsetTop);
	pozice=timg.offsetParent.offsetTop+timg.offsetParent.offsetParent.offsetTop+150;
	
	var infoPopupDiv = getPageElement("infoPopupDiv");
	if (infoPopupDiv == null)
	{
      return;	    
	}
	
	if (jo)
	{
	   infoPopupDiv.style.display="block";
	   infoPopupDiv.style.posTop = pozice;
	   infoPopupDiv.innerHTML = co;
	   //unescape HTML
	   infoPopupDiv.innerHTML = infoPopupDiv.innerText;
	}
	else
	{
      infoPopupDiv.style.display="none";
	}
	
	/*if (document.all) {
		eval("infoPopupDiv.style.visibility = " + (jo ? "'visible'" : "'hidden'"));
		eval(co + ".style.posTop = " + pozice);
	} else {
  		document.layers[co].visibility = (jo ? "show" : "hide");
  	*/
	  
}	
  
