function dyngallery()
{
  var picId='currentimage';
  var d=document.getElementById('positionthumbs');
  if(!d){return;}
  var piclinks=d.getElementsByTagName('a');
  for(var i=0;i<piclinks.length;i++)
  {
piclinks[i].i=i;

    piclinks[i].onmouseover=function()
    {
      var oldp=document.getElementById(picId);
      if(oldp)
      {
       oldp.parentNode.removeChild(oldp);
      }
      var nc=document.createElement('div');
      d.parentNode.insertBefore(nc,d);
      nc.style.display='none';
      nc.id=picId;
      var newpic=document.createElement('img');
      newpic.src=this.href;
      newpic.alt=this.getElementsByTagName('img')[0].alt;

      newpic.className='current';

      nc.appendChild(newpic);
      np=document.createElement('p');
      np.appendChild(document.createTextNode(this.getElementsByTagName('img')[0].alt))
      nc.appendChild(np);
      nc.style.display='block';
      return false;
}
}
}
window.onload=function()
{
  if(document.getElementById && document.createTextNode)
  {
      dyngallery();  
  }
}