function popupGallery(name)
{
   myWindow = window.popup("/showGalleryImage.jsp?src="+name, "galleryWindow", "toolbar=no,scrollbars=yes,resizable=yes,width=700,height=500;")
}

var ox=0;
var oy=0;

var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE);

function mouseMove(e)
{
   if (IE) 
   {
      ox = event.clientX + document.body.scrollLeft;
      oy = event.clientY + document.body.scrollTop;
   } 
   else 
   { 
      ox = e.pageX;
      oy = e.pageY;
   }  
   
   if (ox < 10){ox = 10}
   if (oy < 10){oy = 10}  
   return true  
}

document.onmousemove=mouseMove;

function silentErrorHandler() 
{
   return true
}
if (window.onError) window.onError=silentErrorHandler();

function showGalleryTooltip(text, desc)
{   
   if (text=="" && desc=="") return;
   
   if (document.getElementById||document.all)
   {
      lnk = "galleryTooltipLayer";
      var curLnk = (document.getElementById)? document.getElementById(lnk): document.all[lnk];      
      curLnk.style.visibility = "visible";
      curLnk.style.top=(oy+10)+"px";
      curLnk.style.left=(ox+10)+"px";
      if (desc!="")
      {
         if (text=="")
         {
            text = desc;
         }
         else
         {
            text = text + "<br><br>"+desc;
         }
      }
      curLnk.innerHTML = text;
   }   
}

function hideGalleryTooltip()
{
   if (document.getElementById||document.all)
   {
      lnk = "galleryTooltipLayer";
      var curLnk = (document.getElementById)? document.getElementById(lnk): document.all[lnk];      
      curLnk.style.visibility = "hidden";
      curLnk.style.posTop=oy+10;
      curLnk.style.posLeft=ox+10;
   }
}