var t="";
// p is the url of the rollover image
// x is the rollover text
function display(x,p)
{
   // use a blank gif if p is less than 23 chars
   if (p.length<23)
   {
      p='/shared/graphics/elp/robin_grey/blank.gif';
   }

   // set the image src to p
   document.rollo.src=p;

   // if DiTV, write the content of x to a table in the page
   if (navigator.userAgent.indexOf('DTV')!=-1)
   {
      document.dit.rows[0].cells[0].write(true,x);
   }
   else
   {
      // if IE, write the content of x to maptext
      if (navigator.userAgent.indexOf('MSIE')!=-1)
      {
         document.all.maptext.innerHTML="<p>"+x+"&nbsp;</p>";
      }
      else
      {
         /*
         (Netscape 4 workaround removed 16/05/05)
         p reused here in a different role
         if x has a value, add it's value as a text node to maptext
         if not, add (using replace?) an empty text node to maptext
         */
         if (x.length>0)
         {
            t=document.createTextNode(x);
            p=document.getElementById("maptext");
            p.appendChild(t);
         }
         else
         {
            tx=document.createTextNode(x);
            p=document.getElementById("maptext");
            p.replaceChild(tx,t);
         }
      }
      
   }
}
function MM_reloadPage(init)
{  //reloads the window if Nav4 resized
   if (init==true)
   {
      with (navigator)
      {
         if ((appName=="Netscape")&&(parseInt(appVersion)==4))
         {
            document.MM_pgW=innerWidth;
            document.MM_pgH=innerHeight;
            onresize=MM_reloadPage;
         }
      }
   }
   else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
   {
      location.reload();
   }
}
MM_reloadPage(true);


