//tipper.js
function tipit(ths)
 {
  showtip(ths,'xxx');
 }

function tipIt(e)
 {
  if(!e) 
    {
	 e=window.event;
	 ele=e.srcElement;
	}
  else
     ele=e.target;
  tipit(ele);
  }
var tipOff;
function showtip(ths,text)
  {
   tipOff=text;
   ths.style.cursor='pointer';
   s=ths.id;
   if (1)
      {
       thetitle=text.split('<br>');
       if (thetitle.length > 1)
          {
           thetitles="";		   
           for (i=0; thetitle.length>=i; i++)
              thetitles += thetitle[i] + "\r\n";
           ths.title = thetitles;
          }
       else 
           ths.title = text;
      }
  }
function expand_text(ths,text)
 {
  lf='\n';
  //text+=lf+'expanded';
  s=lf+'Left='+ths.origLeft;
  s+=lf+'Top='+ths.origTop;
  n=ths.NutType;
  if (n=='a')
      text=a_stats(ths,s);
  if (n=='line')
      text=line_stats(ths,s);
  if (n=='area')
      text=area_stats(ths,s);
  if (n=='img')
      text=img_stats(ths,s);
  return(text);
 }
function a_stats(ths,s)
 {
  st=' Tag\n_____\n';
  st+=lf+'id='+ths.id+s;
  st+=lf+'font-family='+ths.origFontFamily;
  st+=lf+'font-size='+ths.origFontSize;
  st+=lf+'letter-spacing='+ths.origLetterSpacing;
  st+=lf+'color='+ths.origColor;
  st+=lf+'Parent id='+ths.parentId;
  return(st);
 }
function line_stats(ths,s)
 {
  st=' Line\n______\n';
  st+=lf+'id='+ths.id+s;
  st+=lf+'Width='+ths.origWidth;
  st+=lf+'Height='+ths.origHeight;
  st+=lf+'Left='+ths.origLeft;
  st+=lf+'Top='+ths.origTop;
  st+=lf+'color='+ths.origBackgroundColor;
  st+=lf+'Parent Id='+ths.parentId;
  return(st);
 }
function area_stats(ths,s)
 {
  st=' Area\n______\n';
  st+=lf+'id='+ths.id+s;
  st+=lf+'Width='+ths.origWidth;
  st+=lf+'Height='+ths.origHeight;
  st+=lf+'Left='+ths.origLeft;
  st+=lf+'Top='+ths.origTop;
  st+=lf+'color='+ths.origBackgroundColor;
  st+=lf+'Parent Id='+ths.parentId;
  return(st);
 }
function img_stats(ths,s)
 {
  st=' Image\n_______\n';
  st+=lf+'id='+ths.id+s;
  st+=lf+'Width='+ths.origWidth;
  st+=lf+'Height='+ths.origHeight;
  st+=lf+'Left='+ths.origLeft;
  st+=lf+'Top='+ths.origTop;
  st+=lf+'color='+ths.origBackgroundColor;
  st+=lf+'Parent Id='+ths.parentId;
  return(st);
 }
