var POPpopup=new Array();function POPupById(Id,Txt,Retardo,ObjTxt){var obj=document.getElementById(Id);var i;var obTxt;if(typeof ObjTxt=='undefined')obTxt=null;else obTxt=ObjTxt;if(typeof(obj)!='undefined'){i=POPpopup.length;POPpopup[i]=new POPup(obj,Txt,Retardo,obTxt);POPpopup[obj.id]=POPpopup[i];}else alert('No encontre el elemento con id '+Id+' para crear POPup');};function POPup(obj,txt,retardo,obTxt){var clase=this;this.txt=txt;this.obj=obj;this.retardo=retardo;this.y=-1;this.x=-1;this.pending=false;this.objTxt=obTxt;this.del=mtDel;this.ShowRet=mtCompruebaRetardo;EVTAsignaEvento(this.obj,'mouseover',evShow);EVTAsignaEvento(this.obj,'mouseout',evHidden);function evShow(event){var e=EVTDimeEvento(event);clase.y=e.clientY+document.body.scrollTop;clase.x=e.clientX+document.body.scrollLeft;if(clase.retardo!=0){clase.pending=true;setTimeout('POPpopup.'+clase.obj.id+'.ShowRet()',clase.retardo);}else if(clase.objTxt!=null)clase.objTxt.innerHTML=clase.txt;else POPShow(clase.txt,clase.obj,clase.y,clase.x);};function evHidden(){clase.pending=false;if(clase.objTxt!=null)clase.objTxt.innerHTML='&nbsp;';else POPHidden();};function mtCompruebaRetardo(){if(OBJCoorInObject(clase.y,clase.x,clase.obj)&&clase.pending)if(clase.objTxt!=null)clase.objTxt.innerHTML=clase.txt;else POPShow(clase.txt,clase.obj,clase.y,clase.x);};function mtDel(){var i;var ieliminar;EVTEliminaEvento(clase.obj,'mouseover',evShow);EVTEliminaEvento(clase.obj,'mouseout',evHidden);for(i=0;i<POPpopup.length;i++)if(POPpopup[i]==clase){POPpopup.splice(i,1);break;};delete clase;};};function POPShow(txt,ele,y,x){var Top,Left;var div=document.getElementById('POPupDiv');var Html='';if(div==null){div=document.createElement("DIV");document.body.appendChild(div);div.id="POPupDiv";div.style.overflow='hidden';div.style.position='absolute';div.style.zIndex=99;div.style.visibility='hidden';};Html+='<table cellspacing="0" cellpadding="0">\n';Html+='<tr>\n';Html+='<td class="POPUPtd">'+txt+'</td>\n';Html+='</tr>\n';Html+='</table>';div.innerHTML=Html;Top=y-10;Left=x+10;div.style.left=Left+'px';div.style.top=Top+'px';div.style.visibility='visible';};function POPHidden(){var div=document.getElementById('POPupDiv');if(div!=null)div.style.visibility='hidden';};