function showimg(url, w, h)
{
  w+=20; h+=20;
  window.open(url, "", "width="+w+",height="+h+",top=0,left=0,scrollbars=no");
}

function showimages(url, w, h, pic, first, last)
{
  w+=4; h+=50;
  var br = navigator.userAgent;
  if ( br.indexOf('MSIE')<0 )
  {
    h+=18;
    w+=2;
  }
  var wnd=window.open("../tools/slideshow.php?img="+url+"&pic="+pic+"&first="+first+"&last="+last, "", "width="+w+",height="+h+",scrollbars=yes,resizeable=no,fullscreen=yes");
  wnd.resizeTo(w,h);
  wnd.moveTo(103,200);
}

function showurl(url, w, h)
{
  window.open(url, "", "width="+w+",height="+h+",top=0,left=0,scrollbars=yes");
}


var folded = new Object();
function slide(el)
{
  for (var e in folded)
  {
    if(folded[e]!=0)
    {
      folded[e] = 0;
      Effect.SlideUp(document.getElementById(e));
    }
  }
  Effect.SlideDown(document.getElementById(el));
  folded[el] = el;
}